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 | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.6svn. |
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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.6svn' |
| 719 | PACKAGE_STRING='llvm 2.6svn' |
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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 815 | ARCH |
| 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 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 830 | BUILD_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 831 | CVSBUILD |
| 832 | ENABLE_OPTIMIZED |
| 833 | DISABLE_ASSERTIONS |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 834 | ENABLE_EXPENSIVE_CHECKS |
| 835 | EXPENSIVE_CHECKS |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 836 | DEBUG_RUNTIME |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 837 | JIT |
| 838 | TARGET_HAS_JIT |
| 839 | ENABLE_DOXYGEN |
| 840 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 841 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 842 | TARGETS_TO_BUILD |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 843 | ENABLE_CBE_PRINTF_A |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 844 | EXTRA_OPTIONS |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 845 | BINUTILS_INCDIR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | CXX |
| 847 | CXXFLAGS |
| 848 | ac_ct_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 849 | NM |
| 850 | ifGNUmake |
| 851 | LN_S |
| 852 | CMP |
| 853 | CP |
| 854 | DATE |
| 855 | FIND |
| 856 | MKDIR |
| 857 | MV |
| 858 | RANLIB |
| 859 | RM |
| 860 | SED |
| 861 | TAR |
| 862 | BINPWD |
| 863 | GRAPHVIZ |
| 864 | DOT |
| 865 | GV |
| 866 | DOTTY |
| 867 | PERL |
| 868 | HAVE_PERL |
| 869 | INSTALL_PROGRAM |
| 870 | INSTALL_SCRIPT |
| 871 | INSTALL_DATA |
| 872 | BZIP2 |
| 873 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 874 | GROFF |
| 875 | GZIP |
| 876 | POD2HTML |
| 877 | POD2MAN |
| 878 | RUNTEST |
| 879 | TCLSH |
| 880 | ZIP |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 881 | OCAMLC |
| 882 | OCAMLOPT |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 883 | OCAMLDEP |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 884 | OCAMLDOC |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 885 | GAS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 886 | INSTALL_LTDL_TRUE |
| 887 | INSTALL_LTDL_FALSE |
| 888 | CONVENIENCE_LTDL_TRUE |
| 889 | CONVENIENCE_LTDL_FALSE |
| 890 | LIBADD_DL |
| 891 | ECHO |
| 892 | AR |
| 893 | STRIP |
| 894 | CXXCPP |
| 895 | F77 |
| 896 | FFLAGS |
| 897 | ac_ct_F77 |
| 898 | LIBTOOL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 899 | LLVMGCC |
| 900 | LLVMGXX |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 901 | USE_UDIS86 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 902 | HAVE_PTHREAD |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 903 | HAVE_FFI |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 904 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 905 | ALLOCA |
| 906 | MMAP_FILE |
| 907 | LLVMCC1 |
| 908 | LLVMCC1PLUS |
| 909 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 910 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 911 | LLVMGCC_VERSION |
| 912 | LLVMGCC_MAJVERS |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 913 | LLVMGCC_LANGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 914 | SHLIBEXT |
| 915 | LLVM_PREFIX |
| 916 | LLVM_BINDIR |
| 917 | LLVM_LIBDIR |
| 918 | LLVM_DATADIR |
| 919 | LLVM_DOCSDIR |
| 920 | LLVM_ETCDIR |
| 921 | LLVM_INCLUDEDIR |
| 922 | LLVM_INFODIR |
| 923 | LLVM_MANDIR |
| 924 | LLVM_CONFIGTIME |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 925 | BINDINGS_TO_BUILD |
| 926 | ALL_BINDINGS |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 927 | OCAML_LIBDIR |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 928 | ENABLE_VISIBILITY_INLINES_HIDDEN |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 929 | RPATH |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 930 | RDYNAMIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 931 | LIBOBJS |
| 932 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 933 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 934 | ac_precious_vars='build_alias |
| 935 | host_alias |
| 936 | target_alias |
| 937 | CC |
| 938 | CFLAGS |
| 939 | LDFLAGS |
| 940 | CPPFLAGS |
| 941 | CPP |
| 942 | CXX |
| 943 | CXXFLAGS |
| 944 | CCC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 945 | CXXCPP |
| 946 | F77 |
| 947 | FFLAGS' |
| 948 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 949 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 950 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 951 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 952 | projects/test-suite |
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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 1461 | \`configure' configures llvm 2.6svn 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 | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 1527 | short | recursive ) echo "Configuration of llvm 2.6svn:";; |
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 |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1543 | is YES) |
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) |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1572 | --with-binutils-include Specify path to binutils/include/ containing |
| 1573 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1574 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1575 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1576 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1577 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1578 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1579 | --with-udis86=<path> Use udis86 external x86 disassembler library |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1580 | |
| 1581 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1582 | CC C compiler command |
| 1583 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1584 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1585 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1586 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1587 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1588 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1589 | CXX C++ compiler command |
| 1590 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1591 | CXXCPP C++ preprocessor |
| 1592 | F77 Fortran 77 compiler command |
| 1593 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1594 | |
| 1595 | Use these variables to override the choices made by `configure' or to help |
| 1596 | it to find libraries and programs with nonstandard names/locations. |
| 1597 | |
| 1598 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1599 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1600 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1601 | fi |
| 1602 | |
| 1603 | if test "$ac_init_help" = "recursive"; then |
| 1604 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1605 | 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] | 1606 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1607 | ac_builddir=. |
| 1608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1609 | case "$ac_dir" in |
| 1610 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1611 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1612 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1613 | # A ".." for each directory in $ac_dir_suffix. |
| 1614 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1615 | case $ac_top_builddir_sub in |
| 1616 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1617 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1618 | esac ;; |
| 1619 | esac |
| 1620 | ac_abs_top_builddir=$ac_pwd |
| 1621 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1622 | # for backward compatibility: |
| 1623 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1624 | |
| 1625 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1626 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1627 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1628 | ac_top_srcdir=$ac_top_builddir_sub |
| 1629 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1630 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1631 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1632 | ac_top_srcdir=$srcdir |
| 1633 | ac_abs_top_srcdir=$srcdir ;; |
| 1634 | *) # Relative name. |
| 1635 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1636 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1637 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1638 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1639 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1640 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1641 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1642 | # Check for guested configure. |
| 1643 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1644 | echo && |
| 1645 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1646 | elif test -f "$ac_srcdir/configure"; then |
| 1647 | echo && |
| 1648 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1649 | else |
| 1650 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1651 | fi || ac_status=$? |
| 1652 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1653 | done |
| 1654 | fi |
| 1655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1656 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1657 | if $ac_init_version; then |
| 1658 | cat <<\_ACEOF |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 1659 | llvm configure 2.6svn |
| 1660 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1661 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1662 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1663 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1664 | This configure script is free software; the Free Software Foundation |
| 1665 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1666 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1667 | Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1668 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1669 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1670 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1671 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1672 | This file contains any messages produced by compilers while |
| 1673 | running configure, to aid debugging if configure makes a mistake. |
| 1674 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 1675 | It was created by llvm $as_me 2.6svn, which was |
| 1676 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1677 | |
| 1678 | $ $0 $@ |
| 1679 | |
| 1680 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1681 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1682 | { |
| 1683 | cat <<_ASUNAME |
| 1684 | ## --------- ## |
| 1685 | ## Platform. ## |
| 1686 | ## --------- ## |
| 1687 | |
| 1688 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1689 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1690 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1691 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1692 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1693 | |
| 1694 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1695 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1696 | |
| 1697 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1698 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1699 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1700 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1701 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1702 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1703 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1704 | |
| 1705 | _ASUNAME |
| 1706 | |
| 1707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1708 | for as_dir in $PATH |
| 1709 | do |
| 1710 | IFS=$as_save_IFS |
| 1711 | test -z "$as_dir" && as_dir=. |
| 1712 | echo "PATH: $as_dir" |
| 1713 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1714 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1715 | |
| 1716 | } >&5 |
| 1717 | |
| 1718 | cat >&5 <<_ACEOF |
| 1719 | |
| 1720 | |
| 1721 | ## ----------- ## |
| 1722 | ## Core tests. ## |
| 1723 | ## ----------- ## |
| 1724 | |
| 1725 | _ACEOF |
| 1726 | |
| 1727 | |
| 1728 | # Keep a trace of the command line. |
| 1729 | # 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] | 1730 | # 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] | 1731 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1732 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1733 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1734 | ac_configure_args0= |
| 1735 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1736 | ac_must_keep_next=false |
| 1737 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1738 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1739 | for ac_arg |
| 1740 | do |
| 1741 | case $ac_arg in |
| 1742 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1743 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1744 | | -silent | --silent | --silen | --sile | --sil) |
| 1745 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1746 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1747 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1748 | esac |
| 1749 | case $ac_pass in |
| 1750 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1751 | 2) |
| 1752 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1753 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1754 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1755 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1756 | case $ac_arg in |
| 1757 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1758 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1759 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1760 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1761 | case "$ac_configure_args0 " in |
| 1762 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1763 | esac |
| 1764 | ;; |
| 1765 | -* ) ac_must_keep_next=true ;; |
| 1766 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1767 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1768 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1769 | ;; |
| 1770 | esac |
| 1771 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1773 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1774 | $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] | 1775 | |
| 1776 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1777 | # config.log. We remove comments because anyway the quotes in there |
| 1778 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1779 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1780 | # 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] | 1781 | trap 'exit_status=$? |
| 1782 | # Save into config.log some information that might help in debugging. |
| 1783 | { |
| 1784 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1785 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1786 | cat <<\_ASBOX |
| 1787 | ## ---------------- ## |
| 1788 | ## Cache variables. ## |
| 1789 | ## ---------------- ## |
| 1790 | _ASBOX |
| 1791 | echo |
| 1792 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1793 | ( |
| 1794 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1795 | eval ac_val=\$$ac_var |
| 1796 | case $ac_val in #( |
| 1797 | *${as_nl}*) |
| 1798 | case $ac_var in #( |
| 1799 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1800 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1801 | esac |
| 1802 | case $ac_var in #( |
| 1803 | _ | IFS | as_nl) ;; #( |
| 1804 | *) $as_unset $ac_var ;; |
| 1805 | esac ;; |
| 1806 | esac |
| 1807 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1808 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1809 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1810 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1811 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1812 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1813 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1814 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1815 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1816 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1818 | esac | |
| 1819 | sort |
| 1820 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1821 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1822 | |
| 1823 | cat <<\_ASBOX |
| 1824 | ## ----------------- ## |
| 1825 | ## Output variables. ## |
| 1826 | ## ----------------- ## |
| 1827 | _ASBOX |
| 1828 | echo |
| 1829 | for ac_var in $ac_subst_vars |
| 1830 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1831 | eval ac_val=\$$ac_var |
| 1832 | case $ac_val in |
| 1833 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1834 | esac |
| 1835 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1836 | done | sort |
| 1837 | echo |
| 1838 | |
| 1839 | if test -n "$ac_subst_files"; then |
| 1840 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1841 | ## ------------------- ## |
| 1842 | ## File substitutions. ## |
| 1843 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1844 | _ASBOX |
| 1845 | echo |
| 1846 | for ac_var in $ac_subst_files |
| 1847 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1848 | eval ac_val=\$$ac_var |
| 1849 | case $ac_val in |
| 1850 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1851 | esac |
| 1852 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1853 | done | sort |
| 1854 | echo |
| 1855 | fi |
| 1856 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1857 | if test -s confdefs.h; then |
| 1858 | cat <<\_ASBOX |
| 1859 | ## ----------- ## |
| 1860 | ## confdefs.h. ## |
| 1861 | ## ----------- ## |
| 1862 | _ASBOX |
| 1863 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1864 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1865 | echo |
| 1866 | fi |
| 1867 | test "$ac_signal" != 0 && |
| 1868 | echo "$as_me: caught signal $ac_signal" |
| 1869 | echo "$as_me: exit $exit_status" |
| 1870 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1871 | rm -f core *.core core.conftest.* && |
| 1872 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1873 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1874 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1875 | for ac_signal in 1 2 13 15; do |
| 1876 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1877 | done |
| 1878 | ac_signal=0 |
| 1879 | |
| 1880 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1881 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1882 | |
| 1883 | # Predefined preprocessor variables. |
| 1884 | |
| 1885 | cat >>confdefs.h <<_ACEOF |
| 1886 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1887 | _ACEOF |
| 1888 | |
| 1889 | |
| 1890 | cat >>confdefs.h <<_ACEOF |
| 1891 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1892 | _ACEOF |
| 1893 | |
| 1894 | |
| 1895 | cat >>confdefs.h <<_ACEOF |
| 1896 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1897 | _ACEOF |
| 1898 | |
| 1899 | |
| 1900 | cat >>confdefs.h <<_ACEOF |
| 1901 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1902 | _ACEOF |
| 1903 | |
| 1904 | |
| 1905 | cat >>confdefs.h <<_ACEOF |
| 1906 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1907 | _ACEOF |
| 1908 | |
| 1909 | |
| 1910 | # Let the site file select an alternate cache file if it wants to. |
| 1911 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1912 | if test -n "$CONFIG_SITE"; then |
| 1913 | set x "$CONFIG_SITE" |
| 1914 | elif test "x$prefix" != xNONE; then |
| 1915 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1916 | else |
| 1917 | set x "$ac_default_prefix/share/config.site" \ |
| 1918 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1919 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1920 | shift |
| 1921 | for ac_site_file |
| 1922 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1923 | if test -r "$ac_site_file"; then |
| 1924 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1925 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1926 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1927 | . "$ac_site_file" |
| 1928 | fi |
| 1929 | done |
| 1930 | |
| 1931 | if test -r "$cache_file"; then |
| 1932 | # Some versions of bash will fail to source /dev/null (special |
| 1933 | # files actually), so we avoid doing that. |
| 1934 | if test -f "$cache_file"; then |
| 1935 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1936 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1937 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1938 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1939 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1940 | esac |
| 1941 | fi |
| 1942 | else |
| 1943 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1944 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1945 | >$cache_file |
| 1946 | fi |
| 1947 | |
| 1948 | # Check that the precious variables saved in the cache have kept the same |
| 1949 | # value. |
| 1950 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1951 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1952 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1953 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1954 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1955 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1956 | case $ac_old_set,$ac_new_set in |
| 1957 | set,) |
| 1958 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1959 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1960 | ac_cache_corrupted=: ;; |
| 1961 | ,set) |
| 1962 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1963 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1964 | ac_cache_corrupted=: ;; |
| 1965 | ,);; |
| 1966 | *) |
| 1967 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1968 | { 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] | 1969 | 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] | 1970 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1971 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1972 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1973 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1974 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1975 | fi;; |
| 1976 | esac |
| 1977 | # Pass precious variables to config.status. |
| 1978 | if test "$ac_new_set" = set; then |
| 1979 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1980 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1981 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1982 | esac |
| 1983 | case " $ac_configure_args " in |
| 1984 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1985 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1986 | esac |
| 1987 | fi |
| 1988 | done |
| 1989 | if $ac_cache_corrupted; then |
| 1990 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1991 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1992 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1993 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1994 | { (exit 1); exit 1; }; } |
| 1995 | fi |
| 1996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1997 | |
| 1998 | |
| 1999 | |
| 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2021 | ac_ext=c |
| 2022 | ac_cpp='$CPP $CPPFLAGS' |
| 2023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2026 | |
| 2027 | |
| 2028 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2029 | LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2030 | |
| 2031 | |
| 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2037 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2038 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2039 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2040 | ac_aux_dir=$ac_dir |
| 2041 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2042 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2043 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | ac_aux_dir=$ac_dir |
| 2045 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2046 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2047 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2048 | ac_aux_dir=$ac_dir |
| 2049 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2050 | break |
| 2051 | fi |
| 2052 | done |
| 2053 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2054 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2055 | 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] | 2056 | { (exit 1); exit 1; }; } |
| 2057 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2058 | |
| 2059 | # These three variables are undocumented and unsupported, |
| 2060 | # and are intended to be withdrawn in a future Autoconf release. |
| 2061 | # They can cause serious problems if a builder's source tree is in a directory |
| 2062 | # whose full name contains unusual characters. |
| 2063 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2064 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2065 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2066 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2067 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2068 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2069 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2070 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2071 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2072 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2073 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2074 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2075 | fi |
| 2076 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2077 | for i in `ls ${srcdir}/projects` |
| 2078 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2079 | if test -d ${srcdir}/projects/${i} ; then |
| 2080 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2081 | CVS) ;; |
| 2082 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2083 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2084 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2085 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2086 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2087 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 2088 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 2089 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2090 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2091 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 2092 | test-suite) subdirs="$subdirs projects/test-suite" |
| 2093 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2094 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2095 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2096 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2097 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2098 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2099 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2100 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2101 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2102 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2103 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2104 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2105 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2106 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2107 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2108 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2109 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2110 | 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] | 2111 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2112 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2113 | fi |
| 2114 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2115 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2116 | |
| 2117 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2118 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2119 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2120 | 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] | 2121 | { (exit 1); exit 1; }; } |
| 2122 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2123 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2124 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2125 | if test "${ac_cv_build+set}" = set; then |
| 2126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2127 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2128 | ac_build_alias=$build_alias |
| 2129 | test "x$ac_build_alias" = x && |
| 2130 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2131 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2132 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2133 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2134 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2135 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2136 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2137 | 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] | 2138 | { (exit 1); exit 1; }; } |
| 2139 | |
| 2140 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2141 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2142 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2143 | case $ac_cv_build in |
| 2144 | *-*-*) ;; |
| 2145 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2146 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2147 | { (exit 1); exit 1; }; };; |
| 2148 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2149 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2150 | ac_save_IFS=$IFS; IFS='-' |
| 2151 | set x $ac_cv_build |
| 2152 | shift |
| 2153 | build_cpu=$1 |
| 2154 | build_vendor=$2 |
| 2155 | shift; shift |
| 2156 | # Remember, the first character of IFS is used to create $*, |
| 2157 | # except with old shells: |
| 2158 | build_os=$* |
| 2159 | IFS=$ac_save_IFS |
| 2160 | 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] | 2161 | |
| 2162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2163 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2164 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2165 | if test "${ac_cv_host+set}" = set; then |
| 2166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2167 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2168 | if test "x$host_alias" = x; then |
| 2169 | ac_cv_host=$ac_cv_build |
| 2170 | else |
| 2171 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2172 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2173 | 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] | 2174 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2175 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2176 | |
| 2177 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2178 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2179 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2180 | case $ac_cv_host in |
| 2181 | *-*-*) ;; |
| 2182 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2183 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2184 | { (exit 1); exit 1; }; };; |
| 2185 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2186 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2187 | ac_save_IFS=$IFS; IFS='-' |
| 2188 | set x $ac_cv_host |
| 2189 | shift |
| 2190 | host_cpu=$1 |
| 2191 | host_vendor=$2 |
| 2192 | shift; shift |
| 2193 | # Remember, the first character of IFS is used to create $*, |
| 2194 | # except with old shells: |
| 2195 | host_os=$* |
| 2196 | IFS=$ac_save_IFS |
| 2197 | 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] | 2198 | |
| 2199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2200 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2201 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2202 | if test "${ac_cv_target+set}" = set; then |
| 2203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2204 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2205 | if test "x$target_alias" = x; then |
| 2206 | ac_cv_target=$ac_cv_host |
| 2207 | else |
| 2208 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2209 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2210 | 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] | 2211 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2212 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2213 | |
| 2214 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2216 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2217 | case $ac_cv_target in |
| 2218 | *-*-*) ;; |
| 2219 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2220 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2221 | { (exit 1); exit 1; }; };; |
| 2222 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2223 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2224 | ac_save_IFS=$IFS; IFS='-' |
| 2225 | set x $ac_cv_target |
| 2226 | shift |
| 2227 | target_cpu=$1 |
| 2228 | target_vendor=$2 |
| 2229 | shift; shift |
| 2230 | # Remember, the first character of IFS is used to create $*, |
| 2231 | # except with old shells: |
| 2232 | target_os=$* |
| 2233 | IFS=$ac_save_IFS |
| 2234 | 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] | 2235 | |
| 2236 | |
| 2237 | # The aliases save the names the user supplied, while $host etc. |
| 2238 | # will get canonicalized. |
| 2239 | test -n "$target_alias" && |
| 2240 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2241 | NONENONEs,x,x, && |
| 2242 | program_prefix=${target_alias}- |
| 2243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2245 | 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] | 2246 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2248 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2249 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2250 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2251 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2252 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2253 | llvm_cv_os_type="AIX" |
| 2254 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2255 | *-*-irix*) |
| 2256 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2257 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2258 | llvm_cv_os_type="IRIX" |
| 2259 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2260 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2261 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2262 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2263 | llvm_cv_os_type="Cygwin" |
| 2264 | llvm_cv_platform_type="Unix" ;; |
| 2265 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2266 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2267 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2268 | llvm_cv_os_type="Darwin" |
| 2269 | llvm_cv_platform_type="Unix" ;; |
| 2270 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2271 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2272 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2273 | llvm_cv_os_type="FreeBSD" |
| 2274 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2275 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2276 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2277 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2278 | llvm_cv_os_type="OpenBSD" |
| 2279 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2280 | *-*-netbsd*) |
| 2281 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2282 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2283 | llvm_cv_os_type="NetBSD" |
| 2284 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2285 | *-*-dragonfly*) |
| 2286 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2287 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2288 | llvm_cv_os_type="DragonFly" |
| 2289 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2290 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2291 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2292 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2293 | llvm_cv_os_type="HP-UX" |
| 2294 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2295 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2296 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2297 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2298 | llvm_cv_os_type="Interix" |
| 2299 | llvm_cv_platform_type="Unix" ;; |
| 2300 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2301 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2302 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2303 | llvm_cv_os_type="Linux" |
| 2304 | llvm_cv_platform_type="Unix" ;; |
| 2305 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2306 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2307 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2308 | llvm_cv_os_type="SunOS" |
| 2309 | llvm_cv_platform_type="Unix" ;; |
| 2310 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2311 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2312 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2313 | llvm_cv_os_type="Win32" |
| 2314 | llvm_cv_platform_type="Win32" ;; |
| 2315 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2316 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2317 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2318 | llvm_cv_os_type="MingW" |
| 2319 | llvm_cv_platform_type="Win32" ;; |
| 2320 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2321 | llvm_cv_link_all_option="" |
| 2322 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2323 | llvm_cv_os_type="Unknown" |
| 2324 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2325 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2326 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2327 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2328 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2329 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2330 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2331 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2332 | 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] | 2333 | { (exit 1); exit 1; }; } |
| 2334 | fi |
| 2335 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2336 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2337 | |
| 2338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2339 | LINKALL=$llvm_cv_link_all_option |
| 2340 | |
| 2341 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2342 | |
| 2343 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2344 | case $llvm_cv_platform_type in |
| 2345 | Unix) |
| 2346 | |
| 2347 | cat >>confdefs.h <<\_ACEOF |
| 2348 | #define LLVM_ON_UNIX 1 |
| 2349 | _ACEOF |
| 2350 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2351 | LLVM_ON_UNIX=1 |
| 2352 | |
| 2353 | LLVM_ON_WIN32=0 |
| 2354 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2355 | ;; |
| 2356 | Win32) |
| 2357 | |
| 2358 | cat >>confdefs.h <<\_ACEOF |
| 2359 | #define LLVM_ON_WIN32 1 |
| 2360 | _ACEOF |
| 2361 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2362 | LLVM_ON_UNIX=0 |
| 2363 | |
| 2364 | LLVM_ON_WIN32=1 |
| 2365 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2366 | ;; |
| 2367 | esac |
| 2368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2369 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2370 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2371 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2373 | else |
| 2374 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2375 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2376 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2377 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2378 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2379 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2380 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 2381 | arm-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2382 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2383 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2384 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2385 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2386 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2387 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2388 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2389 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2390 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2391 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2392 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2393 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2394 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2395 | |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 2396 | ARCH=$llvm_cv_target_arch |
| 2397 | |
| 2398 | |
| 2399 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2400 | ac_cpp='$CPP $CPPFLAGS' |
| 2401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2404 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2405 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2406 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2407 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2409 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2411 | else |
| 2412 | if test -n "$CC"; then |
| 2413 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2414 | else |
| 2415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2416 | for as_dir in $PATH |
| 2417 | do |
| 2418 | IFS=$as_save_IFS |
| 2419 | test -z "$as_dir" && as_dir=. |
| 2420 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 2421 | 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] | 2422 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2424 | break 2 |
| 2425 | fi |
| 2426 | done |
| 2427 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2428 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2429 | |
| 2430 | fi |
| 2431 | fi |
| 2432 | CC=$ac_cv_prog_CC |
| 2433 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2434 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2435 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2436 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2437 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2438 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2439 | fi |
| 2440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2441 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2442 | fi |
| 2443 | if test -z "$ac_cv_prog_CC"; then |
| 2444 | ac_ct_CC=$CC |
| 2445 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2446 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2447 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2449 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2451 | else |
| 2452 | if test -n "$ac_ct_CC"; then |
| 2453 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2454 | else |
| 2455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2456 | for as_dir in $PATH |
| 2457 | do |
| 2458 | IFS=$as_save_IFS |
| 2459 | test -z "$as_dir" && as_dir=. |
| 2460 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 2461 | 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] | 2462 | ac_cv_prog_ac_ct_CC="gcc" |
| 2463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2464 | break 2 |
| 2465 | fi |
| 2466 | done |
| 2467 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2468 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2469 | |
| 2470 | fi |
| 2471 | fi |
| 2472 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2473 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2474 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2475 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2476 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2477 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2478 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2479 | fi |
| 2480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2481 | if test "x$ac_ct_CC" = x; then |
| 2482 | CC="" |
| 2483 | else |
| 2484 | case $cross_compiling:$ac_tool_warned in |
| 2485 | yes:) |
| 2486 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2487 | whose name does not start with the host triplet. If you think this |
| 2488 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2489 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2490 | whose name does not start with the host triplet. If you think this |
| 2491 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2492 | ac_tool_warned=yes ;; |
| 2493 | esac |
| 2494 | CC=$ac_ct_CC |
| 2495 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2496 | else |
| 2497 | CC="$ac_cv_prog_CC" |
| 2498 | fi |
| 2499 | |
| 2500 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2501 | if test -n "$ac_tool_prefix"; then |
| 2502 | # 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] | 2503 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2504 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2506 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2508 | else |
| 2509 | if test -n "$CC"; then |
| 2510 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2511 | else |
| 2512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2513 | for as_dir in $PATH |
| 2514 | do |
| 2515 | IFS=$as_save_IFS |
| 2516 | test -z "$as_dir" && as_dir=. |
| 2517 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 2518 | 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] | 2519 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2521 | break 2 |
| 2522 | fi |
| 2523 | done |
| 2524 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2525 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2526 | |
| 2527 | fi |
| 2528 | fi |
| 2529 | CC=$ac_cv_prog_CC |
| 2530 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2531 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2532 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2533 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2534 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2535 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2536 | fi |
| 2537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2538 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2539 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2540 | fi |
| 2541 | if test -z "$CC"; then |
| 2542 | # Extract the first word of "cc", so it can be a program name with args. |
| 2543 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2544 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2546 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2548 | else |
| 2549 | if test -n "$CC"; then |
| 2550 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2551 | else |
| 2552 | ac_prog_rejected=no |
| 2553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2554 | for as_dir in $PATH |
| 2555 | do |
| 2556 | IFS=$as_save_IFS |
| 2557 | test -z "$as_dir" && as_dir=. |
| 2558 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 2559 | 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] | 2560 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2561 | ac_prog_rejected=yes |
| 2562 | continue |
| 2563 | fi |
| 2564 | ac_cv_prog_CC="cc" |
| 2565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2566 | break 2 |
| 2567 | fi |
| 2568 | done |
| 2569 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2570 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2571 | |
| 2572 | if test $ac_prog_rejected = yes; then |
| 2573 | # We found a bogon in the path, so make sure we never use it. |
| 2574 | set dummy $ac_cv_prog_CC |
| 2575 | shift |
| 2576 | if test $# != 0; then |
| 2577 | # We chose a different compiler from the bogus one. |
| 2578 | # However, it has the same basename, so the bogon will be chosen |
| 2579 | # first if we set CC to just the basename; use the full file name. |
| 2580 | shift |
| 2581 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2582 | fi |
| 2583 | fi |
| 2584 | fi |
| 2585 | fi |
| 2586 | CC=$ac_cv_prog_CC |
| 2587 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2588 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2589 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2590 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2591 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2592 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2593 | fi |
| 2594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2595 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2596 | fi |
| 2597 | if test -z "$CC"; then |
| 2598 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2599 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2600 | do |
| 2601 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2602 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2603 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2605 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2607 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2608 | if test -n "$CC"; then |
| 2609 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2610 | else |
| 2611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2612 | for as_dir in $PATH |
| 2613 | do |
| 2614 | IFS=$as_save_IFS |
| 2615 | test -z "$as_dir" && as_dir=. |
| 2616 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 2617 | 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] | 2618 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2620 | break 2 |
| 2621 | fi |
| 2622 | done |
| 2623 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2624 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2625 | |
| 2626 | fi |
| 2627 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2628 | CC=$ac_cv_prog_CC |
| 2629 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2630 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2631 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2633 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2634 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2635 | fi |
| 2636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2637 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2638 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2639 | done |
| 2640 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2641 | if test -z "$CC"; then |
| 2642 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2643 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2644 | do |
| 2645 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2646 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2647 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2649 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2651 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2652 | if test -n "$ac_ct_CC"; then |
| 2653 | 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] | 2654 | else |
| 2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2656 | for as_dir in $PATH |
| 2657 | do |
| 2658 | IFS=$as_save_IFS |
| 2659 | test -z "$as_dir" && as_dir=. |
| 2660 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 2661 | 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] | 2662 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2664 | break 2 |
| 2665 | fi |
| 2666 | done |
| 2667 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2668 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2669 | |
| 2670 | fi |
| 2671 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2672 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2673 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2674 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2675 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2676 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2677 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2678 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2679 | fi |
| 2680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2681 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2682 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2683 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2685 | if test "x$ac_ct_CC" = x; then |
| 2686 | CC="" |
| 2687 | else |
| 2688 | case $cross_compiling:$ac_tool_warned in |
| 2689 | yes:) |
| 2690 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2691 | whose name does not start with the host triplet. If you think this |
| 2692 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2693 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2694 | whose name does not start with the host triplet. If you think this |
| 2695 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2696 | ac_tool_warned=yes ;; |
| 2697 | esac |
| 2698 | CC=$ac_ct_CC |
| 2699 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2700 | fi |
| 2701 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2702 | fi |
| 2703 | |
| 2704 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2705 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2706 | See \`config.log' for more details." >&5 |
| 2707 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2708 | See \`config.log' for more details." >&2;} |
| 2709 | { (exit 1); exit 1; }; } |
| 2710 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2711 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2712 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2713 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2714 | { (ac_try="$ac_compiler --version >&5" |
| 2715 | case "(($ac_try" in |
| 2716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2717 | *) ac_try_echo=$ac_try;; |
| 2718 | esac |
| 2719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2720 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2721 | ac_status=$? |
| 2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2723 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2724 | { (ac_try="$ac_compiler -v >&5" |
| 2725 | case "(($ac_try" in |
| 2726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2727 | *) ac_try_echo=$ac_try;; |
| 2728 | esac |
| 2729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2730 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2731 | ac_status=$? |
| 2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2733 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2734 | { (ac_try="$ac_compiler -V >&5" |
| 2735 | case "(($ac_try" in |
| 2736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2737 | *) ac_try_echo=$ac_try;; |
| 2738 | esac |
| 2739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2740 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2741 | ac_status=$? |
| 2742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2743 | (exit $ac_status); } |
| 2744 | |
| 2745 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2746 | /* confdefs.h. */ |
| 2747 | _ACEOF |
| 2748 | cat confdefs.h >>conftest.$ac_ext |
| 2749 | cat >>conftest.$ac_ext <<_ACEOF |
| 2750 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2751 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2752 | int |
| 2753 | main () |
| 2754 | { |
| 2755 | |
| 2756 | ; |
| 2757 | return 0; |
| 2758 | } |
| 2759 | _ACEOF |
| 2760 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2761 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2762 | # Try to create an executable without -o first, disregard a.out. |
| 2763 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2764 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2765 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2766 | 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] | 2767 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2768 | # |
| 2769 | # List of possible output files, starting from the most likely. |
| 2770 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2771 | # only as a last resort. b.out is created by i960 compilers. |
| 2772 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2773 | # |
| 2774 | # The IRIX 6 linker writes into existing files which may not be |
| 2775 | # executable, retaining their permissions. Remove them first so a |
| 2776 | # subsequent execution test works. |
| 2777 | ac_rmfiles= |
| 2778 | for ac_file in $ac_files |
| 2779 | do |
| 2780 | case $ac_file in |
| 2781 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2782 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2783 | esac |
| 2784 | done |
| 2785 | rm -f $ac_rmfiles |
| 2786 | |
| 2787 | if { (ac_try="$ac_link_default" |
| 2788 | case "(($ac_try" in |
| 2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2790 | *) ac_try_echo=$ac_try;; |
| 2791 | esac |
| 2792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2793 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2794 | ac_status=$? |
| 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2796 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2797 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2798 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2799 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2800 | # so that the user can short-circuit this test for compilers unknown to |
| 2801 | # Autoconf. |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 2802 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2803 | do |
| 2804 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2805 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2806 | *.$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] | 2807 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2808 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2809 | # We found the default executable, but exeext='' is most |
| 2810 | # certainly right. |
| 2811 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2812 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2813 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2814 | then :; else |
| 2815 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2816 | fi |
| 2817 | # We set ac_cv_exeext here because the later test for it is not |
| 2818 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2819 | # argument, so we may need to know it at that point already. |
| 2820 | # Even if this section looks crufty: it has the advantage of |
| 2821 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2822 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2823 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2824 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2825 | esac |
| 2826 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2827 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2828 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2829 | else |
| 2830 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2832 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2833 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2834 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2835 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2836 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2837 | { (exit 77); exit 77; }; } |
| 2838 | fi |
| 2839 | |
| 2840 | ac_exeext=$ac_cv_exeext |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 2841 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2842 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2844 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2845 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2846 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2847 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2848 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2849 | # If not cross compiling, check that we can run a simple program. |
| 2850 | if test "$cross_compiling" != yes; then |
| 2851 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2852 | { (case "(($ac_try" in |
| 2853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2854 | *) ac_try_echo=$ac_try;; |
| 2855 | esac |
| 2856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2857 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2858 | ac_status=$? |
| 2859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2860 | (exit $ac_status); }; }; then |
| 2861 | cross_compiling=no |
| 2862 | else |
| 2863 | if test "$cross_compiling" = maybe; then |
| 2864 | cross_compiling=yes |
| 2865 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2866 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2867 | If you meant to cross compile, use \`--host'. |
| 2868 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2869 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2870 | If you meant to cross compile, use \`--host'. |
| 2871 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2872 | { (exit 1); exit 1; }; } |
| 2873 | fi |
| 2874 | fi |
| 2875 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2876 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2877 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2878 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2879 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2880 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2881 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2882 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2883 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2884 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2885 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2886 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2888 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2889 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2890 | if { (ac_try="$ac_link" |
| 2891 | case "(($ac_try" in |
| 2892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2893 | *) ac_try_echo=$ac_try;; |
| 2894 | esac |
| 2895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2896 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2897 | ac_status=$? |
| 2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2899 | (exit $ac_status); }; then |
| 2900 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2901 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2902 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2903 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2904 | for ac_file in conftest.exe conftest conftest.*; do |
| 2905 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2906 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2907 | *.$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] | 2908 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2909 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | * ) break;; |
| 2911 | esac |
| 2912 | done |
| 2913 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2914 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2915 | See \`config.log' for more details." >&5 |
| 2916 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2917 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2918 | { (exit 1); exit 1; }; } |
| 2919 | fi |
| 2920 | |
| 2921 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2922 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2923 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2924 | |
| 2925 | rm -f conftest.$ac_ext |
| 2926 | EXEEXT=$ac_cv_exeext |
| 2927 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2928 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2929 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2930 | if test "${ac_cv_objext+set}" = set; then |
| 2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2932 | else |
| 2933 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2934 | /* confdefs.h. */ |
| 2935 | _ACEOF |
| 2936 | cat confdefs.h >>conftest.$ac_ext |
| 2937 | cat >>conftest.$ac_ext <<_ACEOF |
| 2938 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2939 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2940 | int |
| 2941 | main () |
| 2942 | { |
| 2943 | |
| 2944 | ; |
| 2945 | return 0; |
| 2946 | } |
| 2947 | _ACEOF |
| 2948 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2949 | if { (ac_try="$ac_compile" |
| 2950 | case "(($ac_try" in |
| 2951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2952 | *) ac_try_echo=$ac_try;; |
| 2953 | esac |
| 2954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2955 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2956 | ac_status=$? |
| 2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2958 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2959 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2960 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2961 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2962 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2963 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2964 | break;; |
| 2965 | esac |
| 2966 | done |
| 2967 | else |
| 2968 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2970 | |
| 2971 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2972 | See \`config.log' for more details." >&5 |
| 2973 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2974 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2975 | { (exit 1); exit 1; }; } |
| 2976 | fi |
| 2977 | |
| 2978 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2979 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2980 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2981 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2982 | OBJEXT=$ac_cv_objext |
| 2983 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2984 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2985 | 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] | 2986 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2988 | else |
| 2989 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2990 | /* confdefs.h. */ |
| 2991 | _ACEOF |
| 2992 | cat confdefs.h >>conftest.$ac_ext |
| 2993 | cat >>conftest.$ac_ext <<_ACEOF |
| 2994 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2995 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2996 | int |
| 2997 | main () |
| 2998 | { |
| 2999 | #ifndef __GNUC__ |
| 3000 | choke me |
| 3001 | #endif |
| 3002 | |
| 3003 | ; |
| 3004 | return 0; |
| 3005 | } |
| 3006 | _ACEOF |
| 3007 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3008 | if { (ac_try="$ac_compile" |
| 3009 | case "(($ac_try" in |
| 3010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3011 | *) ac_try_echo=$ac_try;; |
| 3012 | esac |
| 3013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3014 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3015 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3017 | rm -f conftest.er1 |
| 3018 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3020 | (exit $ac_status); } && |
| 3021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3022 | { (case "(($ac_try" in |
| 3023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3024 | *) ac_try_echo=$ac_try;; |
| 3025 | esac |
| 3026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3027 | (eval "$ac_try") 2>&5 |
| 3028 | ac_status=$? |
| 3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3030 | (exit $ac_status); }; } && |
| 3031 | { ac_try='test -s conftest.$ac_objext' |
| 3032 | { (case "(($ac_try" in |
| 3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3034 | *) ac_try_echo=$ac_try;; |
| 3035 | esac |
| 3036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3037 | (eval "$ac_try") 2>&5 |
| 3038 | ac_status=$? |
| 3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3040 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3041 | ac_compiler_gnu=yes |
| 3042 | else |
| 3043 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3046 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3047 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3048 | |
| 3049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3050 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3051 | |
| 3052 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3053 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3054 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3055 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3056 | ac_test_CFLAGS=${CFLAGS+set} |
| 3057 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3058 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3059 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3060 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3062 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3063 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3064 | ac_c_werror_flag=yes |
| 3065 | ac_cv_prog_cc_g=no |
| 3066 | CFLAGS="-g" |
| 3067 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3068 | /* confdefs.h. */ |
| 3069 | _ACEOF |
| 3070 | cat confdefs.h >>conftest.$ac_ext |
| 3071 | cat >>conftest.$ac_ext <<_ACEOF |
| 3072 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3073 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3074 | int |
| 3075 | main () |
| 3076 | { |
| 3077 | |
| 3078 | ; |
| 3079 | return 0; |
| 3080 | } |
| 3081 | _ACEOF |
| 3082 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3083 | if { (ac_try="$ac_compile" |
| 3084 | case "(($ac_try" in |
| 3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3086 | *) ac_try_echo=$ac_try;; |
| 3087 | esac |
| 3088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3089 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3090 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3092 | rm -f conftest.er1 |
| 3093 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3095 | (exit $ac_status); } && |
| 3096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3097 | { (case "(($ac_try" in |
| 3098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3099 | *) ac_try_echo=$ac_try;; |
| 3100 | esac |
| 3101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3102 | (eval "$ac_try") 2>&5 |
| 3103 | ac_status=$? |
| 3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3105 | (exit $ac_status); }; } && |
| 3106 | { ac_try='test -s conftest.$ac_objext' |
| 3107 | { (case "(($ac_try" in |
| 3108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3109 | *) ac_try_echo=$ac_try;; |
| 3110 | esac |
| 3111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3112 | (eval "$ac_try") 2>&5 |
| 3113 | ac_status=$? |
| 3114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3115 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3116 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3117 | else |
| 3118 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3121 | CFLAGS="" |
| 3122 | cat >conftest.$ac_ext <<_ACEOF |
| 3123 | /* confdefs.h. */ |
| 3124 | _ACEOF |
| 3125 | cat confdefs.h >>conftest.$ac_ext |
| 3126 | cat >>conftest.$ac_ext <<_ACEOF |
| 3127 | /* end confdefs.h. */ |
| 3128 | |
| 3129 | int |
| 3130 | main () |
| 3131 | { |
| 3132 | |
| 3133 | ; |
| 3134 | return 0; |
| 3135 | } |
| 3136 | _ACEOF |
| 3137 | rm -f conftest.$ac_objext |
| 3138 | if { (ac_try="$ac_compile" |
| 3139 | case "(($ac_try" in |
| 3140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3141 | *) ac_try_echo=$ac_try;; |
| 3142 | esac |
| 3143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3144 | (eval "$ac_compile") 2>conftest.er1 |
| 3145 | ac_status=$? |
| 3146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3147 | rm -f conftest.er1 |
| 3148 | cat conftest.err >&5 |
| 3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3150 | (exit $ac_status); } && |
| 3151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3152 | { (case "(($ac_try" in |
| 3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3154 | *) ac_try_echo=$ac_try;; |
| 3155 | esac |
| 3156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3157 | (eval "$ac_try") 2>&5 |
| 3158 | ac_status=$? |
| 3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3160 | (exit $ac_status); }; } && |
| 3161 | { ac_try='test -s conftest.$ac_objext' |
| 3162 | { (case "(($ac_try" in |
| 3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3164 | *) ac_try_echo=$ac_try;; |
| 3165 | esac |
| 3166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3167 | (eval "$ac_try") 2>&5 |
| 3168 | ac_status=$? |
| 3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3170 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3171 | : |
| 3172 | else |
| 3173 | echo "$as_me: failed program was:" >&5 |
| 3174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3175 | |
| 3176 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3177 | CFLAGS="-g" |
| 3178 | cat >conftest.$ac_ext <<_ACEOF |
| 3179 | /* confdefs.h. */ |
| 3180 | _ACEOF |
| 3181 | cat confdefs.h >>conftest.$ac_ext |
| 3182 | cat >>conftest.$ac_ext <<_ACEOF |
| 3183 | /* end confdefs.h. */ |
| 3184 | |
| 3185 | int |
| 3186 | main () |
| 3187 | { |
| 3188 | |
| 3189 | ; |
| 3190 | return 0; |
| 3191 | } |
| 3192 | _ACEOF |
| 3193 | rm -f conftest.$ac_objext |
| 3194 | if { (ac_try="$ac_compile" |
| 3195 | case "(($ac_try" in |
| 3196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3197 | *) ac_try_echo=$ac_try;; |
| 3198 | esac |
| 3199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3200 | (eval "$ac_compile") 2>conftest.er1 |
| 3201 | ac_status=$? |
| 3202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3203 | rm -f conftest.er1 |
| 3204 | cat conftest.err >&5 |
| 3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3206 | (exit $ac_status); } && |
| 3207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3208 | { (case "(($ac_try" in |
| 3209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3210 | *) ac_try_echo=$ac_try;; |
| 3211 | esac |
| 3212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3213 | (eval "$ac_try") 2>&5 |
| 3214 | ac_status=$? |
| 3215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3216 | (exit $ac_status); }; } && |
| 3217 | { ac_try='test -s conftest.$ac_objext' |
| 3218 | { (case "(($ac_try" in |
| 3219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3220 | *) ac_try_echo=$ac_try;; |
| 3221 | esac |
| 3222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3223 | (eval "$ac_try") 2>&5 |
| 3224 | ac_status=$? |
| 3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3226 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3227 | ac_cv_prog_cc_g=yes |
| 3228 | else |
| 3229 | echo "$as_me: failed program was:" >&5 |
| 3230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3231 | |
| 3232 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3233 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3234 | |
| 3235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3236 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3237 | |
| 3238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3239 | fi |
| 3240 | |
| 3241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3242 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3243 | fi |
| 3244 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3245 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3246 | if test "$ac_test_CFLAGS" = set; then |
| 3247 | CFLAGS=$ac_save_CFLAGS |
| 3248 | elif test $ac_cv_prog_cc_g = yes; then |
| 3249 | if test "$GCC" = yes; then |
| 3250 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3251 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3252 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3253 | fi |
| 3254 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3255 | if test "$GCC" = yes; then |
| 3256 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3257 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3258 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3259 | fi |
| 3260 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3261 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3262 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3263 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3265 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3266 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3267 | ac_save_CC=$CC |
| 3268 | cat >conftest.$ac_ext <<_ACEOF |
| 3269 | /* confdefs.h. */ |
| 3270 | _ACEOF |
| 3271 | cat confdefs.h >>conftest.$ac_ext |
| 3272 | cat >>conftest.$ac_ext <<_ACEOF |
| 3273 | /* end confdefs.h. */ |
| 3274 | #include <stdarg.h> |
| 3275 | #include <stdio.h> |
| 3276 | #include <sys/types.h> |
| 3277 | #include <sys/stat.h> |
| 3278 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3279 | struct buf { int x; }; |
| 3280 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3281 | static char *e (p, i) |
| 3282 | char **p; |
| 3283 | int i; |
| 3284 | { |
| 3285 | return p[i]; |
| 3286 | } |
| 3287 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3288 | { |
| 3289 | char *s; |
| 3290 | va_list v; |
| 3291 | va_start (v,p); |
| 3292 | s = g (p, va_arg (v,int)); |
| 3293 | va_end (v); |
| 3294 | return s; |
| 3295 | } |
| 3296 | |
| 3297 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3298 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3299 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3300 | 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] | 3301 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3302 | 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] | 3303 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3304 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3306 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3307 | inside strings and character constants. */ |
| 3308 | #define FOO(x) 'x' |
| 3309 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3310 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3311 | int test (int i, double x); |
| 3312 | struct s1 {int (*f) (int a);}; |
| 3313 | struct s2 {int (*f) (double a);}; |
| 3314 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3315 | int argc; |
| 3316 | char **argv; |
| 3317 | int |
| 3318 | main () |
| 3319 | { |
| 3320 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3321 | ; |
| 3322 | return 0; |
| 3323 | } |
| 3324 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3325 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3326 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3327 | do |
| 3328 | CC="$ac_save_CC $ac_arg" |
| 3329 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3330 | if { (ac_try="$ac_compile" |
| 3331 | case "(($ac_try" in |
| 3332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3333 | *) ac_try_echo=$ac_try;; |
| 3334 | esac |
| 3335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3336 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3337 | ac_status=$? |
| 3338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3339 | rm -f conftest.er1 |
| 3340 | cat conftest.err >&5 |
| 3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3342 | (exit $ac_status); } && |
| 3343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3344 | { (case "(($ac_try" in |
| 3345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3346 | *) ac_try_echo=$ac_try;; |
| 3347 | esac |
| 3348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3349 | (eval "$ac_try") 2>&5 |
| 3350 | ac_status=$? |
| 3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3352 | (exit $ac_status); }; } && |
| 3353 | { ac_try='test -s conftest.$ac_objext' |
| 3354 | { (case "(($ac_try" in |
| 3355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3356 | *) ac_try_echo=$ac_try;; |
| 3357 | esac |
| 3358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3359 | (eval "$ac_try") 2>&5 |
| 3360 | ac_status=$? |
| 3361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3362 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3363 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3364 | else |
| 3365 | echo "$as_me: failed program was:" >&5 |
| 3366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3368 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3369 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3370 | |
| 3371 | rm -f core conftest.err conftest.$ac_objext |
| 3372 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3373 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3374 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3375 | CC=$ac_save_CC |
| 3376 | |
| 3377 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3378 | # AC_CACHE_VAL |
| 3379 | case "x$ac_cv_prog_cc_c89" in |
| 3380 | x) |
| 3381 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3382 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3383 | xno) |
| 3384 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3385 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3386 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3387 | CC="$CC $ac_cv_prog_cc_c89" |
| 3388 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3389 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3390 | esac |
| 3391 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3392 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3393 | ac_ext=c |
| 3394 | ac_cpp='$CPP $CPPFLAGS' |
| 3395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3398 | |
| 3399 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3400 | ac_ext=c |
| 3401 | ac_cpp='$CPP $CPPFLAGS' |
| 3402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3405 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3406 | 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] | 3407 | # On Suns, sometimes $CPP names a directory. |
| 3408 | if test -n "$CPP" && test -d "$CPP"; then |
| 3409 | CPP= |
| 3410 | fi |
| 3411 | if test -z "$CPP"; then |
| 3412 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3414 | else |
| 3415 | # Double quotes because CPP needs to be expanded |
| 3416 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3417 | do |
| 3418 | ac_preproc_ok=false |
| 3419 | for ac_c_preproc_warn_flag in '' yes |
| 3420 | do |
| 3421 | # Use a header file that comes with gcc, so configuring glibc |
| 3422 | # with a fresh cross-compiler works. |
| 3423 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3424 | # <limits.h> exists even on freestanding compilers. |
| 3425 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3426 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3427 | cat >conftest.$ac_ext <<_ACEOF |
| 3428 | /* confdefs.h. */ |
| 3429 | _ACEOF |
| 3430 | cat confdefs.h >>conftest.$ac_ext |
| 3431 | cat >>conftest.$ac_ext <<_ACEOF |
| 3432 | /* end confdefs.h. */ |
| 3433 | #ifdef __STDC__ |
| 3434 | # include <limits.h> |
| 3435 | #else |
| 3436 | # include <assert.h> |
| 3437 | #endif |
| 3438 | Syntax error |
| 3439 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3440 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3441 | case "(($ac_try" in |
| 3442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3443 | *) ac_try_echo=$ac_try;; |
| 3444 | esac |
| 3445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3446 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3447 | ac_status=$? |
| 3448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3449 | rm -f conftest.er1 |
| 3450 | cat conftest.err >&5 |
| 3451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3452 | (exit $ac_status); } >/dev/null; then |
| 3453 | if test -s conftest.err; then |
| 3454 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3456 | else |
| 3457 | ac_cpp_err= |
| 3458 | fi |
| 3459 | else |
| 3460 | ac_cpp_err=yes |
| 3461 | fi |
| 3462 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3463 | : |
| 3464 | else |
| 3465 | echo "$as_me: failed program was:" >&5 |
| 3466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3467 | |
| 3468 | # Broken: fails on valid input. |
| 3469 | continue |
| 3470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3471 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3472 | rm -f conftest.err conftest.$ac_ext |
| 3473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3474 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3475 | # can be detected and how. |
| 3476 | cat >conftest.$ac_ext <<_ACEOF |
| 3477 | /* confdefs.h. */ |
| 3478 | _ACEOF |
| 3479 | cat confdefs.h >>conftest.$ac_ext |
| 3480 | cat >>conftest.$ac_ext <<_ACEOF |
| 3481 | /* end confdefs.h. */ |
| 3482 | #include <ac_nonexistent.h> |
| 3483 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3484 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3485 | case "(($ac_try" in |
| 3486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3487 | *) ac_try_echo=$ac_try;; |
| 3488 | esac |
| 3489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3490 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3491 | ac_status=$? |
| 3492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3493 | rm -f conftest.er1 |
| 3494 | cat conftest.err >&5 |
| 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3496 | (exit $ac_status); } >/dev/null; then |
| 3497 | if test -s conftest.err; then |
| 3498 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3500 | else |
| 3501 | ac_cpp_err= |
| 3502 | fi |
| 3503 | else |
| 3504 | ac_cpp_err=yes |
| 3505 | fi |
| 3506 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3507 | # Broken: success on invalid input. |
| 3508 | continue |
| 3509 | else |
| 3510 | echo "$as_me: failed program was:" >&5 |
| 3511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3512 | |
| 3513 | # Passes both tests. |
| 3514 | ac_preproc_ok=: |
| 3515 | break |
| 3516 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3517 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3518 | rm -f conftest.err conftest.$ac_ext |
| 3519 | |
| 3520 | done |
| 3521 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3522 | rm -f conftest.err conftest.$ac_ext |
| 3523 | if $ac_preproc_ok; then |
| 3524 | break |
| 3525 | fi |
| 3526 | |
| 3527 | done |
| 3528 | ac_cv_prog_CPP=$CPP |
| 3529 | |
| 3530 | fi |
| 3531 | CPP=$ac_cv_prog_CPP |
| 3532 | else |
| 3533 | ac_cv_prog_CPP=$CPP |
| 3534 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3535 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3536 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3537 | ac_preproc_ok=false |
| 3538 | for ac_c_preproc_warn_flag in '' yes |
| 3539 | do |
| 3540 | # Use a header file that comes with gcc, so configuring glibc |
| 3541 | # with a fresh cross-compiler works. |
| 3542 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3543 | # <limits.h> exists even on freestanding compilers. |
| 3544 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3545 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3546 | cat >conftest.$ac_ext <<_ACEOF |
| 3547 | /* confdefs.h. */ |
| 3548 | _ACEOF |
| 3549 | cat confdefs.h >>conftest.$ac_ext |
| 3550 | cat >>conftest.$ac_ext <<_ACEOF |
| 3551 | /* end confdefs.h. */ |
| 3552 | #ifdef __STDC__ |
| 3553 | # include <limits.h> |
| 3554 | #else |
| 3555 | # include <assert.h> |
| 3556 | #endif |
| 3557 | Syntax error |
| 3558 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3559 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3560 | case "(($ac_try" in |
| 3561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3562 | *) ac_try_echo=$ac_try;; |
| 3563 | esac |
| 3564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3565 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3566 | ac_status=$? |
| 3567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3568 | rm -f conftest.er1 |
| 3569 | cat conftest.err >&5 |
| 3570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3571 | (exit $ac_status); } >/dev/null; then |
| 3572 | if test -s conftest.err; then |
| 3573 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3574 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3575 | else |
| 3576 | ac_cpp_err= |
| 3577 | fi |
| 3578 | else |
| 3579 | ac_cpp_err=yes |
| 3580 | fi |
| 3581 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3582 | : |
| 3583 | else |
| 3584 | echo "$as_me: failed program was:" >&5 |
| 3585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3586 | |
| 3587 | # Broken: fails on valid input. |
| 3588 | continue |
| 3589 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3590 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3591 | rm -f conftest.err conftest.$ac_ext |
| 3592 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3593 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3594 | # can be detected and how. |
| 3595 | cat >conftest.$ac_ext <<_ACEOF |
| 3596 | /* confdefs.h. */ |
| 3597 | _ACEOF |
| 3598 | cat confdefs.h >>conftest.$ac_ext |
| 3599 | cat >>conftest.$ac_ext <<_ACEOF |
| 3600 | /* end confdefs.h. */ |
| 3601 | #include <ac_nonexistent.h> |
| 3602 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3603 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3604 | case "(($ac_try" in |
| 3605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3606 | *) ac_try_echo=$ac_try;; |
| 3607 | esac |
| 3608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3610 | ac_status=$? |
| 3611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3612 | rm -f conftest.er1 |
| 3613 | cat conftest.err >&5 |
| 3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3615 | (exit $ac_status); } >/dev/null; then |
| 3616 | if test -s conftest.err; then |
| 3617 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3618 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3619 | else |
| 3620 | ac_cpp_err= |
| 3621 | fi |
| 3622 | else |
| 3623 | ac_cpp_err=yes |
| 3624 | fi |
| 3625 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3626 | # Broken: success on invalid input. |
| 3627 | continue |
| 3628 | else |
| 3629 | echo "$as_me: failed program was:" >&5 |
| 3630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3631 | |
| 3632 | # Passes both tests. |
| 3633 | ac_preproc_ok=: |
| 3634 | break |
| 3635 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3636 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3637 | rm -f conftest.err conftest.$ac_ext |
| 3638 | |
| 3639 | done |
| 3640 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3641 | rm -f conftest.err conftest.$ac_ext |
| 3642 | if $ac_preproc_ok; then |
| 3643 | : |
| 3644 | else |
| 3645 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3646 | See \`config.log' for more details." >&5 |
| 3647 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3648 | See \`config.log' for more details." >&2;} |
| 3649 | { (exit 1); exit 1; }; } |
| 3650 | fi |
| 3651 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3652 | ac_ext=c |
| 3653 | ac_cpp='$CPP $CPPFLAGS' |
| 3654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3657 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3659 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3660 | 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] | 3661 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3663 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3664 | # Extract the first word of "grep ggrep" to use in msg output |
| 3665 | if test -z "$GREP"; then |
| 3666 | set dummy grep ggrep; ac_prog_name=$2 |
| 3667 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3669 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3670 | ac_path_GREP_found=false |
| 3671 | # 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] | 3672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3673 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3674 | do |
| 3675 | IFS=$as_save_IFS |
| 3676 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3677 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3678 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3679 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3680 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3681 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3682 | # Check for GNU $ac_path_GREP |
| 3683 | case `"$ac_path_GREP" --version 2>&1` in |
| 3684 | *GNU*) |
| 3685 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3686 | *) |
| 3687 | ac_count=0 |
| 3688 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3689 | while : |
| 3690 | do |
| 3691 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3692 | mv "conftest.tmp" "conftest.in" |
| 3693 | cp "conftest.in" "conftest.nl" |
| 3694 | echo 'GREP' >> "conftest.nl" |
| 3695 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3696 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3697 | ac_count=`expr $ac_count + 1` |
| 3698 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3699 | # Best one so far, save it but keep looking for a better one |
| 3700 | ac_cv_path_GREP="$ac_path_GREP" |
| 3701 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3702 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3703 | # 10*(2^10) chars as input seems more than enough |
| 3704 | test $ac_count -gt 10 && break |
| 3705 | done |
| 3706 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3707 | esac |
| 3708 | |
| 3709 | |
| 3710 | $ac_path_GREP_found && break 3 |
| 3711 | done |
| 3712 | done |
| 3713 | |
| 3714 | done |
| 3715 | IFS=$as_save_IFS |
| 3716 | |
| 3717 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3718 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3719 | |
| 3720 | GREP="$ac_cv_path_GREP" |
| 3721 | if test -z "$GREP"; then |
| 3722 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3723 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3724 | { (exit 1); exit 1; }; } |
| 3725 | fi |
| 3726 | |
| 3727 | else |
| 3728 | ac_cv_path_GREP=$GREP |
| 3729 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3730 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3732 | fi |
| 3733 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3734 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3735 | GREP="$ac_cv_path_GREP" |
| 3736 | |
| 3737 | |
| 3738 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3739 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3740 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3742 | else |
| 3743 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3744 | then ac_cv_path_EGREP="$GREP -E" |
| 3745 | else |
| 3746 | # Extract the first word of "egrep" to use in msg output |
| 3747 | if test -z "$EGREP"; then |
| 3748 | set dummy egrep; ac_prog_name=$2 |
| 3749 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3751 | else |
| 3752 | ac_path_EGREP_found=false |
| 3753 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3755 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3756 | do |
| 3757 | IFS=$as_save_IFS |
| 3758 | test -z "$as_dir" && as_dir=. |
| 3759 | for ac_prog in egrep; do |
| 3760 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3761 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3762 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3763 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3764 | # Check for GNU $ac_path_EGREP |
| 3765 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3766 | *GNU*) |
| 3767 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3768 | *) |
| 3769 | ac_count=0 |
| 3770 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3771 | while : |
| 3772 | do |
| 3773 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3774 | mv "conftest.tmp" "conftest.in" |
| 3775 | cp "conftest.in" "conftest.nl" |
| 3776 | echo 'EGREP' >> "conftest.nl" |
| 3777 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3778 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3779 | ac_count=`expr $ac_count + 1` |
| 3780 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3781 | # Best one so far, save it but keep looking for a better one |
| 3782 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3783 | ac_path_EGREP_max=$ac_count |
| 3784 | fi |
| 3785 | # 10*(2^10) chars as input seems more than enough |
| 3786 | test $ac_count -gt 10 && break |
| 3787 | done |
| 3788 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3789 | esac |
| 3790 | |
| 3791 | |
| 3792 | $ac_path_EGREP_found && break 3 |
| 3793 | done |
| 3794 | done |
| 3795 | |
| 3796 | done |
| 3797 | IFS=$as_save_IFS |
| 3798 | |
| 3799 | |
| 3800 | fi |
| 3801 | |
| 3802 | EGREP="$ac_cv_path_EGREP" |
| 3803 | if test -z "$EGREP"; then |
| 3804 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3805 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3806 | { (exit 1); exit 1; }; } |
| 3807 | fi |
| 3808 | |
| 3809 | else |
| 3810 | ac_cv_path_EGREP=$EGREP |
| 3811 | fi |
| 3812 | |
| 3813 | |
| 3814 | fi |
| 3815 | fi |
| 3816 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3817 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3818 | EGREP="$ac_cv_path_EGREP" |
| 3819 | |
| 3820 | |
| 3821 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3822 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3823 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3825 | else |
| 3826 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3827 | /* confdefs.h. */ |
| 3828 | _ACEOF |
| 3829 | cat confdefs.h >>conftest.$ac_ext |
| 3830 | cat >>conftest.$ac_ext <<_ACEOF |
| 3831 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3832 | #include <stdlib.h> |
| 3833 | #include <stdarg.h> |
| 3834 | #include <string.h> |
| 3835 | #include <float.h> |
| 3836 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3837 | int |
| 3838 | main () |
| 3839 | { |
| 3840 | |
| 3841 | ; |
| 3842 | return 0; |
| 3843 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3844 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3845 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3846 | if { (ac_try="$ac_compile" |
| 3847 | case "(($ac_try" in |
| 3848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3849 | *) ac_try_echo=$ac_try;; |
| 3850 | esac |
| 3851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3852 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3853 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3855 | rm -f conftest.er1 |
| 3856 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 3858 | (exit $ac_status); } && |
| 3859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3860 | { (case "(($ac_try" in |
| 3861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3862 | *) ac_try_echo=$ac_try;; |
| 3863 | esac |
| 3864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3865 | (eval "$ac_try") 2>&5 |
| 3866 | ac_status=$? |
| 3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3868 | (exit $ac_status); }; } && |
| 3869 | { ac_try='test -s conftest.$ac_objext' |
| 3870 | { (case "(($ac_try" in |
| 3871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3872 | *) ac_try_echo=$ac_try;; |
| 3873 | esac |
| 3874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3875 | (eval "$ac_try") 2>&5 |
| 3876 | ac_status=$? |
| 3877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3878 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3879 | ac_cv_header_stdc=yes |
| 3880 | else |
| 3881 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3883 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3884 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3885 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3886 | |
| 3887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3888 | |
| 3889 | if test $ac_cv_header_stdc = yes; then |
| 3890 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3891 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3892 | /* confdefs.h. */ |
| 3893 | _ACEOF |
| 3894 | cat confdefs.h >>conftest.$ac_ext |
| 3895 | cat >>conftest.$ac_ext <<_ACEOF |
| 3896 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3897 | #include <string.h> |
| 3898 | |
| 3899 | _ACEOF |
| 3900 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3901 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3902 | : |
| 3903 | else |
| 3904 | ac_cv_header_stdc=no |
| 3905 | fi |
| 3906 | rm -f conftest* |
| 3907 | |
| 3908 | fi |
| 3909 | |
| 3910 | if test $ac_cv_header_stdc = yes; then |
| 3911 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3912 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3913 | /* confdefs.h. */ |
| 3914 | _ACEOF |
| 3915 | cat confdefs.h >>conftest.$ac_ext |
| 3916 | cat >>conftest.$ac_ext <<_ACEOF |
| 3917 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3918 | #include <stdlib.h> |
| 3919 | |
| 3920 | _ACEOF |
| 3921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3922 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3923 | : |
| 3924 | else |
| 3925 | ac_cv_header_stdc=no |
| 3926 | fi |
| 3927 | rm -f conftest* |
| 3928 | |
| 3929 | fi |
| 3930 | |
| 3931 | if test $ac_cv_header_stdc = yes; then |
| 3932 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3933 | if test "$cross_compiling" = yes; then |
| 3934 | : |
| 3935 | else |
| 3936 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3937 | /* confdefs.h. */ |
| 3938 | _ACEOF |
| 3939 | cat confdefs.h >>conftest.$ac_ext |
| 3940 | cat >>conftest.$ac_ext <<_ACEOF |
| 3941 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3942 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3943 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3944 | #if ((' ' & 0x0FF) == 0x020) |
| 3945 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3946 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3947 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3948 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3949 | (('a' <= (c) && (c) <= 'i') \ |
| 3950 | || ('j' <= (c) && (c) <= 'r') \ |
| 3951 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3952 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3953 | #endif |
| 3954 | |
| 3955 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3956 | int |
| 3957 | main () |
| 3958 | { |
| 3959 | int i; |
| 3960 | for (i = 0; i < 256; i++) |
| 3961 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3962 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3963 | return 2; |
| 3964 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3965 | } |
| 3966 | _ACEOF |
| 3967 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3968 | if { (ac_try="$ac_link" |
| 3969 | case "(($ac_try" in |
| 3970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3971 | *) ac_try_echo=$ac_try;; |
| 3972 | esac |
| 3973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3974 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3975 | ac_status=$? |
| 3976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3977 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3978 | { (case "(($ac_try" in |
| 3979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3980 | *) ac_try_echo=$ac_try;; |
| 3981 | esac |
| 3982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3983 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3984 | ac_status=$? |
| 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3986 | (exit $ac_status); }; }; then |
| 3987 | : |
| 3988 | else |
| 3989 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3990 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3992 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3993 | ( exit $ac_status ) |
| 3994 | ac_cv_header_stdc=no |
| 3995 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3996 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3997 | fi |
| 3998 | |
| 3999 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4000 | fi |
| 4001 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4002 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4003 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4004 | if test $ac_cv_header_stdc = yes; then |
| 4005 | |
| 4006 | cat >>confdefs.h <<\_ACEOF |
| 4007 | #define STDC_HEADERS 1 |
| 4008 | _ACEOF |
| 4009 | |
| 4010 | fi |
| 4011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4012 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4013 | |
| 4014 | |
| 4015 | |
| 4016 | |
| 4017 | |
| 4018 | |
| 4019 | |
| 4020 | |
| 4021 | |
| 4022 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4023 | inttypes.h stdint.h unistd.h |
| 4024 | do |
| 4025 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4026 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4028 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4030 | else |
| 4031 | cat >conftest.$ac_ext <<_ACEOF |
| 4032 | /* confdefs.h. */ |
| 4033 | _ACEOF |
| 4034 | cat confdefs.h >>conftest.$ac_ext |
| 4035 | cat >>conftest.$ac_ext <<_ACEOF |
| 4036 | /* end confdefs.h. */ |
| 4037 | $ac_includes_default |
| 4038 | |
| 4039 | #include <$ac_header> |
| 4040 | _ACEOF |
| 4041 | rm -f conftest.$ac_objext |
| 4042 | if { (ac_try="$ac_compile" |
| 4043 | case "(($ac_try" in |
| 4044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4045 | *) ac_try_echo=$ac_try;; |
| 4046 | esac |
| 4047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4048 | (eval "$ac_compile") 2>conftest.er1 |
| 4049 | ac_status=$? |
| 4050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4051 | rm -f conftest.er1 |
| 4052 | cat conftest.err >&5 |
| 4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4054 | (exit $ac_status); } && |
| 4055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4056 | { (case "(($ac_try" in |
| 4057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4058 | *) ac_try_echo=$ac_try;; |
| 4059 | esac |
| 4060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4061 | (eval "$ac_try") 2>&5 |
| 4062 | ac_status=$? |
| 4063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4064 | (exit $ac_status); }; } && |
| 4065 | { ac_try='test -s conftest.$ac_objext' |
| 4066 | { (case "(($ac_try" in |
| 4067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4068 | *) ac_try_echo=$ac_try;; |
| 4069 | esac |
| 4070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4071 | (eval "$ac_try") 2>&5 |
| 4072 | ac_status=$? |
| 4073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4074 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4075 | eval "$as_ac_Header=yes" |
| 4076 | else |
| 4077 | echo "$as_me: failed program was:" >&5 |
| 4078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4079 | |
| 4080 | eval "$as_ac_Header=no" |
| 4081 | fi |
| 4082 | |
| 4083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4084 | fi |
| 4085 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4086 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4087 | echo "${ECHO_T}$ac_res" >&6; } |
| 4088 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4089 | cat >>confdefs.h <<_ACEOF |
| 4090 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4091 | _ACEOF |
| 4092 | |
| 4093 | fi |
| 4094 | |
| 4095 | done |
| 4096 | |
| 4097 | |
| 4098 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4099 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4100 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4102 | else |
| 4103 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4104 | cat >conftest.$ac_ext <<_ACEOF |
| 4105 | /* confdefs.h. */ |
| 4106 | _ACEOF |
| 4107 | cat confdefs.h >>conftest.$ac_ext |
| 4108 | cat >>conftest.$ac_ext <<_ACEOF |
| 4109 | /* end confdefs.h. */ |
| 4110 | #include <sys/types.h> |
| 4111 | #include <sys/param.h> |
| 4112 | |
| 4113 | int |
| 4114 | main () |
| 4115 | { |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4116 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4117 | bogus endian macros |
| 4118 | #endif |
| 4119 | |
| 4120 | ; |
| 4121 | return 0; |
| 4122 | } |
| 4123 | _ACEOF |
| 4124 | rm -f conftest.$ac_objext |
| 4125 | if { (ac_try="$ac_compile" |
| 4126 | case "(($ac_try" in |
| 4127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4128 | *) ac_try_echo=$ac_try;; |
| 4129 | esac |
| 4130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4131 | (eval "$ac_compile") 2>conftest.er1 |
| 4132 | ac_status=$? |
| 4133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4134 | rm -f conftest.er1 |
| 4135 | cat conftest.err >&5 |
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4137 | (exit $ac_status); } && |
| 4138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4139 | { (case "(($ac_try" in |
| 4140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4141 | *) ac_try_echo=$ac_try;; |
| 4142 | esac |
| 4143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4144 | (eval "$ac_try") 2>&5 |
| 4145 | ac_status=$? |
| 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4147 | (exit $ac_status); }; } && |
| 4148 | { ac_try='test -s conftest.$ac_objext' |
| 4149 | { (case "(($ac_try" in |
| 4150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4151 | *) ac_try_echo=$ac_try;; |
| 4152 | esac |
| 4153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4154 | (eval "$ac_try") 2>&5 |
| 4155 | ac_status=$? |
| 4156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4157 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4158 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4159 | cat >conftest.$ac_ext <<_ACEOF |
| 4160 | /* confdefs.h. */ |
| 4161 | _ACEOF |
| 4162 | cat confdefs.h >>conftest.$ac_ext |
| 4163 | cat >>conftest.$ac_ext <<_ACEOF |
| 4164 | /* end confdefs.h. */ |
| 4165 | #include <sys/types.h> |
| 4166 | #include <sys/param.h> |
| 4167 | |
| 4168 | int |
| 4169 | main () |
| 4170 | { |
| 4171 | #if BYTE_ORDER != BIG_ENDIAN |
| 4172 | not big endian |
| 4173 | #endif |
| 4174 | |
| 4175 | ; |
| 4176 | return 0; |
| 4177 | } |
| 4178 | _ACEOF |
| 4179 | rm -f conftest.$ac_objext |
| 4180 | if { (ac_try="$ac_compile" |
| 4181 | case "(($ac_try" in |
| 4182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4183 | *) ac_try_echo=$ac_try;; |
| 4184 | esac |
| 4185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4186 | (eval "$ac_compile") 2>conftest.er1 |
| 4187 | ac_status=$? |
| 4188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4189 | rm -f conftest.er1 |
| 4190 | cat conftest.err >&5 |
| 4191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4192 | (exit $ac_status); } && |
| 4193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4194 | { (case "(($ac_try" in |
| 4195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4196 | *) ac_try_echo=$ac_try;; |
| 4197 | esac |
| 4198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4199 | (eval "$ac_try") 2>&5 |
| 4200 | ac_status=$? |
| 4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4202 | (exit $ac_status); }; } && |
| 4203 | { ac_try='test -s conftest.$ac_objext' |
| 4204 | { (case "(($ac_try" in |
| 4205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4206 | *) ac_try_echo=$ac_try;; |
| 4207 | esac |
| 4208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4209 | (eval "$ac_try") 2>&5 |
| 4210 | ac_status=$? |
| 4211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4212 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4213 | ac_cv_c_bigendian=yes |
| 4214 | else |
| 4215 | echo "$as_me: failed program was:" >&5 |
| 4216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4217 | |
| 4218 | ac_cv_c_bigendian=no |
| 4219 | fi |
| 4220 | |
| 4221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4222 | else |
| 4223 | echo "$as_me: failed program was:" >&5 |
| 4224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4225 | |
| 4226 | # It does not; compile a test program. |
| 4227 | if test "$cross_compiling" = yes; then |
| 4228 | # try to guess the endianness by grepping values into an object file |
| 4229 | ac_cv_c_bigendian=unknown |
| 4230 | cat >conftest.$ac_ext <<_ACEOF |
| 4231 | /* confdefs.h. */ |
| 4232 | _ACEOF |
| 4233 | cat confdefs.h >>conftest.$ac_ext |
| 4234 | cat >>conftest.$ac_ext <<_ACEOF |
| 4235 | /* end confdefs.h. */ |
| 4236 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4237 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4238 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4239 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4240 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4241 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4242 | int |
| 4243 | main () |
| 4244 | { |
| 4245 | _ascii (); _ebcdic (); |
| 4246 | ; |
| 4247 | return 0; |
| 4248 | } |
| 4249 | _ACEOF |
| 4250 | rm -f conftest.$ac_objext |
| 4251 | if { (ac_try="$ac_compile" |
| 4252 | case "(($ac_try" in |
| 4253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4254 | *) ac_try_echo=$ac_try;; |
| 4255 | esac |
| 4256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4257 | (eval "$ac_compile") 2>conftest.er1 |
| 4258 | ac_status=$? |
| 4259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4260 | rm -f conftest.er1 |
| 4261 | cat conftest.err >&5 |
| 4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4263 | (exit $ac_status); } && |
| 4264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4265 | { (case "(($ac_try" in |
| 4266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4267 | *) ac_try_echo=$ac_try;; |
| 4268 | esac |
| 4269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4270 | (eval "$ac_try") 2>&5 |
| 4271 | ac_status=$? |
| 4272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4273 | (exit $ac_status); }; } && |
| 4274 | { ac_try='test -s conftest.$ac_objext' |
| 4275 | { (case "(($ac_try" in |
| 4276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4277 | *) ac_try_echo=$ac_try;; |
| 4278 | esac |
| 4279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4280 | (eval "$ac_try") 2>&5 |
| 4281 | ac_status=$? |
| 4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4283 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4284 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4285 | ac_cv_c_bigendian=yes |
| 4286 | fi |
| 4287 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4288 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4289 | ac_cv_c_bigendian=no |
| 4290 | else |
| 4291 | # finding both strings is unlikely to happen, but who knows? |
| 4292 | ac_cv_c_bigendian=unknown |
| 4293 | fi |
| 4294 | fi |
| 4295 | else |
| 4296 | echo "$as_me: failed program was:" >&5 |
| 4297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4298 | |
| 4299 | |
| 4300 | fi |
| 4301 | |
| 4302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4303 | else |
| 4304 | cat >conftest.$ac_ext <<_ACEOF |
| 4305 | /* confdefs.h. */ |
| 4306 | _ACEOF |
| 4307 | cat confdefs.h >>conftest.$ac_ext |
| 4308 | cat >>conftest.$ac_ext <<_ACEOF |
| 4309 | /* end confdefs.h. */ |
| 4310 | $ac_includes_default |
| 4311 | int |
| 4312 | main () |
| 4313 | { |
| 4314 | |
| 4315 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4316 | union |
| 4317 | { |
| 4318 | long int l; |
| 4319 | char c[sizeof (long int)]; |
| 4320 | } u; |
| 4321 | u.l = 1; |
| 4322 | return u.c[sizeof (long int) - 1] == 1; |
| 4323 | |
| 4324 | ; |
| 4325 | return 0; |
| 4326 | } |
| 4327 | _ACEOF |
| 4328 | rm -f conftest$ac_exeext |
| 4329 | if { (ac_try="$ac_link" |
| 4330 | case "(($ac_try" in |
| 4331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4332 | *) ac_try_echo=$ac_try;; |
| 4333 | esac |
| 4334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4335 | (eval "$ac_link") 2>&5 |
| 4336 | ac_status=$? |
| 4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4338 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4339 | { (case "(($ac_try" in |
| 4340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4341 | *) ac_try_echo=$ac_try;; |
| 4342 | esac |
| 4343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4344 | (eval "$ac_try") 2>&5 |
| 4345 | ac_status=$? |
| 4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4347 | (exit $ac_status); }; }; then |
| 4348 | ac_cv_c_bigendian=no |
| 4349 | else |
| 4350 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4351 | echo "$as_me: failed program was:" >&5 |
| 4352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4353 | |
| 4354 | ( exit $ac_status ) |
| 4355 | ac_cv_c_bigendian=yes |
| 4356 | fi |
| 4357 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4358 | fi |
| 4359 | |
| 4360 | |
| 4361 | fi |
| 4362 | |
| 4363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4364 | fi |
| 4365 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4366 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4367 | case $ac_cv_c_bigendian in |
| 4368 | yes) |
| 4369 | ENDIAN=big |
| 4370 | ;; |
| 4371 | no) |
| 4372 | ENDIAN=little |
| 4373 | ;; |
| 4374 | *) |
| 4375 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4376 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4377 | echo "$as_me: error: unknown endianness |
| 4378 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4379 | { (exit 1); exit 1; }; } ;; |
| 4380 | esac |
| 4381 | |
| 4382 | |
| 4383 | if test "$cross_compiling" = yes; then |
| 4384 | LLVM_CROSS_COMPILING=1 |
| 4385 | |
| 4386 | |
| 4387 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4388 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4389 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4391 | else |
| 4392 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4393 | ac_cv_build_exeext=.exe |
| 4394 | else |
| 4395 | ac_build_prefix=${build_alias}- |
| 4396 | |
| 4397 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4398 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4399 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4401 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4403 | else |
| 4404 | if test -n "$BUILD_CC"; then |
| 4405 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4406 | else |
| 4407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4408 | for as_dir in $PATH |
| 4409 | do |
| 4410 | IFS=$as_save_IFS |
| 4411 | test -z "$as_dir" && as_dir=. |
| 4412 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4413 | 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] | 4414 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4416 | break 2 |
| 4417 | fi |
| 4418 | done |
| 4419 | done |
| 4420 | IFS=$as_save_IFS |
| 4421 | |
| 4422 | fi |
| 4423 | fi |
| 4424 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4425 | if test -n "$BUILD_CC"; then |
| 4426 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4427 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4428 | else |
| 4429 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4430 | echo "${ECHO_T}no" >&6; } |
| 4431 | fi |
| 4432 | |
| 4433 | |
| 4434 | if test -z "$BUILD_CC"; then |
| 4435 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4436 | set dummy gcc; ac_word=$2 |
| 4437 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4439 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4441 | else |
| 4442 | if test -n "$BUILD_CC"; then |
| 4443 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4444 | else |
| 4445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4446 | for as_dir in $PATH |
| 4447 | do |
| 4448 | IFS=$as_save_IFS |
| 4449 | test -z "$as_dir" && as_dir=. |
| 4450 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4451 | 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] | 4452 | ac_cv_prog_BUILD_CC="gcc" |
| 4453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4454 | break 2 |
| 4455 | fi |
| 4456 | done |
| 4457 | done |
| 4458 | IFS=$as_save_IFS |
| 4459 | |
| 4460 | fi |
| 4461 | fi |
| 4462 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4463 | if test -n "$BUILD_CC"; then |
| 4464 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4465 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4466 | else |
| 4467 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4468 | echo "${ECHO_T}no" >&6; } |
| 4469 | fi |
| 4470 | |
| 4471 | |
| 4472 | if test -z "$BUILD_CC"; then |
| 4473 | # Extract the first word of "cc", so it can be a program name with args. |
| 4474 | set dummy cc; ac_word=$2 |
| 4475 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4477 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4479 | else |
| 4480 | if test -n "$BUILD_CC"; then |
| 4481 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4482 | else |
| 4483 | ac_prog_rejected=no |
| 4484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4485 | for as_dir in $PATH |
| 4486 | do |
| 4487 | IFS=$as_save_IFS |
| 4488 | test -z "$as_dir" && as_dir=. |
| 4489 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4490 | 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] | 4491 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4492 | ac_prog_rejected=yes |
| 4493 | continue |
| 4494 | fi |
| 4495 | ac_cv_prog_BUILD_CC="cc" |
| 4496 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4497 | break 2 |
| 4498 | fi |
| 4499 | done |
| 4500 | done |
| 4501 | IFS=$as_save_IFS |
| 4502 | |
| 4503 | if test $ac_prog_rejected = yes; then |
| 4504 | # We found a bogon in the path, so make sure we never use it. |
| 4505 | set dummy $ac_cv_prog_BUILD_CC |
| 4506 | shift |
| 4507 | if test $# != 0; then |
| 4508 | # We chose a different compiler from the bogus one. |
| 4509 | # However, it has the same basename, so the bogon will be chosen |
| 4510 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4511 | shift |
| 4512 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4513 | fi |
| 4514 | fi |
| 4515 | fi |
| 4516 | fi |
| 4517 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4518 | if test -n "$BUILD_CC"; then |
| 4519 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4520 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4521 | else |
| 4522 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4523 | echo "${ECHO_T}no" >&6; } |
| 4524 | fi |
| 4525 | |
| 4526 | |
| 4527 | fi |
| 4528 | fi |
| 4529 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4530 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4531 | { (exit 1); exit 1; }; } |
| 4532 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4533 | rm -f conftest* |
| 4534 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4535 | ac_cv_build_exeext= |
| 4536 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4537 | (eval $ac_build_link) 2>&5 |
| 4538 | ac_status=$? |
| 4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4540 | (exit $ac_status); }; then |
| 4541 | for file in conftest.*; do |
| 4542 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4543 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4544 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4545 | esac |
| 4546 | done |
| 4547 | else |
| 4548 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4549 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4550 | { (exit 1); exit 1; }; } |
| 4551 | fi |
| 4552 | rm -f conftest* |
| 4553 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4554 | fi |
| 4555 | fi |
| 4556 | |
| 4557 | BUILD_EXEEXT="" |
| 4558 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4559 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4560 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4561 | ac_build_exeext=$BUILD_EXEEXT |
| 4562 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4563 | ac_build_prefix=${build_alias}- |
| 4564 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4565 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
| 4566 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4568 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4570 | else |
| 4571 | if test -n "$BUILD_CXX"; then |
| 4572 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4573 | else |
| 4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4575 | for as_dir in $PATH |
| 4576 | do |
| 4577 | IFS=$as_save_IFS |
| 4578 | test -z "$as_dir" && as_dir=. |
| 4579 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4581 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
| 4582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4583 | break 2 |
| 4584 | fi |
| 4585 | done |
| 4586 | done |
| 4587 | IFS=$as_save_IFS |
| 4588 | |
| 4589 | fi |
| 4590 | fi |
| 4591 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4592 | if test -n "$BUILD_CXX"; then |
| 4593 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4594 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4595 | else |
| 4596 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4597 | echo "${ECHO_T}no" >&6; } |
| 4598 | fi |
| 4599 | |
| 4600 | |
| 4601 | if test -z "$BUILD_CXX"; then |
| 4602 | # Extract the first word of "g++", so it can be a program name with args. |
| 4603 | set dummy g++; ac_word=$2 |
| 4604 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4606 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4608 | else |
| 4609 | if test -n "$BUILD_CXX"; then |
| 4610 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4611 | else |
| 4612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4613 | for as_dir in $PATH |
| 4614 | do |
| 4615 | IFS=$as_save_IFS |
| 4616 | test -z "$as_dir" && as_dir=. |
| 4617 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4619 | ac_cv_prog_BUILD_CXX="g++" |
| 4620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4621 | break 2 |
| 4622 | fi |
| 4623 | done |
| 4624 | done |
| 4625 | IFS=$as_save_IFS |
| 4626 | |
| 4627 | fi |
| 4628 | fi |
| 4629 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4630 | if test -n "$BUILD_CXX"; then |
| 4631 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4632 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4633 | else |
| 4634 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4635 | echo "${ECHO_T}no" >&6; } |
| 4636 | fi |
| 4637 | |
| 4638 | |
| 4639 | if test -z "$BUILD_CXX"; then |
| 4640 | # Extract the first word of "c++", so it can be a program name with args. |
| 4641 | set dummy c++; ac_word=$2 |
| 4642 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4644 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4646 | else |
| 4647 | if test -n "$BUILD_CXX"; then |
| 4648 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4649 | else |
| 4650 | ac_prog_rejected=no |
| 4651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4652 | for as_dir in $PATH |
| 4653 | do |
| 4654 | IFS=$as_save_IFS |
| 4655 | test -z "$as_dir" && as_dir=. |
| 4656 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 4657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4658 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4659 | ac_prog_rejected=yes |
| 4660 | continue |
| 4661 | fi |
| 4662 | ac_cv_prog_BUILD_CXX="c++" |
| 4663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4664 | break 2 |
| 4665 | fi |
| 4666 | done |
| 4667 | done |
| 4668 | IFS=$as_save_IFS |
| 4669 | |
| 4670 | if test $ac_prog_rejected = yes; then |
| 4671 | # We found a bogon in the path, so make sure we never use it. |
| 4672 | set dummy $ac_cv_prog_BUILD_CXX |
| 4673 | shift |
| 4674 | if test $# != 0; then |
| 4675 | # We chose a different compiler from the bogus one. |
| 4676 | # However, it has the same basename, so the bogon will be chosen |
| 4677 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4678 | shift |
| 4679 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4680 | fi |
| 4681 | fi |
| 4682 | fi |
| 4683 | fi |
| 4684 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4685 | if test -n "$BUILD_CXX"; then |
| 4686 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4687 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4688 | else |
| 4689 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4690 | echo "${ECHO_T}no" >&6; } |
| 4691 | fi |
| 4692 | |
| 4693 | |
| 4694 | fi |
| 4695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4696 | else |
| 4697 | LLVM_CROSS_COMPILING=0 |
| 4698 | |
| 4699 | fi |
| 4700 | |
Reid Spencer | 0b1e466 | 2007-04-02 15:41:39 +0000 | [diff] [blame] | 4701 | 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] | 4702 | cvsbuild="yes" |
| 4703 | optimize="no" |
| 4704 | CVSBUILD=CVSBUILD=1 |
| 4705 | |
| 4706 | else |
| 4707 | cvsbuild="no" |
| 4708 | optimize="yes" |
| 4709 | fi |
| 4710 | |
| 4711 | |
| 4712 | # Check whether --enable-optimized was given. |
| 4713 | if test "${enable_optimized+set}" = set; then |
| 4714 | enableval=$enable_optimized; |
| 4715 | else |
| 4716 | enableval=$optimize |
| 4717 | fi |
| 4718 | |
| 4719 | if test ${enableval} = "no" ; then |
| 4720 | ENABLE_OPTIMIZED= |
| 4721 | |
| 4722 | else |
| 4723 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4724 | |
| 4725 | fi |
| 4726 | |
| 4727 | # Check whether --enable-assertions was given. |
| 4728 | if test "${enable_assertions+set}" = set; then |
| 4729 | enableval=$enable_assertions; |
| 4730 | else |
| 4731 | enableval="yes" |
| 4732 | fi |
| 4733 | |
| 4734 | if test ${enableval} = "yes" ; then |
| 4735 | DISABLE_ASSERTIONS= |
| 4736 | |
| 4737 | else |
| 4738 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4739 | |
| 4740 | fi |
| 4741 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4742 | # Check whether --enable-expensive-checks was given. |
| 4743 | if test "${enable_expensive_checks+set}" = set; then |
| 4744 | enableval=$enable_expensive_checks; |
| 4745 | else |
| 4746 | enableval="no" |
| 4747 | fi |
| 4748 | |
| 4749 | if test ${enableval} = "yes" ; then |
| 4750 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4751 | |
| 4752 | EXPENSIVE_CHECKS=yes |
| 4753 | |
| 4754 | else |
| 4755 | ENABLE_EXPENSIVE_CHECKS= |
| 4756 | |
| 4757 | EXPENSIVE_CHECKS=no |
| 4758 | |
| 4759 | fi |
| 4760 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4761 | # Check whether --enable-debug-runtime was given. |
| 4762 | if test "${enable_debug_runtime+set}" = set; then |
| 4763 | enableval=$enable_debug_runtime; |
| 4764 | else |
| 4765 | enableval=no |
| 4766 | fi |
| 4767 | |
| 4768 | if test ${enableval} = "no" ; then |
| 4769 | DEBUG_RUNTIME= |
| 4770 | |
| 4771 | else |
| 4772 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4773 | |
| 4774 | fi |
| 4775 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4776 | # Check whether --enable-jit was given. |
| 4777 | if test "${enable_jit+set}" = set; then |
| 4778 | enableval=$enable_jit; |
| 4779 | else |
| 4780 | enableval=default |
| 4781 | fi |
| 4782 | |
| 4783 | if test ${enableval} = "no" |
| 4784 | then |
| 4785 | JIT= |
| 4786 | |
| 4787 | else |
| 4788 | case "$llvm_cv_target_arch" in |
| 4789 | x86) TARGET_HAS_JIT=1 |
| 4790 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4791 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4792 | ;; |
| 4793 | PowerPC) TARGET_HAS_JIT=1 |
| 4794 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4795 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4796 | ;; |
| 4797 | Alpha) TARGET_HAS_JIT=1 |
| 4798 | ;; |
| 4799 | IA64) TARGET_HAS_JIT=0 |
| 4800 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4801 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4802 | ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4803 | Mips) TARGET_HAS_JIT=0 |
| 4804 | ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4805 | PIC16) TARGET_HAS_JIT=0 |
| 4806 | ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4807 | XCore) TARGET_HAS_JIT=0 |
| 4808 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4809 | *) TARGET_HAS_JIT=0 |
| 4810 | ;; |
| 4811 | esac |
| 4812 | fi |
| 4813 | |
| 4814 | # Check whether --enable-doxygen was given. |
| 4815 | if test "${enable_doxygen+set}" = set; then |
| 4816 | enableval=$enable_doxygen; |
| 4817 | else |
| 4818 | enableval=default |
| 4819 | fi |
| 4820 | |
| 4821 | case "$enableval" in |
| 4822 | yes) ENABLE_DOXYGEN=1 |
| 4823 | ;; |
| 4824 | no) ENABLE_DOXYGEN=0 |
| 4825 | ;; |
| 4826 | default) ENABLE_DOXYGEN=0 |
| 4827 | ;; |
| 4828 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4829 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4830 | { (exit 1); exit 1; }; } ;; |
| 4831 | esac |
| 4832 | |
| 4833 | # Check whether --enable-threads was given. |
| 4834 | if test "${enable_threads+set}" = set; then |
| 4835 | enableval=$enable_threads; |
| 4836 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4837 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4838 | fi |
| 4839 | |
| 4840 | case "$enableval" in |
| 4841 | yes) ENABLE_THREADS=1 |
| 4842 | ;; |
| 4843 | no) ENABLE_THREADS=0 |
| 4844 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4845 | default) ENABLE_THREADS=1 |
| 4846 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4847 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4848 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4849 | { (exit 1); exit 1; }; } ;; |
| 4850 | esac |
| 4851 | |
| 4852 | cat >>confdefs.h <<_ACEOF |
| 4853 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4854 | _ACEOF |
| 4855 | |
| 4856 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4857 | # Check whether --enable-pic was given. |
| 4858 | if test "${enable_pic+set}" = set; then |
| 4859 | enableval=$enable_pic; |
| 4860 | else |
| 4861 | enableval=default |
| 4862 | fi |
| 4863 | |
| 4864 | case "$enableval" in |
| 4865 | yes) ENABLE_PIC=1 |
| 4866 | ;; |
| 4867 | no) ENABLE_PIC=0 |
| 4868 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4869 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4870 | ;; |
| 4871 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4872 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4873 | { (exit 1); exit 1; }; } ;; |
| 4874 | esac |
| 4875 | |
| 4876 | cat >>confdefs.h <<_ACEOF |
| 4877 | #define ENABLE_PIC $ENABLE_PIC |
| 4878 | _ACEOF |
| 4879 | |
| 4880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4881 | TARGETS_TO_BUILD="" |
| 4882 | # Check whether --enable-targets was given. |
| 4883 | if test "${enable_targets+set}" = set; then |
| 4884 | enableval=$enable_targets; |
| 4885 | else |
| 4886 | enableval=all |
| 4887 | fi |
| 4888 | |
| 4889 | case "$enableval" in |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4890 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4891 | host-only) |
| 4892 | case "$llvm_cv_target_arch" in |
| 4893 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4894 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4895 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4896 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4897 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4898 | IA64) TARGETS_TO_BUILD="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4899 | ARM) TARGETS_TO_BUILD="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4900 | Mips) TARGETS_TO_BUILD="Mips" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4901 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4902 | PIC16) TARGETS_TO_BUILD="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4903 | XCore) TARGETS_TO_BUILD="XCore" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4904 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4905 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4906 | { (exit 1); exit 1; }; } ;; |
| 4907 | esac |
| 4908 | ;; |
| 4909 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4910 | case "$a_target" in |
| 4911 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4912 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4913 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4914 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4915 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4916 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4917 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4918 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4919 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4920 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4921 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame] | 4922 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4923 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 4924 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4925 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4926 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4927 | { (exit 1); exit 1; }; } ;; |
| 4928 | esac |
| 4929 | done |
| 4930 | ;; |
| 4931 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4932 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4933 | |
| 4934 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4935 | # Check whether --enable-cbe-printf-a was given. |
| 4936 | if test "${enable_cbe_printf_a+set}" = set; then |
| 4937 | enableval=$enable_cbe_printf_a; |
| 4938 | else |
| 4939 | enableval=default |
| 4940 | fi |
| 4941 | |
| 4942 | case "$enableval" in |
| 4943 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4944 | ;; |
| 4945 | no) ENABLE_CBE_PRINTF_A=0 |
| 4946 | ;; |
| 4947 | default) ENABLE_CBE_PRINTF_A=1 |
| 4948 | ;; |
| 4949 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4950 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4951 | { (exit 1); exit 1; }; } ;; |
| 4952 | esac |
| 4953 | |
| 4954 | cat >>confdefs.h <<_ACEOF |
| 4955 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4956 | _ACEOF |
| 4957 | |
| 4958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4959 | |
| 4960 | # Check whether --with-llvmgccdir was given. |
| 4961 | if test "${with_llvmgccdir+set}" = set; then |
| 4962 | withval=$with_llvmgccdir; |
| 4963 | else |
| 4964 | withval=default |
| 4965 | fi |
| 4966 | |
| 4967 | case "$withval" in |
| 4968 | default) WITH_LLVMGCCDIR=default ;; |
| 4969 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4970 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4971 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4972 | { (exit 1); exit 1; }; } ;; |
| 4973 | esac |
| 4974 | |
| 4975 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4976 | # Check whether --with-llvmgcc was given. |
| 4977 | if test "${with_llvmgcc+set}" = set; then |
| 4978 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 4979 | WITH_LLVMGCCDIR="" |
| 4980 | fi |
| 4981 | |
| 4982 | |
| 4983 | |
| 4984 | # Check whether --with-llvmgxx was given. |
| 4985 | if test "${with_llvmgxx+set}" = set; then |
| 4986 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 4987 | WITH_LLVMGCCDIR="" |
| 4988 | fi |
| 4989 | |
| 4990 | |
| 4991 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 4992 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 4993 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 4994 | { (exit 1); exit 1; }; }; |
| 4995 | fi |
| 4996 | |
| 4997 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 4998 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 4999 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5000 | { (exit 1); exit 1; }; }; |
| 5001 | fi |
| 5002 | |
| 5003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5004 | # Check whether --with-extra-options was given. |
| 5005 | if test "${with_extra_options+set}" = set; then |
| 5006 | withval=$with_extra_options; |
| 5007 | else |
| 5008 | withval=default |
| 5009 | fi |
| 5010 | |
| 5011 | case "$withval" in |
| 5012 | default) EXTRA_OPTIONS= ;; |
| 5013 | *) EXTRA_OPTIONS=$withval ;; |
| 5014 | esac |
| 5015 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5016 | |
| 5017 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5018 | # Check whether --enable-bindings was given. |
| 5019 | if test "${enable_bindings+set}" = set; then |
| 5020 | enableval=$enable_bindings; |
| 5021 | else |
| 5022 | enableval=default |
| 5023 | fi |
| 5024 | |
| 5025 | BINDINGS_TO_BUILD="" |
| 5026 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5027 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5028 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5029 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5030 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5031 | case "$a_binding" in |
| 5032 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 5033 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5034 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5035 | { (exit 1); exit 1; }; } ;; |
| 5036 | esac |
| 5037 | done |
| 5038 | ;; |
| 5039 | esac |
| 5040 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5041 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5042 | # Check whether --with-ocaml-libdir was given. |
| 5043 | if test "${with_ocaml_libdir+set}" = set; then |
| 5044 | withval=$with_ocaml_libdir; |
| 5045 | else |
| 5046 | withval=auto |
| 5047 | fi |
| 5048 | |
| 5049 | case "$withval" in |
| 5050 | auto) with_ocaml_libdir="$withval" ;; |
| 5051 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 5052 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5053 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5054 | { (exit 1); exit 1; }; } ;; |
| 5055 | esac |
| 5056 | |
| 5057 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5058 | # Check whether --with-binutils-include was given. |
| 5059 | if test "${with_binutils_include+set}" = set; then |
| 5060 | withval=$with_binutils_include; |
| 5061 | else |
| 5062 | withval=default |
| 5063 | fi |
| 5064 | |
| 5065 | case "$withval" in |
| 5066 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5067 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
| 5068 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5069 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5070 | { (exit 1); exit 1; }; } ;; |
| 5071 | esac |
| 5072 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5073 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5074 | |
| 5075 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5076 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
| 5077 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5078 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5079 | { (exit 1); exit 1; }; }; |
| 5080 | fi |
| 5081 | fi |
| 5082 | |
| 5083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5084 | ac_ext=c |
| 5085 | ac_cpp='$CPP $CPPFLAGS' |
| 5086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5089 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5090 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 5091 | # On Suns, sometimes $CPP names a directory. |
| 5092 | if test -n "$CPP" && test -d "$CPP"; then |
| 5093 | CPP= |
| 5094 | fi |
| 5095 | if test -z "$CPP"; then |
| 5096 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5098 | else |
| 5099 | # Double quotes because CPP needs to be expanded |
| 5100 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5101 | do |
| 5102 | ac_preproc_ok=false |
| 5103 | for ac_c_preproc_warn_flag in '' yes |
| 5104 | do |
| 5105 | # Use a header file that comes with gcc, so configuring glibc |
| 5106 | # with a fresh cross-compiler works. |
| 5107 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5108 | # <limits.h> exists even on freestanding compilers. |
| 5109 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5110 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5111 | cat >conftest.$ac_ext <<_ACEOF |
| 5112 | /* confdefs.h. */ |
| 5113 | _ACEOF |
| 5114 | cat confdefs.h >>conftest.$ac_ext |
| 5115 | cat >>conftest.$ac_ext <<_ACEOF |
| 5116 | /* end confdefs.h. */ |
| 5117 | #ifdef __STDC__ |
| 5118 | # include <limits.h> |
| 5119 | #else |
| 5120 | # include <assert.h> |
| 5121 | #endif |
| 5122 | Syntax error |
| 5123 | _ACEOF |
| 5124 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5125 | case "(($ac_try" in |
| 5126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5127 | *) ac_try_echo=$ac_try;; |
| 5128 | esac |
| 5129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5130 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5131 | ac_status=$? |
| 5132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5133 | rm -f conftest.er1 |
| 5134 | cat conftest.err >&5 |
| 5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5136 | (exit $ac_status); } >/dev/null; then |
| 5137 | if test -s conftest.err; then |
| 5138 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5139 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5140 | else |
| 5141 | ac_cpp_err= |
| 5142 | fi |
| 5143 | else |
| 5144 | ac_cpp_err=yes |
| 5145 | fi |
| 5146 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5147 | : |
| 5148 | else |
| 5149 | echo "$as_me: failed program was:" >&5 |
| 5150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5151 | |
| 5152 | # Broken: fails on valid input. |
| 5153 | continue |
| 5154 | fi |
| 5155 | |
| 5156 | rm -f conftest.err conftest.$ac_ext |
| 5157 | |
| 5158 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5159 | # can be detected and how. |
| 5160 | cat >conftest.$ac_ext <<_ACEOF |
| 5161 | /* confdefs.h. */ |
| 5162 | _ACEOF |
| 5163 | cat confdefs.h >>conftest.$ac_ext |
| 5164 | cat >>conftest.$ac_ext <<_ACEOF |
| 5165 | /* end confdefs.h. */ |
| 5166 | #include <ac_nonexistent.h> |
| 5167 | _ACEOF |
| 5168 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5169 | case "(($ac_try" in |
| 5170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5171 | *) ac_try_echo=$ac_try;; |
| 5172 | esac |
| 5173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5174 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5175 | ac_status=$? |
| 5176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5177 | rm -f conftest.er1 |
| 5178 | cat conftest.err >&5 |
| 5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5180 | (exit $ac_status); } >/dev/null; then |
| 5181 | if test -s conftest.err; then |
| 5182 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5183 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5184 | else |
| 5185 | ac_cpp_err= |
| 5186 | fi |
| 5187 | else |
| 5188 | ac_cpp_err=yes |
| 5189 | fi |
| 5190 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5191 | # Broken: success on invalid input. |
| 5192 | continue |
| 5193 | else |
| 5194 | echo "$as_me: failed program was:" >&5 |
| 5195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5196 | |
| 5197 | # Passes both tests. |
| 5198 | ac_preproc_ok=: |
| 5199 | break |
| 5200 | fi |
| 5201 | |
| 5202 | rm -f conftest.err conftest.$ac_ext |
| 5203 | |
| 5204 | done |
| 5205 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5206 | rm -f conftest.err conftest.$ac_ext |
| 5207 | if $ac_preproc_ok; then |
| 5208 | break |
| 5209 | fi |
| 5210 | |
| 5211 | done |
| 5212 | ac_cv_prog_CPP=$CPP |
| 5213 | |
| 5214 | fi |
| 5215 | CPP=$ac_cv_prog_CPP |
| 5216 | else |
| 5217 | ac_cv_prog_CPP=$CPP |
| 5218 | fi |
| 5219 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5220 | echo "${ECHO_T}$CPP" >&6; } |
| 5221 | ac_preproc_ok=false |
| 5222 | for ac_c_preproc_warn_flag in '' yes |
| 5223 | do |
| 5224 | # Use a header file that comes with gcc, so configuring glibc |
| 5225 | # with a fresh cross-compiler works. |
| 5226 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5227 | # <limits.h> exists even on freestanding compilers. |
| 5228 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5229 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5230 | cat >conftest.$ac_ext <<_ACEOF |
| 5231 | /* confdefs.h. */ |
| 5232 | _ACEOF |
| 5233 | cat confdefs.h >>conftest.$ac_ext |
| 5234 | cat >>conftest.$ac_ext <<_ACEOF |
| 5235 | /* end confdefs.h. */ |
| 5236 | #ifdef __STDC__ |
| 5237 | # include <limits.h> |
| 5238 | #else |
| 5239 | # include <assert.h> |
| 5240 | #endif |
| 5241 | Syntax error |
| 5242 | _ACEOF |
| 5243 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5244 | case "(($ac_try" in |
| 5245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5246 | *) ac_try_echo=$ac_try;; |
| 5247 | esac |
| 5248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5249 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5250 | ac_status=$? |
| 5251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5252 | rm -f conftest.er1 |
| 5253 | cat conftest.err >&5 |
| 5254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5255 | (exit $ac_status); } >/dev/null; then |
| 5256 | if test -s conftest.err; then |
| 5257 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5258 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5259 | else |
| 5260 | ac_cpp_err= |
| 5261 | fi |
| 5262 | else |
| 5263 | ac_cpp_err=yes |
| 5264 | fi |
| 5265 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5266 | : |
| 5267 | else |
| 5268 | echo "$as_me: failed program was:" >&5 |
| 5269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5270 | |
| 5271 | # Broken: fails on valid input. |
| 5272 | continue |
| 5273 | fi |
| 5274 | |
| 5275 | rm -f conftest.err conftest.$ac_ext |
| 5276 | |
| 5277 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5278 | # can be detected and how. |
| 5279 | cat >conftest.$ac_ext <<_ACEOF |
| 5280 | /* confdefs.h. */ |
| 5281 | _ACEOF |
| 5282 | cat confdefs.h >>conftest.$ac_ext |
| 5283 | cat >>conftest.$ac_ext <<_ACEOF |
| 5284 | /* end confdefs.h. */ |
| 5285 | #include <ac_nonexistent.h> |
| 5286 | _ACEOF |
| 5287 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5288 | case "(($ac_try" in |
| 5289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5290 | *) ac_try_echo=$ac_try;; |
| 5291 | esac |
| 5292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5293 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5294 | ac_status=$? |
| 5295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5296 | rm -f conftest.er1 |
| 5297 | cat conftest.err >&5 |
| 5298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5299 | (exit $ac_status); } >/dev/null; then |
| 5300 | if test -s conftest.err; then |
| 5301 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5302 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5303 | else |
| 5304 | ac_cpp_err= |
| 5305 | fi |
| 5306 | else |
| 5307 | ac_cpp_err=yes |
| 5308 | fi |
| 5309 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5310 | # Broken: success on invalid input. |
| 5311 | continue |
| 5312 | else |
| 5313 | echo "$as_me: failed program was:" >&5 |
| 5314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5315 | |
| 5316 | # Passes both tests. |
| 5317 | ac_preproc_ok=: |
| 5318 | break |
| 5319 | fi |
| 5320 | |
| 5321 | rm -f conftest.err conftest.$ac_ext |
| 5322 | |
| 5323 | done |
| 5324 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5325 | rm -f conftest.err conftest.$ac_ext |
| 5326 | if $ac_preproc_ok; then |
| 5327 | : |
| 5328 | else |
| 5329 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5330 | See \`config.log' for more details." >&5 |
| 5331 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5332 | See \`config.log' for more details." >&2;} |
| 5333 | { (exit 1); exit 1; }; } |
| 5334 | fi |
| 5335 | |
| 5336 | ac_ext=c |
| 5337 | ac_cpp='$CPP $CPPFLAGS' |
| 5338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5341 | |
| 5342 | ac_ext=c |
| 5343 | ac_cpp='$CPP $CPPFLAGS' |
| 5344 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5345 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5346 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5347 | if test -n "$ac_tool_prefix"; then |
| 5348 | for ac_prog in gcc |
| 5349 | do |
| 5350 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5351 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5352 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5354 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5356 | else |
| 5357 | if test -n "$CC"; then |
| 5358 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5359 | else |
| 5360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5361 | for as_dir in $PATH |
| 5362 | do |
| 5363 | IFS=$as_save_IFS |
| 5364 | test -z "$as_dir" && as_dir=. |
| 5365 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5366 | 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] | 5367 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5369 | break 2 |
| 5370 | fi |
| 5371 | done |
| 5372 | done |
| 5373 | IFS=$as_save_IFS |
| 5374 | |
| 5375 | fi |
| 5376 | fi |
| 5377 | CC=$ac_cv_prog_CC |
| 5378 | if test -n "$CC"; then |
| 5379 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5380 | echo "${ECHO_T}$CC" >&6; } |
| 5381 | else |
| 5382 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5383 | echo "${ECHO_T}no" >&6; } |
| 5384 | fi |
| 5385 | |
| 5386 | |
| 5387 | test -n "$CC" && break |
| 5388 | done |
| 5389 | fi |
| 5390 | if test -z "$CC"; then |
| 5391 | ac_ct_CC=$CC |
| 5392 | for ac_prog in gcc |
| 5393 | do |
| 5394 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5395 | set dummy $ac_prog; ac_word=$2 |
| 5396 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5398 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5400 | else |
| 5401 | if test -n "$ac_ct_CC"; then |
| 5402 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5403 | else |
| 5404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5405 | for as_dir in $PATH |
| 5406 | do |
| 5407 | IFS=$as_save_IFS |
| 5408 | test -z "$as_dir" && as_dir=. |
| 5409 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5410 | 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] | 5411 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5413 | break 2 |
| 5414 | fi |
| 5415 | done |
| 5416 | done |
| 5417 | IFS=$as_save_IFS |
| 5418 | |
| 5419 | fi |
| 5420 | fi |
| 5421 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5422 | if test -n "$ac_ct_CC"; then |
| 5423 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5424 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5425 | else |
| 5426 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5427 | echo "${ECHO_T}no" >&6; } |
| 5428 | fi |
| 5429 | |
| 5430 | |
| 5431 | test -n "$ac_ct_CC" && break |
| 5432 | done |
| 5433 | |
| 5434 | if test "x$ac_ct_CC" = x; then |
| 5435 | CC="" |
| 5436 | else |
| 5437 | case $cross_compiling:$ac_tool_warned in |
| 5438 | yes:) |
| 5439 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5440 | whose name does not start with the host triplet. If you think this |
| 5441 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5442 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5443 | whose name does not start with the host triplet. If you think this |
| 5444 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5445 | ac_tool_warned=yes ;; |
| 5446 | esac |
| 5447 | CC=$ac_ct_CC |
| 5448 | fi |
| 5449 | fi |
| 5450 | |
| 5451 | |
| 5452 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5453 | See \`config.log' for more details." >&5 |
| 5454 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5455 | See \`config.log' for more details." >&2;} |
| 5456 | { (exit 1); exit 1; }; } |
| 5457 | |
| 5458 | # Provide some information about the compiler. |
| 5459 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5460 | ac_compiler=`set X $ac_compile; echo $2` |
| 5461 | { (ac_try="$ac_compiler --version >&5" |
| 5462 | case "(($ac_try" in |
| 5463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5464 | *) ac_try_echo=$ac_try;; |
| 5465 | esac |
| 5466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5467 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5468 | ac_status=$? |
| 5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5470 | (exit $ac_status); } |
| 5471 | { (ac_try="$ac_compiler -v >&5" |
| 5472 | case "(($ac_try" in |
| 5473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5474 | *) ac_try_echo=$ac_try;; |
| 5475 | esac |
| 5476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5477 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5478 | ac_status=$? |
| 5479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5480 | (exit $ac_status); } |
| 5481 | { (ac_try="$ac_compiler -V >&5" |
| 5482 | case "(($ac_try" in |
| 5483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5484 | *) ac_try_echo=$ac_try;; |
| 5485 | esac |
| 5486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5487 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5488 | ac_status=$? |
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5490 | (exit $ac_status); } |
| 5491 | |
| 5492 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5493 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5494 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5496 | else |
| 5497 | cat >conftest.$ac_ext <<_ACEOF |
| 5498 | /* confdefs.h. */ |
| 5499 | _ACEOF |
| 5500 | cat confdefs.h >>conftest.$ac_ext |
| 5501 | cat >>conftest.$ac_ext <<_ACEOF |
| 5502 | /* end confdefs.h. */ |
| 5503 | |
| 5504 | int |
| 5505 | main () |
| 5506 | { |
| 5507 | #ifndef __GNUC__ |
| 5508 | choke me |
| 5509 | #endif |
| 5510 | |
| 5511 | ; |
| 5512 | return 0; |
| 5513 | } |
| 5514 | _ACEOF |
| 5515 | rm -f conftest.$ac_objext |
| 5516 | if { (ac_try="$ac_compile" |
| 5517 | case "(($ac_try" in |
| 5518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5519 | *) ac_try_echo=$ac_try;; |
| 5520 | esac |
| 5521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5522 | (eval "$ac_compile") 2>conftest.er1 |
| 5523 | ac_status=$? |
| 5524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5525 | rm -f conftest.er1 |
| 5526 | cat conftest.err >&5 |
| 5527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5528 | (exit $ac_status); } && |
| 5529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5530 | { (case "(($ac_try" in |
| 5531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5532 | *) ac_try_echo=$ac_try;; |
| 5533 | esac |
| 5534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5535 | (eval "$ac_try") 2>&5 |
| 5536 | ac_status=$? |
| 5537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5538 | (exit $ac_status); }; } && |
| 5539 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5549 | ac_compiler_gnu=yes |
| 5550 | else |
| 5551 | echo "$as_me: failed program was:" >&5 |
| 5552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5553 | |
| 5554 | ac_compiler_gnu=no |
| 5555 | fi |
| 5556 | |
| 5557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5558 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5559 | |
| 5560 | fi |
| 5561 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5562 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5563 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5564 | ac_test_CFLAGS=${CFLAGS+set} |
| 5565 | ac_save_CFLAGS=$CFLAGS |
| 5566 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5567 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5568 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5570 | else |
| 5571 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5572 | ac_c_werror_flag=yes |
| 5573 | ac_cv_prog_cc_g=no |
| 5574 | CFLAGS="-g" |
| 5575 | cat >conftest.$ac_ext <<_ACEOF |
| 5576 | /* confdefs.h. */ |
| 5577 | _ACEOF |
| 5578 | cat confdefs.h >>conftest.$ac_ext |
| 5579 | cat >>conftest.$ac_ext <<_ACEOF |
| 5580 | /* end confdefs.h. */ |
| 5581 | |
| 5582 | int |
| 5583 | main () |
| 5584 | { |
| 5585 | |
| 5586 | ; |
| 5587 | return 0; |
| 5588 | } |
| 5589 | _ACEOF |
| 5590 | rm -f conftest.$ac_objext |
| 5591 | if { (ac_try="$ac_compile" |
| 5592 | case "(($ac_try" in |
| 5593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5594 | *) ac_try_echo=$ac_try;; |
| 5595 | esac |
| 5596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5597 | (eval "$ac_compile") 2>conftest.er1 |
| 5598 | ac_status=$? |
| 5599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5600 | rm -f conftest.er1 |
| 5601 | cat conftest.err >&5 |
| 5602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5603 | (exit $ac_status); } && |
| 5604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5605 | { (case "(($ac_try" in |
| 5606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5607 | *) ac_try_echo=$ac_try;; |
| 5608 | esac |
| 5609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5610 | (eval "$ac_try") 2>&5 |
| 5611 | ac_status=$? |
| 5612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5613 | (exit $ac_status); }; } && |
| 5614 | { ac_try='test -s conftest.$ac_objext' |
| 5615 | { (case "(($ac_try" in |
| 5616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5617 | *) ac_try_echo=$ac_try;; |
| 5618 | esac |
| 5619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5620 | (eval "$ac_try") 2>&5 |
| 5621 | ac_status=$? |
| 5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5623 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5624 | ac_cv_prog_cc_g=yes |
| 5625 | else |
| 5626 | echo "$as_me: failed program was:" >&5 |
| 5627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5628 | |
| 5629 | CFLAGS="" |
| 5630 | cat >conftest.$ac_ext <<_ACEOF |
| 5631 | /* confdefs.h. */ |
| 5632 | _ACEOF |
| 5633 | cat confdefs.h >>conftest.$ac_ext |
| 5634 | cat >>conftest.$ac_ext <<_ACEOF |
| 5635 | /* end confdefs.h. */ |
| 5636 | |
| 5637 | int |
| 5638 | main () |
| 5639 | { |
| 5640 | |
| 5641 | ; |
| 5642 | return 0; |
| 5643 | } |
| 5644 | _ACEOF |
| 5645 | rm -f conftest.$ac_objext |
| 5646 | if { (ac_try="$ac_compile" |
| 5647 | case "(($ac_try" in |
| 5648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5649 | *) ac_try_echo=$ac_try;; |
| 5650 | esac |
| 5651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5652 | (eval "$ac_compile") 2>conftest.er1 |
| 5653 | ac_status=$? |
| 5654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5655 | rm -f conftest.er1 |
| 5656 | cat conftest.err >&5 |
| 5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5658 | (exit $ac_status); } && |
| 5659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5660 | { (case "(($ac_try" in |
| 5661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5662 | *) ac_try_echo=$ac_try;; |
| 5663 | esac |
| 5664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5665 | (eval "$ac_try") 2>&5 |
| 5666 | ac_status=$? |
| 5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5668 | (exit $ac_status); }; } && |
| 5669 | { ac_try='test -s conftest.$ac_objext' |
| 5670 | { (case "(($ac_try" in |
| 5671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5672 | *) ac_try_echo=$ac_try;; |
| 5673 | esac |
| 5674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5675 | (eval "$ac_try") 2>&5 |
| 5676 | ac_status=$? |
| 5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5678 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5679 | : |
| 5680 | else |
| 5681 | echo "$as_me: failed program was:" >&5 |
| 5682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5683 | |
| 5684 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5685 | CFLAGS="-g" |
| 5686 | cat >conftest.$ac_ext <<_ACEOF |
| 5687 | /* confdefs.h. */ |
| 5688 | _ACEOF |
| 5689 | cat confdefs.h >>conftest.$ac_ext |
| 5690 | cat >>conftest.$ac_ext <<_ACEOF |
| 5691 | /* end confdefs.h. */ |
| 5692 | |
| 5693 | int |
| 5694 | main () |
| 5695 | { |
| 5696 | |
| 5697 | ; |
| 5698 | return 0; |
| 5699 | } |
| 5700 | _ACEOF |
| 5701 | rm -f conftest.$ac_objext |
| 5702 | if { (ac_try="$ac_compile" |
| 5703 | case "(($ac_try" in |
| 5704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5705 | *) ac_try_echo=$ac_try;; |
| 5706 | esac |
| 5707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5708 | (eval "$ac_compile") 2>conftest.er1 |
| 5709 | ac_status=$? |
| 5710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5711 | rm -f conftest.er1 |
| 5712 | cat conftest.err >&5 |
| 5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5714 | (exit $ac_status); } && |
| 5715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5716 | { (case "(($ac_try" in |
| 5717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5718 | *) ac_try_echo=$ac_try;; |
| 5719 | esac |
| 5720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5721 | (eval "$ac_try") 2>&5 |
| 5722 | ac_status=$? |
| 5723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5724 | (exit $ac_status); }; } && |
| 5725 | { ac_try='test -s conftest.$ac_objext' |
| 5726 | { (case "(($ac_try" in |
| 5727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5728 | *) ac_try_echo=$ac_try;; |
| 5729 | esac |
| 5730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5731 | (eval "$ac_try") 2>&5 |
| 5732 | ac_status=$? |
| 5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5734 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5735 | ac_cv_prog_cc_g=yes |
| 5736 | else |
| 5737 | echo "$as_me: failed program was:" >&5 |
| 5738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5739 | |
| 5740 | |
| 5741 | fi |
| 5742 | |
| 5743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5744 | fi |
| 5745 | |
| 5746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5747 | fi |
| 5748 | |
| 5749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5750 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5751 | fi |
| 5752 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5753 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5754 | if test "$ac_test_CFLAGS" = set; then |
| 5755 | CFLAGS=$ac_save_CFLAGS |
| 5756 | elif test $ac_cv_prog_cc_g = yes; then |
| 5757 | if test "$GCC" = yes; then |
| 5758 | CFLAGS="-g -O2" |
| 5759 | else |
| 5760 | CFLAGS="-g" |
| 5761 | fi |
| 5762 | else |
| 5763 | if test "$GCC" = yes; then |
| 5764 | CFLAGS="-O2" |
| 5765 | else |
| 5766 | CFLAGS= |
| 5767 | fi |
| 5768 | fi |
| 5769 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5770 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5771 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5773 | else |
| 5774 | ac_cv_prog_cc_c89=no |
| 5775 | ac_save_CC=$CC |
| 5776 | cat >conftest.$ac_ext <<_ACEOF |
| 5777 | /* confdefs.h. */ |
| 5778 | _ACEOF |
| 5779 | cat confdefs.h >>conftest.$ac_ext |
| 5780 | cat >>conftest.$ac_ext <<_ACEOF |
| 5781 | /* end confdefs.h. */ |
| 5782 | #include <stdarg.h> |
| 5783 | #include <stdio.h> |
| 5784 | #include <sys/types.h> |
| 5785 | #include <sys/stat.h> |
| 5786 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5787 | struct buf { int x; }; |
| 5788 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5789 | static char *e (p, i) |
| 5790 | char **p; |
| 5791 | int i; |
| 5792 | { |
| 5793 | return p[i]; |
| 5794 | } |
| 5795 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5796 | { |
| 5797 | char *s; |
| 5798 | va_list v; |
| 5799 | va_start (v,p); |
| 5800 | s = g (p, va_arg (v,int)); |
| 5801 | va_end (v); |
| 5802 | return s; |
| 5803 | } |
| 5804 | |
| 5805 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5806 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5807 | These don't provoke an error unfortunately, instead are silently treated |
| 5808 | as 'x'. The following induces an error, until -std is added to get |
| 5809 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5810 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5811 | that's true only with -std. */ |
| 5812 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5813 | |
| 5814 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5815 | inside strings and character constants. */ |
| 5816 | #define FOO(x) 'x' |
| 5817 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5818 | |
| 5819 | int test (int i, double x); |
| 5820 | struct s1 {int (*f) (int a);}; |
| 5821 | struct s2 {int (*f) (double a);}; |
| 5822 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5823 | int argc; |
| 5824 | char **argv; |
| 5825 | int |
| 5826 | main () |
| 5827 | { |
| 5828 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5829 | ; |
| 5830 | return 0; |
| 5831 | } |
| 5832 | _ACEOF |
| 5833 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5834 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5835 | do |
| 5836 | CC="$ac_save_CC $ac_arg" |
| 5837 | rm -f conftest.$ac_objext |
| 5838 | if { (ac_try="$ac_compile" |
| 5839 | case "(($ac_try" in |
| 5840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5841 | *) ac_try_echo=$ac_try;; |
| 5842 | esac |
| 5843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5844 | (eval "$ac_compile") 2>conftest.er1 |
| 5845 | ac_status=$? |
| 5846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5847 | rm -f conftest.er1 |
| 5848 | cat conftest.err >&5 |
| 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5850 | (exit $ac_status); } && |
| 5851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5852 | { (case "(($ac_try" in |
| 5853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5854 | *) ac_try_echo=$ac_try;; |
| 5855 | esac |
| 5856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5857 | (eval "$ac_try") 2>&5 |
| 5858 | ac_status=$? |
| 5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5860 | (exit $ac_status); }; } && |
| 5861 | { ac_try='test -s conftest.$ac_objext' |
| 5862 | { (case "(($ac_try" in |
| 5863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5864 | *) ac_try_echo=$ac_try;; |
| 5865 | esac |
| 5866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5867 | (eval "$ac_try") 2>&5 |
| 5868 | ac_status=$? |
| 5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5870 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5871 | ac_cv_prog_cc_c89=$ac_arg |
| 5872 | else |
| 5873 | echo "$as_me: failed program was:" >&5 |
| 5874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5875 | |
| 5876 | |
| 5877 | fi |
| 5878 | |
| 5879 | rm -f core conftest.err conftest.$ac_objext |
| 5880 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5881 | done |
| 5882 | rm -f conftest.$ac_ext |
| 5883 | CC=$ac_save_CC |
| 5884 | |
| 5885 | fi |
| 5886 | # AC_CACHE_VAL |
| 5887 | case "x$ac_cv_prog_cc_c89" in |
| 5888 | x) |
| 5889 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5890 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5891 | xno) |
| 5892 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5893 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5894 | *) |
| 5895 | CC="$CC $ac_cv_prog_cc_c89" |
| 5896 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5897 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5898 | esac |
| 5899 | |
| 5900 | |
| 5901 | ac_ext=c |
| 5902 | ac_cpp='$CPP $CPPFLAGS' |
| 5903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5906 | |
| 5907 | ac_ext=cpp |
| 5908 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5909 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5910 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5911 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5912 | if test -z "$CXX"; then |
| 5913 | if test -n "$CCC"; then |
| 5914 | CXX=$CCC |
| 5915 | else |
| 5916 | if test -n "$ac_tool_prefix"; then |
| 5917 | for ac_prog in g++ |
| 5918 | do |
| 5919 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5920 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5921 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5923 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5925 | else |
| 5926 | if test -n "$CXX"; then |
| 5927 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5928 | else |
| 5929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5930 | for as_dir in $PATH |
| 5931 | do |
| 5932 | IFS=$as_save_IFS |
| 5933 | test -z "$as_dir" && as_dir=. |
| 5934 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5935 | 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] | 5936 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5938 | break 2 |
| 5939 | fi |
| 5940 | done |
| 5941 | done |
| 5942 | IFS=$as_save_IFS |
| 5943 | |
| 5944 | fi |
| 5945 | fi |
| 5946 | CXX=$ac_cv_prog_CXX |
| 5947 | if test -n "$CXX"; then |
| 5948 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5949 | echo "${ECHO_T}$CXX" >&6; } |
| 5950 | else |
| 5951 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5952 | echo "${ECHO_T}no" >&6; } |
| 5953 | fi |
| 5954 | |
| 5955 | |
| 5956 | test -n "$CXX" && break |
| 5957 | done |
| 5958 | fi |
| 5959 | if test -z "$CXX"; then |
| 5960 | ac_ct_CXX=$CXX |
| 5961 | for ac_prog in g++ |
| 5962 | do |
| 5963 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5964 | set dummy $ac_prog; ac_word=$2 |
| 5965 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5967 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5969 | else |
| 5970 | if test -n "$ac_ct_CXX"; then |
| 5971 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5972 | else |
| 5973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5974 | for as_dir in $PATH |
| 5975 | do |
| 5976 | IFS=$as_save_IFS |
| 5977 | test -z "$as_dir" && as_dir=. |
| 5978 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 5979 | 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] | 5980 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5982 | break 2 |
| 5983 | fi |
| 5984 | done |
| 5985 | done |
| 5986 | IFS=$as_save_IFS |
| 5987 | |
| 5988 | fi |
| 5989 | fi |
| 5990 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5991 | if test -n "$ac_ct_CXX"; then |
| 5992 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5993 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5994 | else |
| 5995 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5996 | echo "${ECHO_T}no" >&6; } |
| 5997 | fi |
| 5998 | |
| 5999 | |
| 6000 | test -n "$ac_ct_CXX" && break |
| 6001 | done |
| 6002 | |
| 6003 | if test "x$ac_ct_CXX" = x; then |
| 6004 | CXX="g++" |
| 6005 | else |
| 6006 | case $cross_compiling:$ac_tool_warned in |
| 6007 | yes:) |
| 6008 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6009 | whose name does not start with the host triplet. If you think this |
| 6010 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6011 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6012 | whose name does not start with the host triplet. If you think this |
| 6013 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6014 | ac_tool_warned=yes ;; |
| 6015 | esac |
| 6016 | CXX=$ac_ct_CXX |
| 6017 | fi |
| 6018 | fi |
| 6019 | |
| 6020 | fi |
| 6021 | fi |
| 6022 | # Provide some information about the compiler. |
| 6023 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6024 | ac_compiler=`set X $ac_compile; echo $2` |
| 6025 | { (ac_try="$ac_compiler --version >&5" |
| 6026 | case "(($ac_try" in |
| 6027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6028 | *) ac_try_echo=$ac_try;; |
| 6029 | esac |
| 6030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6031 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6032 | ac_status=$? |
| 6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6034 | (exit $ac_status); } |
| 6035 | { (ac_try="$ac_compiler -v >&5" |
| 6036 | case "(($ac_try" in |
| 6037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6038 | *) ac_try_echo=$ac_try;; |
| 6039 | esac |
| 6040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6041 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6042 | ac_status=$? |
| 6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6044 | (exit $ac_status); } |
| 6045 | { (ac_try="$ac_compiler -V >&5" |
| 6046 | case "(($ac_try" in |
| 6047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6048 | *) ac_try_echo=$ac_try;; |
| 6049 | esac |
| 6050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6051 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6052 | ac_status=$? |
| 6053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6054 | (exit $ac_status); } |
| 6055 | |
| 6056 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6057 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6058 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6060 | else |
| 6061 | cat >conftest.$ac_ext <<_ACEOF |
| 6062 | /* confdefs.h. */ |
| 6063 | _ACEOF |
| 6064 | cat confdefs.h >>conftest.$ac_ext |
| 6065 | cat >>conftest.$ac_ext <<_ACEOF |
| 6066 | /* end confdefs.h. */ |
| 6067 | |
| 6068 | int |
| 6069 | main () |
| 6070 | { |
| 6071 | #ifndef __GNUC__ |
| 6072 | choke me |
| 6073 | #endif |
| 6074 | |
| 6075 | ; |
| 6076 | return 0; |
| 6077 | } |
| 6078 | _ACEOF |
| 6079 | rm -f conftest.$ac_objext |
| 6080 | if { (ac_try="$ac_compile" |
| 6081 | case "(($ac_try" in |
| 6082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6083 | *) ac_try_echo=$ac_try;; |
| 6084 | esac |
| 6085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6086 | (eval "$ac_compile") 2>conftest.er1 |
| 6087 | ac_status=$? |
| 6088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6089 | rm -f conftest.er1 |
| 6090 | cat conftest.err >&5 |
| 6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6092 | (exit $ac_status); } && |
| 6093 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6094 | { (case "(($ac_try" in |
| 6095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6096 | *) ac_try_echo=$ac_try;; |
| 6097 | esac |
| 6098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6099 | (eval "$ac_try") 2>&5 |
| 6100 | ac_status=$? |
| 6101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6102 | (exit $ac_status); }; } && |
| 6103 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6113 | ac_compiler_gnu=yes |
| 6114 | else |
| 6115 | echo "$as_me: failed program was:" >&5 |
| 6116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6117 | |
| 6118 | ac_compiler_gnu=no |
| 6119 | fi |
| 6120 | |
| 6121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6122 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6123 | |
| 6124 | fi |
| 6125 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6126 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6127 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 6128 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6129 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6130 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6131 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6132 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6134 | else |
| 6135 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6136 | ac_cxx_werror_flag=yes |
| 6137 | ac_cv_prog_cxx_g=no |
| 6138 | CXXFLAGS="-g" |
| 6139 | cat >conftest.$ac_ext <<_ACEOF |
| 6140 | /* confdefs.h. */ |
| 6141 | _ACEOF |
| 6142 | cat confdefs.h >>conftest.$ac_ext |
| 6143 | cat >>conftest.$ac_ext <<_ACEOF |
| 6144 | /* end confdefs.h. */ |
| 6145 | |
| 6146 | int |
| 6147 | main () |
| 6148 | { |
| 6149 | |
| 6150 | ; |
| 6151 | return 0; |
| 6152 | } |
| 6153 | _ACEOF |
| 6154 | rm -f conftest.$ac_objext |
| 6155 | if { (ac_try="$ac_compile" |
| 6156 | case "(($ac_try" in |
| 6157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6158 | *) ac_try_echo=$ac_try;; |
| 6159 | esac |
| 6160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6161 | (eval "$ac_compile") 2>conftest.er1 |
| 6162 | ac_status=$? |
| 6163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6164 | rm -f conftest.er1 |
| 6165 | cat conftest.err >&5 |
| 6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6167 | (exit $ac_status); } && |
| 6168 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6169 | { (case "(($ac_try" in |
| 6170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6171 | *) ac_try_echo=$ac_try;; |
| 6172 | esac |
| 6173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6174 | (eval "$ac_try") 2>&5 |
| 6175 | ac_status=$? |
| 6176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6177 | (exit $ac_status); }; } && |
| 6178 | { ac_try='test -s conftest.$ac_objext' |
| 6179 | { (case "(($ac_try" in |
| 6180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6181 | *) ac_try_echo=$ac_try;; |
| 6182 | esac |
| 6183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6184 | (eval "$ac_try") 2>&5 |
| 6185 | ac_status=$? |
| 6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6187 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6188 | ac_cv_prog_cxx_g=yes |
| 6189 | else |
| 6190 | echo "$as_me: failed program was:" >&5 |
| 6191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6192 | |
| 6193 | CXXFLAGS="" |
| 6194 | cat >conftest.$ac_ext <<_ACEOF |
| 6195 | /* confdefs.h. */ |
| 6196 | _ACEOF |
| 6197 | cat confdefs.h >>conftest.$ac_ext |
| 6198 | cat >>conftest.$ac_ext <<_ACEOF |
| 6199 | /* end confdefs.h. */ |
| 6200 | |
| 6201 | int |
| 6202 | main () |
| 6203 | { |
| 6204 | |
| 6205 | ; |
| 6206 | return 0; |
| 6207 | } |
| 6208 | _ACEOF |
| 6209 | rm -f conftest.$ac_objext |
| 6210 | if { (ac_try="$ac_compile" |
| 6211 | case "(($ac_try" in |
| 6212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6213 | *) ac_try_echo=$ac_try;; |
| 6214 | esac |
| 6215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6216 | (eval "$ac_compile") 2>conftest.er1 |
| 6217 | ac_status=$? |
| 6218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6219 | rm -f conftest.er1 |
| 6220 | cat conftest.err >&5 |
| 6221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6222 | (exit $ac_status); } && |
| 6223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6224 | { (case "(($ac_try" in |
| 6225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6226 | *) ac_try_echo=$ac_try;; |
| 6227 | esac |
| 6228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6229 | (eval "$ac_try") 2>&5 |
| 6230 | ac_status=$? |
| 6231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6232 | (exit $ac_status); }; } && |
| 6233 | { ac_try='test -s conftest.$ac_objext' |
| 6234 | { (case "(($ac_try" in |
| 6235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6236 | *) ac_try_echo=$ac_try;; |
| 6237 | esac |
| 6238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6239 | (eval "$ac_try") 2>&5 |
| 6240 | ac_status=$? |
| 6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6242 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6243 | : |
| 6244 | else |
| 6245 | echo "$as_me: failed program was:" >&5 |
| 6246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6247 | |
| 6248 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6249 | CXXFLAGS="-g" |
| 6250 | cat >conftest.$ac_ext <<_ACEOF |
| 6251 | /* confdefs.h. */ |
| 6252 | _ACEOF |
| 6253 | cat confdefs.h >>conftest.$ac_ext |
| 6254 | cat >>conftest.$ac_ext <<_ACEOF |
| 6255 | /* end confdefs.h. */ |
| 6256 | |
| 6257 | int |
| 6258 | main () |
| 6259 | { |
| 6260 | |
| 6261 | ; |
| 6262 | return 0; |
| 6263 | } |
| 6264 | _ACEOF |
| 6265 | rm -f conftest.$ac_objext |
| 6266 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 6273 | ac_status=$? |
| 6274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6275 | rm -f conftest.er1 |
| 6276 | cat conftest.err >&5 |
| 6277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6278 | (exit $ac_status); } && |
| 6279 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6280 | { (case "(($ac_try" in |
| 6281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6282 | *) ac_try_echo=$ac_try;; |
| 6283 | esac |
| 6284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6285 | (eval "$ac_try") 2>&5 |
| 6286 | ac_status=$? |
| 6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6288 | (exit $ac_status); }; } && |
| 6289 | { ac_try='test -s conftest.$ac_objext' |
| 6290 | { (case "(($ac_try" in |
| 6291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6292 | *) ac_try_echo=$ac_try;; |
| 6293 | esac |
| 6294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6295 | (eval "$ac_try") 2>&5 |
| 6296 | ac_status=$? |
| 6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6298 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6299 | ac_cv_prog_cxx_g=yes |
| 6300 | else |
| 6301 | echo "$as_me: failed program was:" >&5 |
| 6302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6303 | |
| 6304 | |
| 6305 | fi |
| 6306 | |
| 6307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6308 | fi |
| 6309 | |
| 6310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6311 | fi |
| 6312 | |
| 6313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6314 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6315 | fi |
| 6316 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6317 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6318 | if test "$ac_test_CXXFLAGS" = set; then |
| 6319 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6320 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6321 | if test "$GXX" = yes; then |
| 6322 | CXXFLAGS="-g -O2" |
| 6323 | else |
| 6324 | CXXFLAGS="-g" |
| 6325 | fi |
| 6326 | else |
| 6327 | if test "$GXX" = yes; then |
| 6328 | CXXFLAGS="-O2" |
| 6329 | else |
| 6330 | CXXFLAGS= |
| 6331 | fi |
| 6332 | fi |
| 6333 | ac_ext=c |
| 6334 | ac_cpp='$CPP $CPPFLAGS' |
| 6335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6339 | |
| 6340 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6341 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6342 | if test "${lt_cv_path_NM+set}" = set; then |
| 6343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6344 | else |
| 6345 | if test -n "$NM"; then |
| 6346 | # Let the user override the test. |
| 6347 | lt_cv_path_NM="$NM" |
| 6348 | else |
| 6349 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6350 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6351 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6352 | fi |
| 6353 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6354 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6355 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6356 | IFS="$lt_save_ifs" |
| 6357 | test -z "$ac_dir" && ac_dir=. |
| 6358 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6359 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6360 | # Check to see if the nm accepts a BSD-compat flag. |
| 6361 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6362 | # nm: unknown option "B" ignored |
| 6363 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6364 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6365 | */dev/null* | *'Invalid file or object type'*) |
| 6366 | lt_cv_path_NM="$tmp_nm -B" |
| 6367 | break |
| 6368 | ;; |
| 6369 | *) |
| 6370 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6371 | */dev/null*) |
| 6372 | lt_cv_path_NM="$tmp_nm -p" |
| 6373 | break |
| 6374 | ;; |
| 6375 | *) |
| 6376 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6377 | continue # so that we can try to find one that supports BSD flags |
| 6378 | ;; |
| 6379 | esac |
| 6380 | ;; |
| 6381 | esac |
| 6382 | fi |
| 6383 | done |
| 6384 | IFS="$lt_save_ifs" |
| 6385 | done |
| 6386 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6387 | fi |
| 6388 | fi |
| 6389 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6390 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6391 | NM="$lt_cv_path_NM" |
| 6392 | |
| 6393 | |
| 6394 | |
| 6395 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6396 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6397 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6399 | else |
| 6400 | llvm_cv_gnu_make_command='' |
| 6401 | for a in "$MAKE" make gmake gnumake ; do |
| 6402 | if test -z "$a" ; then continue ; fi ; |
| 6403 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6404 | then |
| 6405 | llvm_cv_gnu_make_command=$a ; |
| 6406 | break; |
| 6407 | fi |
| 6408 | done |
| 6409 | fi |
| 6410 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6411 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6412 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6413 | ifGNUmake='' ; |
| 6414 | else |
| 6415 | ifGNUmake='#' ; |
| 6416 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6417 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6418 | fi |
| 6419 | |
| 6420 | |
| 6421 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6422 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6423 | LN_S=$as_ln_s |
| 6424 | if test "$LN_S" = "ln -s"; then |
| 6425 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6426 | echo "${ECHO_T}yes" >&6; } |
| 6427 | else |
| 6428 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6429 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6430 | fi |
| 6431 | |
| 6432 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6433 | set dummy cmp; ac_word=$2 |
| 6434 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6436 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6438 | else |
| 6439 | case $CMP in |
| 6440 | [\\/]* | ?:[\\/]*) |
| 6441 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6442 | ;; |
| 6443 | *) |
| 6444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6445 | for as_dir in $PATH |
| 6446 | do |
| 6447 | IFS=$as_save_IFS |
| 6448 | test -z "$as_dir" && as_dir=. |
| 6449 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6450 | 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] | 6451 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6453 | break 2 |
| 6454 | fi |
| 6455 | done |
| 6456 | done |
| 6457 | IFS=$as_save_IFS |
| 6458 | |
| 6459 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6460 | ;; |
| 6461 | esac |
| 6462 | fi |
| 6463 | CMP=$ac_cv_path_CMP |
| 6464 | if test -n "$CMP"; then |
| 6465 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6466 | echo "${ECHO_T}$CMP" >&6; } |
| 6467 | else |
| 6468 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6469 | echo "${ECHO_T}no" >&6; } |
| 6470 | fi |
| 6471 | |
| 6472 | |
| 6473 | # Extract the first word of "cp", so it can be a program name with args. |
| 6474 | set dummy cp; ac_word=$2 |
| 6475 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6477 | if test "${ac_cv_path_CP+set}" = set; then |
| 6478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6479 | else |
| 6480 | case $CP in |
| 6481 | [\\/]* | ?:[\\/]*) |
| 6482 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6483 | ;; |
| 6484 | *) |
| 6485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6486 | for as_dir in $PATH |
| 6487 | do |
| 6488 | IFS=$as_save_IFS |
| 6489 | test -z "$as_dir" && as_dir=. |
| 6490 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6491 | 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] | 6492 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6494 | break 2 |
| 6495 | fi |
| 6496 | done |
| 6497 | done |
| 6498 | IFS=$as_save_IFS |
| 6499 | |
| 6500 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6501 | ;; |
| 6502 | esac |
| 6503 | fi |
| 6504 | CP=$ac_cv_path_CP |
| 6505 | if test -n "$CP"; then |
| 6506 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6507 | echo "${ECHO_T}$CP" >&6; } |
| 6508 | else |
| 6509 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6510 | echo "${ECHO_T}no" >&6; } |
| 6511 | fi |
| 6512 | |
| 6513 | |
| 6514 | # Extract the first word of "date", so it can be a program name with args. |
| 6515 | set dummy date; ac_word=$2 |
| 6516 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6518 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6520 | else |
| 6521 | case $DATE in |
| 6522 | [\\/]* | ?:[\\/]*) |
| 6523 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6524 | ;; |
| 6525 | *) |
| 6526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6527 | for as_dir in $PATH |
| 6528 | do |
| 6529 | IFS=$as_save_IFS |
| 6530 | test -z "$as_dir" && as_dir=. |
| 6531 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6532 | 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] | 6533 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6535 | break 2 |
| 6536 | fi |
| 6537 | done |
| 6538 | done |
| 6539 | IFS=$as_save_IFS |
| 6540 | |
| 6541 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6542 | ;; |
| 6543 | esac |
| 6544 | fi |
| 6545 | DATE=$ac_cv_path_DATE |
| 6546 | if test -n "$DATE"; then |
| 6547 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6548 | echo "${ECHO_T}$DATE" >&6; } |
| 6549 | else |
| 6550 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6551 | echo "${ECHO_T}no" >&6; } |
| 6552 | fi |
| 6553 | |
| 6554 | |
| 6555 | # Extract the first word of "find", so it can be a program name with args. |
| 6556 | set dummy find; ac_word=$2 |
| 6557 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6559 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6561 | else |
| 6562 | case $FIND in |
| 6563 | [\\/]* | ?:[\\/]*) |
| 6564 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6565 | ;; |
| 6566 | *) |
| 6567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6568 | for as_dir in $PATH |
| 6569 | do |
| 6570 | IFS=$as_save_IFS |
| 6571 | test -z "$as_dir" && as_dir=. |
| 6572 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6573 | 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] | 6574 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6576 | break 2 |
| 6577 | fi |
| 6578 | done |
| 6579 | done |
| 6580 | IFS=$as_save_IFS |
| 6581 | |
| 6582 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6583 | ;; |
| 6584 | esac |
| 6585 | fi |
| 6586 | FIND=$ac_cv_path_FIND |
| 6587 | if test -n "$FIND"; then |
| 6588 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6589 | echo "${ECHO_T}$FIND" >&6; } |
| 6590 | else |
| 6591 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6592 | echo "${ECHO_T}no" >&6; } |
| 6593 | fi |
| 6594 | |
| 6595 | |
| 6596 | # Extract the first word of "grep", so it can be a program name with args. |
| 6597 | set dummy grep; ac_word=$2 |
| 6598 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6600 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6602 | else |
| 6603 | case $GREP in |
| 6604 | [\\/]* | ?:[\\/]*) |
| 6605 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6606 | ;; |
| 6607 | *) |
| 6608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6609 | for as_dir in $PATH |
| 6610 | do |
| 6611 | IFS=$as_save_IFS |
| 6612 | test -z "$as_dir" && as_dir=. |
| 6613 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6614 | 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] | 6615 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6617 | break 2 |
| 6618 | fi |
| 6619 | done |
| 6620 | done |
| 6621 | IFS=$as_save_IFS |
| 6622 | |
| 6623 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6624 | ;; |
| 6625 | esac |
| 6626 | fi |
| 6627 | GREP=$ac_cv_path_GREP |
| 6628 | if test -n "$GREP"; then |
| 6629 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6630 | echo "${ECHO_T}$GREP" >&6; } |
| 6631 | else |
| 6632 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6633 | echo "${ECHO_T}no" >&6; } |
| 6634 | fi |
| 6635 | |
| 6636 | |
| 6637 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6638 | set dummy mkdir; ac_word=$2 |
| 6639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6641 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6643 | else |
| 6644 | case $MKDIR in |
| 6645 | [\\/]* | ?:[\\/]*) |
| 6646 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6647 | ;; |
| 6648 | *) |
| 6649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6650 | for as_dir in $PATH |
| 6651 | do |
| 6652 | IFS=$as_save_IFS |
| 6653 | test -z "$as_dir" && as_dir=. |
| 6654 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6655 | 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] | 6656 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6658 | break 2 |
| 6659 | fi |
| 6660 | done |
| 6661 | done |
| 6662 | IFS=$as_save_IFS |
| 6663 | |
| 6664 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6665 | ;; |
| 6666 | esac |
| 6667 | fi |
| 6668 | MKDIR=$ac_cv_path_MKDIR |
| 6669 | if test -n "$MKDIR"; then |
| 6670 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6671 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6672 | else |
| 6673 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6674 | echo "${ECHO_T}no" >&6; } |
| 6675 | fi |
| 6676 | |
| 6677 | |
| 6678 | # Extract the first word of "mv", so it can be a program name with args. |
| 6679 | set dummy mv; ac_word=$2 |
| 6680 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6682 | if test "${ac_cv_path_MV+set}" = set; then |
| 6683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6684 | else |
| 6685 | case $MV in |
| 6686 | [\\/]* | ?:[\\/]*) |
| 6687 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6688 | ;; |
| 6689 | *) |
| 6690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6691 | for as_dir in $PATH |
| 6692 | do |
| 6693 | IFS=$as_save_IFS |
| 6694 | test -z "$as_dir" && as_dir=. |
| 6695 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6696 | 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] | 6697 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6699 | break 2 |
| 6700 | fi |
| 6701 | done |
| 6702 | done |
| 6703 | IFS=$as_save_IFS |
| 6704 | |
| 6705 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6706 | ;; |
| 6707 | esac |
| 6708 | fi |
| 6709 | MV=$ac_cv_path_MV |
| 6710 | if test -n "$MV"; then |
| 6711 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6712 | echo "${ECHO_T}$MV" >&6; } |
| 6713 | else |
| 6714 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6715 | echo "${ECHO_T}no" >&6; } |
| 6716 | fi |
| 6717 | |
| 6718 | |
| 6719 | if test -n "$ac_tool_prefix"; then |
| 6720 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6721 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6722 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6724 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6726 | else |
| 6727 | if test -n "$RANLIB"; then |
| 6728 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6729 | else |
| 6730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6731 | for as_dir in $PATH |
| 6732 | do |
| 6733 | IFS=$as_save_IFS |
| 6734 | test -z "$as_dir" && as_dir=. |
| 6735 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6736 | 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] | 6737 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6739 | break 2 |
| 6740 | fi |
| 6741 | done |
| 6742 | done |
| 6743 | IFS=$as_save_IFS |
| 6744 | |
| 6745 | fi |
| 6746 | fi |
| 6747 | RANLIB=$ac_cv_prog_RANLIB |
| 6748 | if test -n "$RANLIB"; then |
| 6749 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6750 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6751 | else |
| 6752 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6753 | echo "${ECHO_T}no" >&6; } |
| 6754 | fi |
| 6755 | |
| 6756 | |
| 6757 | fi |
| 6758 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6759 | ac_ct_RANLIB=$RANLIB |
| 6760 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6761 | set dummy ranlib; ac_word=$2 |
| 6762 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6764 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6766 | else |
| 6767 | if test -n "$ac_ct_RANLIB"; then |
| 6768 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6769 | else |
| 6770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6771 | for as_dir in $PATH |
| 6772 | do |
| 6773 | IFS=$as_save_IFS |
| 6774 | test -z "$as_dir" && as_dir=. |
| 6775 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6776 | 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] | 6777 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6779 | break 2 |
| 6780 | fi |
| 6781 | done |
| 6782 | done |
| 6783 | IFS=$as_save_IFS |
| 6784 | |
| 6785 | fi |
| 6786 | fi |
| 6787 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6788 | if test -n "$ac_ct_RANLIB"; then |
| 6789 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6790 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6791 | else |
| 6792 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6793 | echo "${ECHO_T}no" >&6; } |
| 6794 | fi |
| 6795 | |
| 6796 | if test "x$ac_ct_RANLIB" = x; then |
| 6797 | RANLIB=":" |
| 6798 | else |
| 6799 | case $cross_compiling:$ac_tool_warned in |
| 6800 | yes:) |
| 6801 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6802 | whose name does not start with the host triplet. If you think this |
| 6803 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6804 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6805 | whose name does not start with the host triplet. If you think this |
| 6806 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6807 | ac_tool_warned=yes ;; |
| 6808 | esac |
| 6809 | RANLIB=$ac_ct_RANLIB |
| 6810 | fi |
| 6811 | else |
| 6812 | RANLIB="$ac_cv_prog_RANLIB" |
| 6813 | fi |
| 6814 | |
| 6815 | # Extract the first word of "rm", so it can be a program name with args. |
| 6816 | set dummy rm; ac_word=$2 |
| 6817 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6819 | if test "${ac_cv_path_RM+set}" = set; then |
| 6820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6821 | else |
| 6822 | case $RM in |
| 6823 | [\\/]* | ?:[\\/]*) |
| 6824 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6825 | ;; |
| 6826 | *) |
| 6827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6828 | for as_dir in $PATH |
| 6829 | do |
| 6830 | IFS=$as_save_IFS |
| 6831 | test -z "$as_dir" && as_dir=. |
| 6832 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6833 | 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] | 6834 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6836 | break 2 |
| 6837 | fi |
| 6838 | done |
| 6839 | done |
| 6840 | IFS=$as_save_IFS |
| 6841 | |
| 6842 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6843 | ;; |
| 6844 | esac |
| 6845 | fi |
| 6846 | RM=$ac_cv_path_RM |
| 6847 | if test -n "$RM"; then |
| 6848 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6849 | echo "${ECHO_T}$RM" >&6; } |
| 6850 | else |
| 6851 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6852 | echo "${ECHO_T}no" >&6; } |
| 6853 | fi |
| 6854 | |
| 6855 | |
| 6856 | # Extract the first word of "sed", so it can be a program name with args. |
| 6857 | set dummy sed; ac_word=$2 |
| 6858 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6860 | if test "${ac_cv_path_SED+set}" = set; then |
| 6861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6862 | else |
| 6863 | case $SED in |
| 6864 | [\\/]* | ?:[\\/]*) |
| 6865 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6866 | ;; |
| 6867 | *) |
| 6868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6869 | for as_dir in $PATH |
| 6870 | do |
| 6871 | IFS=$as_save_IFS |
| 6872 | test -z "$as_dir" && as_dir=. |
| 6873 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6874 | 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] | 6875 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 6876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6877 | break 2 |
| 6878 | fi |
| 6879 | done |
| 6880 | done |
| 6881 | IFS=$as_save_IFS |
| 6882 | |
| 6883 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6884 | ;; |
| 6885 | esac |
| 6886 | fi |
| 6887 | SED=$ac_cv_path_SED |
| 6888 | if test -n "$SED"; then |
| 6889 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6890 | echo "${ECHO_T}$SED" >&6; } |
| 6891 | else |
| 6892 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6893 | echo "${ECHO_T}no" >&6; } |
| 6894 | fi |
| 6895 | |
| 6896 | |
| 6897 | # Extract the first word of "tar", so it can be a program name with args. |
| 6898 | set dummy tar; ac_word=$2 |
| 6899 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6900 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6901 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6903 | else |
| 6904 | case $TAR in |
| 6905 | [\\/]* | ?:[\\/]*) |
| 6906 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6907 | ;; |
| 6908 | *) |
| 6909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6910 | for as_dir in $PATH |
| 6911 | do |
| 6912 | IFS=$as_save_IFS |
| 6913 | test -z "$as_dir" && as_dir=. |
| 6914 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6915 | 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] | 6916 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 6917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6918 | break 2 |
| 6919 | fi |
| 6920 | done |
| 6921 | done |
| 6922 | IFS=$as_save_IFS |
| 6923 | |
| 6924 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6925 | ;; |
| 6926 | esac |
| 6927 | fi |
| 6928 | TAR=$ac_cv_path_TAR |
| 6929 | if test -n "$TAR"; then |
| 6930 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6931 | echo "${ECHO_T}$TAR" >&6; } |
| 6932 | else |
| 6933 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6934 | echo "${ECHO_T}no" >&6; } |
| 6935 | fi |
| 6936 | |
| 6937 | |
| 6938 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6939 | set dummy pwd; ac_word=$2 |
| 6940 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6942 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6944 | else |
| 6945 | case $BINPWD in |
| 6946 | [\\/]* | ?:[\\/]*) |
| 6947 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6948 | ;; |
| 6949 | *) |
| 6950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6951 | for as_dir in $PATH |
| 6952 | do |
| 6953 | IFS=$as_save_IFS |
| 6954 | test -z "$as_dir" && as_dir=. |
| 6955 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 6956 | 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] | 6957 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 6958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6959 | break 2 |
| 6960 | fi |
| 6961 | done |
| 6962 | done |
| 6963 | IFS=$as_save_IFS |
| 6964 | |
| 6965 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6966 | ;; |
| 6967 | esac |
| 6968 | fi |
| 6969 | BINPWD=$ac_cv_path_BINPWD |
| 6970 | if test -n "$BINPWD"; then |
| 6971 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6972 | echo "${ECHO_T}$BINPWD" >&6; } |
| 6973 | else |
| 6974 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6975 | echo "${ECHO_T}no" >&6; } |
| 6976 | fi |
| 6977 | |
| 6978 | |
| 6979 | |
| 6980 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6981 | set dummy Graphviz; ac_word=$2 |
| 6982 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6984 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 6985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6986 | else |
| 6987 | case $GRAPHVIZ in |
| 6988 | [\\/]* | ?:[\\/]*) |
| 6989 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6990 | ;; |
| 6991 | *) |
| 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 | f9eb2d8 | 2009-01-22 05:17:59 +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_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 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 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7008 | ;; |
| 7009 | esac |
| 7010 | fi |
| 7011 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7012 | if test -n "$GRAPHVIZ"; then |
| 7013 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7014 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7015 | else |
| 7016 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7017 | echo "${ECHO_T}no" >&6; } |
| 7018 | fi |
| 7019 | |
| 7020 | |
| 7021 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7022 | |
| 7023 | cat >>confdefs.h <<\_ACEOF |
| 7024 | #define HAVE_GRAPHVIZ 1 |
| 7025 | _ACEOF |
| 7026 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7027 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7028 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7029 | fi |
| 7030 | |
| 7031 | cat >>confdefs.h <<_ACEOF |
| 7032 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7033 | _ACEOF |
| 7034 | |
| 7035 | fi |
| 7036 | # Extract the first word of "dot", so it can be a program name with args. |
| 7037 | set dummy dot; ac_word=$2 |
| 7038 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7040 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7042 | else |
| 7043 | case $DOT in |
| 7044 | [\\/]* | ?:[\\/]*) |
| 7045 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7046 | ;; |
| 7047 | *) |
| 7048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7049 | for as_dir in $PATH |
| 7050 | do |
| 7051 | IFS=$as_save_IFS |
| 7052 | test -z "$as_dir" && as_dir=. |
| 7053 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7054 | 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] | 7055 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7056 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7057 | break 2 |
| 7058 | fi |
| 7059 | done |
| 7060 | done |
| 7061 | IFS=$as_save_IFS |
| 7062 | |
| 7063 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7064 | ;; |
| 7065 | esac |
| 7066 | fi |
| 7067 | DOT=$ac_cv_path_DOT |
| 7068 | if test -n "$DOT"; then |
| 7069 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7070 | echo "${ECHO_T}$DOT" >&6; } |
| 7071 | else |
| 7072 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7073 | echo "${ECHO_T}no" >&6; } |
| 7074 | fi |
| 7075 | |
| 7076 | |
| 7077 | if test "$DOT" != "echo dot" ; then |
| 7078 | |
| 7079 | cat >>confdefs.h <<\_ACEOF |
| 7080 | #define HAVE_DOT 1 |
| 7081 | _ACEOF |
| 7082 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7083 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7084 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7085 | fi |
| 7086 | |
| 7087 | cat >>confdefs.h <<_ACEOF |
| 7088 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7089 | _ACEOF |
| 7090 | |
| 7091 | fi |
| 7092 | for ac_prog in gv gsview32 |
| 7093 | do |
| 7094 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7095 | set dummy $ac_prog; ac_word=$2 |
| 7096 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7097 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7098 | if test "${ac_cv_path_GV+set}" = set; then |
| 7099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7100 | else |
| 7101 | case $GV in |
| 7102 | [\\/]* | ?:[\\/]*) |
| 7103 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7104 | ;; |
| 7105 | *) |
| 7106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7107 | for as_dir in $PATH |
| 7108 | do |
| 7109 | IFS=$as_save_IFS |
| 7110 | test -z "$as_dir" && as_dir=. |
| 7111 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7112 | 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] | 7113 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7115 | break 2 |
| 7116 | fi |
| 7117 | done |
| 7118 | done |
| 7119 | IFS=$as_save_IFS |
| 7120 | |
| 7121 | ;; |
| 7122 | esac |
| 7123 | fi |
| 7124 | GV=$ac_cv_path_GV |
| 7125 | if test -n "$GV"; then |
| 7126 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7127 | echo "${ECHO_T}$GV" >&6; } |
| 7128 | else |
| 7129 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7130 | echo "${ECHO_T}no" >&6; } |
| 7131 | fi |
| 7132 | |
| 7133 | |
| 7134 | test -n "$GV" && break |
| 7135 | done |
| 7136 | test -n "$GV" || GV="echo gv" |
| 7137 | |
| 7138 | if test "$GV" != "echo gv" ; then |
| 7139 | |
| 7140 | cat >>confdefs.h <<\_ACEOF |
| 7141 | #define HAVE_GV 1 |
| 7142 | _ACEOF |
| 7143 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7144 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7145 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7146 | fi |
| 7147 | |
| 7148 | cat >>confdefs.h <<_ACEOF |
| 7149 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7150 | _ACEOF |
| 7151 | |
| 7152 | fi |
| 7153 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7154 | set dummy dotty; ac_word=$2 |
| 7155 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7157 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7159 | else |
| 7160 | case $DOTTY in |
| 7161 | [\\/]* | ?:[\\/]*) |
| 7162 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7163 | ;; |
| 7164 | *) |
| 7165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7166 | for as_dir in $PATH |
| 7167 | do |
| 7168 | IFS=$as_save_IFS |
| 7169 | test -z "$as_dir" && as_dir=. |
| 7170 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7171 | 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] | 7172 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7174 | break 2 |
| 7175 | fi |
| 7176 | done |
| 7177 | done |
| 7178 | IFS=$as_save_IFS |
| 7179 | |
| 7180 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7181 | ;; |
| 7182 | esac |
| 7183 | fi |
| 7184 | DOTTY=$ac_cv_path_DOTTY |
| 7185 | if test -n "$DOTTY"; then |
| 7186 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7187 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7188 | else |
| 7189 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7190 | echo "${ECHO_T}no" >&6; } |
| 7191 | fi |
| 7192 | |
| 7193 | |
| 7194 | if test "$DOTTY" != "echo dotty" ; then |
| 7195 | |
| 7196 | cat >>confdefs.h <<\_ACEOF |
| 7197 | #define HAVE_DOTTY 1 |
| 7198 | _ACEOF |
| 7199 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7200 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7201 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7202 | fi |
| 7203 | |
| 7204 | cat >>confdefs.h <<_ACEOF |
| 7205 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7206 | _ACEOF |
| 7207 | |
| 7208 | fi |
| 7209 | |
| 7210 | |
| 7211 | # Extract the first word of "perl", so it can be a program name with args. |
| 7212 | set dummy perl; ac_word=$2 |
| 7213 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7215 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7217 | else |
| 7218 | case $PERL in |
| 7219 | [\\/]* | ?:[\\/]*) |
| 7220 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7221 | ;; |
| 7222 | *) |
| 7223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7224 | for as_dir in $PATH |
| 7225 | do |
| 7226 | IFS=$as_save_IFS |
| 7227 | test -z "$as_dir" && as_dir=. |
| 7228 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7229 | 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] | 7230 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7232 | break 2 |
| 7233 | fi |
| 7234 | done |
| 7235 | done |
| 7236 | IFS=$as_save_IFS |
| 7237 | |
| 7238 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7239 | ;; |
| 7240 | esac |
| 7241 | fi |
| 7242 | PERL=$ac_cv_path_PERL |
| 7243 | if test -n "$PERL"; then |
| 7244 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7245 | echo "${ECHO_T}$PERL" >&6; } |
| 7246 | else |
| 7247 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7248 | echo "${ECHO_T}no" >&6; } |
| 7249 | fi |
| 7250 | |
| 7251 | |
| 7252 | if test "$PERL" != "none"; then |
| 7253 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7254 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7255 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7256 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7257 | echo "${ECHO_T}yes" >&6; } |
| 7258 | else |
| 7259 | PERL=none |
| 7260 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7261 | echo "${ECHO_T}not found" >&6; } |
| 7262 | fi |
| 7263 | fi |
| 7264 | |
| 7265 | |
| 7266 | if test x"$PERL" = xnone; then |
| 7267 | HAVE_PERL=0 |
| 7268 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7269 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7270 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7271 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7272 | else |
| 7273 | HAVE_PERL=1 |
| 7274 | |
| 7275 | fi |
| 7276 | |
| 7277 | # Find a good install program. We prefer a C program (faster), |
| 7278 | # so one script is as good as another. But avoid the broken or |
| 7279 | # incompatible versions: |
| 7280 | # SysV /etc/install, /usr/sbin/install |
| 7281 | # SunOS /usr/etc/install |
| 7282 | # IRIX /sbin/install |
| 7283 | # AIX /bin/install |
| 7284 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7285 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7286 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7287 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7288 | # OS/2's system install, which has a completely different semantic |
| 7289 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7290 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7291 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7292 | if test -z "$INSTALL"; then |
| 7293 | if test "${ac_cv_path_install+set}" = set; then |
| 7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7295 | else |
| 7296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7297 | for as_dir in $PATH |
| 7298 | do |
| 7299 | IFS=$as_save_IFS |
| 7300 | test -z "$as_dir" && as_dir=. |
| 7301 | # Account for people who put trailing slashes in PATH elements. |
| 7302 | case $as_dir/ in |
| 7303 | ./ | .// | /cC/* | \ |
| 7304 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7305 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7306 | /usr/ucb/* ) ;; |
| 7307 | *) |
| 7308 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7309 | # Don't use installbsd from OSF since it installs stuff as root |
| 7310 | # by default. |
| 7311 | for ac_prog in ginstall scoinst install; do |
| 7312 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7313 | 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] | 7314 | if test $ac_prog = install && |
| 7315 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7316 | # AIX install. It has an incompatible calling convention. |
| 7317 | : |
| 7318 | elif test $ac_prog = install && |
| 7319 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7320 | # program-specific install script used by HP pwplus--don't use. |
| 7321 | : |
| 7322 | else |
| 7323 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7324 | break 3 |
| 7325 | fi |
| 7326 | fi |
| 7327 | done |
| 7328 | done |
| 7329 | ;; |
| 7330 | esac |
| 7331 | done |
| 7332 | IFS=$as_save_IFS |
| 7333 | |
| 7334 | |
| 7335 | fi |
| 7336 | if test "${ac_cv_path_install+set}" = set; then |
| 7337 | INSTALL=$ac_cv_path_install |
| 7338 | else |
| 7339 | # As a last resort, use the slow shell script. Don't cache a |
| 7340 | # value for INSTALL within a source directory, because that will |
| 7341 | # break other packages using the cache if that directory is |
| 7342 | # removed, or if the value is a relative name. |
| 7343 | INSTALL=$ac_install_sh |
| 7344 | fi |
| 7345 | fi |
| 7346 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7347 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7348 | |
| 7349 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7350 | # It thinks the first close brace ends the variable substitution. |
| 7351 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7352 | |
| 7353 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7354 | |
| 7355 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7356 | |
| 7357 | |
| 7358 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7359 | set dummy bzip2; ac_word=$2 |
| 7360 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7362 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7364 | else |
| 7365 | case $BZIP2 in |
| 7366 | [\\/]* | ?:[\\/]*) |
| 7367 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7368 | ;; |
| 7369 | *) |
| 7370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7371 | for as_dir in $PATH |
| 7372 | do |
| 7373 | IFS=$as_save_IFS |
| 7374 | test -z "$as_dir" && as_dir=. |
| 7375 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7376 | 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] | 7377 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7379 | break 2 |
| 7380 | fi |
| 7381 | done |
| 7382 | done |
| 7383 | IFS=$as_save_IFS |
| 7384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7385 | ;; |
| 7386 | esac |
| 7387 | fi |
| 7388 | BZIP2=$ac_cv_path_BZIP2 |
| 7389 | if test -n "$BZIP2"; then |
| 7390 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7391 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7392 | else |
| 7393 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7394 | echo "${ECHO_T}no" >&6; } |
| 7395 | fi |
| 7396 | |
| 7397 | |
| 7398 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7399 | set dummy doxygen; ac_word=$2 |
| 7400 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7402 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7404 | else |
| 7405 | case $DOXYGEN in |
| 7406 | [\\/]* | ?:[\\/]*) |
| 7407 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7408 | ;; |
| 7409 | *) |
| 7410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7411 | for as_dir in $PATH |
| 7412 | do |
| 7413 | IFS=$as_save_IFS |
| 7414 | test -z "$as_dir" && as_dir=. |
| 7415 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7416 | 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] | 7417 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7418 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7419 | break 2 |
| 7420 | fi |
| 7421 | done |
| 7422 | done |
| 7423 | IFS=$as_save_IFS |
| 7424 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7425 | ;; |
| 7426 | esac |
| 7427 | fi |
| 7428 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7429 | if test -n "$DOXYGEN"; then |
| 7430 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7431 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7432 | else |
| 7433 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7434 | echo "${ECHO_T}no" >&6; } |
| 7435 | fi |
| 7436 | |
| 7437 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7438 | # Extract the first word of "groff", so it can be a program name with args. |
| 7439 | set dummy groff; ac_word=$2 |
| 7440 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7442 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7444 | else |
| 7445 | case $GROFF in |
| 7446 | [\\/]* | ?:[\\/]*) |
| 7447 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7448 | ;; |
| 7449 | *) |
| 7450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7451 | for as_dir in $PATH |
| 7452 | do |
| 7453 | IFS=$as_save_IFS |
| 7454 | test -z "$as_dir" && as_dir=. |
| 7455 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7456 | 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] | 7457 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7459 | break 2 |
| 7460 | fi |
| 7461 | done |
| 7462 | done |
| 7463 | IFS=$as_save_IFS |
| 7464 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7465 | ;; |
| 7466 | esac |
| 7467 | fi |
| 7468 | GROFF=$ac_cv_path_GROFF |
| 7469 | if test -n "$GROFF"; then |
| 7470 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7471 | echo "${ECHO_T}$GROFF" >&6; } |
| 7472 | else |
| 7473 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7474 | echo "${ECHO_T}no" >&6; } |
| 7475 | fi |
| 7476 | |
| 7477 | |
| 7478 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7479 | set dummy gzip; ac_word=$2 |
| 7480 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7482 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7484 | else |
| 7485 | case $GZIP in |
| 7486 | [\\/]* | ?:[\\/]*) |
| 7487 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7488 | ;; |
| 7489 | *) |
| 7490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7491 | for as_dir in $PATH |
| 7492 | do |
| 7493 | IFS=$as_save_IFS |
| 7494 | test -z "$as_dir" && as_dir=. |
| 7495 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7496 | 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] | 7497 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7499 | break 2 |
| 7500 | fi |
| 7501 | done |
| 7502 | done |
| 7503 | IFS=$as_save_IFS |
| 7504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7505 | ;; |
| 7506 | esac |
| 7507 | fi |
| 7508 | GZIP=$ac_cv_path_GZIP |
| 7509 | if test -n "$GZIP"; then |
| 7510 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7511 | echo "${ECHO_T}$GZIP" >&6; } |
| 7512 | else |
| 7513 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7514 | echo "${ECHO_T}no" >&6; } |
| 7515 | fi |
| 7516 | |
| 7517 | |
| 7518 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7519 | set dummy pod2html; ac_word=$2 |
| 7520 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7522 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7524 | else |
| 7525 | case $POD2HTML in |
| 7526 | [\\/]* | ?:[\\/]*) |
| 7527 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7528 | ;; |
| 7529 | *) |
| 7530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7531 | for as_dir in $PATH |
| 7532 | do |
| 7533 | IFS=$as_save_IFS |
| 7534 | test -z "$as_dir" && as_dir=. |
| 7535 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7536 | 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] | 7537 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7539 | break 2 |
| 7540 | fi |
| 7541 | done |
| 7542 | done |
| 7543 | IFS=$as_save_IFS |
| 7544 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7545 | ;; |
| 7546 | esac |
| 7547 | fi |
| 7548 | POD2HTML=$ac_cv_path_POD2HTML |
| 7549 | if test -n "$POD2HTML"; then |
| 7550 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7551 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7552 | else |
| 7553 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7554 | echo "${ECHO_T}no" >&6; } |
| 7555 | fi |
| 7556 | |
| 7557 | |
| 7558 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7559 | set dummy pod2man; ac_word=$2 |
| 7560 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7562 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7564 | else |
| 7565 | case $POD2MAN in |
| 7566 | [\\/]* | ?:[\\/]*) |
| 7567 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7568 | ;; |
| 7569 | *) |
| 7570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7571 | for as_dir in $PATH |
| 7572 | do |
| 7573 | IFS=$as_save_IFS |
| 7574 | test -z "$as_dir" && as_dir=. |
| 7575 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7576 | 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] | 7577 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7579 | break 2 |
| 7580 | fi |
| 7581 | done |
| 7582 | done |
| 7583 | IFS=$as_save_IFS |
| 7584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7585 | ;; |
| 7586 | esac |
| 7587 | fi |
| 7588 | POD2MAN=$ac_cv_path_POD2MAN |
| 7589 | if test -n "$POD2MAN"; then |
| 7590 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7591 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7592 | else |
| 7593 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7594 | echo "${ECHO_T}no" >&6; } |
| 7595 | fi |
| 7596 | |
| 7597 | |
| 7598 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7599 | set dummy runtest; ac_word=$2 |
| 7600 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7602 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7604 | else |
| 7605 | case $RUNTEST in |
| 7606 | [\\/]* | ?:[\\/]*) |
| 7607 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7608 | ;; |
| 7609 | *) |
| 7610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7611 | for as_dir in $PATH |
| 7612 | do |
| 7613 | IFS=$as_save_IFS |
| 7614 | test -z "$as_dir" && as_dir=. |
| 7615 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7616 | 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] | 7617 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7619 | break 2 |
| 7620 | fi |
| 7621 | done |
| 7622 | done |
| 7623 | IFS=$as_save_IFS |
| 7624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7625 | ;; |
| 7626 | esac |
| 7627 | fi |
| 7628 | RUNTEST=$ac_cv_path_RUNTEST |
| 7629 | if test -n "$RUNTEST"; then |
| 7630 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7631 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7632 | else |
| 7633 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7634 | echo "${ECHO_T}no" >&6; } |
| 7635 | fi |
| 7636 | |
| 7637 | |
| 7638 | |
| 7639 | no_itcl=true |
| 7640 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7641 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7642 | |
| 7643 | # Check whether --with-tclinclude was given. |
| 7644 | if test "${with_tclinclude+set}" = set; then |
| 7645 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7646 | else |
| 7647 | with_tclinclude='' |
| 7648 | fi |
| 7649 | |
| 7650 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7652 | else |
| 7653 | |
| 7654 | if test x"${with_tclinclude}" != x ; then |
| 7655 | if test -f ${with_tclinclude}/tclsh ; then |
| 7656 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7657 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7658 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7659 | else |
| 7660 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7661 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7662 | { (exit 1); exit 1; }; } |
| 7663 | fi |
| 7664 | fi |
| 7665 | |
| 7666 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7667 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7668 | echo "${ECHO_T}none" >&6; } |
| 7669 | 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 |
| 7670 | do |
| 7671 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7672 | set dummy $ac_prog; ac_word=$2 |
| 7673 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7675 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7677 | else |
| 7678 | case $TCLSH in |
| 7679 | [\\/]* | ?:[\\/]*) |
| 7680 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7681 | ;; |
| 7682 | *) |
| 7683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7684 | for as_dir in $PATH |
| 7685 | do |
| 7686 | IFS=$as_save_IFS |
| 7687 | test -z "$as_dir" && as_dir=. |
| 7688 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7689 | 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] | 7690 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7692 | break 2 |
| 7693 | fi |
| 7694 | done |
| 7695 | done |
| 7696 | IFS=$as_save_IFS |
| 7697 | |
| 7698 | ;; |
| 7699 | esac |
| 7700 | fi |
| 7701 | TCLSH=$ac_cv_path_TCLSH |
| 7702 | if test -n "$TCLSH"; then |
| 7703 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7704 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7705 | else |
| 7706 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7707 | echo "${ECHO_T}no" >&6; } |
| 7708 | fi |
| 7709 | |
| 7710 | |
| 7711 | test -n "$TCLSH" && break |
| 7712 | done |
| 7713 | |
| 7714 | if test x"${TCLSH}" = x ; then |
| 7715 | ac_cv_path_tclsh=''; |
| 7716 | else |
| 7717 | ac_cv_path_tclsh="${TCLSH}"; |
| 7718 | fi |
| 7719 | else |
| 7720 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7721 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7722 | TCLSH="${ac_cv_path_tclsh}" |
| 7723 | |
| 7724 | fi |
| 7725 | |
| 7726 | fi |
| 7727 | |
| 7728 | # Extract the first word of "zip", so it can be a program name with args. |
| 7729 | set dummy zip; ac_word=$2 |
| 7730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7732 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7734 | else |
| 7735 | case $ZIP in |
| 7736 | [\\/]* | ?:[\\/]*) |
| 7737 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7738 | ;; |
| 7739 | *) |
| 7740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7741 | for as_dir in $PATH |
| 7742 | do |
| 7743 | IFS=$as_save_IFS |
| 7744 | test -z "$as_dir" && as_dir=. |
| 7745 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7746 | 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] | 7747 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7749 | break 2 |
| 7750 | fi |
| 7751 | done |
| 7752 | done |
| 7753 | IFS=$as_save_IFS |
| 7754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7755 | ;; |
| 7756 | esac |
| 7757 | fi |
| 7758 | ZIP=$ac_cv_path_ZIP |
| 7759 | if test -n "$ZIP"; then |
| 7760 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7761 | echo "${ECHO_T}$ZIP" >&6; } |
| 7762 | else |
| 7763 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7764 | echo "${ECHO_T}no" >&6; } |
| 7765 | fi |
| 7766 | |
| 7767 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7768 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7769 | do |
| 7770 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7771 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7774 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 7775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7776 | else |
| 7777 | case $OCAMLC in |
| 7778 | [\\/]* | ?:[\\/]*) |
| 7779 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7780 | ;; |
| 7781 | *) |
| 7782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7783 | for as_dir in $PATH |
| 7784 | do |
| 7785 | IFS=$as_save_IFS |
| 7786 | test -z "$as_dir" && as_dir=. |
| 7787 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7788 | 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] | 7789 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 7790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7791 | break 2 |
| 7792 | fi |
| 7793 | done |
| 7794 | done |
| 7795 | IFS=$as_save_IFS |
| 7796 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7797 | ;; |
| 7798 | esac |
| 7799 | fi |
| 7800 | OCAMLC=$ac_cv_path_OCAMLC |
| 7801 | if test -n "$OCAMLC"; then |
| 7802 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 7803 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 7804 | else |
| 7805 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7806 | echo "${ECHO_T}no" >&6; } |
| 7807 | fi |
| 7808 | |
| 7809 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7810 | test -n "$OCAMLC" && break |
| 7811 | done |
| 7812 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7813 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7814 | do |
| 7815 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7816 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7817 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7819 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 7820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7821 | else |
| 7822 | case $OCAMLOPT in |
| 7823 | [\\/]* | ?:[\\/]*) |
| 7824 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7825 | ;; |
| 7826 | *) |
| 7827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7828 | for as_dir in $PATH |
| 7829 | do |
| 7830 | IFS=$as_save_IFS |
| 7831 | test -z "$as_dir" && as_dir=. |
| 7832 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7833 | 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] | 7834 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 7835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7836 | break 2 |
| 7837 | fi |
| 7838 | done |
| 7839 | done |
| 7840 | IFS=$as_save_IFS |
| 7841 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7842 | ;; |
| 7843 | esac |
| 7844 | fi |
| 7845 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7846 | if test -n "$OCAMLOPT"; then |
| 7847 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 7848 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 7849 | else |
| 7850 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7851 | echo "${ECHO_T}no" >&6; } |
| 7852 | fi |
| 7853 | |
| 7854 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7855 | test -n "$OCAMLOPT" && break |
| 7856 | done |
| 7857 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7858 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7859 | do |
| 7860 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7861 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7862 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7864 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 7865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7866 | else |
| 7867 | case $OCAMLDEP in |
| 7868 | [\\/]* | ?:[\\/]*) |
| 7869 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7870 | ;; |
| 7871 | *) |
| 7872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7873 | for as_dir in $PATH |
| 7874 | do |
| 7875 | IFS=$as_save_IFS |
| 7876 | test -z "$as_dir" && as_dir=. |
| 7877 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7878 | 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] | 7879 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 7880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7881 | break 2 |
| 7882 | fi |
| 7883 | done |
| 7884 | done |
| 7885 | IFS=$as_save_IFS |
| 7886 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7887 | ;; |
| 7888 | esac |
| 7889 | fi |
| 7890 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7891 | if test -n "$OCAMLDEP"; then |
| 7892 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 7893 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 7894 | else |
| 7895 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7896 | echo "${ECHO_T}no" >&6; } |
| 7897 | fi |
| 7898 | |
| 7899 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7900 | test -n "$OCAMLDEP" && break |
| 7901 | done |
| 7902 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7903 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7904 | do |
| 7905 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7906 | set dummy $ac_prog; ac_word=$2 |
| 7907 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7909 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 7910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7911 | else |
| 7912 | case $OCAMLDOC in |
| 7913 | [\\/]* | ?:[\\/]*) |
| 7914 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 7915 | ;; |
| 7916 | *) |
| 7917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7918 | for as_dir in $PATH |
| 7919 | do |
| 7920 | IFS=$as_save_IFS |
| 7921 | test -z "$as_dir" && as_dir=. |
| 7922 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7924 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 7925 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7926 | break 2 |
| 7927 | fi |
| 7928 | done |
| 7929 | done |
| 7930 | IFS=$as_save_IFS |
| 7931 | |
| 7932 | ;; |
| 7933 | esac |
| 7934 | fi |
| 7935 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 7936 | if test -n "$OCAMLDOC"; then |
| 7937 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 7938 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 7939 | else |
| 7940 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7941 | echo "${ECHO_T}no" >&6; } |
| 7942 | fi |
| 7943 | |
| 7944 | |
| 7945 | test -n "$OCAMLDOC" && break |
| 7946 | done |
| 7947 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7948 | for ac_prog in gas as |
| 7949 | do |
| 7950 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7951 | set dummy $ac_prog; ac_word=$2 |
| 7952 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7954 | if test "${ac_cv_path_GAS+set}" = set; then |
| 7955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7956 | else |
| 7957 | case $GAS in |
| 7958 | [\\/]* | ?:[\\/]*) |
| 7959 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 7960 | ;; |
| 7961 | *) |
| 7962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7963 | for as_dir in $PATH |
| 7964 | do |
| 7965 | IFS=$as_save_IFS |
| 7966 | test -z "$as_dir" && as_dir=. |
| 7967 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 7968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7969 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 7970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7971 | break 2 |
| 7972 | fi |
| 7973 | done |
| 7974 | done |
| 7975 | IFS=$as_save_IFS |
| 7976 | |
| 7977 | ;; |
| 7978 | esac |
| 7979 | fi |
| 7980 | GAS=$ac_cv_path_GAS |
| 7981 | if test -n "$GAS"; then |
| 7982 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 7983 | echo "${ECHO_T}$GAS" >&6; } |
| 7984 | else |
| 7985 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7986 | echo "${ECHO_T}no" >&6; } |
| 7987 | fi |
| 7988 | |
| 7989 | |
| 7990 | test -n "$GAS" && break |
| 7991 | done |
| 7992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7993 | |
| 7994 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7995 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7996 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7998 | else |
| 7999 | ac_ext=c |
| 8000 | ac_cpp='$CPP $CPPFLAGS' |
| 8001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8004 | |
| 8005 | oldcflags="$CFLAGS" |
| 8006 | CFLAGS="$CFLAGS -Wl,-R." |
| 8007 | cat >conftest.$ac_ext <<_ACEOF |
| 8008 | /* confdefs.h. */ |
| 8009 | _ACEOF |
| 8010 | cat confdefs.h >>conftest.$ac_ext |
| 8011 | cat >>conftest.$ac_ext <<_ACEOF |
| 8012 | /* end confdefs.h. */ |
| 8013 | |
| 8014 | int |
| 8015 | main () |
| 8016 | { |
| 8017 | int main() { return 0; } |
| 8018 | ; |
| 8019 | return 0; |
| 8020 | } |
| 8021 | _ACEOF |
| 8022 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8023 | if { (ac_try="$ac_link" |
| 8024 | case "(($ac_try" in |
| 8025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8026 | *) ac_try_echo=$ac_try;; |
| 8027 | esac |
| 8028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8029 | (eval "$ac_link") 2>conftest.er1 |
| 8030 | ac_status=$? |
| 8031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8032 | rm -f conftest.er1 |
| 8033 | cat conftest.err >&5 |
| 8034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8035 | (exit $ac_status); } && |
| 8036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8037 | { (case "(($ac_try" in |
| 8038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8039 | *) ac_try_echo=$ac_try;; |
| 8040 | esac |
| 8041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8042 | (eval "$ac_try") 2>&5 |
| 8043 | ac_status=$? |
| 8044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8045 | (exit $ac_status); }; } && |
| 8046 | { ac_try='test -s conftest$ac_exeext' |
| 8047 | { (case "(($ac_try" in |
| 8048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8049 | *) ac_try_echo=$ac_try;; |
| 8050 | esac |
| 8051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8052 | (eval "$ac_try") 2>&5 |
| 8053 | ac_status=$? |
| 8054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8055 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8056 | llvm_cv_link_use_r=yes |
| 8057 | else |
| 8058 | echo "$as_me: failed program was:" >&5 |
| 8059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8060 | |
| 8061 | llvm_cv_link_use_r=no |
| 8062 | fi |
| 8063 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8064 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8065 | conftest$ac_exeext conftest.$ac_ext |
| 8066 | CFLAGS="$oldcflags" |
| 8067 | ac_ext=c |
| 8068 | ac_cpp='$CPP $CPPFLAGS' |
| 8069 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8070 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8071 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8072 | |
| 8073 | |
| 8074 | fi |
| 8075 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8076 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8077 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8078 | |
| 8079 | cat >>confdefs.h <<\_ACEOF |
| 8080 | #define HAVE_LINK_R 1 |
| 8081 | _ACEOF |
| 8082 | |
| 8083 | fi |
| 8084 | |
| 8085 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8086 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8087 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8088 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8090 | else |
| 8091 | ac_ext=c |
| 8092 | ac_cpp='$CPP $CPPFLAGS' |
| 8093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8096 | |
| 8097 | oldcflags="$CFLAGS" |
| 8098 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
| 8099 | cat >conftest.$ac_ext <<_ACEOF |
| 8100 | /* confdefs.h. */ |
| 8101 | _ACEOF |
| 8102 | cat confdefs.h >>conftest.$ac_ext |
| 8103 | cat >>conftest.$ac_ext <<_ACEOF |
| 8104 | /* end confdefs.h. */ |
| 8105 | |
| 8106 | int |
| 8107 | main () |
| 8108 | { |
| 8109 | int main() { return 0; } |
| 8110 | ; |
| 8111 | return 0; |
| 8112 | } |
| 8113 | _ACEOF |
| 8114 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8115 | if { (ac_try="$ac_link" |
| 8116 | case "(($ac_try" in |
| 8117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8118 | *) ac_try_echo=$ac_try;; |
| 8119 | esac |
| 8120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8121 | (eval "$ac_link") 2>conftest.er1 |
| 8122 | ac_status=$? |
| 8123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8124 | rm -f conftest.er1 |
| 8125 | cat conftest.err >&5 |
| 8126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8127 | (exit $ac_status); } && |
| 8128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8129 | { (case "(($ac_try" in |
| 8130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8131 | *) ac_try_echo=$ac_try;; |
| 8132 | esac |
| 8133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8134 | (eval "$ac_try") 2>&5 |
| 8135 | ac_status=$? |
| 8136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8137 | (exit $ac_status); }; } && |
| 8138 | { ac_try='test -s conftest$ac_exeext' |
| 8139 | { (case "(($ac_try" in |
| 8140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8141 | *) ac_try_echo=$ac_try;; |
| 8142 | esac |
| 8143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8144 | (eval "$ac_try") 2>&5 |
| 8145 | ac_status=$? |
| 8146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8147 | (exit $ac_status); }; }; then |
| 8148 | llvm_cv_link_use_export_dynamic=yes |
| 8149 | else |
| 8150 | echo "$as_me: failed program was:" >&5 |
| 8151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8152 | |
| 8153 | llvm_cv_link_use_export_dynamic=no |
| 8154 | fi |
| 8155 | |
| 8156 | rm -f core conftest.err conftest.$ac_objext \ |
| 8157 | conftest$ac_exeext conftest.$ac_ext |
| 8158 | CFLAGS="$oldcflags" |
| 8159 | ac_ext=c |
| 8160 | ac_cpp='$CPP $CPPFLAGS' |
| 8161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8164 | |
| 8165 | |
| 8166 | fi |
| 8167 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8168 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
| 8169 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8170 | |
| 8171 | cat >>confdefs.h <<\_ACEOF |
| 8172 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8173 | _ACEOF |
| 8174 | |
| 8175 | fi |
| 8176 | |
| 8177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8178 | |
| 8179 | |
| 8180 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8181 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8182 | if test "${ac_cv_c_const+set}" = set; then |
| 8183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8184 | else |
| 8185 | cat >conftest.$ac_ext <<_ACEOF |
| 8186 | /* confdefs.h. */ |
| 8187 | _ACEOF |
| 8188 | cat confdefs.h >>conftest.$ac_ext |
| 8189 | cat >>conftest.$ac_ext <<_ACEOF |
| 8190 | /* end confdefs.h. */ |
| 8191 | |
| 8192 | int |
| 8193 | main () |
| 8194 | { |
| 8195 | /* FIXME: Include the comments suggested by Paul. */ |
| 8196 | #ifndef __cplusplus |
| 8197 | /* Ultrix mips cc rejects this. */ |
| 8198 | typedef int charset[2]; |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8199 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8200 | /* SunOS 4.1.1 cc rejects this. */ |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8201 | char const *const *ccp; |
| 8202 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8203 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8204 | struct point {int x, y;}; |
| 8205 | static struct point const zero = {0,0}; |
| 8206 | /* AIX XL C 1.02.0.0 rejects this. |
| 8207 | It does not let you subtract one const X* pointer from another in |
| 8208 | an arm of an if-expression whose if-part is not a constant |
| 8209 | expression */ |
| 8210 | const char *g = "string"; |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8211 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8212 | /* HPUX 7.0 cc rejects these. */ |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8213 | ++ccp; |
| 8214 | p = (char**) ccp; |
| 8215 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8216 | { /* SCO 3.2v4 cc rejects this. */ |
| 8217 | char *t; |
| 8218 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8219 | |
| 8220 | *t++ = 0; |
| 8221 | if (s) return 0; |
| 8222 | } |
| 8223 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8224 | int x[] = {25, 17}; |
| 8225 | const int *foo = &x[0]; |
| 8226 | ++foo; |
| 8227 | } |
| 8228 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8229 | typedef const int *iptr; |
| 8230 | iptr p = 0; |
| 8231 | ++p; |
| 8232 | } |
| 8233 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8234 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8235 | struct s { int j; const int *ap[3]; }; |
| 8236 | struct s *b; b->j = 5; |
| 8237 | } |
| 8238 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8239 | const int foo = 10; |
| 8240 | if (!foo) return 0; |
| 8241 | } |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8242 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8243 | #endif |
| 8244 | |
| 8245 | ; |
| 8246 | return 0; |
| 8247 | } |
| 8248 | _ACEOF |
| 8249 | rm -f conftest.$ac_objext |
| 8250 | if { (ac_try="$ac_compile" |
| 8251 | case "(($ac_try" in |
| 8252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8253 | *) ac_try_echo=$ac_try;; |
| 8254 | esac |
| 8255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8256 | (eval "$ac_compile") 2>conftest.er1 |
| 8257 | ac_status=$? |
| 8258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8259 | rm -f conftest.er1 |
| 8260 | cat conftest.err >&5 |
| 8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8262 | (exit $ac_status); } && |
| 8263 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8264 | { (case "(($ac_try" in |
| 8265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8266 | *) ac_try_echo=$ac_try;; |
| 8267 | esac |
| 8268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8269 | (eval "$ac_try") 2>&5 |
| 8270 | ac_status=$? |
| 8271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8272 | (exit $ac_status); }; } && |
| 8273 | { ac_try='test -s conftest.$ac_objext' |
| 8274 | { (case "(($ac_try" in |
| 8275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8276 | *) ac_try_echo=$ac_try;; |
| 8277 | esac |
| 8278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8279 | (eval "$ac_try") 2>&5 |
| 8280 | ac_status=$? |
| 8281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8282 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8283 | ac_cv_c_const=yes |
| 8284 | else |
| 8285 | echo "$as_me: failed program was:" >&5 |
| 8286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8287 | |
| 8288 | ac_cv_c_const=no |
| 8289 | fi |
| 8290 | |
| 8291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8292 | fi |
| 8293 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8294 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8295 | if test $ac_cv_c_const = no; then |
| 8296 | |
| 8297 | cat >>confdefs.h <<\_ACEOF |
| 8298 | #define const |
| 8299 | _ACEOF |
| 8300 | |
| 8301 | fi |
| 8302 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8303 | |
| 8304 | |
| 8305 | |
| 8306 | |
| 8307 | |
| 8308 | ac_header_dirent=no |
| 8309 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8310 | 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] | 8311 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8312 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8313 | 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] | 8314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8315 | else |
| 8316 | cat >conftest.$ac_ext <<_ACEOF |
| 8317 | /* confdefs.h. */ |
| 8318 | _ACEOF |
| 8319 | cat confdefs.h >>conftest.$ac_ext |
| 8320 | cat >>conftest.$ac_ext <<_ACEOF |
| 8321 | /* end confdefs.h. */ |
| 8322 | #include <sys/types.h> |
| 8323 | #include <$ac_hdr> |
| 8324 | |
| 8325 | int |
| 8326 | main () |
| 8327 | { |
| 8328 | if ((DIR *) 0) |
| 8329 | return 0; |
| 8330 | ; |
| 8331 | return 0; |
| 8332 | } |
| 8333 | _ACEOF |
| 8334 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8335 | if { (ac_try="$ac_compile" |
| 8336 | case "(($ac_try" in |
| 8337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8338 | *) ac_try_echo=$ac_try;; |
| 8339 | esac |
| 8340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8341 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8342 | ac_status=$? |
| 8343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8344 | rm -f conftest.er1 |
| 8345 | cat conftest.err >&5 |
| 8346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8347 | (exit $ac_status); } && |
| 8348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8349 | { (case "(($ac_try" in |
| 8350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8351 | *) ac_try_echo=$ac_try;; |
| 8352 | esac |
| 8353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8354 | (eval "$ac_try") 2>&5 |
| 8355 | ac_status=$? |
| 8356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8357 | (exit $ac_status); }; } && |
| 8358 | { ac_try='test -s conftest.$ac_objext' |
| 8359 | { (case "(($ac_try" in |
| 8360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8361 | *) ac_try_echo=$ac_try;; |
| 8362 | esac |
| 8363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8364 | (eval "$ac_try") 2>&5 |
| 8365 | ac_status=$? |
| 8366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8367 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8368 | eval "$as_ac_Header=yes" |
| 8369 | else |
| 8370 | echo "$as_me: failed program was:" >&5 |
| 8371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8373 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8374 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8375 | |
| 8376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8377 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8378 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8379 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8380 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8382 | cat >>confdefs.h <<_ACEOF |
| 8383 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8384 | _ACEOF |
| 8385 | |
| 8386 | ac_header_dirent=$ac_hdr; break |
| 8387 | fi |
| 8388 | |
| 8389 | done |
| 8390 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8391 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8392 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8393 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8394 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8396 | else |
| 8397 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8398 | cat >conftest.$ac_ext <<_ACEOF |
| 8399 | /* confdefs.h. */ |
| 8400 | _ACEOF |
| 8401 | cat confdefs.h >>conftest.$ac_ext |
| 8402 | cat >>conftest.$ac_ext <<_ACEOF |
| 8403 | /* end confdefs.h. */ |
| 8404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8405 | /* Override any GCC internal prototype to avoid an error. |
| 8406 | Use char because int might match the return type of a GCC |
| 8407 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8408 | #ifdef __cplusplus |
| 8409 | extern "C" |
| 8410 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8411 | char opendir (); |
| 8412 | int |
| 8413 | main () |
| 8414 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8415 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8416 | ; |
| 8417 | return 0; |
| 8418 | } |
| 8419 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8420 | for ac_lib in '' dir; do |
| 8421 | if test -z "$ac_lib"; then |
| 8422 | ac_res="none required" |
| 8423 | else |
| 8424 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8425 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8426 | fi |
| 8427 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8428 | if { (ac_try="$ac_link" |
| 8429 | case "(($ac_try" in |
| 8430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8431 | *) ac_try_echo=$ac_try;; |
| 8432 | esac |
| 8433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8434 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8435 | ac_status=$? |
| 8436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8437 | rm -f conftest.er1 |
| 8438 | cat conftest.err >&5 |
| 8439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8440 | (exit $ac_status); } && |
| 8441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8442 | { (case "(($ac_try" in |
| 8443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8444 | *) ac_try_echo=$ac_try;; |
| 8445 | esac |
| 8446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8447 | (eval "$ac_try") 2>&5 |
| 8448 | ac_status=$? |
| 8449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8450 | (exit $ac_status); }; } && |
| 8451 | { ac_try='test -s conftest$ac_exeext' |
| 8452 | { (case "(($ac_try" in |
| 8453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8454 | *) ac_try_echo=$ac_try;; |
| 8455 | esac |
| 8456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8457 | (eval "$ac_try") 2>&5 |
| 8458 | ac_status=$? |
| 8459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8460 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8461 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8462 | else |
| 8463 | echo "$as_me: failed program was:" >&5 |
| 8464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8465 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8466 | |
| 8467 | fi |
| 8468 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8469 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8470 | conftest$ac_exeext |
| 8471 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8472 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8473 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8474 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8475 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8476 | : |
| 8477 | else |
| 8478 | ac_cv_search_opendir=no |
| 8479 | fi |
| 8480 | rm conftest.$ac_ext |
| 8481 | LIBS=$ac_func_search_save_LIBS |
| 8482 | fi |
| 8483 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8484 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8485 | ac_res=$ac_cv_search_opendir |
| 8486 | if test "$ac_res" != no; then |
| 8487 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8489 | fi |
| 8490 | |
| 8491 | else |
| 8492 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8493 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8494 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8496 | else |
| 8497 | ac_func_search_save_LIBS=$LIBS |
| 8498 | cat >conftest.$ac_ext <<_ACEOF |
| 8499 | /* confdefs.h. */ |
| 8500 | _ACEOF |
| 8501 | cat confdefs.h >>conftest.$ac_ext |
| 8502 | cat >>conftest.$ac_ext <<_ACEOF |
| 8503 | /* end confdefs.h. */ |
| 8504 | |
| 8505 | /* Override any GCC internal prototype to avoid an error. |
| 8506 | Use char because int might match the return type of a GCC |
| 8507 | builtin and then its argument prototype would still apply. */ |
| 8508 | #ifdef __cplusplus |
| 8509 | extern "C" |
| 8510 | #endif |
| 8511 | char opendir (); |
| 8512 | int |
| 8513 | main () |
| 8514 | { |
| 8515 | return opendir (); |
| 8516 | ; |
| 8517 | return 0; |
| 8518 | } |
| 8519 | _ACEOF |
| 8520 | for ac_lib in '' x; do |
| 8521 | if test -z "$ac_lib"; then |
| 8522 | ac_res="none required" |
| 8523 | else |
| 8524 | ac_res=-l$ac_lib |
| 8525 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8526 | fi |
| 8527 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8528 | if { (ac_try="$ac_link" |
| 8529 | case "(($ac_try" in |
| 8530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8531 | *) ac_try_echo=$ac_try;; |
| 8532 | esac |
| 8533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8534 | (eval "$ac_link") 2>conftest.er1 |
| 8535 | ac_status=$? |
| 8536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8537 | rm -f conftest.er1 |
| 8538 | cat conftest.err >&5 |
| 8539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8540 | (exit $ac_status); } && |
| 8541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8542 | { (case "(($ac_try" in |
| 8543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8544 | *) ac_try_echo=$ac_try;; |
| 8545 | esac |
| 8546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8547 | (eval "$ac_try") 2>&5 |
| 8548 | ac_status=$? |
| 8549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8550 | (exit $ac_status); }; } && |
| 8551 | { ac_try='test -s conftest$ac_exeext' |
| 8552 | { (case "(($ac_try" in |
| 8553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8554 | *) ac_try_echo=$ac_try;; |
| 8555 | esac |
| 8556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8557 | (eval "$ac_try") 2>&5 |
| 8558 | ac_status=$? |
| 8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8560 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8561 | ac_cv_search_opendir=$ac_res |
| 8562 | else |
| 8563 | echo "$as_me: failed program was:" >&5 |
| 8564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8565 | |
| 8566 | |
| 8567 | fi |
| 8568 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8569 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8570 | conftest$ac_exeext |
| 8571 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8572 | break |
| 8573 | fi |
| 8574 | done |
| 8575 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8576 | : |
| 8577 | else |
| 8578 | ac_cv_search_opendir=no |
| 8579 | fi |
| 8580 | rm conftest.$ac_ext |
| 8581 | LIBS=$ac_func_search_save_LIBS |
| 8582 | fi |
| 8583 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8584 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8585 | ac_res=$ac_cv_search_opendir |
| 8586 | if test "$ac_res" != no; then |
| 8587 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8588 | |
| 8589 | fi |
| 8590 | |
| 8591 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8592 | |
| 8593 | |
| 8594 | for ac_header in dlfcn.h |
| 8595 | do |
| 8596 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8597 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8598 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8600 | 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] | 8601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8602 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8603 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8604 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8605 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8606 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8607 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8608 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8609 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8610 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8611 | /* confdefs.h. */ |
| 8612 | _ACEOF |
| 8613 | cat confdefs.h >>conftest.$ac_ext |
| 8614 | cat >>conftest.$ac_ext <<_ACEOF |
| 8615 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8616 | $ac_includes_default |
| 8617 | #include <$ac_header> |
| 8618 | _ACEOF |
| 8619 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8620 | if { (ac_try="$ac_compile" |
| 8621 | case "(($ac_try" in |
| 8622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8623 | *) ac_try_echo=$ac_try;; |
| 8624 | esac |
| 8625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8626 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8627 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8629 | rm -f conftest.er1 |
| 8630 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8632 | (exit $ac_status); } && |
| 8633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8634 | { (case "(($ac_try" in |
| 8635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8636 | *) ac_try_echo=$ac_try;; |
| 8637 | esac |
| 8638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8639 | (eval "$ac_try") 2>&5 |
| 8640 | ac_status=$? |
| 8641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8642 | (exit $ac_status); }; } && |
| 8643 | { ac_try='test -s conftest.$ac_objext' |
| 8644 | { (case "(($ac_try" in |
| 8645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8646 | *) ac_try_echo=$ac_try;; |
| 8647 | esac |
| 8648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8649 | (eval "$ac_try") 2>&5 |
| 8650 | ac_status=$? |
| 8651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8652 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8653 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8654 | else |
| 8655 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8657 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8658 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8659 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8660 | |
| 8661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8662 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8663 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8664 | |
| 8665 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8666 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8667 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8668 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8669 | /* confdefs.h. */ |
| 8670 | _ACEOF |
| 8671 | cat confdefs.h >>conftest.$ac_ext |
| 8672 | cat >>conftest.$ac_ext <<_ACEOF |
| 8673 | /* end confdefs.h. */ |
| 8674 | #include <$ac_header> |
| 8675 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8676 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8677 | case "(($ac_try" in |
| 8678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8679 | *) ac_try_echo=$ac_try;; |
| 8680 | esac |
| 8681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8682 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8683 | ac_status=$? |
| 8684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8685 | rm -f conftest.er1 |
| 8686 | cat conftest.err >&5 |
| 8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 8688 | (exit $ac_status); } >/dev/null; then |
| 8689 | if test -s conftest.err; then |
| 8690 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8691 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8692 | else |
| 8693 | ac_cpp_err= |
| 8694 | fi |
| 8695 | else |
| 8696 | ac_cpp_err=yes |
| 8697 | fi |
| 8698 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8699 | ac_header_preproc=yes |
| 8700 | else |
| 8701 | echo "$as_me: failed program was:" >&5 |
| 8702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8703 | |
| 8704 | ac_header_preproc=no |
| 8705 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8706 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8707 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8708 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8709 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8710 | |
| 8711 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8712 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8713 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8714 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8715 | 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] | 8716 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8717 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8718 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8719 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8720 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8721 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8722 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8723 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8724 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8725 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8726 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8727 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8728 | 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] | 8729 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8730 | 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] | 8731 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8732 | 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] | 8733 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8734 | ## ----------------------------------- ## |
| 8735 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8736 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8737 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8738 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8739 | ;; |
| 8740 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8741 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8742 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8743 | 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] | 8744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8745 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8746 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8747 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8748 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8749 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8750 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8751 | |
| 8752 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8753 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8754 | cat >>confdefs.h <<_ACEOF |
| 8755 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8756 | _ACEOF |
| 8757 | |
| 8758 | fi |
| 8759 | |
| 8760 | done |
| 8761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8762 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8763 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8764 | enableval=$enable_ltdl_install; |
| 8765 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8766 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8767 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8768 | |
| 8769 | |
| 8770 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8771 | INSTALL_LTDL_TRUE= |
| 8772 | INSTALL_LTDL_FALSE='#' |
| 8773 | else |
| 8774 | INSTALL_LTDL_TRUE='#' |
| 8775 | INSTALL_LTDL_FALSE= |
| 8776 | fi |
| 8777 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8778 | |
| 8779 | |
| 8780 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8781 | CONVENIENCE_LTDL_TRUE= |
| 8782 | CONVENIENCE_LTDL_FALSE='#' |
| 8783 | else |
| 8784 | CONVENIENCE_LTDL_TRUE='#' |
| 8785 | CONVENIENCE_LTDL_FALSE= |
| 8786 | fi |
| 8787 | |
| 8788 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8789 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8790 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8791 | library_names_spec= |
| 8792 | libname_spec='lib$name' |
| 8793 | soname_spec= |
| 8794 | shrext_cmds=".so" |
| 8795 | postinstall_cmds= |
| 8796 | postuninstall_cmds= |
| 8797 | finish_cmds= |
| 8798 | finish_eval= |
| 8799 | shlibpath_var= |
| 8800 | shlibpath_overrides_runpath=unknown |
| 8801 | version_type=none |
| 8802 | dynamic_linker="$host_os ld.so" |
| 8803 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8804 | if test "$GCC" = yes; then |
| 8805 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8806 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8807 | # if the path contains ";" then we assume it to be the separator |
| 8808 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8809 | # assumed that no part of a normal pathname contains ";" but that should |
| 8810 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8811 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8812 | else |
| 8813 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8814 | fi |
| 8815 | else |
| 8816 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8817 | fi |
| 8818 | need_lib_prefix=unknown |
| 8819 | hardcode_into_libs=no |
| 8820 | |
| 8821 | # when you set need_version to no, make sure it does not cause -set_version |
| 8822 | # flags to be left without arguments |
| 8823 | need_version=unknown |
| 8824 | |
| 8825 | case $host_os in |
| 8826 | aix3*) |
| 8827 | version_type=linux |
| 8828 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8829 | shlibpath_var=LIBPATH |
| 8830 | |
| 8831 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8832 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8833 | ;; |
| 8834 | |
| 8835 | aix4* | aix5*) |
| 8836 | version_type=linux |
| 8837 | need_lib_prefix=no |
| 8838 | need_version=no |
| 8839 | hardcode_into_libs=yes |
| 8840 | if test "$host_cpu" = ia64; then |
| 8841 | # AIX 5 supports IA64 |
| 8842 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8843 | shlibpath_var=LD_LIBRARY_PATH |
| 8844 | else |
| 8845 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8846 | # for dependence libraries. The import file would start with |
| 8847 | # the line `#! .'. This would cause the generated library to |
| 8848 | # depend on `.', always an invalid library. This was fixed in |
| 8849 | # development snapshots of GCC prior to 3.0. |
| 8850 | case $host_os in |
| 8851 | aix4 | aix4.[01] | aix4.[01].*) |
| 8852 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8853 | echo ' yes ' |
| 8854 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8855 | : |
| 8856 | else |
| 8857 | can_build_shared=no |
| 8858 | fi |
| 8859 | ;; |
| 8860 | esac |
| 8861 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8862 | # soname into executable. Probably we can add versioning support to |
| 8863 | # collect2, so additional links can be useful in future. |
| 8864 | if test "$aix_use_runtimelinking" = yes; then |
| 8865 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8866 | # instead of lib<name>.a to let people know that these are not |
| 8867 | # typical AIX shared libraries. |
| 8868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8869 | else |
| 8870 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8871 | # and later when we are not doing run time linking. |
| 8872 | library_names_spec='${libname}${release}.a $libname.a' |
| 8873 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8874 | fi |
| 8875 | shlibpath_var=LIBPATH |
| 8876 | fi |
| 8877 | ;; |
| 8878 | |
| 8879 | amigaos*) |
| 8880 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8881 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8882 | 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' |
| 8883 | ;; |
| 8884 | |
| 8885 | beos*) |
| 8886 | library_names_spec='${libname}${shared_ext}' |
| 8887 | dynamic_linker="$host_os ld.so" |
| 8888 | shlibpath_var=LIBRARY_PATH |
| 8889 | ;; |
| 8890 | |
| 8891 | bsdi[45]*) |
| 8892 | version_type=linux |
| 8893 | need_version=no |
| 8894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8895 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8896 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8897 | shlibpath_var=LD_LIBRARY_PATH |
| 8898 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8899 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8900 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8901 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8902 | # libtool to hard-code these into programs |
| 8903 | ;; |
| 8904 | |
| 8905 | cygwin* | mingw* | pw32*) |
| 8906 | version_type=windows |
| 8907 | shrext_cmds=".dll" |
| 8908 | need_version=no |
| 8909 | need_lib_prefix=no |
| 8910 | |
| 8911 | case $GCC,$host_os in |
| 8912 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8913 | library_names_spec='$libname.dll.a' |
| 8914 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8915 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8916 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8917 | dldir=$destdir/`dirname \$dlpath`~ |
| 8918 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8919 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8920 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8921 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8922 | dlpath=$dir/\$dldll~ |
| 8923 | $rm \$dlpath' |
| 8924 | shlibpath_overrides_runpath=yes |
| 8925 | |
| 8926 | case $host_os in |
| 8927 | cygwin*) |
| 8928 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8929 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8930 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8931 | ;; |
| 8932 | mingw*) |
| 8933 | # MinGW DLLs use traditional 'lib' prefix |
| 8934 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8935 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8936 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8937 | # It is most probably a Windows format PATH printed by |
| 8938 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8939 | # path with ; separators, and with drive letters. We can handle the |
| 8940 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8941 | # especially as we might pass files found there to a mingw objdump, |
| 8942 | # which wouldn't understand a cygwinified path. Ahh. |
| 8943 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8944 | else |
| 8945 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8946 | fi |
| 8947 | ;; |
| 8948 | pw32*) |
| 8949 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8950 | 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] | 8951 | ;; |
| 8952 | esac |
| 8953 | ;; |
| 8954 | |
| 8955 | *) |
| 8956 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8957 | ;; |
| 8958 | esac |
| 8959 | dynamic_linker='Win32 ld.exe' |
| 8960 | # FIXME: first we should search . and the directory the executable is in |
| 8961 | shlibpath_var=PATH |
| 8962 | ;; |
| 8963 | |
| 8964 | darwin* | rhapsody*) |
| 8965 | dynamic_linker="$host_os dyld" |
| 8966 | version_type=darwin |
| 8967 | need_lib_prefix=no |
| 8968 | need_version=no |
| 8969 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8970 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8971 | shlibpath_overrides_runpath=yes |
| 8972 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8973 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8974 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8975 | if test "$GCC" = yes; then |
| 8976 | 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"` |
| 8977 | else |
| 8978 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8979 | fi |
| 8980 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8981 | ;; |
| 8982 | |
| 8983 | dgux*) |
| 8984 | version_type=linux |
| 8985 | need_lib_prefix=no |
| 8986 | need_version=no |
| 8987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8988 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8989 | shlibpath_var=LD_LIBRARY_PATH |
| 8990 | ;; |
| 8991 | |
| 8992 | freebsd1*) |
| 8993 | dynamic_linker=no |
| 8994 | ;; |
| 8995 | |
| 8996 | kfreebsd*-gnu) |
| 8997 | version_type=linux |
| 8998 | need_lib_prefix=no |
| 8999 | need_version=no |
| 9000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9001 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9002 | shlibpath_var=LD_LIBRARY_PATH |
| 9003 | shlibpath_overrides_runpath=no |
| 9004 | hardcode_into_libs=yes |
| 9005 | dynamic_linker='GNU ld.so' |
| 9006 | ;; |
| 9007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9008 | freebsd* | dragonfly*) |
| 9009 | # DragonFly does not have aout. When/if they implement a new |
| 9010 | # versioning mechanism, adjust this. |
| 9011 | if test -x /usr/bin/objformat; then |
| 9012 | objformat=`/usr/bin/objformat` |
| 9013 | else |
| 9014 | case $host_os in |
| 9015 | freebsd[123]*) objformat=aout ;; |
| 9016 | *) objformat=elf ;; |
| 9017 | esac |
| 9018 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9019 | version_type=freebsd-$objformat |
| 9020 | case $version_type in |
| 9021 | freebsd-elf*) |
| 9022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9023 | need_version=no |
| 9024 | need_lib_prefix=no |
| 9025 | ;; |
| 9026 | freebsd-*) |
| 9027 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9028 | need_version=yes |
| 9029 | ;; |
| 9030 | esac |
| 9031 | shlibpath_var=LD_LIBRARY_PATH |
| 9032 | case $host_os in |
| 9033 | freebsd2*) |
| 9034 | shlibpath_overrides_runpath=yes |
| 9035 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9036 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9037 | shlibpath_overrides_runpath=yes |
| 9038 | hardcode_into_libs=yes |
| 9039 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9040 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9041 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9042 | shlibpath_overrides_runpath=no |
| 9043 | hardcode_into_libs=yes |
| 9044 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9045 | freebsd*) # from 4.6 on |
| 9046 | shlibpath_overrides_runpath=yes |
| 9047 | hardcode_into_libs=yes |
| 9048 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9049 | esac |
| 9050 | ;; |
| 9051 | |
| 9052 | gnu*) |
| 9053 | version_type=linux |
| 9054 | need_lib_prefix=no |
| 9055 | need_version=no |
| 9056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9057 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9058 | shlibpath_var=LD_LIBRARY_PATH |
| 9059 | hardcode_into_libs=yes |
| 9060 | ;; |
| 9061 | |
| 9062 | hpux9* | hpux10* | hpux11*) |
| 9063 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9064 | # link against other versions. |
| 9065 | version_type=sunos |
| 9066 | need_lib_prefix=no |
| 9067 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9068 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9069 | ia64*) |
| 9070 | shrext_cmds='.so' |
| 9071 | hardcode_into_libs=yes |
| 9072 | dynamic_linker="$host_os dld.so" |
| 9073 | shlibpath_var=LD_LIBRARY_PATH |
| 9074 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9076 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9077 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9078 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9079 | else |
| 9080 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9081 | fi |
| 9082 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9083 | ;; |
| 9084 | hppa*64*) |
| 9085 | shrext_cmds='.sl' |
| 9086 | hardcode_into_libs=yes |
| 9087 | dynamic_linker="$host_os dld.sl" |
| 9088 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9089 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9091 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9092 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9093 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9094 | ;; |
| 9095 | *) |
| 9096 | shrext_cmds='.sl' |
| 9097 | dynamic_linker="$host_os dld.sl" |
| 9098 | shlibpath_var=SHLIB_PATH |
| 9099 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9101 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9102 | ;; |
| 9103 | esac |
| 9104 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9105 | postinstall_cmds='chmod 555 $lib' |
| 9106 | ;; |
| 9107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9108 | interix3*) |
| 9109 | version_type=linux |
| 9110 | need_lib_prefix=no |
| 9111 | need_version=no |
| 9112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9113 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9114 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9115 | shlibpath_var=LD_LIBRARY_PATH |
| 9116 | shlibpath_overrides_runpath=no |
| 9117 | hardcode_into_libs=yes |
| 9118 | ;; |
| 9119 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9120 | irix5* | irix6* | nonstopux*) |
| 9121 | case $host_os in |
| 9122 | nonstopux*) version_type=nonstopux ;; |
| 9123 | *) |
| 9124 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9125 | version_type=linux |
| 9126 | else |
| 9127 | version_type=irix |
| 9128 | fi ;; |
| 9129 | esac |
| 9130 | need_lib_prefix=no |
| 9131 | need_version=no |
| 9132 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9134 | case $host_os in |
| 9135 | irix5* | nonstopux*) |
| 9136 | libsuff= shlibsuff= |
| 9137 | ;; |
| 9138 | *) |
| 9139 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9140 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9141 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9142 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9143 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9144 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9145 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9146 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9147 | esac |
| 9148 | ;; |
| 9149 | esac |
| 9150 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9151 | shlibpath_overrides_runpath=no |
| 9152 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9153 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9154 | hardcode_into_libs=yes |
| 9155 | ;; |
| 9156 | |
| 9157 | # No shared lib support for Linux oldld, aout, or coff. |
| 9158 | linux*oldld* | linux*aout* | linux*coff*) |
| 9159 | dynamic_linker=no |
| 9160 | ;; |
| 9161 | |
| 9162 | # This must be Linux ELF. |
| 9163 | linux*) |
| 9164 | version_type=linux |
| 9165 | need_lib_prefix=no |
| 9166 | need_version=no |
| 9167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9168 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9169 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9170 | shlibpath_var=LD_LIBRARY_PATH |
| 9171 | shlibpath_overrides_runpath=no |
| 9172 | # This implies no fast_install, which is unacceptable. |
| 9173 | # Some rework will be needed to allow for fast_install |
| 9174 | # before this can be enabled. |
| 9175 | hardcode_into_libs=yes |
| 9176 | |
| 9177 | # Append ld.so.conf contents to the search path |
| 9178 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9179 | 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] | 9180 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9181 | fi |
| 9182 | |
| 9183 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9184 | # powerpc, because MkLinux only supported shared libraries with the |
| 9185 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9186 | # most powerpc-linux boxes support dynamic linking these days and |
| 9187 | # people can always --disable-shared, the test was removed, and we |
| 9188 | # assume the GNU/Linux dynamic linker is in use. |
| 9189 | dynamic_linker='GNU/Linux ld.so' |
| 9190 | ;; |
| 9191 | |
| 9192 | knetbsd*-gnu) |
| 9193 | version_type=linux |
| 9194 | need_lib_prefix=no |
| 9195 | need_version=no |
| 9196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9197 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9198 | shlibpath_var=LD_LIBRARY_PATH |
| 9199 | shlibpath_overrides_runpath=no |
| 9200 | hardcode_into_libs=yes |
| 9201 | dynamic_linker='GNU ld.so' |
| 9202 | ;; |
| 9203 | |
| 9204 | netbsd*) |
| 9205 | version_type=sunos |
| 9206 | need_lib_prefix=no |
| 9207 | need_version=no |
| 9208 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9210 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9211 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9212 | else |
| 9213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9214 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9215 | dynamic_linker='NetBSD ld.elf_so' |
| 9216 | fi |
| 9217 | shlibpath_var=LD_LIBRARY_PATH |
| 9218 | shlibpath_overrides_runpath=yes |
| 9219 | hardcode_into_libs=yes |
| 9220 | ;; |
| 9221 | |
| 9222 | newsos6) |
| 9223 | version_type=linux |
| 9224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9225 | shlibpath_var=LD_LIBRARY_PATH |
| 9226 | shlibpath_overrides_runpath=yes |
| 9227 | ;; |
| 9228 | |
| 9229 | nto-qnx*) |
| 9230 | version_type=linux |
| 9231 | need_lib_prefix=no |
| 9232 | need_version=no |
| 9233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9234 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9235 | shlibpath_var=LD_LIBRARY_PATH |
| 9236 | shlibpath_overrides_runpath=yes |
| 9237 | ;; |
| 9238 | |
| 9239 | openbsd*) |
| 9240 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9241 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9242 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9243 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9244 | case $host_os in |
| 9245 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9246 | *) need_version=no ;; |
| 9247 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9249 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9250 | shlibpath_var=LD_LIBRARY_PATH |
| 9251 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9252 | case $host_os in |
| 9253 | openbsd2.[89] | openbsd2.[89].*) |
| 9254 | shlibpath_overrides_runpath=no |
| 9255 | ;; |
| 9256 | *) |
| 9257 | shlibpath_overrides_runpath=yes |
| 9258 | ;; |
| 9259 | esac |
| 9260 | else |
| 9261 | shlibpath_overrides_runpath=yes |
| 9262 | fi |
| 9263 | ;; |
| 9264 | |
| 9265 | os2*) |
| 9266 | libname_spec='$name' |
| 9267 | shrext_cmds=".dll" |
| 9268 | need_lib_prefix=no |
| 9269 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9270 | dynamic_linker='OS/2 ld.exe' |
| 9271 | shlibpath_var=LIBPATH |
| 9272 | ;; |
| 9273 | |
| 9274 | osf3* | osf4* | osf5*) |
| 9275 | version_type=osf |
| 9276 | need_lib_prefix=no |
| 9277 | need_version=no |
| 9278 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9280 | shlibpath_var=LD_LIBRARY_PATH |
| 9281 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9282 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9283 | ;; |
| 9284 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9285 | solaris*) |
| 9286 | version_type=linux |
| 9287 | need_lib_prefix=no |
| 9288 | need_version=no |
| 9289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9290 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9291 | shlibpath_var=LD_LIBRARY_PATH |
| 9292 | shlibpath_overrides_runpath=yes |
| 9293 | hardcode_into_libs=yes |
| 9294 | # ldd complains unless libraries are executable |
| 9295 | postinstall_cmds='chmod +x $lib' |
| 9296 | ;; |
| 9297 | |
| 9298 | sunos4*) |
| 9299 | version_type=sunos |
| 9300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9301 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9302 | shlibpath_var=LD_LIBRARY_PATH |
| 9303 | shlibpath_overrides_runpath=yes |
| 9304 | if test "$with_gnu_ld" = yes; then |
| 9305 | need_lib_prefix=no |
| 9306 | fi |
| 9307 | need_version=yes |
| 9308 | ;; |
| 9309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9310 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9311 | version_type=linux |
| 9312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9313 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9314 | shlibpath_var=LD_LIBRARY_PATH |
| 9315 | case $host_vendor in |
| 9316 | sni) |
| 9317 | shlibpath_overrides_runpath=no |
| 9318 | need_lib_prefix=no |
| 9319 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9320 | runpath_var=LD_RUN_PATH |
| 9321 | ;; |
| 9322 | siemens) |
| 9323 | need_lib_prefix=no |
| 9324 | ;; |
| 9325 | motorola) |
| 9326 | need_lib_prefix=no |
| 9327 | need_version=no |
| 9328 | shlibpath_overrides_runpath=no |
| 9329 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9330 | ;; |
| 9331 | esac |
| 9332 | ;; |
| 9333 | |
| 9334 | sysv4*MP*) |
| 9335 | if test -d /usr/nec ;then |
| 9336 | version_type=linux |
| 9337 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9338 | soname_spec='$libname${shared_ext}.$major' |
| 9339 | shlibpath_var=LD_LIBRARY_PATH |
| 9340 | fi |
| 9341 | ;; |
| 9342 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9343 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9344 | version_type=freebsd-elf |
| 9345 | need_lib_prefix=no |
| 9346 | need_version=no |
| 9347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9348 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9349 | shlibpath_var=LD_LIBRARY_PATH |
| 9350 | hardcode_into_libs=yes |
| 9351 | if test "$with_gnu_ld" = yes; then |
| 9352 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9353 | shlibpath_overrides_runpath=no |
| 9354 | else |
| 9355 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9356 | shlibpath_overrides_runpath=yes |
| 9357 | case $host_os in |
| 9358 | sco3.2v5*) |
| 9359 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9360 | ;; |
| 9361 | esac |
| 9362 | fi |
| 9363 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9364 | ;; |
| 9365 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9366 | uts4*) |
| 9367 | version_type=linux |
| 9368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9369 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9370 | shlibpath_var=LD_LIBRARY_PATH |
| 9371 | ;; |
| 9372 | |
| 9373 | *) |
| 9374 | dynamic_linker=no |
| 9375 | ;; |
| 9376 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9377 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9378 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9379 | test "$dynamic_linker" = no && can_build_shared=no |
| 9380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9381 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9382 | if test "$GCC" = yes; then |
| 9383 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9384 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9385 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9386 | |
| 9387 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9388 | 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] | 9389 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9391 | else |
| 9392 | |
| 9393 | module=yes |
| 9394 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9395 | |
| 9396 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9397 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9398 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9399 | if test -n "$libltdl_cv_shlibext"; then |
| 9400 | |
| 9401 | cat >>confdefs.h <<_ACEOF |
| 9402 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9403 | _ACEOF |
| 9404 | |
| 9405 | fi |
| 9406 | |
| 9407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9408 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9409 | 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] | 9410 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9412 | else |
| 9413 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9414 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9415 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9416 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9417 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9418 | |
| 9419 | cat >>confdefs.h <<_ACEOF |
| 9420 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9421 | _ACEOF |
| 9422 | |
| 9423 | fi |
| 9424 | |
| 9425 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9426 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9427 | 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] | 9428 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9430 | else |
| 9431 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9432 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9433 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9434 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9435 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9436 | sys_search_path= |
| 9437 | for dir in $libltdl_cv_sys_search_path; do |
| 9438 | if test -z "$sys_search_path"; then |
| 9439 | sys_search_path="$dir" |
| 9440 | else |
| 9441 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9442 | fi |
| 9443 | done |
| 9444 | |
| 9445 | cat >>confdefs.h <<_ACEOF |
| 9446 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9447 | _ACEOF |
| 9448 | |
| 9449 | fi |
| 9450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9451 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9452 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9453 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9455 | else |
| 9456 | libltdl_cv_objdir="$objdir" |
| 9457 | if test -n "$objdir"; then |
| 9458 | : |
| 9459 | else |
| 9460 | rm -f .libs 2>/dev/null |
| 9461 | mkdir .libs 2>/dev/null |
| 9462 | if test -d .libs; then |
| 9463 | libltdl_cv_objdir=.libs |
| 9464 | else |
| 9465 | # MS-DOS does not allow filenames that begin with a dot. |
| 9466 | libltdl_cv_objdir=_libs |
| 9467 | fi |
| 9468 | rmdir .libs 2>/dev/null |
| 9469 | fi |
| 9470 | |
| 9471 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9472 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9473 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9474 | |
| 9475 | cat >>confdefs.h <<_ACEOF |
| 9476 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9477 | _ACEOF |
| 9478 | |
| 9479 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9480 | |
| 9481 | |
| 9482 | |
| 9483 | |
| 9484 | # 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] | 9485 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9486 | 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] | 9487 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9489 | else |
| 9490 | |
| 9491 | # These are sane defaults that work on at least a few old systems. |
| 9492 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9493 | |
| 9494 | # Character class describing NM global symbol codes. |
| 9495 | symcode='[BCDEGRST]' |
| 9496 | |
| 9497 | # Regexp to match symbols that can be accessed directly from C. |
| 9498 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9499 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9500 | # Transform an extracted symbol line into a proper C declaration |
| 9501 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9502 | |
| 9503 | # Transform an extracted symbol line into symbol name and symbol address |
| 9504 | 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'" |
| 9505 | |
| 9506 | # Define system-specific variables. |
| 9507 | case $host_os in |
| 9508 | aix*) |
| 9509 | symcode='[BCDT]' |
| 9510 | ;; |
| 9511 | cygwin* | mingw* | pw32*) |
| 9512 | symcode='[ABCDGISTW]' |
| 9513 | ;; |
| 9514 | hpux*) # Its linker distinguishes data from code symbols |
| 9515 | if test "$host_cpu" = ia64; then |
| 9516 | symcode='[ABCDEGRST]' |
| 9517 | fi |
| 9518 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9519 | 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'" |
| 9520 | ;; |
| 9521 | linux*) |
| 9522 | if test "$host_cpu" = ia64; then |
| 9523 | symcode='[ABCDGIRSTW]' |
| 9524 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9525 | 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'" |
| 9526 | fi |
| 9527 | ;; |
| 9528 | irix* | nonstopux*) |
| 9529 | symcode='[BCDEGRST]' |
| 9530 | ;; |
| 9531 | osf*) |
| 9532 | symcode='[BCDEGQRST]' |
| 9533 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9534 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9535 | symcode='[BDRT]' |
| 9536 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9537 | sco3.2v5*) |
| 9538 | symcode='[DT]' |
| 9539 | ;; |
| 9540 | sysv4.2uw2*) |
| 9541 | symcode='[DT]' |
| 9542 | ;; |
| 9543 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9544 | symcode='[ABDT]' |
| 9545 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9546 | sysv4) |
| 9547 | symcode='[DFNSTU]' |
| 9548 | ;; |
| 9549 | esac |
| 9550 | |
| 9551 | # Handle CRLF in mingw tool chain |
| 9552 | opt_cr= |
| 9553 | case $build_os in |
| 9554 | mingw*) |
| 9555 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9556 | ;; |
| 9557 | esac |
| 9558 | |
| 9559 | # If we're using GNU nm, then use its standard symbol codes. |
| 9560 | case `$NM -V 2>&1` in |
| 9561 | *GNU* | *'with BFD'*) |
| 9562 | symcode='[ABCDGIRSTW]' ;; |
| 9563 | esac |
| 9564 | |
| 9565 | # Try without a prefix undercore, then with it. |
| 9566 | for ac_symprfx in "" "_"; do |
| 9567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9568 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9569 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9570 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9571 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9572 | 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] | 9573 | |
| 9574 | # Check to see that the pipe works correctly. |
| 9575 | pipe_works=no |
| 9576 | |
| 9577 | rm -f conftest* |
| 9578 | cat > conftest.$ac_ext <<EOF |
| 9579 | #ifdef __cplusplus |
| 9580 | extern "C" { |
| 9581 | #endif |
| 9582 | char nm_test_var; |
| 9583 | void nm_test_func(){} |
| 9584 | #ifdef __cplusplus |
| 9585 | } |
| 9586 | #endif |
| 9587 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9588 | EOF |
| 9589 | |
| 9590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9591 | (eval $ac_compile) 2>&5 |
| 9592 | ac_status=$? |
| 9593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9594 | (exit $ac_status); }; then |
| 9595 | # Now try to grab the symbols. |
| 9596 | nlist=conftest.nm |
| 9597 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9598 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9599 | ac_status=$? |
| 9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9601 | (exit $ac_status); } && test -s "$nlist"; then |
| 9602 | # Try sorting and uniquifying the output. |
| 9603 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9604 | mv -f "$nlist"T "$nlist" |
| 9605 | else |
| 9606 | rm -f "$nlist"T |
| 9607 | fi |
| 9608 | |
| 9609 | # Make sure that we snagged all the symbols we need. |
| 9610 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9611 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9612 | cat <<EOF > conftest.$ac_ext |
| 9613 | #ifdef __cplusplus |
| 9614 | extern "C" { |
| 9615 | #endif |
| 9616 | |
| 9617 | EOF |
| 9618 | # Now generate the symbol file. |
| 9619 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9620 | |
| 9621 | cat <<EOF >> conftest.$ac_ext |
| 9622 | #if defined (__STDC__) && __STDC__ |
| 9623 | # define lt_ptr_t void * |
| 9624 | #else |
| 9625 | # define lt_ptr_t char * |
| 9626 | # define const |
| 9627 | #endif |
| 9628 | |
| 9629 | /* The mapping between symbol names and symbols. */ |
| 9630 | const struct { |
| 9631 | const char *name; |
| 9632 | lt_ptr_t address; |
| 9633 | } |
| 9634 | lt_preloaded_symbols[] = |
| 9635 | { |
| 9636 | EOF |
| 9637 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9638 | cat <<\EOF >> conftest.$ac_ext |
| 9639 | {0, (lt_ptr_t) 0} |
| 9640 | }; |
| 9641 | |
| 9642 | #ifdef __cplusplus |
| 9643 | } |
| 9644 | #endif |
| 9645 | EOF |
| 9646 | # Now try linking the two files. |
| 9647 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9648 | lt_save_LIBS="$LIBS" |
| 9649 | lt_save_CFLAGS="$CFLAGS" |
| 9650 | LIBS="conftstm.$ac_objext" |
| 9651 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9653 | (eval $ac_link) 2>&5 |
| 9654 | ac_status=$? |
| 9655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9656 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9657 | pipe_works=yes |
| 9658 | fi |
| 9659 | LIBS="$lt_save_LIBS" |
| 9660 | CFLAGS="$lt_save_CFLAGS" |
| 9661 | else |
| 9662 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9663 | fi |
| 9664 | else |
| 9665 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9666 | fi |
| 9667 | else |
| 9668 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9669 | fi |
| 9670 | else |
| 9671 | echo "$progname: failed program was:" >&5 |
| 9672 | cat conftest.$ac_ext >&5 |
| 9673 | fi |
| 9674 | rm -f conftest* conftst* |
| 9675 | |
| 9676 | # Do not use the global_symbol_pipe unless it works. |
| 9677 | if test "$pipe_works" = yes; then |
| 9678 | break |
| 9679 | else |
| 9680 | lt_cv_sys_global_symbol_pipe= |
| 9681 | fi |
| 9682 | done |
| 9683 | |
| 9684 | fi |
| 9685 | |
| 9686 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9687 | lt_cv_sys_global_symbol_to_cdecl= |
| 9688 | fi |
| 9689 | 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] | 9690 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9691 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9692 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9693 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9694 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9695 | fi |
| 9696 | |
| 9697 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9698 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9699 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9700 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9702 | else |
| 9703 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9704 | libltdl_cv_preloaded_symbols=yes |
| 9705 | else |
| 9706 | libltdl_cv_preloaded_symbols=no |
| 9707 | fi |
| 9708 | |
| 9709 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9710 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9711 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9712 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9713 | |
| 9714 | cat >>confdefs.h <<\_ACEOF |
| 9715 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9716 | _ACEOF |
| 9717 | |
| 9718 | fi |
| 9719 | |
| 9720 | LIBADD_DL= |
| 9721 | |
| 9722 | ac_ext=c |
| 9723 | ac_cpp='$CPP $CPPFLAGS' |
| 9724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9727 | |
| 9728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9729 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9730 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9731 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9733 | else |
| 9734 | cat >conftest.$ac_ext <<_ACEOF |
| 9735 | /* confdefs.h. */ |
| 9736 | _ACEOF |
| 9737 | cat confdefs.h >>conftest.$ac_ext |
| 9738 | cat >>conftest.$ac_ext <<_ACEOF |
| 9739 | /* end confdefs.h. */ |
| 9740 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9741 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9742 | #define shl_load innocuous_shl_load |
| 9743 | |
| 9744 | /* System header to define __stub macros and hopefully few prototypes, |
| 9745 | which can conflict with char shl_load (); below. |
| 9746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9747 | <limits.h> exists even on freestanding compilers. */ |
| 9748 | |
| 9749 | #ifdef __STDC__ |
| 9750 | # include <limits.h> |
| 9751 | #else |
| 9752 | # include <assert.h> |
| 9753 | #endif |
| 9754 | |
| 9755 | #undef shl_load |
| 9756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9757 | /* Override any GCC internal prototype to avoid an error. |
| 9758 | Use char because int might match the return type of a GCC |
| 9759 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9760 | #ifdef __cplusplus |
| 9761 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9762 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9763 | char shl_load (); |
| 9764 | /* The GNU C library defines this for functions which it implements |
| 9765 | to always fail with ENOSYS. Some functions are actually named |
| 9766 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9767 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9768 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9769 | #endif |
| 9770 | |
| 9771 | int |
| 9772 | main () |
| 9773 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9774 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9775 | ; |
| 9776 | return 0; |
| 9777 | } |
| 9778 | _ACEOF |
| 9779 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9780 | if { (ac_try="$ac_link" |
| 9781 | case "(($ac_try" in |
| 9782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9783 | *) ac_try_echo=$ac_try;; |
| 9784 | esac |
| 9785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9786 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9787 | ac_status=$? |
| 9788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9789 | rm -f conftest.er1 |
| 9790 | cat conftest.err >&5 |
| 9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 9792 | (exit $ac_status); } && |
| 9793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9794 | { (case "(($ac_try" in |
| 9795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9796 | *) ac_try_echo=$ac_try;; |
| 9797 | esac |
| 9798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9799 | (eval "$ac_try") 2>&5 |
| 9800 | ac_status=$? |
| 9801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9802 | (exit $ac_status); }; } && |
| 9803 | { ac_try='test -s conftest$ac_exeext' |
| 9804 | { (case "(($ac_try" in |
| 9805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9806 | *) ac_try_echo=$ac_try;; |
| 9807 | esac |
| 9808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9809 | (eval "$ac_try") 2>&5 |
| 9810 | ac_status=$? |
| 9811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9812 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9813 | ac_cv_func_shl_load=yes |
| 9814 | else |
| 9815 | echo "$as_me: failed program was:" >&5 |
| 9816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9818 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9820 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 9821 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9822 | conftest$ac_exeext conftest.$ac_ext |
| 9823 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9824 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9825 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9826 | if test $ac_cv_func_shl_load = yes; then |
| 9827 | |
| 9828 | cat >>confdefs.h <<\_ACEOF |
| 9829 | #define HAVE_SHL_LOAD 1 |
| 9830 | _ACEOF |
| 9831 | |
| 9832 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9833 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9834 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9835 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9837 | else |
| 9838 | ac_check_lib_save_LIBS=$LIBS |
| 9839 | LIBS="-ldld $LIBS" |
| 9840 | cat >conftest.$ac_ext <<_ACEOF |
| 9841 | /* confdefs.h. */ |
| 9842 | _ACEOF |
| 9843 | cat confdefs.h >>conftest.$ac_ext |
| 9844 | cat >>conftest.$ac_ext <<_ACEOF |
| 9845 | /* end confdefs.h. */ |
| 9846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9847 | /* Override any GCC internal prototype to avoid an error. |
| 9848 | Use char because int might match the return type of a GCC |
| 9849 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9850 | #ifdef __cplusplus |
| 9851 | extern "C" |
| 9852 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9853 | char shl_load (); |
| 9854 | int |
| 9855 | main () |
| 9856 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9857 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9858 | ; |
| 9859 | return 0; |
| 9860 | } |
| 9861 | _ACEOF |
| 9862 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9863 | if { (ac_try="$ac_link" |
| 9864 | case "(($ac_try" in |
| 9865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9866 | *) ac_try_echo=$ac_try;; |
| 9867 | esac |
| 9868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9869 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9870 | ac_status=$? |
| 9871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9872 | rm -f conftest.er1 |
| 9873 | cat conftest.err >&5 |
| 9874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 9875 | (exit $ac_status); } && |
| 9876 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9877 | { (case "(($ac_try" in |
| 9878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9879 | *) ac_try_echo=$ac_try;; |
| 9880 | esac |
| 9881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9882 | (eval "$ac_try") 2>&5 |
| 9883 | ac_status=$? |
| 9884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9885 | (exit $ac_status); }; } && |
| 9886 | { ac_try='test -s conftest$ac_exeext' |
| 9887 | { (case "(($ac_try" in |
| 9888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9889 | *) ac_try_echo=$ac_try;; |
| 9890 | esac |
| 9891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9892 | (eval "$ac_try") 2>&5 |
| 9893 | ac_status=$? |
| 9894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9895 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9896 | ac_cv_lib_dld_shl_load=yes |
| 9897 | else |
| 9898 | echo "$as_me: failed program was:" >&5 |
| 9899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9901 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9902 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9903 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 9904 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9905 | conftest$ac_exeext conftest.$ac_ext |
| 9906 | LIBS=$ac_check_lib_save_LIBS |
| 9907 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9908 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9909 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9910 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9911 | |
| 9912 | cat >>confdefs.h <<\_ACEOF |
| 9913 | #define HAVE_SHL_LOAD 1 |
| 9914 | _ACEOF |
| 9915 | |
| 9916 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9917 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9918 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9919 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9920 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9922 | else |
| 9923 | ac_check_lib_save_LIBS=$LIBS |
| 9924 | LIBS="-ldl $LIBS" |
| 9925 | cat >conftest.$ac_ext <<_ACEOF |
| 9926 | /* confdefs.h. */ |
| 9927 | _ACEOF |
| 9928 | cat confdefs.h >>conftest.$ac_ext |
| 9929 | cat >>conftest.$ac_ext <<_ACEOF |
| 9930 | /* end confdefs.h. */ |
| 9931 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9932 | /* Override any GCC internal prototype to avoid an error. |
| 9933 | Use char because int might match the return type of a GCC |
| 9934 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9935 | #ifdef __cplusplus |
| 9936 | extern "C" |
| 9937 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9938 | char dlopen (); |
| 9939 | int |
| 9940 | main () |
| 9941 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9942 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9943 | ; |
| 9944 | return 0; |
| 9945 | } |
| 9946 | _ACEOF |
| 9947 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9948 | if { (ac_try="$ac_link" |
| 9949 | case "(($ac_try" in |
| 9950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9951 | *) ac_try_echo=$ac_try;; |
| 9952 | esac |
| 9953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9954 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9955 | ac_status=$? |
| 9956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9957 | rm -f conftest.er1 |
| 9958 | cat conftest.err >&5 |
| 9959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 9960 | (exit $ac_status); } && |
| 9961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9962 | { (case "(($ac_try" in |
| 9963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9964 | *) ac_try_echo=$ac_try;; |
| 9965 | esac |
| 9966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9967 | (eval "$ac_try") 2>&5 |
| 9968 | ac_status=$? |
| 9969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9970 | (exit $ac_status); }; } && |
| 9971 | { ac_try='test -s conftest$ac_exeext' |
| 9972 | { (case "(($ac_try" in |
| 9973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9974 | *) ac_try_echo=$ac_try;; |
| 9975 | esac |
| 9976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9977 | (eval "$ac_try") 2>&5 |
| 9978 | ac_status=$? |
| 9979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9980 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9981 | ac_cv_lib_dl_dlopen=yes |
| 9982 | else |
| 9983 | echo "$as_me: failed program was:" >&5 |
| 9984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9986 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9987 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9988 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 9989 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9990 | conftest$ac_exeext conftest.$ac_ext |
| 9991 | LIBS=$ac_check_lib_save_LIBS |
| 9992 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9993 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9994 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9995 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9996 | |
| 9997 | cat >>confdefs.h <<\_ACEOF |
| 9998 | #define HAVE_LIBDL 1 |
| 9999 | _ACEOF |
| 10000 | |
| 10001 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10002 | else |
| 10003 | cat >conftest.$ac_ext <<_ACEOF |
| 10004 | /* confdefs.h. */ |
| 10005 | _ACEOF |
| 10006 | cat confdefs.h >>conftest.$ac_ext |
| 10007 | cat >>conftest.$ac_ext <<_ACEOF |
| 10008 | /* end confdefs.h. */ |
| 10009 | #if HAVE_DLFCN_H |
| 10010 | # include <dlfcn.h> |
| 10011 | #endif |
| 10012 | |
| 10013 | int |
| 10014 | main () |
| 10015 | { |
| 10016 | dlopen(0, 0); |
| 10017 | ; |
| 10018 | return 0; |
| 10019 | } |
| 10020 | _ACEOF |
| 10021 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10022 | if { (ac_try="$ac_link" |
| 10023 | case "(($ac_try" in |
| 10024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10025 | *) ac_try_echo=$ac_try;; |
| 10026 | esac |
| 10027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10028 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10029 | ac_status=$? |
| 10030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10031 | rm -f conftest.er1 |
| 10032 | cat conftest.err >&5 |
| 10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10034 | (exit $ac_status); } && |
| 10035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10036 | { (case "(($ac_try" in |
| 10037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10038 | *) ac_try_echo=$ac_try;; |
| 10039 | esac |
| 10040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10041 | (eval "$ac_try") 2>&5 |
| 10042 | ac_status=$? |
| 10043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10044 | (exit $ac_status); }; } && |
| 10045 | { ac_try='test -s conftest$ac_exeext' |
| 10046 | { (case "(($ac_try" in |
| 10047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10048 | *) ac_try_echo=$ac_try;; |
| 10049 | esac |
| 10050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10051 | (eval "$ac_try") 2>&5 |
| 10052 | ac_status=$? |
| 10053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10054 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10055 | |
| 10056 | cat >>confdefs.h <<\_ACEOF |
| 10057 | #define HAVE_LIBDL 1 |
| 10058 | _ACEOF |
| 10059 | libltdl_cv_func_dlopen="yes" |
| 10060 | else |
| 10061 | echo "$as_me: failed program was:" >&5 |
| 10062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10063 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10064 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10065 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10066 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10068 | else |
| 10069 | ac_check_lib_save_LIBS=$LIBS |
| 10070 | LIBS="-lsvld $LIBS" |
| 10071 | cat >conftest.$ac_ext <<_ACEOF |
| 10072 | /* confdefs.h. */ |
| 10073 | _ACEOF |
| 10074 | cat confdefs.h >>conftest.$ac_ext |
| 10075 | cat >>conftest.$ac_ext <<_ACEOF |
| 10076 | /* end confdefs.h. */ |
| 10077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10078 | /* Override any GCC internal prototype to avoid an error. |
| 10079 | Use char because int might match the return type of a GCC |
| 10080 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10081 | #ifdef __cplusplus |
| 10082 | extern "C" |
| 10083 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10084 | char dlopen (); |
| 10085 | int |
| 10086 | main () |
| 10087 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10088 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10089 | ; |
| 10090 | return 0; |
| 10091 | } |
| 10092 | _ACEOF |
| 10093 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10094 | if { (ac_try="$ac_link" |
| 10095 | case "(($ac_try" in |
| 10096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10097 | *) ac_try_echo=$ac_try;; |
| 10098 | esac |
| 10099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10100 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10101 | ac_status=$? |
| 10102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10103 | rm -f conftest.er1 |
| 10104 | cat conftest.err >&5 |
| 10105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10106 | (exit $ac_status); } && |
| 10107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10108 | { (case "(($ac_try" in |
| 10109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10110 | *) ac_try_echo=$ac_try;; |
| 10111 | esac |
| 10112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10113 | (eval "$ac_try") 2>&5 |
| 10114 | ac_status=$? |
| 10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10116 | (exit $ac_status); }; } && |
| 10117 | { ac_try='test -s conftest$ac_exeext' |
| 10118 | { (case "(($ac_try" in |
| 10119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10120 | *) ac_try_echo=$ac_try;; |
| 10121 | esac |
| 10122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10123 | (eval "$ac_try") 2>&5 |
| 10124 | ac_status=$? |
| 10125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10126 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10127 | ac_cv_lib_svld_dlopen=yes |
| 10128 | else |
| 10129 | echo "$as_me: failed program was:" >&5 |
| 10130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10131 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10132 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10133 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10134 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10135 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10136 | conftest$ac_exeext conftest.$ac_ext |
| 10137 | LIBS=$ac_check_lib_save_LIBS |
| 10138 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10139 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10140 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10141 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10142 | |
| 10143 | cat >>confdefs.h <<\_ACEOF |
| 10144 | #define HAVE_LIBDL 1 |
| 10145 | _ACEOF |
| 10146 | |
| 10147 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10148 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10149 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10150 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10151 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10153 | else |
| 10154 | ac_check_lib_save_LIBS=$LIBS |
| 10155 | LIBS="-ldld $LIBS" |
| 10156 | cat >conftest.$ac_ext <<_ACEOF |
| 10157 | /* confdefs.h. */ |
| 10158 | _ACEOF |
| 10159 | cat confdefs.h >>conftest.$ac_ext |
| 10160 | cat >>conftest.$ac_ext <<_ACEOF |
| 10161 | /* end confdefs.h. */ |
| 10162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10163 | /* Override any GCC internal prototype to avoid an error. |
| 10164 | Use char because int might match the return type of a GCC |
| 10165 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10166 | #ifdef __cplusplus |
| 10167 | extern "C" |
| 10168 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10169 | char dld_link (); |
| 10170 | int |
| 10171 | main () |
| 10172 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10173 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10174 | ; |
| 10175 | return 0; |
| 10176 | } |
| 10177 | _ACEOF |
| 10178 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10179 | if { (ac_try="$ac_link" |
| 10180 | case "(($ac_try" in |
| 10181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10182 | *) ac_try_echo=$ac_try;; |
| 10183 | esac |
| 10184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10185 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10186 | ac_status=$? |
| 10187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10188 | rm -f conftest.er1 |
| 10189 | cat conftest.err >&5 |
| 10190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10191 | (exit $ac_status); } && |
| 10192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10193 | { (case "(($ac_try" in |
| 10194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10195 | *) ac_try_echo=$ac_try;; |
| 10196 | esac |
| 10197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10198 | (eval "$ac_try") 2>&5 |
| 10199 | ac_status=$? |
| 10200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10201 | (exit $ac_status); }; } && |
| 10202 | { ac_try='test -s conftest$ac_exeext' |
| 10203 | { (case "(($ac_try" in |
| 10204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10205 | *) ac_try_echo=$ac_try;; |
| 10206 | esac |
| 10207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10208 | (eval "$ac_try") 2>&5 |
| 10209 | ac_status=$? |
| 10210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10211 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10212 | ac_cv_lib_dld_dld_link=yes |
| 10213 | else |
| 10214 | echo "$as_me: failed program was:" >&5 |
| 10215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10216 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10217 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10218 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10219 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10220 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10221 | conftest$ac_exeext conftest.$ac_ext |
| 10222 | LIBS=$ac_check_lib_save_LIBS |
| 10223 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10224 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10225 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10226 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10227 | |
| 10228 | cat >>confdefs.h <<\_ACEOF |
| 10229 | #define HAVE_DLD 1 |
| 10230 | _ACEOF |
| 10231 | |
| 10232 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10233 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10234 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10235 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10236 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10238 | else |
| 10239 | cat >conftest.$ac_ext <<_ACEOF |
| 10240 | /* confdefs.h. */ |
| 10241 | _ACEOF |
| 10242 | cat confdefs.h >>conftest.$ac_ext |
| 10243 | cat >>conftest.$ac_ext <<_ACEOF |
| 10244 | /* end confdefs.h. */ |
| 10245 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10247 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10248 | |
| 10249 | /* System header to define __stub macros and hopefully few prototypes, |
| 10250 | which can conflict with char _dyld_func_lookup (); below. |
| 10251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10252 | <limits.h> exists even on freestanding compilers. */ |
| 10253 | |
| 10254 | #ifdef __STDC__ |
| 10255 | # include <limits.h> |
| 10256 | #else |
| 10257 | # include <assert.h> |
| 10258 | #endif |
| 10259 | |
| 10260 | #undef _dyld_func_lookup |
| 10261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10262 | /* Override any GCC internal prototype to avoid an error. |
| 10263 | Use char because int might match the return type of a GCC |
| 10264 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10265 | #ifdef __cplusplus |
| 10266 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10267 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10268 | char _dyld_func_lookup (); |
| 10269 | /* The GNU C library defines this for functions which it implements |
| 10270 | to always fail with ENOSYS. Some functions are actually named |
| 10271 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10272 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10273 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10274 | #endif |
| 10275 | |
| 10276 | int |
| 10277 | main () |
| 10278 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10279 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10280 | ; |
| 10281 | return 0; |
| 10282 | } |
| 10283 | _ACEOF |
| 10284 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10285 | if { (ac_try="$ac_link" |
| 10286 | case "(($ac_try" in |
| 10287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10288 | *) ac_try_echo=$ac_try;; |
| 10289 | esac |
| 10290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10291 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10292 | ac_status=$? |
| 10293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10294 | rm -f conftest.er1 |
| 10295 | cat conftest.err >&5 |
| 10296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10297 | (exit $ac_status); } && |
| 10298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10299 | { (case "(($ac_try" in |
| 10300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10301 | *) ac_try_echo=$ac_try;; |
| 10302 | esac |
| 10303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10304 | (eval "$ac_try") 2>&5 |
| 10305 | ac_status=$? |
| 10306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10307 | (exit $ac_status); }; } && |
| 10308 | { ac_try='test -s conftest$ac_exeext' |
| 10309 | { (case "(($ac_try" in |
| 10310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10311 | *) ac_try_echo=$ac_try;; |
| 10312 | esac |
| 10313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10314 | (eval "$ac_try") 2>&5 |
| 10315 | ac_status=$? |
| 10316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10317 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10318 | ac_cv_func__dyld_func_lookup=yes |
| 10319 | else |
| 10320 | echo "$as_me: failed program was:" >&5 |
| 10321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10323 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10324 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10325 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10326 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10327 | conftest$ac_exeext conftest.$ac_ext |
| 10328 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10329 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10330 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10331 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10332 | |
| 10333 | cat >>confdefs.h <<\_ACEOF |
| 10334 | #define HAVE_DYLD 1 |
| 10335 | _ACEOF |
| 10336 | |
| 10337 | fi |
| 10338 | |
| 10339 | |
| 10340 | fi |
| 10341 | |
| 10342 | |
| 10343 | fi |
| 10344 | |
| 10345 | |
| 10346 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10347 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10348 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10349 | conftest$ac_exeext conftest.$ac_ext |
| 10350 | |
| 10351 | fi |
| 10352 | |
| 10353 | |
| 10354 | fi |
| 10355 | |
| 10356 | |
| 10357 | fi |
| 10358 | |
| 10359 | |
| 10360 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10361 | then |
| 10362 | lt_save_LIBS="$LIBS" |
| 10363 | LIBS="$LIBS $LIBADD_DL" |
| 10364 | |
| 10365 | for ac_func in dlerror |
| 10366 | do |
| 10367 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10368 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10369 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10370 | 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] | 10371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10372 | else |
| 10373 | cat >conftest.$ac_ext <<_ACEOF |
| 10374 | /* confdefs.h. */ |
| 10375 | _ACEOF |
| 10376 | cat confdefs.h >>conftest.$ac_ext |
| 10377 | cat >>conftest.$ac_ext <<_ACEOF |
| 10378 | /* end confdefs.h. */ |
| 10379 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10380 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10381 | #define $ac_func innocuous_$ac_func |
| 10382 | |
| 10383 | /* System header to define __stub macros and hopefully few prototypes, |
| 10384 | which can conflict with char $ac_func (); below. |
| 10385 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10386 | <limits.h> exists even on freestanding compilers. */ |
| 10387 | |
| 10388 | #ifdef __STDC__ |
| 10389 | # include <limits.h> |
| 10390 | #else |
| 10391 | # include <assert.h> |
| 10392 | #endif |
| 10393 | |
| 10394 | #undef $ac_func |
| 10395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10396 | /* Override any GCC internal prototype to avoid an error. |
| 10397 | Use char because int might match the return type of a GCC |
| 10398 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10399 | #ifdef __cplusplus |
| 10400 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10401 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10402 | char $ac_func (); |
| 10403 | /* The GNU C library defines this for functions which it implements |
| 10404 | to always fail with ENOSYS. Some functions are actually named |
| 10405 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10406 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10407 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10408 | #endif |
| 10409 | |
| 10410 | int |
| 10411 | main () |
| 10412 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10413 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10414 | ; |
| 10415 | return 0; |
| 10416 | } |
| 10417 | _ACEOF |
| 10418 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10419 | if { (ac_try="$ac_link" |
| 10420 | case "(($ac_try" in |
| 10421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10422 | *) ac_try_echo=$ac_try;; |
| 10423 | esac |
| 10424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10425 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10426 | ac_status=$? |
| 10427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10428 | rm -f conftest.er1 |
| 10429 | cat conftest.err >&5 |
| 10430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10431 | (exit $ac_status); } && |
| 10432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10433 | { (case "(($ac_try" in |
| 10434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10435 | *) ac_try_echo=$ac_try;; |
| 10436 | esac |
| 10437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10438 | (eval "$ac_try") 2>&5 |
| 10439 | ac_status=$? |
| 10440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10441 | (exit $ac_status); }; } && |
| 10442 | { ac_try='test -s conftest$ac_exeext' |
| 10443 | { (case "(($ac_try" in |
| 10444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10445 | *) ac_try_echo=$ac_try;; |
| 10446 | esac |
| 10447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10448 | (eval "$ac_try") 2>&5 |
| 10449 | ac_status=$? |
| 10450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10451 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10452 | eval "$as_ac_var=yes" |
| 10453 | else |
| 10454 | echo "$as_me: failed program was:" >&5 |
| 10455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10457 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10458 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10459 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10460 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10461 | conftest$ac_exeext conftest.$ac_ext |
| 10462 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10463 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10464 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10465 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10466 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10467 | cat >>confdefs.h <<_ACEOF |
| 10468 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10469 | _ACEOF |
| 10470 | |
| 10471 | fi |
| 10472 | done |
| 10473 | |
| 10474 | LIBS="$lt_save_LIBS" |
| 10475 | fi |
| 10476 | ac_ext=c |
| 10477 | ac_cpp='$CPP $CPPFLAGS' |
| 10478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10481 | |
| 10482 | |
| 10483 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10484 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10485 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10486 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10488 | else |
| 10489 | ac_cv_sys_symbol_underscore=no |
| 10490 | cat > conftest.$ac_ext <<EOF |
| 10491 | void nm_test_func(){} |
| 10492 | int main(){nm_test_func;return 0;} |
| 10493 | EOF |
| 10494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10495 | (eval $ac_compile) 2>&5 |
| 10496 | ac_status=$? |
| 10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10498 | (exit $ac_status); }; then |
| 10499 | # Now try to grab the symbols. |
| 10500 | ac_nlist=conftest.nm |
| 10501 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10502 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10503 | ac_status=$? |
| 10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10505 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10506 | # See whether the symbols have a leading underscore. |
| 10507 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10508 | ac_cv_sys_symbol_underscore=yes |
| 10509 | else |
| 10510 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10511 | : |
| 10512 | else |
| 10513 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10514 | fi |
| 10515 | fi |
| 10516 | else |
| 10517 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10518 | fi |
| 10519 | else |
| 10520 | echo "configure: failed program was:" >&5 |
| 10521 | cat conftest.c >&5 |
| 10522 | fi |
| 10523 | rm -rf conftest* |
| 10524 | |
| 10525 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10526 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10527 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10528 | |
| 10529 | |
| 10530 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10531 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10532 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10533 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10534 | 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] | 10535 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10537 | else |
| 10538 | libltdl_cv_need_uscore=unknown |
| 10539 | save_LIBS="$LIBS" |
| 10540 | LIBS="$LIBS $LIBADD_DL" |
| 10541 | if test "$cross_compiling" = yes; then : |
| 10542 | libltdl_cv_need_uscore=cross |
| 10543 | else |
| 10544 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10545 | lt_status=$lt_dlunknown |
| 10546 | cat > conftest.$ac_ext <<EOF |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 10547 | #line 10547 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10548 | #include "confdefs.h" |
| 10549 | |
| 10550 | #if HAVE_DLFCN_H |
| 10551 | #include <dlfcn.h> |
| 10552 | #endif |
| 10553 | |
| 10554 | #include <stdio.h> |
| 10555 | |
| 10556 | #ifdef RTLD_GLOBAL |
| 10557 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10558 | #else |
| 10559 | # ifdef DL_GLOBAL |
| 10560 | # define LT_DLGLOBAL DL_GLOBAL |
| 10561 | # else |
| 10562 | # define LT_DLGLOBAL 0 |
| 10563 | # endif |
| 10564 | #endif |
| 10565 | |
| 10566 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10567 | find out it does not work in some platform. */ |
| 10568 | #ifndef LT_DLLAZY_OR_NOW |
| 10569 | # ifdef RTLD_LAZY |
| 10570 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10571 | # else |
| 10572 | # ifdef DL_LAZY |
| 10573 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10574 | # else |
| 10575 | # ifdef RTLD_NOW |
| 10576 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10577 | # else |
| 10578 | # ifdef DL_NOW |
| 10579 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10580 | # else |
| 10581 | # define LT_DLLAZY_OR_NOW 0 |
| 10582 | # endif |
| 10583 | # endif |
| 10584 | # endif |
| 10585 | # endif |
| 10586 | #endif |
| 10587 | |
| 10588 | #ifdef __cplusplus |
| 10589 | extern "C" void exit (int); |
| 10590 | #endif |
| 10591 | |
| 10592 | void fnord() { int i=42;} |
| 10593 | int main () |
| 10594 | { |
| 10595 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10596 | int status = $lt_dlunknown; |
| 10597 | |
| 10598 | if (self) |
| 10599 | { |
| 10600 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10601 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10602 | /* dlclose (self); */ |
| 10603 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10604 | else |
| 10605 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10606 | |
| 10607 | exit (status); |
| 10608 | } |
| 10609 | EOF |
| 10610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10611 | (eval $ac_link) 2>&5 |
| 10612 | ac_status=$? |
| 10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10614 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10615 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10616 | lt_status=$? |
| 10617 | case x$lt_status in |
| 10618 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10619 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10620 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10621 | esac |
| 10622 | else : |
| 10623 | # compilation failed |
| 10624 | |
| 10625 | fi |
| 10626 | fi |
| 10627 | rm -fr conftest* |
| 10628 | |
| 10629 | LIBS="$save_LIBS" |
| 10630 | |
| 10631 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10632 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10633 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10634 | fi |
| 10635 | fi |
| 10636 | |
| 10637 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10638 | |
| 10639 | cat >>confdefs.h <<\_ACEOF |
| 10640 | #define NEED_USCORE 1 |
| 10641 | _ACEOF |
| 10642 | |
| 10643 | fi |
| 10644 | |
| 10645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10646 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10647 | 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] | 10648 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10650 | else |
| 10651 | # PORTME does your system automatically load deplibs for dlopen? |
| 10652 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10653 | # For now, we just catch OSes we know something about -- in the |
| 10654 | # future, we'll try test this programmatically. |
| 10655 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10656 | case "$host_os" in |
| 10657 | aix3*|aix4.1.*|aix4.2.*) |
| 10658 | # Unknown whether this is true for these versions of AIX, but |
| 10659 | # we want this `case' here to explicitly catch those versions. |
| 10660 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10661 | ;; |
| 10662 | aix[45]*) |
| 10663 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10664 | ;; |
| 10665 | darwin*) |
| 10666 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10667 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10668 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10669 | ;; |
| 10670 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10671 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10672 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10673 | ;; |
| 10674 | hpux10*|hpux11*) |
| 10675 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10676 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10677 | interix*) |
| 10678 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10679 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10680 | irix[12345]*|irix6.[01]*) |
| 10681 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10682 | # know how it worked for any of those versions. |
| 10683 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10684 | ;; |
| 10685 | irix*) |
| 10686 | # The case above catches anything before 6.2, and it's known that |
| 10687 | # at 6.2 and later dlopen does load deplibs. |
| 10688 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10689 | ;; |
| 10690 | netbsd*) |
| 10691 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10692 | ;; |
| 10693 | openbsd*) |
| 10694 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10695 | ;; |
| 10696 | osf[1234]*) |
| 10697 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10698 | # it did *not* use an RPATH in a shared library to find objects the |
| 10699 | # library depends on, so we explictly say `no'. |
| 10700 | libltdl_cv_sys_dlopen_deplibs=no |
| 10701 | ;; |
| 10702 | osf5.0|osf5.0a|osf5.1) |
| 10703 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10704 | # it even uses RPATH in a shared library to search for shared objects |
| 10705 | # that the library depends on, but there's no easy way to know if that |
| 10706 | # patch is installed. Since this is the case, all we can really |
| 10707 | # say is unknown -- it depends on the patch being installed. If |
| 10708 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10709 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10710 | ;; |
| 10711 | osf*) |
| 10712 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10713 | # the comments above for what we know about them. |
| 10714 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10715 | # is used to find them so we can finally say `yes'. |
| 10716 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10717 | ;; |
| 10718 | solaris*) |
| 10719 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10720 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10721 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10722 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10723 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10724 | esac |
| 10725 | |
| 10726 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10727 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10728 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10729 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10730 | |
| 10731 | cat >>confdefs.h <<\_ACEOF |
| 10732 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10733 | _ACEOF |
| 10734 | |
| 10735 | fi |
| 10736 | |
| 10737 | |
| 10738 | for ac_header in argz.h |
| 10739 | do |
| 10740 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10741 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10742 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10744 | 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] | 10745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10746 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10747 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10748 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10749 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10750 | else |
| 10751 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10752 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10753 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10754 | cat >conftest.$ac_ext <<_ACEOF |
| 10755 | /* confdefs.h. */ |
| 10756 | _ACEOF |
| 10757 | cat confdefs.h >>conftest.$ac_ext |
| 10758 | cat >>conftest.$ac_ext <<_ACEOF |
| 10759 | /* end confdefs.h. */ |
| 10760 | $ac_includes_default |
| 10761 | #include <$ac_header> |
| 10762 | _ACEOF |
| 10763 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10764 | if { (ac_try="$ac_compile" |
| 10765 | case "(($ac_try" in |
| 10766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10767 | *) ac_try_echo=$ac_try;; |
| 10768 | esac |
| 10769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10770 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10771 | ac_status=$? |
| 10772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10773 | rm -f conftest.er1 |
| 10774 | cat conftest.err >&5 |
| 10775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10776 | (exit $ac_status); } && |
| 10777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10778 | { (case "(($ac_try" in |
| 10779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10780 | *) ac_try_echo=$ac_try;; |
| 10781 | esac |
| 10782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10783 | (eval "$ac_try") 2>&5 |
| 10784 | ac_status=$? |
| 10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10786 | (exit $ac_status); }; } && |
| 10787 | { ac_try='test -s conftest.$ac_objext' |
| 10788 | { (case "(($ac_try" in |
| 10789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10790 | *) ac_try_echo=$ac_try;; |
| 10791 | esac |
| 10792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10793 | (eval "$ac_try") 2>&5 |
| 10794 | ac_status=$? |
| 10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10796 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10797 | ac_header_compiler=yes |
| 10798 | else |
| 10799 | echo "$as_me: failed program was:" >&5 |
| 10800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10802 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10803 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10804 | |
| 10805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10806 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10807 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10808 | |
| 10809 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10810 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10811 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10812 | cat >conftest.$ac_ext <<_ACEOF |
| 10813 | /* confdefs.h. */ |
| 10814 | _ACEOF |
| 10815 | cat confdefs.h >>conftest.$ac_ext |
| 10816 | cat >>conftest.$ac_ext <<_ACEOF |
| 10817 | /* end confdefs.h. */ |
| 10818 | #include <$ac_header> |
| 10819 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10820 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10821 | case "(($ac_try" in |
| 10822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10823 | *) ac_try_echo=$ac_try;; |
| 10824 | esac |
| 10825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10826 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10827 | ac_status=$? |
| 10828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10829 | rm -f conftest.er1 |
| 10830 | cat conftest.err >&5 |
| 10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10832 | (exit $ac_status); } >/dev/null; then |
| 10833 | if test -s conftest.err; then |
| 10834 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10835 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10836 | else |
| 10837 | ac_cpp_err= |
| 10838 | fi |
| 10839 | else |
| 10840 | ac_cpp_err=yes |
| 10841 | fi |
| 10842 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10843 | ac_header_preproc=yes |
| 10844 | else |
| 10845 | echo "$as_me: failed program was:" >&5 |
| 10846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10847 | |
| 10848 | ac_header_preproc=no |
| 10849 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10850 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10851 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10852 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10853 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10854 | |
| 10855 | # So? What about this header? |
| 10856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10857 | yes:no: ) |
| 10858 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10859 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10861 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10862 | ac_header_preproc=yes |
| 10863 | ;; |
| 10864 | no:yes:* ) |
| 10865 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10866 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10867 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10868 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10869 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10870 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10871 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10872 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10874 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10875 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10876 | 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] | 10877 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10878 | ## ----------------------------------- ## |
| 10879 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10880 | ## ----------------------------------- ## |
| 10881 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10882 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10883 | ;; |
| 10884 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10885 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10887 | 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] | 10888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10889 | else |
| 10890 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10891 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10892 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10893 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10894 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10895 | |
| 10896 | fi |
| 10897 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10898 | cat >>confdefs.h <<_ACEOF |
| 10899 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10900 | _ACEOF |
| 10901 | |
| 10902 | fi |
| 10903 | |
| 10904 | done |
| 10905 | |
| 10906 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10907 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10908 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10909 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10911 | else |
| 10912 | cat >conftest.$ac_ext <<_ACEOF |
| 10913 | /* confdefs.h. */ |
| 10914 | _ACEOF |
| 10915 | cat confdefs.h >>conftest.$ac_ext |
| 10916 | cat >>conftest.$ac_ext <<_ACEOF |
| 10917 | /* end confdefs.h. */ |
| 10918 | #if HAVE_ARGZ_H |
| 10919 | # include <argz.h> |
| 10920 | #endif |
| 10921 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10922 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10923 | int |
| 10924 | main () |
| 10925 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10926 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10927 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10928 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10929 | return 0; |
| 10930 | ; |
| 10931 | return 0; |
| 10932 | } |
| 10933 | _ACEOF |
| 10934 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10935 | if { (ac_try="$ac_compile" |
| 10936 | case "(($ac_try" in |
| 10937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10938 | *) ac_try_echo=$ac_try;; |
| 10939 | esac |
| 10940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10941 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10942 | ac_status=$? |
| 10943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10944 | rm -f conftest.er1 |
| 10945 | cat conftest.err >&5 |
| 10946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 10947 | (exit $ac_status); } && |
| 10948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10949 | { (case "(($ac_try" in |
| 10950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10951 | *) ac_try_echo=$ac_try;; |
| 10952 | esac |
| 10953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10954 | (eval "$ac_try") 2>&5 |
| 10955 | ac_status=$? |
| 10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10957 | (exit $ac_status); }; } && |
| 10958 | { ac_try='test -s conftest.$ac_objext' |
| 10959 | { (case "(($ac_try" in |
| 10960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10961 | *) ac_try_echo=$ac_try;; |
| 10962 | esac |
| 10963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10964 | (eval "$ac_try") 2>&5 |
| 10965 | ac_status=$? |
| 10966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10967 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10968 | ac_cv_type_error_t=yes |
| 10969 | else |
| 10970 | echo "$as_me: failed program was:" >&5 |
| 10971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10972 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10973 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10974 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10975 | |
| 10976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10977 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10978 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10979 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10980 | if test $ac_cv_type_error_t = yes; then |
| 10981 | |
| 10982 | cat >>confdefs.h <<_ACEOF |
| 10983 | #define HAVE_ERROR_T 1 |
| 10984 | _ACEOF |
| 10985 | |
| 10986 | |
| 10987 | else |
| 10988 | |
| 10989 | cat >>confdefs.h <<\_ACEOF |
| 10990 | #define error_t int |
| 10991 | _ACEOF |
| 10992 | |
| 10993 | fi |
| 10994 | |
| 10995 | |
| 10996 | |
| 10997 | |
| 10998 | |
| 10999 | |
| 11000 | |
| 11001 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11002 | do |
| 11003 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11004 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11005 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11006 | 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] | 11007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11008 | else |
| 11009 | cat >conftest.$ac_ext <<_ACEOF |
| 11010 | /* confdefs.h. */ |
| 11011 | _ACEOF |
| 11012 | cat confdefs.h >>conftest.$ac_ext |
| 11013 | cat >>conftest.$ac_ext <<_ACEOF |
| 11014 | /* end confdefs.h. */ |
| 11015 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11016 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11017 | #define $ac_func innocuous_$ac_func |
| 11018 | |
| 11019 | /* System header to define __stub macros and hopefully few prototypes, |
| 11020 | which can conflict with char $ac_func (); below. |
| 11021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11022 | <limits.h> exists even on freestanding compilers. */ |
| 11023 | |
| 11024 | #ifdef __STDC__ |
| 11025 | # include <limits.h> |
| 11026 | #else |
| 11027 | # include <assert.h> |
| 11028 | #endif |
| 11029 | |
| 11030 | #undef $ac_func |
| 11031 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11032 | /* Override any GCC internal prototype to avoid an error. |
| 11033 | Use char because int might match the return type of a GCC |
| 11034 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11035 | #ifdef __cplusplus |
| 11036 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11037 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11038 | char $ac_func (); |
| 11039 | /* The GNU C library defines this for functions which it implements |
| 11040 | to always fail with ENOSYS. Some functions are actually named |
| 11041 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11042 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11043 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11044 | #endif |
| 11045 | |
| 11046 | int |
| 11047 | main () |
| 11048 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11049 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11050 | ; |
| 11051 | return 0; |
| 11052 | } |
| 11053 | _ACEOF |
| 11054 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11055 | if { (ac_try="$ac_link" |
| 11056 | case "(($ac_try" in |
| 11057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11058 | *) ac_try_echo=$ac_try;; |
| 11059 | esac |
| 11060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11061 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11062 | ac_status=$? |
| 11063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11064 | rm -f conftest.er1 |
| 11065 | cat conftest.err >&5 |
| 11066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11067 | (exit $ac_status); } && |
| 11068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11069 | { (case "(($ac_try" in |
| 11070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11071 | *) ac_try_echo=$ac_try;; |
| 11072 | esac |
| 11073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11074 | (eval "$ac_try") 2>&5 |
| 11075 | ac_status=$? |
| 11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11077 | (exit $ac_status); }; } && |
| 11078 | { ac_try='test -s conftest$ac_exeext' |
| 11079 | { (case "(($ac_try" in |
| 11080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11081 | *) ac_try_echo=$ac_try;; |
| 11082 | esac |
| 11083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11084 | (eval "$ac_try") 2>&5 |
| 11085 | ac_status=$? |
| 11086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11087 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11088 | eval "$as_ac_var=yes" |
| 11089 | else |
| 11090 | echo "$as_me: failed program was:" >&5 |
| 11091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11092 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11093 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11094 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11095 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11096 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11097 | conftest$ac_exeext conftest.$ac_ext |
| 11098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11099 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11100 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11101 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11102 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11103 | cat >>confdefs.h <<_ACEOF |
| 11104 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11105 | _ACEOF |
| 11106 | |
| 11107 | fi |
| 11108 | done |
| 11109 | |
| 11110 | |
| 11111 | |
| 11112 | |
| 11113 | |
| 11114 | |
| 11115 | |
| 11116 | |
| 11117 | |
| 11118 | |
| 11119 | |
| 11120 | |
| 11121 | |
| 11122 | |
| 11123 | |
| 11124 | |
| 11125 | |
| 11126 | |
| 11127 | |
| 11128 | |
| 11129 | |
| 11130 | |
| 11131 | |
| 11132 | |
| 11133 | |
| 11134 | |
| 11135 | |
| 11136 | |
| 11137 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11138 | stdio.h unistd.h |
| 11139 | do |
| 11140 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11141 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11142 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11144 | 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] | 11145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11146 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11147 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11148 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11149 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11150 | else |
| 11151 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11152 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11153 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11154 | cat >conftest.$ac_ext <<_ACEOF |
| 11155 | /* confdefs.h. */ |
| 11156 | _ACEOF |
| 11157 | cat confdefs.h >>conftest.$ac_ext |
| 11158 | cat >>conftest.$ac_ext <<_ACEOF |
| 11159 | /* end confdefs.h. */ |
| 11160 | $ac_includes_default |
| 11161 | #include <$ac_header> |
| 11162 | _ACEOF |
| 11163 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11164 | if { (ac_try="$ac_compile" |
| 11165 | case "(($ac_try" in |
| 11166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11167 | *) ac_try_echo=$ac_try;; |
| 11168 | esac |
| 11169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11170 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11171 | ac_status=$? |
| 11172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11173 | rm -f conftest.er1 |
| 11174 | cat conftest.err >&5 |
| 11175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11176 | (exit $ac_status); } && |
| 11177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11178 | { (case "(($ac_try" in |
| 11179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11180 | *) ac_try_echo=$ac_try;; |
| 11181 | esac |
| 11182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11183 | (eval "$ac_try") 2>&5 |
| 11184 | ac_status=$? |
| 11185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11186 | (exit $ac_status); }; } && |
| 11187 | { ac_try='test -s conftest.$ac_objext' |
| 11188 | { (case "(($ac_try" in |
| 11189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11190 | *) ac_try_echo=$ac_try;; |
| 11191 | esac |
| 11192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11193 | (eval "$ac_try") 2>&5 |
| 11194 | ac_status=$? |
| 11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11196 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11197 | ac_header_compiler=yes |
| 11198 | else |
| 11199 | echo "$as_me: failed program was:" >&5 |
| 11200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11202 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11203 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11204 | |
| 11205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11206 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11207 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11208 | |
| 11209 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11210 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11211 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11212 | cat >conftest.$ac_ext <<_ACEOF |
| 11213 | /* confdefs.h. */ |
| 11214 | _ACEOF |
| 11215 | cat confdefs.h >>conftest.$ac_ext |
| 11216 | cat >>conftest.$ac_ext <<_ACEOF |
| 11217 | /* end confdefs.h. */ |
| 11218 | #include <$ac_header> |
| 11219 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11220 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11221 | case "(($ac_try" in |
| 11222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11223 | *) ac_try_echo=$ac_try;; |
| 11224 | esac |
| 11225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11226 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11227 | ac_status=$? |
| 11228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11229 | rm -f conftest.er1 |
| 11230 | cat conftest.err >&5 |
| 11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11232 | (exit $ac_status); } >/dev/null; then |
| 11233 | if test -s conftest.err; then |
| 11234 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11235 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11236 | else |
| 11237 | ac_cpp_err= |
| 11238 | fi |
| 11239 | else |
| 11240 | ac_cpp_err=yes |
| 11241 | fi |
| 11242 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11243 | ac_header_preproc=yes |
| 11244 | else |
| 11245 | echo "$as_me: failed program was:" >&5 |
| 11246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11247 | |
| 11248 | ac_header_preproc=no |
| 11249 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11250 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11251 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11252 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11253 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11254 | |
| 11255 | # So? What about this header? |
| 11256 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11257 | yes:no: ) |
| 11258 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11259 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11260 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11261 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11262 | ac_header_preproc=yes |
| 11263 | ;; |
| 11264 | no:yes:* ) |
| 11265 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11266 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11267 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11268 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11269 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11270 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11271 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11272 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11274 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11275 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11276 | 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] | 11277 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11278 | ## ----------------------------------- ## |
| 11279 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11280 | ## ----------------------------------- ## |
| 11281 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11282 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11283 | ;; |
| 11284 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11285 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11286 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11287 | 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] | 11288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11289 | else |
| 11290 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11292 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11293 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11294 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11295 | |
| 11296 | fi |
| 11297 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11298 | cat >>confdefs.h <<_ACEOF |
| 11299 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11300 | _ACEOF |
| 11301 | |
| 11302 | fi |
| 11303 | |
| 11304 | done |
| 11305 | |
| 11306 | |
| 11307 | |
| 11308 | |
| 11309 | |
| 11310 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11311 | do |
| 11312 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11313 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11314 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11316 | 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] | 11317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11318 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11319 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11320 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11321 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11322 | else |
| 11323 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11324 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11325 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11326 | cat >conftest.$ac_ext <<_ACEOF |
| 11327 | /* confdefs.h. */ |
| 11328 | _ACEOF |
| 11329 | cat confdefs.h >>conftest.$ac_ext |
| 11330 | cat >>conftest.$ac_ext <<_ACEOF |
| 11331 | /* end confdefs.h. */ |
| 11332 | $ac_includes_default |
| 11333 | #include <$ac_header> |
| 11334 | _ACEOF |
| 11335 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11336 | if { (ac_try="$ac_compile" |
| 11337 | case "(($ac_try" in |
| 11338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11339 | *) ac_try_echo=$ac_try;; |
| 11340 | esac |
| 11341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11342 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11343 | ac_status=$? |
| 11344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11345 | rm -f conftest.er1 |
| 11346 | cat conftest.err >&5 |
| 11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11348 | (exit $ac_status); } && |
| 11349 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11350 | { (case "(($ac_try" in |
| 11351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11352 | *) ac_try_echo=$ac_try;; |
| 11353 | esac |
| 11354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11355 | (eval "$ac_try") 2>&5 |
| 11356 | ac_status=$? |
| 11357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11358 | (exit $ac_status); }; } && |
| 11359 | { ac_try='test -s conftest.$ac_objext' |
| 11360 | { (case "(($ac_try" in |
| 11361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11362 | *) ac_try_echo=$ac_try;; |
| 11363 | esac |
| 11364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11365 | (eval "$ac_try") 2>&5 |
| 11366 | ac_status=$? |
| 11367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11368 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11369 | ac_header_compiler=yes |
| 11370 | else |
| 11371 | echo "$as_me: failed program was:" >&5 |
| 11372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11374 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11375 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11376 | |
| 11377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11378 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11379 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11380 | |
| 11381 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11382 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11384 | cat >conftest.$ac_ext <<_ACEOF |
| 11385 | /* confdefs.h. */ |
| 11386 | _ACEOF |
| 11387 | cat confdefs.h >>conftest.$ac_ext |
| 11388 | cat >>conftest.$ac_ext <<_ACEOF |
| 11389 | /* end confdefs.h. */ |
| 11390 | #include <$ac_header> |
| 11391 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11392 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11393 | case "(($ac_try" in |
| 11394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11395 | *) ac_try_echo=$ac_try;; |
| 11396 | esac |
| 11397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11398 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11399 | ac_status=$? |
| 11400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11401 | rm -f conftest.er1 |
| 11402 | cat conftest.err >&5 |
| 11403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11404 | (exit $ac_status); } >/dev/null; then |
| 11405 | if test -s conftest.err; then |
| 11406 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11407 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11408 | else |
| 11409 | ac_cpp_err= |
| 11410 | fi |
| 11411 | else |
| 11412 | ac_cpp_err=yes |
| 11413 | fi |
| 11414 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11415 | ac_header_preproc=yes |
| 11416 | else |
| 11417 | echo "$as_me: failed program was:" >&5 |
| 11418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11419 | |
| 11420 | ac_header_preproc=no |
| 11421 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11422 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11423 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11424 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11425 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11426 | |
| 11427 | # So? What about this header? |
| 11428 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11429 | yes:no: ) |
| 11430 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11431 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11432 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11433 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11434 | ac_header_preproc=yes |
| 11435 | ;; |
| 11436 | no:yes:* ) |
| 11437 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11438 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11439 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11440 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11441 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11442 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11443 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11444 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11446 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11447 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11448 | 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] | 11449 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11450 | ## ----------------------------------- ## |
| 11451 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11452 | ## ----------------------------------- ## |
| 11453 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11454 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11455 | ;; |
| 11456 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11457 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11459 | 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] | 11460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11461 | else |
| 11462 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11463 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11464 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11465 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11466 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11467 | |
| 11468 | fi |
| 11469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11470 | cat >>confdefs.h <<_ACEOF |
| 11471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11472 | _ACEOF |
| 11473 | |
| 11474 | fi |
| 11475 | |
| 11476 | done |
| 11477 | |
| 11478 | |
| 11479 | |
| 11480 | for ac_header in string.h strings.h |
| 11481 | do |
| 11482 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11483 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11484 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11485 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11486 | 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] | 11487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11488 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11489 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11490 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11491 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11492 | else |
| 11493 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11494 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11495 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11496 | cat >conftest.$ac_ext <<_ACEOF |
| 11497 | /* confdefs.h. */ |
| 11498 | _ACEOF |
| 11499 | cat confdefs.h >>conftest.$ac_ext |
| 11500 | cat >>conftest.$ac_ext <<_ACEOF |
| 11501 | /* end confdefs.h. */ |
| 11502 | $ac_includes_default |
| 11503 | #include <$ac_header> |
| 11504 | _ACEOF |
| 11505 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11506 | if { (ac_try="$ac_compile" |
| 11507 | case "(($ac_try" in |
| 11508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11509 | *) ac_try_echo=$ac_try;; |
| 11510 | esac |
| 11511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11512 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11513 | ac_status=$? |
| 11514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11515 | rm -f conftest.er1 |
| 11516 | cat conftest.err >&5 |
| 11517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11518 | (exit $ac_status); } && |
| 11519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11520 | { (case "(($ac_try" in |
| 11521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11522 | *) ac_try_echo=$ac_try;; |
| 11523 | esac |
| 11524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11525 | (eval "$ac_try") 2>&5 |
| 11526 | ac_status=$? |
| 11527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11528 | (exit $ac_status); }; } && |
| 11529 | { ac_try='test -s conftest.$ac_objext' |
| 11530 | { (case "(($ac_try" in |
| 11531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11532 | *) ac_try_echo=$ac_try;; |
| 11533 | esac |
| 11534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11535 | (eval "$ac_try") 2>&5 |
| 11536 | ac_status=$? |
| 11537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11538 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11539 | ac_header_compiler=yes |
| 11540 | else |
| 11541 | echo "$as_me: failed program was:" >&5 |
| 11542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11544 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11545 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11546 | |
| 11547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11548 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11549 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11550 | |
| 11551 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11552 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11553 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11554 | cat >conftest.$ac_ext <<_ACEOF |
| 11555 | /* confdefs.h. */ |
| 11556 | _ACEOF |
| 11557 | cat confdefs.h >>conftest.$ac_ext |
| 11558 | cat >>conftest.$ac_ext <<_ACEOF |
| 11559 | /* end confdefs.h. */ |
| 11560 | #include <$ac_header> |
| 11561 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11562 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11563 | case "(($ac_try" in |
| 11564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11565 | *) ac_try_echo=$ac_try;; |
| 11566 | esac |
| 11567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11568 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11569 | ac_status=$? |
| 11570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11571 | rm -f conftest.er1 |
| 11572 | cat conftest.err >&5 |
| 11573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11574 | (exit $ac_status); } >/dev/null; then |
| 11575 | if test -s conftest.err; then |
| 11576 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11577 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11578 | else |
| 11579 | ac_cpp_err= |
| 11580 | fi |
| 11581 | else |
| 11582 | ac_cpp_err=yes |
| 11583 | fi |
| 11584 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11585 | ac_header_preproc=yes |
| 11586 | else |
| 11587 | echo "$as_me: failed program was:" >&5 |
| 11588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11589 | |
| 11590 | ac_header_preproc=no |
| 11591 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11592 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11593 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11594 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11595 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11596 | |
| 11597 | # So? What about this header? |
| 11598 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11599 | yes:no: ) |
| 11600 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11601 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11603 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11604 | ac_header_preproc=yes |
| 11605 | ;; |
| 11606 | no:yes:* ) |
| 11607 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11608 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11609 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11610 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11611 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11612 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11613 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11614 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11615 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11616 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11617 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11618 | 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] | 11619 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11620 | ## ----------------------------------- ## |
| 11621 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11622 | ## ----------------------------------- ## |
| 11623 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11624 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11625 | ;; |
| 11626 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11627 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11628 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11629 | 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] | 11630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11631 | else |
| 11632 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11633 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11634 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11635 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11636 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11637 | |
| 11638 | fi |
| 11639 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11640 | cat >>confdefs.h <<_ACEOF |
| 11641 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11642 | _ACEOF |
| 11643 | break |
| 11644 | fi |
| 11645 | |
| 11646 | done |
| 11647 | |
| 11648 | |
| 11649 | |
| 11650 | |
| 11651 | for ac_func in strchr index |
| 11652 | do |
| 11653 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11654 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11655 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11656 | 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] | 11657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11658 | else |
| 11659 | cat >conftest.$ac_ext <<_ACEOF |
| 11660 | /* confdefs.h. */ |
| 11661 | _ACEOF |
| 11662 | cat confdefs.h >>conftest.$ac_ext |
| 11663 | cat >>conftest.$ac_ext <<_ACEOF |
| 11664 | /* end confdefs.h. */ |
| 11665 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11666 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11667 | #define $ac_func innocuous_$ac_func |
| 11668 | |
| 11669 | /* System header to define __stub macros and hopefully few prototypes, |
| 11670 | which can conflict with char $ac_func (); below. |
| 11671 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11672 | <limits.h> exists even on freestanding compilers. */ |
| 11673 | |
| 11674 | #ifdef __STDC__ |
| 11675 | # include <limits.h> |
| 11676 | #else |
| 11677 | # include <assert.h> |
| 11678 | #endif |
| 11679 | |
| 11680 | #undef $ac_func |
| 11681 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11682 | /* Override any GCC internal prototype to avoid an error. |
| 11683 | Use char because int might match the return type of a GCC |
| 11684 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11685 | #ifdef __cplusplus |
| 11686 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11687 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11688 | char $ac_func (); |
| 11689 | /* The GNU C library defines this for functions which it implements |
| 11690 | to always fail with ENOSYS. Some functions are actually named |
| 11691 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11692 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11693 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11694 | #endif |
| 11695 | |
| 11696 | int |
| 11697 | main () |
| 11698 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11699 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11700 | ; |
| 11701 | return 0; |
| 11702 | } |
| 11703 | _ACEOF |
| 11704 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11705 | if { (ac_try="$ac_link" |
| 11706 | case "(($ac_try" in |
| 11707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11708 | *) ac_try_echo=$ac_try;; |
| 11709 | esac |
| 11710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11711 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11712 | ac_status=$? |
| 11713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11714 | rm -f conftest.er1 |
| 11715 | cat conftest.err >&5 |
| 11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11717 | (exit $ac_status); } && |
| 11718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11719 | { (case "(($ac_try" in |
| 11720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11721 | *) ac_try_echo=$ac_try;; |
| 11722 | esac |
| 11723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11724 | (eval "$ac_try") 2>&5 |
| 11725 | ac_status=$? |
| 11726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11727 | (exit $ac_status); }; } && |
| 11728 | { ac_try='test -s conftest$ac_exeext' |
| 11729 | { (case "(($ac_try" in |
| 11730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11731 | *) ac_try_echo=$ac_try;; |
| 11732 | esac |
| 11733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11734 | (eval "$ac_try") 2>&5 |
| 11735 | ac_status=$? |
| 11736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11737 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11738 | eval "$as_ac_var=yes" |
| 11739 | else |
| 11740 | echo "$as_me: failed program was:" >&5 |
| 11741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11742 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11743 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11744 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11745 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11746 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11747 | conftest$ac_exeext conftest.$ac_ext |
| 11748 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11749 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11750 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11751 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11752 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11753 | cat >>confdefs.h <<_ACEOF |
| 11754 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11755 | _ACEOF |
| 11756 | break |
| 11757 | fi |
| 11758 | done |
| 11759 | |
| 11760 | |
| 11761 | |
| 11762 | for ac_func in strrchr rindex |
| 11763 | do |
| 11764 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11765 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11766 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11767 | 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] | 11768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11769 | else |
| 11770 | cat >conftest.$ac_ext <<_ACEOF |
| 11771 | /* confdefs.h. */ |
| 11772 | _ACEOF |
| 11773 | cat confdefs.h >>conftest.$ac_ext |
| 11774 | cat >>conftest.$ac_ext <<_ACEOF |
| 11775 | /* end confdefs.h. */ |
| 11776 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11778 | #define $ac_func innocuous_$ac_func |
| 11779 | |
| 11780 | /* System header to define __stub macros and hopefully few prototypes, |
| 11781 | which can conflict with char $ac_func (); below. |
| 11782 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11783 | <limits.h> exists even on freestanding compilers. */ |
| 11784 | |
| 11785 | #ifdef __STDC__ |
| 11786 | # include <limits.h> |
| 11787 | #else |
| 11788 | # include <assert.h> |
| 11789 | #endif |
| 11790 | |
| 11791 | #undef $ac_func |
| 11792 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11793 | /* Override any GCC internal prototype to avoid an error. |
| 11794 | Use char because int might match the return type of a GCC |
| 11795 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11796 | #ifdef __cplusplus |
| 11797 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11798 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11799 | char $ac_func (); |
| 11800 | /* The GNU C library defines this for functions which it implements |
| 11801 | to always fail with ENOSYS. Some functions are actually named |
| 11802 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11803 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11804 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11805 | #endif |
| 11806 | |
| 11807 | int |
| 11808 | main () |
| 11809 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11810 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11811 | ; |
| 11812 | return 0; |
| 11813 | } |
| 11814 | _ACEOF |
| 11815 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11816 | if { (ac_try="$ac_link" |
| 11817 | case "(($ac_try" in |
| 11818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11819 | *) ac_try_echo=$ac_try;; |
| 11820 | esac |
| 11821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11822 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11823 | ac_status=$? |
| 11824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11825 | rm -f conftest.er1 |
| 11826 | cat conftest.err >&5 |
| 11827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11828 | (exit $ac_status); } && |
| 11829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11830 | { (case "(($ac_try" in |
| 11831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11832 | *) ac_try_echo=$ac_try;; |
| 11833 | esac |
| 11834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11835 | (eval "$ac_try") 2>&5 |
| 11836 | ac_status=$? |
| 11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11838 | (exit $ac_status); }; } && |
| 11839 | { ac_try='test -s conftest$ac_exeext' |
| 11840 | { (case "(($ac_try" in |
| 11841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11842 | *) ac_try_echo=$ac_try;; |
| 11843 | esac |
| 11844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11845 | (eval "$ac_try") 2>&5 |
| 11846 | ac_status=$? |
| 11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11848 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11849 | eval "$as_ac_var=yes" |
| 11850 | else |
| 11851 | echo "$as_me: failed program was:" >&5 |
| 11852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11854 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11855 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11856 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11857 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11858 | conftest$ac_exeext conftest.$ac_ext |
| 11859 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11860 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11861 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11862 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11863 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11864 | cat >>confdefs.h <<_ACEOF |
| 11865 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11866 | _ACEOF |
| 11867 | break |
| 11868 | fi |
| 11869 | done |
| 11870 | |
| 11871 | |
| 11872 | |
| 11873 | for ac_func in memcpy bcopy |
| 11874 | do |
| 11875 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11876 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11877 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11878 | 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] | 11879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11880 | else |
| 11881 | cat >conftest.$ac_ext <<_ACEOF |
| 11882 | /* confdefs.h. */ |
| 11883 | _ACEOF |
| 11884 | cat confdefs.h >>conftest.$ac_ext |
| 11885 | cat >>conftest.$ac_ext <<_ACEOF |
| 11886 | /* end confdefs.h. */ |
| 11887 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11889 | #define $ac_func innocuous_$ac_func |
| 11890 | |
| 11891 | /* System header to define __stub macros and hopefully few prototypes, |
| 11892 | which can conflict with char $ac_func (); below. |
| 11893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11894 | <limits.h> exists even on freestanding compilers. */ |
| 11895 | |
| 11896 | #ifdef __STDC__ |
| 11897 | # include <limits.h> |
| 11898 | #else |
| 11899 | # include <assert.h> |
| 11900 | #endif |
| 11901 | |
| 11902 | #undef $ac_func |
| 11903 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11904 | /* Override any GCC internal prototype to avoid an error. |
| 11905 | Use char because int might match the return type of a GCC |
| 11906 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11907 | #ifdef __cplusplus |
| 11908 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11909 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11910 | char $ac_func (); |
| 11911 | /* The GNU C library defines this for functions which it implements |
| 11912 | to always fail with ENOSYS. Some functions are actually named |
| 11913 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11914 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11915 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11916 | #endif |
| 11917 | |
| 11918 | int |
| 11919 | main () |
| 11920 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11921 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11922 | ; |
| 11923 | return 0; |
| 11924 | } |
| 11925 | _ACEOF |
| 11926 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11927 | if { (ac_try="$ac_link" |
| 11928 | case "(($ac_try" in |
| 11929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11930 | *) ac_try_echo=$ac_try;; |
| 11931 | esac |
| 11932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11933 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11934 | ac_status=$? |
| 11935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11936 | rm -f conftest.er1 |
| 11937 | cat conftest.err >&5 |
| 11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11939 | (exit $ac_status); } && |
| 11940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11941 | { (case "(($ac_try" in |
| 11942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11943 | *) ac_try_echo=$ac_try;; |
| 11944 | esac |
| 11945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11946 | (eval "$ac_try") 2>&5 |
| 11947 | ac_status=$? |
| 11948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11949 | (exit $ac_status); }; } && |
| 11950 | { ac_try='test -s conftest$ac_exeext' |
| 11951 | { (case "(($ac_try" in |
| 11952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11953 | *) ac_try_echo=$ac_try;; |
| 11954 | esac |
| 11955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11956 | (eval "$ac_try") 2>&5 |
| 11957 | ac_status=$? |
| 11958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11959 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11960 | eval "$as_ac_var=yes" |
| 11961 | else |
| 11962 | echo "$as_me: failed program was:" >&5 |
| 11963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11964 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11965 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11966 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11967 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 11968 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11969 | conftest$ac_exeext conftest.$ac_ext |
| 11970 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11971 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11972 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11973 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11974 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11975 | cat >>confdefs.h <<_ACEOF |
| 11976 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11977 | _ACEOF |
| 11978 | break |
| 11979 | fi |
| 11980 | done |
| 11981 | |
| 11982 | |
| 11983 | |
| 11984 | for ac_func in memmove strcmp |
| 11985 | do |
| 11986 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11987 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11988 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11989 | 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] | 11990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11991 | else |
| 11992 | cat >conftest.$ac_ext <<_ACEOF |
| 11993 | /* confdefs.h. */ |
| 11994 | _ACEOF |
| 11995 | cat confdefs.h >>conftest.$ac_ext |
| 11996 | cat >>conftest.$ac_ext <<_ACEOF |
| 11997 | /* end confdefs.h. */ |
| 11998 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11999 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12000 | #define $ac_func innocuous_$ac_func |
| 12001 | |
| 12002 | /* System header to define __stub macros and hopefully few prototypes, |
| 12003 | which can conflict with char $ac_func (); below. |
| 12004 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12005 | <limits.h> exists even on freestanding compilers. */ |
| 12006 | |
| 12007 | #ifdef __STDC__ |
| 12008 | # include <limits.h> |
| 12009 | #else |
| 12010 | # include <assert.h> |
| 12011 | #endif |
| 12012 | |
| 12013 | #undef $ac_func |
| 12014 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12015 | /* Override any GCC internal prototype to avoid an error. |
| 12016 | Use char because int might match the return type of a GCC |
| 12017 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12018 | #ifdef __cplusplus |
| 12019 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12020 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12021 | char $ac_func (); |
| 12022 | /* The GNU C library defines this for functions which it implements |
| 12023 | to always fail with ENOSYS. Some functions are actually named |
| 12024 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12025 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12026 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12027 | #endif |
| 12028 | |
| 12029 | int |
| 12030 | main () |
| 12031 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12032 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12033 | ; |
| 12034 | return 0; |
| 12035 | } |
| 12036 | _ACEOF |
| 12037 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12038 | if { (ac_try="$ac_link" |
| 12039 | case "(($ac_try" in |
| 12040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12041 | *) ac_try_echo=$ac_try;; |
| 12042 | esac |
| 12043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12044 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12045 | ac_status=$? |
| 12046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12047 | rm -f conftest.er1 |
| 12048 | cat conftest.err >&5 |
| 12049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 12050 | (exit $ac_status); } && |
| 12051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12052 | { (case "(($ac_try" in |
| 12053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12054 | *) ac_try_echo=$ac_try;; |
| 12055 | esac |
| 12056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12057 | (eval "$ac_try") 2>&5 |
| 12058 | ac_status=$? |
| 12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12060 | (exit $ac_status); }; } && |
| 12061 | { ac_try='test -s conftest$ac_exeext' |
| 12062 | { (case "(($ac_try" in |
| 12063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12064 | *) ac_try_echo=$ac_try;; |
| 12065 | esac |
| 12066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12067 | (eval "$ac_try") 2>&5 |
| 12068 | ac_status=$? |
| 12069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12070 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12071 | eval "$as_ac_var=yes" |
| 12072 | else |
| 12073 | echo "$as_me: failed program was:" >&5 |
| 12074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12076 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12077 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12078 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 12079 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12080 | conftest$ac_exeext conftest.$ac_ext |
| 12081 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12082 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12083 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12084 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12085 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12086 | cat >>confdefs.h <<_ACEOF |
| 12087 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12088 | _ACEOF |
| 12089 | |
| 12090 | fi |
| 12091 | done |
| 12092 | |
| 12093 | |
| 12094 | |
| 12095 | |
| 12096 | for ac_func in closedir opendir readdir |
| 12097 | do |
| 12098 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12099 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12100 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12101 | 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] | 12102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12103 | else |
| 12104 | cat >conftest.$ac_ext <<_ACEOF |
| 12105 | /* confdefs.h. */ |
| 12106 | _ACEOF |
| 12107 | cat confdefs.h >>conftest.$ac_ext |
| 12108 | cat >>conftest.$ac_ext <<_ACEOF |
| 12109 | /* end confdefs.h. */ |
| 12110 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12111 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12112 | #define $ac_func innocuous_$ac_func |
| 12113 | |
| 12114 | /* System header to define __stub macros and hopefully few prototypes, |
| 12115 | which can conflict with char $ac_func (); below. |
| 12116 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12117 | <limits.h> exists even on freestanding compilers. */ |
| 12118 | |
| 12119 | #ifdef __STDC__ |
| 12120 | # include <limits.h> |
| 12121 | #else |
| 12122 | # include <assert.h> |
| 12123 | #endif |
| 12124 | |
| 12125 | #undef $ac_func |
| 12126 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12127 | /* Override any GCC internal prototype to avoid an error. |
| 12128 | Use char because int might match the return type of a GCC |
| 12129 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12130 | #ifdef __cplusplus |
| 12131 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12132 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12133 | char $ac_func (); |
| 12134 | /* The GNU C library defines this for functions which it implements |
| 12135 | to always fail with ENOSYS. Some functions are actually named |
| 12136 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12137 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12138 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12139 | #endif |
| 12140 | |
| 12141 | int |
| 12142 | main () |
| 12143 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12144 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12145 | ; |
| 12146 | return 0; |
| 12147 | } |
| 12148 | _ACEOF |
| 12149 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12150 | if { (ac_try="$ac_link" |
| 12151 | case "(($ac_try" in |
| 12152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12153 | *) ac_try_echo=$ac_try;; |
| 12154 | esac |
| 12155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12156 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12157 | ac_status=$? |
| 12158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12159 | rm -f conftest.er1 |
| 12160 | cat conftest.err >&5 |
| 12161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 12162 | (exit $ac_status); } && |
| 12163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12164 | { (case "(($ac_try" in |
| 12165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12166 | *) ac_try_echo=$ac_try;; |
| 12167 | esac |
| 12168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12169 | (eval "$ac_try") 2>&5 |
| 12170 | ac_status=$? |
| 12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12172 | (exit $ac_status); }; } && |
| 12173 | { ac_try='test -s conftest$ac_exeext' |
| 12174 | { (case "(($ac_try" in |
| 12175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12176 | *) ac_try_echo=$ac_try;; |
| 12177 | esac |
| 12178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12179 | (eval "$ac_try") 2>&5 |
| 12180 | ac_status=$? |
| 12181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12182 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12183 | eval "$as_ac_var=yes" |
| 12184 | else |
| 12185 | echo "$as_me: failed program was:" >&5 |
| 12186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12188 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12189 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12190 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 12191 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12192 | conftest$ac_exeext conftest.$ac_ext |
| 12193 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12194 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12195 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12196 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12197 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12198 | cat >>confdefs.h <<_ACEOF |
| 12199 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12200 | _ACEOF |
| 12201 | |
| 12202 | fi |
| 12203 | done |
| 12204 | |
| 12205 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12206 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12207 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12208 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12209 | case $enableval in |
| 12210 | yes) enable_shared=yes ;; |
| 12211 | no) enable_shared=no ;; |
| 12212 | *) |
| 12213 | enable_shared=no |
| 12214 | # Look at the argument we got. We use all the common list separators. |
| 12215 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12216 | for pkg in $enableval; do |
| 12217 | IFS="$lt_save_ifs" |
| 12218 | if test "X$pkg" = "X$p"; then |
| 12219 | enable_shared=yes |
| 12220 | fi |
| 12221 | done |
| 12222 | IFS="$lt_save_ifs" |
| 12223 | ;; |
| 12224 | esac |
| 12225 | else |
| 12226 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12227 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12229 | |
| 12230 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12231 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12232 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12233 | case $enableval in |
| 12234 | yes) enable_static=yes ;; |
| 12235 | no) enable_static=no ;; |
| 12236 | *) |
| 12237 | enable_static=no |
| 12238 | # Look at the argument we got. We use all the common list separators. |
| 12239 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12240 | for pkg in $enableval; do |
| 12241 | IFS="$lt_save_ifs" |
| 12242 | if test "X$pkg" = "X$p"; then |
| 12243 | enable_static=yes |
| 12244 | fi |
| 12245 | done |
| 12246 | IFS="$lt_save_ifs" |
| 12247 | ;; |
| 12248 | esac |
| 12249 | else |
| 12250 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12251 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12252 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12253 | |
| 12254 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12255 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12256 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12257 | case $enableval in |
| 12258 | yes) enable_fast_install=yes ;; |
| 12259 | no) enable_fast_install=no ;; |
| 12260 | *) |
| 12261 | enable_fast_install=no |
| 12262 | # Look at the argument we got. We use all the common list separators. |
| 12263 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12264 | for pkg in $enableval; do |
| 12265 | IFS="$lt_save_ifs" |
| 12266 | if test "X$pkg" = "X$p"; then |
| 12267 | enable_fast_install=yes |
| 12268 | fi |
| 12269 | done |
| 12270 | IFS="$lt_save_ifs" |
| 12271 | ;; |
| 12272 | esac |
| 12273 | else |
| 12274 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12275 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12277 | |
| 12278 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12279 | 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] | 12280 | if test "${lt_cv_path_SED+set}" = set; then |
| 12281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12282 | else |
| 12283 | # Loop through the user's path and test for sed and gsed. |
| 12284 | # Then use that list of sed's as ones to test for truncation. |
| 12285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12286 | for as_dir in $PATH |
| 12287 | do |
| 12288 | IFS=$as_save_IFS |
| 12289 | test -z "$as_dir" && as_dir=. |
| 12290 | for lt_ac_prog in sed gsed; do |
| 12291 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12292 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12293 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12294 | fi |
| 12295 | done |
| 12296 | done |
| 12297 | done |
| 12298 | lt_ac_max=0 |
| 12299 | lt_ac_count=0 |
| 12300 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12301 | # along with /bin/sed that truncates output. |
| 12302 | 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] | 12303 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12304 | cat /dev/null > conftest.in |
| 12305 | lt_ac_count=0 |
| 12306 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12307 | # Check for GNU sed and select it if it is found. |
| 12308 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12309 | lt_cv_path_SED=$lt_ac_sed |
| 12310 | break |
| 12311 | fi |
| 12312 | while true; do |
| 12313 | cat conftest.in conftest.in >conftest.tmp |
| 12314 | mv conftest.tmp conftest.in |
| 12315 | cp conftest.in conftest.nl |
| 12316 | echo >>conftest.nl |
| 12317 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12318 | cmp -s conftest.out conftest.nl || break |
| 12319 | # 10000 chars as input seems more than enough |
| 12320 | test $lt_ac_count -gt 10 && break |
| 12321 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12322 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12323 | lt_ac_max=$lt_ac_count |
| 12324 | lt_cv_path_SED=$lt_ac_sed |
| 12325 | fi |
| 12326 | done |
| 12327 | done |
| 12328 | |
| 12329 | fi |
| 12330 | |
| 12331 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12332 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12333 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12334 | |
| 12335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12336 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12337 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12338 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12339 | else |
| 12340 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12341 | fi |
| 12342 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12343 | ac_prog=ld |
| 12344 | if test "$GCC" = yes; then |
| 12345 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12346 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12347 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12348 | case $host in |
| 12349 | *-*-mingw*) |
| 12350 | # gcc leaves a trailing carriage return which upsets mingw |
| 12351 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12352 | *) |
| 12353 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12354 | esac |
| 12355 | case $ac_prog in |
| 12356 | # Accept absolute paths. |
| 12357 | [\\/]* | ?:[\\/]*) |
| 12358 | re_direlt='/[^/][^/]*/\.\./' |
| 12359 | # Canonicalize the pathname of ld |
| 12360 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12361 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12362 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12363 | done |
| 12364 | test -z "$LD" && LD="$ac_prog" |
| 12365 | ;; |
| 12366 | "") |
| 12367 | # If it fails, then pretend we aren't using GCC. |
| 12368 | ac_prog=ld |
| 12369 | ;; |
| 12370 | *) |
| 12371 | # If it is relative, then search for the first ld in PATH. |
| 12372 | with_gnu_ld=unknown |
| 12373 | ;; |
| 12374 | esac |
| 12375 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12376 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12377 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12378 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12379 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12380 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12381 | fi |
| 12382 | if test "${lt_cv_path_LD+set}" = set; then |
| 12383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12384 | else |
| 12385 | if test -z "$LD"; then |
| 12386 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12387 | for ac_dir in $PATH; do |
| 12388 | IFS="$lt_save_ifs" |
| 12389 | test -z "$ac_dir" && ac_dir=. |
| 12390 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12391 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12392 | # 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] | 12393 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12394 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12395 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12396 | *GNU* | *'with BFD'*) |
| 12397 | test "$with_gnu_ld" != no && break |
| 12398 | ;; |
| 12399 | *) |
| 12400 | test "$with_gnu_ld" != yes && break |
| 12401 | ;; |
| 12402 | esac |
| 12403 | fi |
| 12404 | done |
| 12405 | IFS="$lt_save_ifs" |
| 12406 | else |
| 12407 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12408 | fi |
| 12409 | fi |
| 12410 | |
| 12411 | LD="$lt_cv_path_LD" |
| 12412 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12413 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12414 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12415 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12416 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12417 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12418 | fi |
| 12419 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12420 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12421 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12422 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12423 | 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] | 12424 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12426 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12427 | # 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] | 12428 | case `$LD -v 2>&1 </dev/null` in |
| 12429 | *GNU* | *'with BFD'*) |
| 12430 | lt_cv_prog_gnu_ld=yes |
| 12431 | ;; |
| 12432 | *) |
| 12433 | lt_cv_prog_gnu_ld=no |
| 12434 | ;; |
| 12435 | esac |
| 12436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12437 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12438 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12439 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12440 | |
| 12441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12442 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12443 | 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] | 12444 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12446 | else |
| 12447 | lt_cv_ld_reload_flag='-r' |
| 12448 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12449 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12450 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12451 | reload_flag=$lt_cv_ld_reload_flag |
| 12452 | case $reload_flag in |
| 12453 | "" | " "*) ;; |
| 12454 | *) reload_flag=" $reload_flag" ;; |
| 12455 | esac |
| 12456 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12457 | case $host_os in |
| 12458 | darwin*) |
| 12459 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12460 | 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] | 12461 | else |
| 12462 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12463 | fi |
| 12464 | ;; |
| 12465 | esac |
| 12466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12467 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12468 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12469 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12471 | else |
| 12472 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12473 | lt_cv_file_magic_test_file= |
| 12474 | lt_cv_deplibs_check_method='unknown' |
| 12475 | # Need to set the preceding variable on all platforms that support |
| 12476 | # interlibrary dependencies. |
| 12477 | # 'none' -- dependencies not supported. |
| 12478 | # `unknown' -- same as none, but documents that we really don't know. |
| 12479 | # 'pass_all' -- all dependencies passed with no checks. |
| 12480 | # 'test_compile' -- check by making test program. |
| 12481 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12482 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12483 | # If you have `file' or equivalent on your system and you're not sure |
| 12484 | # whether `pass_all' will *always* work, you probably want this one. |
| 12485 | |
| 12486 | case $host_os in |
| 12487 | aix4* | aix5*) |
| 12488 | lt_cv_deplibs_check_method=pass_all |
| 12489 | ;; |
| 12490 | |
| 12491 | beos*) |
| 12492 | lt_cv_deplibs_check_method=pass_all |
| 12493 | ;; |
| 12494 | |
| 12495 | bsdi[45]*) |
| 12496 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12497 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12498 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12499 | ;; |
| 12500 | |
| 12501 | cygwin*) |
| 12502 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12503 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12504 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12505 | ;; |
| 12506 | |
| 12507 | mingw* | pw32*) |
| 12508 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12509 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12510 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12511 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12512 | ;; |
| 12513 | |
| 12514 | darwin* | rhapsody*) |
| 12515 | lt_cv_deplibs_check_method=pass_all |
| 12516 | ;; |
| 12517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12518 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12519 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12520 | case $host_cpu in |
| 12521 | i*86 ) |
| 12522 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12523 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12524 | 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] | 12525 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12526 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12527 | ;; |
| 12528 | esac |
| 12529 | else |
| 12530 | lt_cv_deplibs_check_method=pass_all |
| 12531 | fi |
| 12532 | ;; |
| 12533 | |
| 12534 | gnu*) |
| 12535 | lt_cv_deplibs_check_method=pass_all |
| 12536 | ;; |
| 12537 | |
| 12538 | hpux10.20* | hpux11*) |
| 12539 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12540 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12541 | ia64*) |
| 12542 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12543 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12544 | ;; |
| 12545 | hppa*64*) |
| 12546 | 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]' |
| 12547 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12548 | ;; |
| 12549 | *) |
| 12550 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12551 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12552 | ;; |
| 12553 | esac |
| 12554 | ;; |
| 12555 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12556 | interix3*) |
| 12557 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12558 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12559 | ;; |
| 12560 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12561 | irix5* | irix6* | nonstopux*) |
| 12562 | case $LD in |
| 12563 | *-32|*"-32 ") libmagic=32-bit;; |
| 12564 | *-n32|*"-n32 ") libmagic=N32;; |
| 12565 | *-64|*"-64 ") libmagic=64-bit;; |
| 12566 | *) libmagic=never-match;; |
| 12567 | esac |
| 12568 | lt_cv_deplibs_check_method=pass_all |
| 12569 | ;; |
| 12570 | |
| 12571 | # This must be Linux ELF. |
| 12572 | linux*) |
| 12573 | lt_cv_deplibs_check_method=pass_all |
| 12574 | ;; |
| 12575 | |
| 12576 | netbsd*) |
| 12577 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12578 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12579 | else |
| 12580 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12581 | fi |
| 12582 | ;; |
| 12583 | |
| 12584 | newos6*) |
| 12585 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12586 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12587 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12588 | ;; |
| 12589 | |
| 12590 | nto-qnx*) |
| 12591 | lt_cv_deplibs_check_method=unknown |
| 12592 | ;; |
| 12593 | |
| 12594 | openbsd*) |
| 12595 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12596 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12597 | else |
| 12598 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12599 | fi |
| 12600 | ;; |
| 12601 | |
| 12602 | osf3* | osf4* | osf5*) |
| 12603 | lt_cv_deplibs_check_method=pass_all |
| 12604 | ;; |
| 12605 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12606 | solaris*) |
| 12607 | lt_cv_deplibs_check_method=pass_all |
| 12608 | ;; |
| 12609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12610 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12611 | case $host_vendor in |
| 12612 | motorola) |
| 12613 | 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]' |
| 12614 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12615 | ;; |
| 12616 | ncr) |
| 12617 | lt_cv_deplibs_check_method=pass_all |
| 12618 | ;; |
| 12619 | sequent) |
| 12620 | lt_cv_file_magic_cmd='/bin/file' |
| 12621 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12622 | ;; |
| 12623 | sni) |
| 12624 | lt_cv_file_magic_cmd='/bin/file' |
| 12625 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12626 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12627 | ;; |
| 12628 | siemens) |
| 12629 | lt_cv_deplibs_check_method=pass_all |
| 12630 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12631 | pc) |
| 12632 | lt_cv_deplibs_check_method=pass_all |
| 12633 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12634 | esac |
| 12635 | ;; |
| 12636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12637 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12638 | lt_cv_deplibs_check_method=pass_all |
| 12639 | ;; |
| 12640 | esac |
| 12641 | |
| 12642 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12643 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12644 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12645 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12646 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12647 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12648 | |
| 12649 | |
| 12650 | |
| 12651 | # If no C compiler was specified, use CC. |
| 12652 | LTCC=${LTCC-"$CC"} |
| 12653 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12654 | # If no C compiler flags were specified, use CFLAGS. |
| 12655 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12656 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12657 | # Allow CC to be a program name with arguments. |
| 12658 | compiler=$CC |
| 12659 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12660 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12661 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12662 | enableval=$enable_libtool_lock; |
| 12663 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12664 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12665 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12666 | |
| 12667 | # Some flags need to be propagated to the compiler or linker for good |
| 12668 | # libtool support. |
| 12669 | case $host in |
| 12670 | ia64-*-hpux*) |
| 12671 | # Find out which ABI we are using. |
| 12672 | echo 'int i;' > conftest.$ac_ext |
| 12673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12674 | (eval $ac_compile) 2>&5 |
| 12675 | ac_status=$? |
| 12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12677 | (exit $ac_status); }; then |
| 12678 | case `/usr/bin/file conftest.$ac_objext` in |
| 12679 | *ELF-32*) |
| 12680 | HPUX_IA64_MODE="32" |
| 12681 | ;; |
| 12682 | *ELF-64*) |
| 12683 | HPUX_IA64_MODE="64" |
| 12684 | ;; |
| 12685 | esac |
| 12686 | fi |
| 12687 | rm -rf conftest* |
| 12688 | ;; |
| 12689 | *-*-irix6*) |
| 12690 | # Find out which ABI we are using. |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 12691 | echo '#line 12691 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12693 | (eval $ac_compile) 2>&5 |
| 12694 | ac_status=$? |
| 12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12696 | (exit $ac_status); }; then |
| 12697 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12698 | case `/usr/bin/file conftest.$ac_objext` in |
| 12699 | *32-bit*) |
| 12700 | LD="${LD-ld} -melf32bsmip" |
| 12701 | ;; |
| 12702 | *N32*) |
| 12703 | LD="${LD-ld} -melf32bmipn32" |
| 12704 | ;; |
| 12705 | *64-bit*) |
| 12706 | LD="${LD-ld} -melf64bmip" |
| 12707 | ;; |
| 12708 | esac |
| 12709 | else |
| 12710 | case `/usr/bin/file conftest.$ac_objext` in |
| 12711 | *32-bit*) |
| 12712 | LD="${LD-ld} -32" |
| 12713 | ;; |
| 12714 | *N32*) |
| 12715 | LD="${LD-ld} -n32" |
| 12716 | ;; |
| 12717 | *64-bit*) |
| 12718 | LD="${LD-ld} -64" |
| 12719 | ;; |
| 12720 | esac |
| 12721 | fi |
| 12722 | fi |
| 12723 | rm -rf conftest* |
| 12724 | ;; |
| 12725 | |
| 12726 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 12727 | # Find out which ABI we are using. |
| 12728 | echo 'int i;' > conftest.$ac_ext |
| 12729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12730 | (eval $ac_compile) 2>&5 |
| 12731 | ac_status=$? |
| 12732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12733 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12734 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12735 | *32-bit*) |
| 12736 | case $host in |
| 12737 | x86_64-*linux*) |
| 12738 | LD="${LD-ld} -m elf_i386" |
| 12739 | ;; |
| 12740 | ppc64-*linux*|powerpc64-*linux*) |
| 12741 | LD="${LD-ld} -m elf32ppclinux" |
| 12742 | ;; |
| 12743 | s390x-*linux*) |
| 12744 | LD="${LD-ld} -m elf_s390" |
| 12745 | ;; |
| 12746 | sparc64-*linux*) |
| 12747 | LD="${LD-ld} -m elf32_sparc" |
| 12748 | ;; |
| 12749 | esac |
| 12750 | ;; |
| 12751 | *64-bit*) |
| 12752 | case $host in |
| 12753 | x86_64-*linux*) |
| 12754 | LD="${LD-ld} -m elf_x86_64" |
| 12755 | ;; |
| 12756 | ppc*-*linux*|powerpc*-*linux*) |
| 12757 | LD="${LD-ld} -m elf64ppc" |
| 12758 | ;; |
| 12759 | s390*-*linux*) |
| 12760 | LD="${LD-ld} -m elf64_s390" |
| 12761 | ;; |
| 12762 | sparc*-*linux*) |
| 12763 | LD="${LD-ld} -m elf64_sparc" |
| 12764 | ;; |
| 12765 | esac |
| 12766 | ;; |
| 12767 | esac |
| 12768 | fi |
| 12769 | rm -rf conftest* |
| 12770 | ;; |
| 12771 | |
| 12772 | *-*-sco3.2v5*) |
| 12773 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12774 | SAVE_CFLAGS="$CFLAGS" |
| 12775 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12776 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 12777 | 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] | 12778 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 12779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12780 | else |
| 12781 | ac_ext=c |
| 12782 | ac_cpp='$CPP $CPPFLAGS' |
| 12783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12786 | |
| 12787 | cat >conftest.$ac_ext <<_ACEOF |
| 12788 | /* confdefs.h. */ |
| 12789 | _ACEOF |
| 12790 | cat confdefs.h >>conftest.$ac_ext |
| 12791 | cat >>conftest.$ac_ext <<_ACEOF |
| 12792 | /* end confdefs.h. */ |
| 12793 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12794 | int |
| 12795 | main () |
| 12796 | { |
| 12797 | |
| 12798 | ; |
| 12799 | return 0; |
| 12800 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12801 | _ACEOF |
| 12802 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12803 | if { (ac_try="$ac_link" |
| 12804 | case "(($ac_try" in |
| 12805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12806 | *) ac_try_echo=$ac_try;; |
| 12807 | esac |
| 12808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12809 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12810 | ac_status=$? |
| 12811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12812 | rm -f conftest.er1 |
| 12813 | cat conftest.err >&5 |
| 12814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 12815 | (exit $ac_status); } && |
| 12816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12817 | { (case "(($ac_try" in |
| 12818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12819 | *) ac_try_echo=$ac_try;; |
| 12820 | esac |
| 12821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12822 | (eval "$ac_try") 2>&5 |
| 12823 | ac_status=$? |
| 12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12825 | (exit $ac_status); }; } && |
| 12826 | { ac_try='test -s conftest$ac_exeext' |
| 12827 | { (case "(($ac_try" in |
| 12828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12829 | *) ac_try_echo=$ac_try;; |
| 12830 | esac |
| 12831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12832 | (eval "$ac_try") 2>&5 |
| 12833 | ac_status=$? |
| 12834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12835 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12836 | lt_cv_cc_needs_belf=yes |
| 12837 | else |
| 12838 | echo "$as_me: failed program was:" >&5 |
| 12839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12841 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12842 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12843 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 12844 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12845 | conftest$ac_exeext conftest.$ac_ext |
| 12846 | ac_ext=c |
| 12847 | ac_cpp='$CPP $CPPFLAGS' |
| 12848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12851 | |
| 12852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12853 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 12854 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12855 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12856 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12857 | CFLAGS="$SAVE_CFLAGS" |
| 12858 | fi |
| 12859 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12860 | sparc*-*solaris*) |
| 12861 | # Find out which ABI we are using. |
| 12862 | echo 'int i;' > conftest.$ac_ext |
| 12863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12864 | (eval $ac_compile) 2>&5 |
| 12865 | ac_status=$? |
| 12866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12867 | (exit $ac_status); }; then |
| 12868 | case `/usr/bin/file conftest.o` in |
| 12869 | *64-bit*) |
| 12870 | case $lt_cv_prog_gnu_ld in |
| 12871 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 12872 | *) LD="${LD-ld} -64" ;; |
| 12873 | esac |
| 12874 | ;; |
| 12875 | esac |
| 12876 | fi |
| 12877 | rm -rf conftest* |
| 12878 | ;; |
| 12879 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12880 | |
| 12881 | esac |
| 12882 | |
| 12883 | need_locks="$enable_libtool_lock" |
| 12884 | |
| 12885 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12886 | |
| 12887 | |
| 12888 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12889 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12890 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12891 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12892 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12893 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12894 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12895 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12896 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12897 | 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] | 12898 | if test -z "$CXXCPP"; then |
| 12899 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12901 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12902 | # Double quotes because CXXCPP needs to be expanded |
| 12903 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12904 | do |
| 12905 | ac_preproc_ok=false |
| 12906 | for ac_cxx_preproc_warn_flag in '' yes |
| 12907 | do |
| 12908 | # Use a header file that comes with gcc, so configuring glibc |
| 12909 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12910 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12911 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12912 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12913 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12914 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12915 | /* confdefs.h. */ |
| 12916 | _ACEOF |
| 12917 | cat confdefs.h >>conftest.$ac_ext |
| 12918 | cat >>conftest.$ac_ext <<_ACEOF |
| 12919 | /* end confdefs.h. */ |
| 12920 | #ifdef __STDC__ |
| 12921 | # include <limits.h> |
| 12922 | #else |
| 12923 | # include <assert.h> |
| 12924 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12925 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12926 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12927 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12928 | case "(($ac_try" in |
| 12929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12930 | *) ac_try_echo=$ac_try;; |
| 12931 | esac |
| 12932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12933 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12934 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12935 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12936 | rm -f conftest.er1 |
| 12937 | cat conftest.err >&5 |
| 12938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 12939 | (exit $ac_status); } >/dev/null; then |
| 12940 | if test -s conftest.err; then |
| 12941 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 12942 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 12943 | else |
| 12944 | ac_cpp_err= |
| 12945 | fi |
| 12946 | else |
| 12947 | ac_cpp_err=yes |
| 12948 | fi |
| 12949 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12950 | : |
| 12951 | else |
| 12952 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12954 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12955 | # Broken: fails on valid input. |
| 12956 | continue |
| 12957 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12958 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12959 | rm -f conftest.err conftest.$ac_ext |
| 12960 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12961 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12962 | # can be detected and how. |
| 12963 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12964 | /* confdefs.h. */ |
| 12965 | _ACEOF |
| 12966 | cat confdefs.h >>conftest.$ac_ext |
| 12967 | cat >>conftest.$ac_ext <<_ACEOF |
| 12968 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12969 | #include <ac_nonexistent.h> |
| 12970 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12971 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12972 | case "(($ac_try" in |
| 12973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12974 | *) ac_try_echo=$ac_try;; |
| 12975 | esac |
| 12976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12978 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12979 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12980 | rm -f conftest.er1 |
| 12981 | cat conftest.err >&5 |
| 12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 12983 | (exit $ac_status); } >/dev/null; then |
| 12984 | if test -s conftest.err; then |
| 12985 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 12986 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 12987 | else |
| 12988 | ac_cpp_err= |
| 12989 | fi |
| 12990 | else |
| 12991 | ac_cpp_err=yes |
| 12992 | fi |
| 12993 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12994 | # Broken: success on invalid input. |
| 12995 | continue |
| 12996 | else |
| 12997 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12999 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13000 | # Passes both tests. |
| 13001 | ac_preproc_ok=: |
| 13002 | break |
| 13003 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13004 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13005 | rm -f conftest.err conftest.$ac_ext |
| 13006 | |
| 13007 | done |
| 13008 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13009 | rm -f conftest.err conftest.$ac_ext |
| 13010 | if $ac_preproc_ok; then |
| 13011 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13012 | fi |
| 13013 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13014 | done |
| 13015 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13016 | |
| 13017 | fi |
| 13018 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13019 | else |
| 13020 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13021 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13022 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13023 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13024 | ac_preproc_ok=false |
| 13025 | for ac_cxx_preproc_warn_flag in '' yes |
| 13026 | do |
| 13027 | # Use a header file that comes with gcc, so configuring glibc |
| 13028 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13029 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13030 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13031 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13032 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13033 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13034 | /* confdefs.h. */ |
| 13035 | _ACEOF |
| 13036 | cat confdefs.h >>conftest.$ac_ext |
| 13037 | cat >>conftest.$ac_ext <<_ACEOF |
| 13038 | /* end confdefs.h. */ |
| 13039 | #ifdef __STDC__ |
| 13040 | # include <limits.h> |
| 13041 | #else |
| 13042 | # include <assert.h> |
| 13043 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13044 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13045 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13047 | case "(($ac_try" in |
| 13048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13049 | *) ac_try_echo=$ac_try;; |
| 13050 | esac |
| 13051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13052 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13053 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13054 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13055 | rm -f conftest.er1 |
| 13056 | cat conftest.err >&5 |
| 13057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13058 | (exit $ac_status); } >/dev/null; then |
| 13059 | if test -s conftest.err; then |
| 13060 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13061 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13062 | else |
| 13063 | ac_cpp_err= |
| 13064 | fi |
| 13065 | else |
| 13066 | ac_cpp_err=yes |
| 13067 | fi |
| 13068 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13069 | : |
| 13070 | else |
| 13071 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13073 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13074 | # Broken: fails on valid input. |
| 13075 | continue |
| 13076 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13077 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13078 | rm -f conftest.err conftest.$ac_ext |
| 13079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13080 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13081 | # can be detected and how. |
| 13082 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13083 | /* confdefs.h. */ |
| 13084 | _ACEOF |
| 13085 | cat confdefs.h >>conftest.$ac_ext |
| 13086 | cat >>conftest.$ac_ext <<_ACEOF |
| 13087 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13088 | #include <ac_nonexistent.h> |
| 13089 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13090 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13091 | case "(($ac_try" in |
| 13092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13093 | *) ac_try_echo=$ac_try;; |
| 13094 | esac |
| 13095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13096 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13097 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13098 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13099 | rm -f conftest.er1 |
| 13100 | cat conftest.err >&5 |
| 13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13102 | (exit $ac_status); } >/dev/null; then |
| 13103 | if test -s conftest.err; then |
| 13104 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13105 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13106 | else |
| 13107 | ac_cpp_err= |
| 13108 | fi |
| 13109 | else |
| 13110 | ac_cpp_err=yes |
| 13111 | fi |
| 13112 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13113 | # Broken: success on invalid input. |
| 13114 | continue |
| 13115 | else |
| 13116 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13118 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13119 | # Passes both tests. |
| 13120 | ac_preproc_ok=: |
| 13121 | break |
| 13122 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13123 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13124 | rm -f conftest.err conftest.$ac_ext |
| 13125 | |
| 13126 | done |
| 13127 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13128 | rm -f conftest.err conftest.$ac_ext |
| 13129 | if $ac_preproc_ok; then |
| 13130 | : |
| 13131 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13132 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13133 | See \`config.log' for more details." >&5 |
| 13134 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13135 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13136 | { (exit 1); exit 1; }; } |
| 13137 | fi |
| 13138 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13139 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13140 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13141 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13142 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13143 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13144 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13145 | fi |
| 13146 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13147 | |
| 13148 | ac_ext=f |
| 13149 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13150 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13151 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13152 | if test -n "$ac_tool_prefix"; then |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13153 | 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] | 13154 | do |
| 13155 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13156 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13157 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13159 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13161 | else |
| 13162 | if test -n "$F77"; then |
| 13163 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13164 | else |
| 13165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13166 | for as_dir in $PATH |
| 13167 | do |
| 13168 | IFS=$as_save_IFS |
| 13169 | test -z "$as_dir" && as_dir=. |
| 13170 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13171 | 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] | 13172 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13174 | break 2 |
| 13175 | fi |
| 13176 | done |
| 13177 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13178 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13179 | |
| 13180 | fi |
| 13181 | fi |
| 13182 | F77=$ac_cv_prog_F77 |
| 13183 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13184 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13185 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13186 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13187 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13188 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13189 | fi |
| 13190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13191 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13192 | test -n "$F77" && break |
| 13193 | done |
| 13194 | fi |
| 13195 | if test -z "$F77"; then |
| 13196 | ac_ct_F77=$F77 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13197 | 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] | 13198 | do |
| 13199 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13200 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13201 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13203 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13205 | else |
| 13206 | if test -n "$ac_ct_F77"; then |
| 13207 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13208 | else |
| 13209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13210 | for as_dir in $PATH |
| 13211 | do |
| 13212 | IFS=$as_save_IFS |
| 13213 | test -z "$as_dir" && as_dir=. |
| 13214 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13215 | 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] | 13216 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13218 | break 2 |
| 13219 | fi |
| 13220 | done |
| 13221 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13222 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13223 | |
| 13224 | fi |
| 13225 | fi |
| 13226 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13227 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13228 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13229 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13230 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13231 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13232 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13233 | fi |
| 13234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13235 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13236 | test -n "$ac_ct_F77" && break |
| 13237 | done |
| 13238 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13239 | if test "x$ac_ct_F77" = x; then |
| 13240 | F77="" |
| 13241 | else |
| 13242 | case $cross_compiling:$ac_tool_warned in |
| 13243 | yes:) |
| 13244 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13245 | whose name does not start with the host triplet. If you think this |
| 13246 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13247 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13248 | whose name does not start with the host triplet. If you think this |
| 13249 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13250 | ac_tool_warned=yes ;; |
| 13251 | esac |
| 13252 | F77=$ac_ct_F77 |
| 13253 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13254 | fi |
| 13255 | |
| 13256 | |
| 13257 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13258 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13259 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13260 | { (ac_try="$ac_compiler --version >&5" |
| 13261 | case "(($ac_try" in |
| 13262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13263 | *) ac_try_echo=$ac_try;; |
| 13264 | esac |
| 13265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13266 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13267 | ac_status=$? |
| 13268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13269 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13270 | { (ac_try="$ac_compiler -v >&5" |
| 13271 | case "(($ac_try" in |
| 13272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13273 | *) ac_try_echo=$ac_try;; |
| 13274 | esac |
| 13275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13276 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13277 | ac_status=$? |
| 13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13279 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13280 | { (ac_try="$ac_compiler -V >&5" |
| 13281 | case "(($ac_try" in |
| 13282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13283 | *) ac_try_echo=$ac_try;; |
| 13284 | esac |
| 13285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13286 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13287 | ac_status=$? |
| 13288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13289 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13290 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13291 | |
| 13292 | # 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] | 13293 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13294 | ac_save_ext=$ac_ext |
| 13295 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13296 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13297 | 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] | 13298 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13300 | else |
| 13301 | cat >conftest.$ac_ext <<_ACEOF |
| 13302 | program main |
| 13303 | #ifndef __GNUC__ |
| 13304 | choke me |
| 13305 | #endif |
| 13306 | |
| 13307 | end |
| 13308 | _ACEOF |
| 13309 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13310 | if { (ac_try="$ac_compile" |
| 13311 | case "(($ac_try" in |
| 13312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13313 | *) ac_try_echo=$ac_try;; |
| 13314 | esac |
| 13315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13316 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13317 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13319 | rm -f conftest.er1 |
| 13320 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13322 | (exit $ac_status); } && |
| 13323 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13324 | { (case "(($ac_try" in |
| 13325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13326 | *) ac_try_echo=$ac_try;; |
| 13327 | esac |
| 13328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13329 | (eval "$ac_try") 2>&5 |
| 13330 | ac_status=$? |
| 13331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13332 | (exit $ac_status); }; } && |
| 13333 | { ac_try='test -s conftest.$ac_objext' |
| 13334 | { (case "(($ac_try" in |
| 13335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13336 | *) ac_try_echo=$ac_try;; |
| 13337 | esac |
| 13338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13339 | (eval "$ac_try") 2>&5 |
| 13340 | ac_status=$? |
| 13341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13342 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13343 | ac_compiler_gnu=yes |
| 13344 | else |
| 13345 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13347 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13348 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13349 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13350 | |
| 13351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13352 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13353 | |
| 13354 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13355 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13356 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13357 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13358 | ac_test_FFLAGS=${FFLAGS+set} |
| 13359 | ac_save_FFLAGS=$FFLAGS |
| 13360 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13361 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13362 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13363 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13365 | else |
| 13366 | FFLAGS=-g |
| 13367 | cat >conftest.$ac_ext <<_ACEOF |
| 13368 | program main |
| 13369 | |
| 13370 | end |
| 13371 | _ACEOF |
| 13372 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13373 | if { (ac_try="$ac_compile" |
| 13374 | case "(($ac_try" in |
| 13375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13376 | *) ac_try_echo=$ac_try;; |
| 13377 | esac |
| 13378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13379 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13380 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13382 | rm -f conftest.er1 |
| 13383 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13385 | (exit $ac_status); } && |
| 13386 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13387 | { (case "(($ac_try" in |
| 13388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13389 | *) ac_try_echo=$ac_try;; |
| 13390 | esac |
| 13391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13392 | (eval "$ac_try") 2>&5 |
| 13393 | ac_status=$? |
| 13394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13395 | (exit $ac_status); }; } && |
| 13396 | { ac_try='test -s conftest.$ac_objext' |
| 13397 | { (case "(($ac_try" in |
| 13398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13399 | *) ac_try_echo=$ac_try;; |
| 13400 | esac |
| 13401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13402 | (eval "$ac_try") 2>&5 |
| 13403 | ac_status=$? |
| 13404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13405 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13406 | ac_cv_prog_f77_g=yes |
| 13407 | else |
| 13408 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13411 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13412 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13413 | |
| 13414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13415 | |
| 13416 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13417 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13418 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13419 | if test "$ac_test_FFLAGS" = set; then |
| 13420 | FFLAGS=$ac_save_FFLAGS |
| 13421 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13422 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13423 | FFLAGS="-g -O2" |
| 13424 | else |
| 13425 | FFLAGS="-g" |
| 13426 | fi |
| 13427 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13428 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13429 | FFLAGS="-O2" |
| 13430 | else |
| 13431 | FFLAGS= |
| 13432 | fi |
| 13433 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13434 | |
| 13435 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13436 | ac_ext=c |
| 13437 | ac_cpp='$CPP $CPPFLAGS' |
| 13438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13441 | |
| 13442 | |
| 13443 | |
| 13444 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13445 | |
| 13446 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13447 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13448 | 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] | 13449 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13451 | else |
| 13452 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13453 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13454 | |
| 13455 | case $build_os in |
| 13456 | msdosdjgpp*) |
| 13457 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13458 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13459 | # during glob expansion). Even if it were fixed, the result of this |
| 13460 | # check would be larger than it should be. |
| 13461 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13462 | ;; |
| 13463 | |
| 13464 | gnu*) |
| 13465 | # Under GNU Hurd, this test is not required because there is |
| 13466 | # no limit to the length of command line arguments. |
| 13467 | # Libtool will interpret -1 as no limit whatsoever |
| 13468 | lt_cv_sys_max_cmd_len=-1; |
| 13469 | ;; |
| 13470 | |
| 13471 | cygwin* | mingw*) |
| 13472 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13473 | # about 5 minutes as the teststring grows exponentially. |
| 13474 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13475 | # you end up with a "frozen" computer, even though with patience |
| 13476 | # the test eventually succeeds (with a max line length of 256k). |
| 13477 | # Instead, let's just punt: use the minimum linelength reported by |
| 13478 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13479 | lt_cv_sys_max_cmd_len=8192; |
| 13480 | ;; |
| 13481 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13482 | amigaos*) |
| 13483 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13484 | # So we just punt and use a minimum line length of 8192. |
| 13485 | lt_cv_sys_max_cmd_len=8192; |
| 13486 | ;; |
| 13487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13488 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13489 | # This has been around since 386BSD, at least. Likely further. |
| 13490 | if test -x /sbin/sysctl; then |
| 13491 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13492 | elif test -x /usr/sbin/sysctl; then |
| 13493 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13494 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13495 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13496 | fi |
| 13497 | # And add a safety zone |
| 13498 | 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] | 13499 | 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] | 13500 | ;; |
| 13501 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13502 | interix*) |
| 13503 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13504 | lt_cv_sys_max_cmd_len=196608 |
| 13505 | ;; |
| 13506 | |
| 13507 | osf*) |
| 13508 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13509 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13510 | # nice to cause kernel panics so lets avoid the loop below. |
| 13511 | # First set a reasonable default. |
| 13512 | lt_cv_sys_max_cmd_len=16384 |
| 13513 | # |
| 13514 | if test -x /sbin/sysconfig; then |
| 13515 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13516 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13517 | esac |
| 13518 | fi |
| 13519 | ;; |
| 13520 | sco3.2v5*) |
| 13521 | lt_cv_sys_max_cmd_len=102400 |
| 13522 | ;; |
| 13523 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13524 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13525 | if test -n "$kargmax"; then |
| 13526 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13527 | else |
| 13528 | lt_cv_sys_max_cmd_len=32768 |
| 13529 | fi |
| 13530 | ;; |
| 13531 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13532 | # If test is not a shell built-in, we'll probably end up computing a |
| 13533 | # maximum length that is only half of the actual maximum length, but |
| 13534 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13535 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13536 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13537 | = "XX$teststring") >/dev/null 2>&1 && |
| 13538 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13539 | lt_cv_sys_max_cmd_len=$new_result && |
| 13540 | test $i != 17 # 1/2 MB should be enough |
| 13541 | do |
| 13542 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13543 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13544 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13545 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13546 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13547 | # amounts of additional arguments before passing them to the linker. |
| 13548 | # It appears as though 1/2 is a usable value. |
| 13549 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13550 | ;; |
| 13551 | esac |
| 13552 | |
| 13553 | fi |
| 13554 | |
| 13555 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13556 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13557 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13558 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13559 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13560 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13561 | fi |
| 13562 | |
| 13563 | |
| 13564 | |
| 13565 | |
| 13566 | # 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] | 13567 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13568 | 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] | 13569 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13571 | else |
| 13572 | |
| 13573 | # These are sane defaults that work on at least a few old systems. |
| 13574 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13575 | |
| 13576 | # Character class describing NM global symbol codes. |
| 13577 | symcode='[BCDEGRST]' |
| 13578 | |
| 13579 | # Regexp to match symbols that can be accessed directly from C. |
| 13580 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13581 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13582 | # Transform an extracted symbol line into a proper C declaration |
| 13583 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13584 | |
| 13585 | # Transform an extracted symbol line into symbol name and symbol address |
| 13586 | 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'" |
| 13587 | |
| 13588 | # Define system-specific variables. |
| 13589 | case $host_os in |
| 13590 | aix*) |
| 13591 | symcode='[BCDT]' |
| 13592 | ;; |
| 13593 | cygwin* | mingw* | pw32*) |
| 13594 | symcode='[ABCDGISTW]' |
| 13595 | ;; |
| 13596 | hpux*) # Its linker distinguishes data from code symbols |
| 13597 | if test "$host_cpu" = ia64; then |
| 13598 | symcode='[ABCDEGRST]' |
| 13599 | fi |
| 13600 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13601 | 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'" |
| 13602 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13603 | linux*) |
| 13604 | if test "$host_cpu" = ia64; then |
| 13605 | symcode='[ABCDGIRSTW]' |
| 13606 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13607 | 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'" |
| 13608 | fi |
| 13609 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13610 | irix* | nonstopux*) |
| 13611 | symcode='[BCDEGRST]' |
| 13612 | ;; |
| 13613 | osf*) |
| 13614 | symcode='[BCDEGQRST]' |
| 13615 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13616 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13617 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13618 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13619 | sco3.2v5*) |
| 13620 | symcode='[DT]' |
| 13621 | ;; |
| 13622 | sysv4.2uw2*) |
| 13623 | symcode='[DT]' |
| 13624 | ;; |
| 13625 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13626 | symcode='[ABDT]' |
| 13627 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13628 | sysv4) |
| 13629 | symcode='[DFNSTU]' |
| 13630 | ;; |
| 13631 | esac |
| 13632 | |
| 13633 | # Handle CRLF in mingw tool chain |
| 13634 | opt_cr= |
| 13635 | case $build_os in |
| 13636 | mingw*) |
| 13637 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13638 | ;; |
| 13639 | esac |
| 13640 | |
| 13641 | # If we're using GNU nm, then use its standard symbol codes. |
| 13642 | case `$NM -V 2>&1` in |
| 13643 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13644 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13645 | esac |
| 13646 | |
| 13647 | # Try without a prefix undercore, then with it. |
| 13648 | for ac_symprfx in "" "_"; do |
| 13649 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13650 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13651 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13652 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13653 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13654 | 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] | 13655 | |
| 13656 | # Check to see that the pipe works correctly. |
| 13657 | pipe_works=no |
| 13658 | |
| 13659 | rm -f conftest* |
| 13660 | cat > conftest.$ac_ext <<EOF |
| 13661 | #ifdef __cplusplus |
| 13662 | extern "C" { |
| 13663 | #endif |
| 13664 | char nm_test_var; |
| 13665 | void nm_test_func(){} |
| 13666 | #ifdef __cplusplus |
| 13667 | } |
| 13668 | #endif |
| 13669 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13670 | EOF |
| 13671 | |
| 13672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13673 | (eval $ac_compile) 2>&5 |
| 13674 | ac_status=$? |
| 13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13676 | (exit $ac_status); }; then |
| 13677 | # Now try to grab the symbols. |
| 13678 | nlist=conftest.nm |
| 13679 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13680 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13681 | ac_status=$? |
| 13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13683 | (exit $ac_status); } && test -s "$nlist"; then |
| 13684 | # Try sorting and uniquifying the output. |
| 13685 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13686 | mv -f "$nlist"T "$nlist" |
| 13687 | else |
| 13688 | rm -f "$nlist"T |
| 13689 | fi |
| 13690 | |
| 13691 | # Make sure that we snagged all the symbols we need. |
| 13692 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13693 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13694 | cat <<EOF > conftest.$ac_ext |
| 13695 | #ifdef __cplusplus |
| 13696 | extern "C" { |
| 13697 | #endif |
| 13698 | |
| 13699 | EOF |
| 13700 | # Now generate the symbol file. |
| 13701 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13702 | |
| 13703 | cat <<EOF >> conftest.$ac_ext |
| 13704 | #if defined (__STDC__) && __STDC__ |
| 13705 | # define lt_ptr_t void * |
| 13706 | #else |
| 13707 | # define lt_ptr_t char * |
| 13708 | # define const |
| 13709 | #endif |
| 13710 | |
| 13711 | /* The mapping between symbol names and symbols. */ |
| 13712 | const struct { |
| 13713 | const char *name; |
| 13714 | lt_ptr_t address; |
| 13715 | } |
| 13716 | lt_preloaded_symbols[] = |
| 13717 | { |
| 13718 | EOF |
| 13719 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 13720 | cat <<\EOF >> conftest.$ac_ext |
| 13721 | {0, (lt_ptr_t) 0} |
| 13722 | }; |
| 13723 | |
| 13724 | #ifdef __cplusplus |
| 13725 | } |
| 13726 | #endif |
| 13727 | EOF |
| 13728 | # Now try linking the two files. |
| 13729 | mv conftest.$ac_objext conftstm.$ac_objext |
| 13730 | lt_save_LIBS="$LIBS" |
| 13731 | lt_save_CFLAGS="$CFLAGS" |
| 13732 | LIBS="conftstm.$ac_objext" |
| 13733 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 13734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13735 | (eval $ac_link) 2>&5 |
| 13736 | ac_status=$? |
| 13737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13738 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 13739 | pipe_works=yes |
| 13740 | fi |
| 13741 | LIBS="$lt_save_LIBS" |
| 13742 | CFLAGS="$lt_save_CFLAGS" |
| 13743 | else |
| 13744 | echo "cannot find nm_test_func in $nlist" >&5 |
| 13745 | fi |
| 13746 | else |
| 13747 | echo "cannot find nm_test_var in $nlist" >&5 |
| 13748 | fi |
| 13749 | else |
| 13750 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 13751 | fi |
| 13752 | else |
| 13753 | echo "$progname: failed program was:" >&5 |
| 13754 | cat conftest.$ac_ext >&5 |
| 13755 | fi |
| 13756 | rm -f conftest* conftst* |
| 13757 | |
| 13758 | # Do not use the global_symbol_pipe unless it works. |
| 13759 | if test "$pipe_works" = yes; then |
| 13760 | break |
| 13761 | else |
| 13762 | lt_cv_sys_global_symbol_pipe= |
| 13763 | fi |
| 13764 | done |
| 13765 | |
| 13766 | fi |
| 13767 | |
| 13768 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 13769 | lt_cv_sys_global_symbol_to_cdecl= |
| 13770 | fi |
| 13771 | 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] | 13772 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 13773 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13774 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13775 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13776 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13777 | fi |
| 13778 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13779 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 13780 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13781 | if test "${lt_cv_objdir+set}" = set; then |
| 13782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13783 | else |
| 13784 | rm -f .libs 2>/dev/null |
| 13785 | mkdir .libs 2>/dev/null |
| 13786 | if test -d .libs; then |
| 13787 | lt_cv_objdir=.libs |
| 13788 | else |
| 13789 | # MS-DOS does not allow filenames that begin with a dot. |
| 13790 | lt_cv_objdir=_libs |
| 13791 | fi |
| 13792 | rmdir .libs 2>/dev/null |
| 13793 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13794 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 13795 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13796 | objdir=$lt_cv_objdir |
| 13797 | |
| 13798 | |
| 13799 | |
| 13800 | |
| 13801 | |
| 13802 | case $host_os in |
| 13803 | aix3*) |
| 13804 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13805 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13806 | # vanish in a puff of smoke. |
| 13807 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13808 | COLLECT_NAMES= |
| 13809 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13810 | fi |
| 13811 | ;; |
| 13812 | esac |
| 13813 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13814 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13815 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13816 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13817 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 13818 | |
| 13819 | # Same as above, but do not quote variable references. |
| 13820 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 13821 | |
| 13822 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13823 | # double_quote_subst'ed string. |
| 13824 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13825 | |
| 13826 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13827 | no_glob_subst='s/\*/\\\*/g' |
| 13828 | |
| 13829 | # Constants: |
| 13830 | rm="rm -f" |
| 13831 | |
| 13832 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 13833 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13834 | can_build_shared=yes |
| 13835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13836 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13837 | # which needs '.lib'). |
| 13838 | libext=a |
| 13839 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13840 | ofile="$default_ofile" |
| 13841 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13842 | |
| 13843 | if test -n "$ac_tool_prefix"; then |
| 13844 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 13845 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13846 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13848 | if test "${ac_cv_prog_AR+set}" = set; then |
| 13849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13850 | else |
| 13851 | if test -n "$AR"; then |
| 13852 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 13853 | else |
| 13854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13855 | for as_dir in $PATH |
| 13856 | do |
| 13857 | IFS=$as_save_IFS |
| 13858 | test -z "$as_dir" && as_dir=. |
| 13859 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13860 | 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] | 13861 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 13862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13863 | break 2 |
| 13864 | fi |
| 13865 | done |
| 13866 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13867 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13868 | |
| 13869 | fi |
| 13870 | fi |
| 13871 | AR=$ac_cv_prog_AR |
| 13872 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13873 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13874 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13875 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13876 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13877 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13878 | fi |
| 13879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13880 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13881 | fi |
| 13882 | if test -z "$ac_cv_prog_AR"; then |
| 13883 | ac_ct_AR=$AR |
| 13884 | # Extract the first word of "ar", so it can be a program name with args. |
| 13885 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13886 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13888 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 13889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13890 | else |
| 13891 | if test -n "$ac_ct_AR"; then |
| 13892 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 13893 | else |
| 13894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13895 | for as_dir in $PATH |
| 13896 | do |
| 13897 | IFS=$as_save_IFS |
| 13898 | test -z "$as_dir" && as_dir=. |
| 13899 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13900 | 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] | 13901 | ac_cv_prog_ac_ct_AR="ar" |
| 13902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13903 | break 2 |
| 13904 | fi |
| 13905 | done |
| 13906 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13907 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13908 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13909 | fi |
| 13910 | fi |
| 13911 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 13912 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13913 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 13914 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13915 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13916 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13917 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13918 | fi |
| 13919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13920 | if test "x$ac_ct_AR" = x; then |
| 13921 | AR="false" |
| 13922 | else |
| 13923 | case $cross_compiling:$ac_tool_warned in |
| 13924 | yes:) |
| 13925 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13926 | whose name does not start with the host triplet. If you think this |
| 13927 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13928 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13929 | whose name does not start with the host triplet. If you think this |
| 13930 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13931 | ac_tool_warned=yes ;; |
| 13932 | esac |
| 13933 | AR=$ac_ct_AR |
| 13934 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13935 | else |
| 13936 | AR="$ac_cv_prog_AR" |
| 13937 | fi |
| 13938 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13939 | if test -n "$ac_tool_prefix"; then |
| 13940 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 13941 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13942 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13944 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 13945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13946 | else |
| 13947 | if test -n "$RANLIB"; then |
| 13948 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 13949 | else |
| 13950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13951 | for as_dir in $PATH |
| 13952 | do |
| 13953 | IFS=$as_save_IFS |
| 13954 | test -z "$as_dir" && as_dir=. |
| 13955 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13956 | 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] | 13957 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 13958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13959 | break 2 |
| 13960 | fi |
| 13961 | done |
| 13962 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13963 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13964 | |
| 13965 | fi |
| 13966 | fi |
| 13967 | RANLIB=$ac_cv_prog_RANLIB |
| 13968 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13969 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 13970 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13971 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13972 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13973 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13974 | fi |
| 13975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13976 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13977 | fi |
| 13978 | if test -z "$ac_cv_prog_RANLIB"; then |
| 13979 | ac_ct_RANLIB=$RANLIB |
| 13980 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 13981 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13982 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13984 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 13985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13986 | else |
| 13987 | if test -n "$ac_ct_RANLIB"; then |
| 13988 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 13989 | else |
| 13990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13991 | for as_dir in $PATH |
| 13992 | do |
| 13993 | IFS=$as_save_IFS |
| 13994 | test -z "$as_dir" && as_dir=. |
| 13995 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 13996 | 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] | 13997 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 13998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13999 | break 2 |
| 14000 | fi |
| 14001 | done |
| 14002 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14003 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14005 | fi |
| 14006 | fi |
| 14007 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14008 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14009 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14010 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14011 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14012 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14013 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14014 | fi |
| 14015 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14016 | if test "x$ac_ct_RANLIB" = x; then |
| 14017 | RANLIB=":" |
| 14018 | else |
| 14019 | case $cross_compiling:$ac_tool_warned in |
| 14020 | yes:) |
| 14021 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14022 | whose name does not start with the host triplet. If you think this |
| 14023 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14024 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14025 | whose name does not start with the host triplet. If you think this |
| 14026 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14027 | ac_tool_warned=yes ;; |
| 14028 | esac |
| 14029 | RANLIB=$ac_ct_RANLIB |
| 14030 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14031 | else |
| 14032 | RANLIB="$ac_cv_prog_RANLIB" |
| 14033 | fi |
| 14034 | |
| 14035 | if test -n "$ac_tool_prefix"; then |
| 14036 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14037 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14038 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14040 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14042 | else |
| 14043 | if test -n "$STRIP"; then |
| 14044 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14045 | else |
| 14046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14047 | for as_dir in $PATH |
| 14048 | do |
| 14049 | IFS=$as_save_IFS |
| 14050 | test -z "$as_dir" && as_dir=. |
| 14051 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 14052 | 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] | 14053 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14055 | break 2 |
| 14056 | fi |
| 14057 | done |
| 14058 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14059 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14060 | |
| 14061 | fi |
| 14062 | fi |
| 14063 | STRIP=$ac_cv_prog_STRIP |
| 14064 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14065 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14066 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14067 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14068 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14069 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14070 | fi |
| 14071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14072 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14073 | fi |
| 14074 | if test -z "$ac_cv_prog_STRIP"; then |
| 14075 | ac_ct_STRIP=$STRIP |
| 14076 | # Extract the first word of "strip", so it can be a program name with args. |
| 14077 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14078 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14080 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14082 | else |
| 14083 | if test -n "$ac_ct_STRIP"; then |
| 14084 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14085 | else |
| 14086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14087 | for as_dir in $PATH |
| 14088 | do |
| 14089 | IFS=$as_save_IFS |
| 14090 | test -z "$as_dir" && as_dir=. |
| 14091 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 14092 | 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] | 14093 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14095 | break 2 |
| 14096 | fi |
| 14097 | done |
| 14098 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14099 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14100 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14101 | fi |
| 14102 | fi |
| 14103 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14104 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14105 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14106 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14107 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14108 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14109 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14110 | fi |
| 14111 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14112 | if test "x$ac_ct_STRIP" = x; then |
| 14113 | STRIP=":" |
| 14114 | else |
| 14115 | case $cross_compiling:$ac_tool_warned in |
| 14116 | yes:) |
| 14117 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14118 | whose name does not start with the host triplet. If you think this |
| 14119 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14120 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14121 | whose name does not start with the host triplet. If you think this |
| 14122 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14123 | ac_tool_warned=yes ;; |
| 14124 | esac |
| 14125 | STRIP=$ac_ct_STRIP |
| 14126 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14127 | else |
| 14128 | STRIP="$ac_cv_prog_STRIP" |
| 14129 | fi |
| 14130 | |
| 14131 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14132 | old_CC="$CC" |
| 14133 | old_CFLAGS="$CFLAGS" |
| 14134 | |
| 14135 | # Set sane defaults for various variables |
| 14136 | test -z "$AR" && AR=ar |
| 14137 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14138 | test -z "$AS" && AS=as |
| 14139 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14140 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14141 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14142 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14143 | test -z "$LD" && LD=ld |
| 14144 | test -z "$LN_S" && LN_S="ln -s" |
| 14145 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14146 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14147 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14148 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14149 | test -z "$RANLIB" && RANLIB=: |
| 14150 | test -z "$STRIP" && STRIP=: |
| 14151 | test -z "$ac_objext" && ac_objext=o |
| 14152 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14153 | # Determine commands to create old-style static archives. |
| 14154 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14155 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14156 | old_postuninstall_cmds= |
| 14157 | |
| 14158 | if test -n "$RANLIB"; then |
| 14159 | case $host_os in |
| 14160 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14161 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14162 | ;; |
| 14163 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14164 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14165 | ;; |
| 14166 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14167 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14168 | fi |
| 14169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14170 | for cc_temp in $compiler""; do |
| 14171 | case $cc_temp in |
| 14172 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14173 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14174 | \-*) ;; |
| 14175 | *) break;; |
| 14176 | esac |
| 14177 | done |
| 14178 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14179 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14180 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14181 | # Only perform the check for file, if the check method requires it |
| 14182 | case $deplibs_check_method in |
| 14183 | file_magic*) |
| 14184 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14185 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14186 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14187 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14189 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14190 | case $MAGIC_CMD in |
| 14191 | [\\/*] | ?:[\\/]*) |
| 14192 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14193 | ;; |
| 14194 | *) |
| 14195 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14196 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14197 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14198 | for ac_dir in $ac_dummy; do |
| 14199 | IFS="$lt_save_ifs" |
| 14200 | test -z "$ac_dir" && ac_dir=. |
| 14201 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14202 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14203 | if test -n "$file_magic_test_file"; then |
| 14204 | case $deplibs_check_method in |
| 14205 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14206 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14207 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14208 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14209 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14210 | : |
| 14211 | else |
| 14212 | cat <<EOF 1>&2 |
| 14213 | |
| 14214 | *** Warning: the command libtool uses to detect shared libraries, |
| 14215 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14216 | *** The result is that libtool may fail to recognize shared libraries |
| 14217 | *** as such. This will affect the creation of libtool libraries that |
| 14218 | *** depend on shared libraries, but programs linked with such libtool |
| 14219 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14220 | *** may want to report the problem to your system manager and/or to |
| 14221 | *** bug-libtool@gnu.org |
| 14222 | |
| 14223 | EOF |
| 14224 | fi ;; |
| 14225 | esac |
| 14226 | fi |
| 14227 | break |
| 14228 | fi |
| 14229 | done |
| 14230 | IFS="$lt_save_ifs" |
| 14231 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14232 | ;; |
| 14233 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14234 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14235 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14236 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14237 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14238 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14239 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14240 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14241 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14242 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14243 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14244 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14245 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14246 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14247 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14248 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14249 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14251 | else |
| 14252 | case $MAGIC_CMD in |
| 14253 | [\\/*] | ?:[\\/]*) |
| 14254 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14255 | ;; |
| 14256 | *) |
| 14257 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14258 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14259 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14260 | for ac_dir in $ac_dummy; do |
| 14261 | IFS="$lt_save_ifs" |
| 14262 | test -z "$ac_dir" && ac_dir=. |
| 14263 | if test -f $ac_dir/file; then |
| 14264 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14265 | if test -n "$file_magic_test_file"; then |
| 14266 | case $deplibs_check_method in |
| 14267 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14268 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14269 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14270 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14271 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14272 | : |
| 14273 | else |
| 14274 | cat <<EOF 1>&2 |
| 14275 | |
| 14276 | *** Warning: the command libtool uses to detect shared libraries, |
| 14277 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14278 | *** The result is that libtool may fail to recognize shared libraries |
| 14279 | *** as such. This will affect the creation of libtool libraries that |
| 14280 | *** depend on shared libraries, but programs linked with such libtool |
| 14281 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14282 | *** may want to report the problem to your system manager and/or to |
| 14283 | *** bug-libtool@gnu.org |
| 14284 | |
| 14285 | EOF |
| 14286 | fi ;; |
| 14287 | esac |
| 14288 | fi |
| 14289 | break |
| 14290 | fi |
| 14291 | done |
| 14292 | IFS="$lt_save_ifs" |
| 14293 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14294 | ;; |
| 14295 | esac |
| 14296 | fi |
| 14297 | |
| 14298 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14299 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14300 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14301 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14302 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14303 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14304 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14305 | fi |
| 14306 | |
| 14307 | else |
| 14308 | MAGIC_CMD=: |
| 14309 | fi |
| 14310 | fi |
| 14311 | |
| 14312 | fi |
| 14313 | ;; |
| 14314 | esac |
| 14315 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14316 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14317 | enable_win32_dll=no |
| 14318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14319 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14320 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14321 | enableval=$enable_libtool_lock; |
| 14322 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14323 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14324 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14325 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14327 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14328 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14329 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14330 | else |
| 14331 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14332 | fi |
| 14333 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14334 | test -z "$pic_mode" && pic_mode=default |
| 14335 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14336 | # Use C for the default configuration in the libtool script |
| 14337 | tagname= |
| 14338 | lt_save_CC="$CC" |
| 14339 | ac_ext=c |
| 14340 | ac_cpp='$CPP $CPPFLAGS' |
| 14341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14344 | |
| 14345 | |
| 14346 | # Source file extension for C test sources. |
| 14347 | ac_ext=c |
| 14348 | |
| 14349 | # Object file extension for compiled C test sources. |
| 14350 | objext=o |
| 14351 | objext=$objext |
| 14352 | |
| 14353 | # Code to be used in simple compile tests |
| 14354 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14355 | |
| 14356 | # Code to be used in simple link tests |
| 14357 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14358 | |
| 14359 | |
| 14360 | # If no C compiler was specified, use CC. |
| 14361 | LTCC=${LTCC-"$CC"} |
| 14362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14363 | # If no C compiler flags were specified, use CFLAGS. |
| 14364 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14365 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14366 | # Allow CC to be a program name with arguments. |
| 14367 | compiler=$CC |
| 14368 | |
| 14369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14370 | # save warnings/boilerplate of simple test code |
| 14371 | ac_outfile=conftest.$ac_objext |
| 14372 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14373 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14374 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14375 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14376 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14377 | ac_outfile=conftest.$ac_objext |
| 14378 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14379 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14380 | _lt_linker_boilerplate=`cat conftest.err` |
| 14381 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14382 | |
| 14383 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14384 | |
| 14385 | lt_prog_compiler_no_builtin_flag= |
| 14386 | |
| 14387 | if test "$GCC" = yes; then |
| 14388 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14389 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14390 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14391 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14392 | 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] | 14393 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14395 | else |
| 14396 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14397 | ac_outfile=conftest.$ac_objext |
| 14398 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14399 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14400 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14401 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14402 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14403 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14404 | # The option is referenced via a variable to avoid confusing sed. |
| 14405 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14406 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14407 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14408 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 14409 | (eval echo "\"\$as_me:14409: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14410 | (eval "$lt_compile" 2>conftest.err) |
| 14411 | ac_status=$? |
| 14412 | cat conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 14413 | echo "$as_me:14413: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14414 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14415 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14416 | # So say no if there are warnings other than the usual output. |
| 14417 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14418 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14419 | 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] | 14420 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14421 | fi |
| 14422 | fi |
| 14423 | $rm conftest* |
| 14424 | |
| 14425 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14426 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14427 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14428 | |
| 14429 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14430 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14431 | else |
| 14432 | : |
| 14433 | fi |
| 14434 | |
| 14435 | fi |
| 14436 | |
| 14437 | lt_prog_compiler_wl= |
| 14438 | lt_prog_compiler_pic= |
| 14439 | lt_prog_compiler_static= |
| 14440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14441 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14442 | 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] | 14443 | |
| 14444 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14445 | lt_prog_compiler_wl='-Wl,' |
| 14446 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14447 | |
| 14448 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14449 | aix*) |
| 14450 | # All AIX code is PIC. |
| 14451 | if test "$host_cpu" = ia64; then |
| 14452 | # AIX 5 now supports IA64 processor |
| 14453 | lt_prog_compiler_static='-Bstatic' |
| 14454 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14455 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14456 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14457 | amigaos*) |
| 14458 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14459 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14460 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14461 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14462 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14463 | |
| 14464 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14465 | # PIC is the default for these OSes. |
| 14466 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14467 | |
| 14468 | mingw* | pw32* | os2*) |
| 14469 | # This hack is so that the source file can tell whether it is being |
| 14470 | # built for inclusion in a dll (and should export symbols for example). |
| 14471 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14472 | ;; |
| 14473 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14474 | darwin* | rhapsody*) |
| 14475 | # PIC is the default on this platform |
| 14476 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14477 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14478 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14479 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14480 | interix3*) |
| 14481 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14482 | # Instead, we relocate shared libraries at runtime. |
| 14483 | ;; |
| 14484 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14485 | msdosdjgpp*) |
| 14486 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14487 | # on systems that don't support them. |
| 14488 | lt_prog_compiler_can_build_shared=no |
| 14489 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14490 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14491 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14492 | sysv4*MP*) |
| 14493 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14494 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14495 | fi |
| 14496 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14497 | |
| 14498 | hpux*) |
| 14499 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14500 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14501 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14502 | hppa*64*|ia64*) |
| 14503 | # +Z the default |
| 14504 | ;; |
| 14505 | *) |
| 14506 | lt_prog_compiler_pic='-fPIC' |
| 14507 | ;; |
| 14508 | esac |
| 14509 | ;; |
| 14510 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14511 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14512 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14513 | ;; |
| 14514 | esac |
| 14515 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14516 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14517 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14518 | aix*) |
| 14519 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14520 | if test "$host_cpu" = ia64; then |
| 14521 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14522 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14523 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14524 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14525 | fi |
| 14526 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14527 | darwin*) |
| 14528 | # PIC is the default on this platform |
| 14529 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14530 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14531 | xlc*) |
| 14532 | lt_prog_compiler_pic='-qnocommon' |
| 14533 | lt_prog_compiler_wl='-Wl,' |
| 14534 | ;; |
| 14535 | esac |
| 14536 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14537 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14538 | mingw* | pw32* | os2*) |
| 14539 | # This hack is so that the source file can tell whether it is being |
| 14540 | # built for inclusion in a dll (and should export symbols for example). |
| 14541 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14542 | ;; |
| 14543 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14544 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14545 | lt_prog_compiler_wl='-Wl,' |
| 14546 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14547 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14548 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14549 | hppa*64*|ia64*) |
| 14550 | # +Z the default |
| 14551 | ;; |
| 14552 | *) |
| 14553 | lt_prog_compiler_pic='+Z' |
| 14554 | ;; |
| 14555 | esac |
| 14556 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14557 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14558 | ;; |
| 14559 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14560 | irix5* | irix6* | nonstopux*) |
| 14561 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14562 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14563 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14564 | ;; |
| 14565 | |
| 14566 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14567 | lt_prog_compiler_pic='-KPIC' |
| 14568 | lt_prog_compiler_static='-Bstatic' |
| 14569 | ;; |
| 14570 | |
| 14571 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14572 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14573 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14574 | lt_prog_compiler_wl='-Wl,' |
| 14575 | lt_prog_compiler_pic='-KPIC' |
| 14576 | lt_prog_compiler_static='-static' |
| 14577 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14578 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14579 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14580 | # which looks to be a dead project) |
| 14581 | lt_prog_compiler_wl='-Wl,' |
| 14582 | lt_prog_compiler_pic='-fpic' |
| 14583 | lt_prog_compiler_static='-Bstatic' |
| 14584 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14585 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14586 | lt_prog_compiler_wl='-Wl,' |
| 14587 | # All Alpha code is PIC. |
| 14588 | lt_prog_compiler_static='-non_shared' |
| 14589 | ;; |
| 14590 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14591 | ;; |
| 14592 | |
| 14593 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14594 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14595 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14596 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14597 | ;; |
| 14598 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14599 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14600 | lt_prog_compiler_pic='-KPIC' |
| 14601 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14602 | case $cc_basename in |
| 14603 | f77* | f90* | f95*) |
| 14604 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14605 | *) |
| 14606 | lt_prog_compiler_wl='-Wl,';; |
| 14607 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14608 | ;; |
| 14609 | |
| 14610 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14611 | lt_prog_compiler_wl='-Qoption ld ' |
| 14612 | lt_prog_compiler_pic='-PIC' |
| 14613 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14614 | ;; |
| 14615 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14616 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14617 | lt_prog_compiler_wl='-Wl,' |
| 14618 | lt_prog_compiler_pic='-KPIC' |
| 14619 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14620 | ;; |
| 14621 | |
| 14622 | sysv4*MP*) |
| 14623 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14624 | lt_prog_compiler_pic='-Kconform_pic' |
| 14625 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14626 | fi |
| 14627 | ;; |
| 14628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14629 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14630 | lt_prog_compiler_wl='-Wl,' |
| 14631 | lt_prog_compiler_pic='-KPIC' |
| 14632 | lt_prog_compiler_static='-Bstatic' |
| 14633 | ;; |
| 14634 | |
| 14635 | unicos*) |
| 14636 | lt_prog_compiler_wl='-Wl,' |
| 14637 | lt_prog_compiler_can_build_shared=no |
| 14638 | ;; |
| 14639 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14640 | uts4*) |
| 14641 | lt_prog_compiler_pic='-pic' |
| 14642 | lt_prog_compiler_static='-Bstatic' |
| 14643 | ;; |
| 14644 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14645 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14646 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14647 | ;; |
| 14648 | esac |
| 14649 | fi |
| 14650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14651 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14652 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14653 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14654 | # |
| 14655 | # Check to make sure the PIC flag actually works. |
| 14656 | # |
| 14657 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14659 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14660 | 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] | 14661 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14663 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14664 | lt_prog_compiler_pic_works=no |
| 14665 | ac_outfile=conftest.$ac_objext |
| 14666 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14667 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14668 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14669 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14670 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14671 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14672 | # The option is referenced via a variable to avoid confusing sed. |
| 14673 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14674 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14675 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14676 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 14677 | (eval echo "\"\$as_me:14677: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14678 | (eval "$lt_compile" 2>conftest.err) |
| 14679 | ac_status=$? |
| 14680 | cat conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 14681 | echo "$as_me:14681: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14682 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14683 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14684 | # So say no if there are warnings other than the usual output. |
| 14685 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14686 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14687 | 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] | 14688 | lt_prog_compiler_pic_works=yes |
| 14689 | fi |
| 14690 | fi |
| 14691 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14692 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14693 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14694 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14695 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14696 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14697 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14698 | case $lt_prog_compiler_pic in |
| 14699 | "" | " "*) ;; |
| 14700 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14701 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14702 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14703 | lt_prog_compiler_pic= |
| 14704 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14705 | fi |
| 14706 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14707 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14708 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14709 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14710 | *djgpp*) |
| 14711 | lt_prog_compiler_pic= |
| 14712 | ;; |
| 14713 | *) |
| 14714 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14715 | ;; |
| 14716 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14718 | # |
| 14719 | # Check to make sure the static flag actually works. |
| 14720 | # |
| 14721 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14722 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14723 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14724 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 14725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14726 | else |
| 14727 | lt_prog_compiler_static_works=no |
| 14728 | save_LDFLAGS="$LDFLAGS" |
| 14729 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14730 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14731 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14732 | # The linker can only warn and ignore the option if not recognized |
| 14733 | # So say no if there are warnings |
| 14734 | if test -s conftest.err; then |
| 14735 | # Append any errors to the config.log. |
| 14736 | cat conftest.err 1>&5 |
| 14737 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14738 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14739 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14740 | lt_prog_compiler_static_works=yes |
| 14741 | fi |
| 14742 | else |
| 14743 | lt_prog_compiler_static_works=yes |
| 14744 | fi |
| 14745 | fi |
| 14746 | $rm conftest* |
| 14747 | LDFLAGS="$save_LDFLAGS" |
| 14748 | |
| 14749 | fi |
| 14750 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 14751 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 14752 | |
| 14753 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 14754 | : |
| 14755 | else |
| 14756 | lt_prog_compiler_static= |
| 14757 | fi |
| 14758 | |
| 14759 | |
| 14760 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14761 | 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] | 14762 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14764 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14765 | lt_cv_prog_compiler_c_o=no |
| 14766 | $rm -r conftest 2>/dev/null |
| 14767 | mkdir conftest |
| 14768 | cd conftest |
| 14769 | mkdir out |
| 14770 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14771 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14772 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14773 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14774 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14775 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14776 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14777 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14778 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14779 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14780 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 14781 | (eval echo "\"\$as_me:14781: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14782 | (eval "$lt_compile" 2>out/conftest.err) |
| 14783 | ac_status=$? |
| 14784 | cat out/conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 14785 | echo "$as_me:14785: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14786 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14787 | then |
| 14788 | # The compiler can only warn and ignore the option if not recognized |
| 14789 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14790 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14791 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14792 | 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] | 14793 | lt_cv_prog_compiler_c_o=yes |
| 14794 | fi |
| 14795 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14796 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14797 | $rm conftest* |
| 14798 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14799 | # template instantiation |
| 14800 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14801 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14802 | cd .. |
| 14803 | rmdir conftest |
| 14804 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14805 | |
| 14806 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14807 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14808 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14809 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14810 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14811 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14812 | 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] | 14813 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14814 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14815 | 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] | 14816 | hard_links=yes |
| 14817 | $rm conftest* |
| 14818 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14819 | touch conftest.a |
| 14820 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14821 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14822 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14823 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14824 | if test "$hard_links" = no; then |
| 14825 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14826 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14827 | need_locks=warn |
| 14828 | fi |
| 14829 | else |
| 14830 | need_locks=no |
| 14831 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14833 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14834 | 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] | 14835 | |
| 14836 | runpath_var= |
| 14837 | allow_undefined_flag= |
| 14838 | enable_shared_with_static_runtimes=no |
| 14839 | archive_cmds= |
| 14840 | archive_expsym_cmds= |
| 14841 | old_archive_From_new_cmds= |
| 14842 | old_archive_from_expsyms_cmds= |
| 14843 | export_dynamic_flag_spec= |
| 14844 | whole_archive_flag_spec= |
| 14845 | thread_safe_flag_spec= |
| 14846 | hardcode_libdir_flag_spec= |
| 14847 | hardcode_libdir_flag_spec_ld= |
| 14848 | hardcode_libdir_separator= |
| 14849 | hardcode_direct=no |
| 14850 | hardcode_minus_L=no |
| 14851 | hardcode_shlibpath_var=unsupported |
| 14852 | link_all_deplibs=unknown |
| 14853 | hardcode_automatic=no |
| 14854 | module_cmds= |
| 14855 | module_expsym_cmds= |
| 14856 | always_export_symbols=no |
| 14857 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14858 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14859 | # included in the symbol list |
| 14860 | include_expsyms= |
| 14861 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14862 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14863 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14864 | # as well as any symbol that contains `d'. |
| 14865 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 14866 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14867 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14868 | # the symbol is explicitly referenced. Since portable code cannot |
| 14869 | # rely on this symbol name, it's probably fine to never include it in |
| 14870 | # preloaded symbol tables. |
| 14871 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14872 | # Just being paranoid about ensuring that cc_basename is set. |
| 14873 | for cc_temp in $compiler""; do |
| 14874 | case $cc_temp in |
| 14875 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14876 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14877 | \-*) ;; |
| 14878 | *) break;; |
| 14879 | esac |
| 14880 | done |
| 14881 | 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] | 14882 | |
| 14883 | case $host_os in |
| 14884 | cygwin* | mingw* | pw32*) |
| 14885 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14886 | # When not using gcc, we currently assume that we are using |
| 14887 | # Microsoft Visual C++. |
| 14888 | if test "$GCC" != yes; then |
| 14889 | with_gnu_ld=no |
| 14890 | fi |
| 14891 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14892 | interix*) |
| 14893 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14894 | with_gnu_ld=yes |
| 14895 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14896 | openbsd*) |
| 14897 | with_gnu_ld=no |
| 14898 | ;; |
| 14899 | esac |
| 14900 | |
| 14901 | ld_shlibs=yes |
| 14902 | if test "$with_gnu_ld" = yes; then |
| 14903 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14904 | wlarc='${wl}' |
| 14905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14906 | # Set some defaults for GNU ld with shared library support. These |
| 14907 | # are reset later if shared libraries are not supported. Putting them |
| 14908 | # here allows them to be overridden if necessary. |
| 14909 | runpath_var=LD_RUN_PATH |
| 14910 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 14911 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 14912 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14913 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14914 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14915 | else |
| 14916 | whole_archive_flag_spec= |
| 14917 | fi |
| 14918 | supports_anon_versioning=no |
| 14919 | case `$LD -v 2>/dev/null` in |
| 14920 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14921 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14922 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14923 | *\ 2.11.*) ;; # other 2.11 versions |
| 14924 | *) supports_anon_versioning=yes ;; |
| 14925 | esac |
| 14926 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14927 | # See if GNU ld supports shared libraries. |
| 14928 | case $host_os in |
| 14929 | aix3* | aix4* | aix5*) |
| 14930 | # On AIX/PPC, the GNU linker is very broken |
| 14931 | if test "$host_cpu" != ia64; then |
| 14932 | ld_shlibs=no |
| 14933 | cat <<EOF 1>&2 |
| 14934 | |
| 14935 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14936 | *** to be unable to reliably create shared libraries on AIX. |
| 14937 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14938 | *** really care for shared libraries, you may want to modify your PATH |
| 14939 | *** so that a non-GNU linker is found, and then restart. |
| 14940 | |
| 14941 | EOF |
| 14942 | fi |
| 14943 | ;; |
| 14944 | |
| 14945 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14946 | 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] | 14947 | hardcode_libdir_flag_spec='-L$libdir' |
| 14948 | hardcode_minus_L=yes |
| 14949 | |
| 14950 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14951 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14952 | # to version 4, is to share data among multiple programs linked |
| 14953 | # with the same dynamic library. Since this doesn't match the |
| 14954 | # behavior of shared libraries on other platforms, we can't use |
| 14955 | # them. |
| 14956 | ld_shlibs=no |
| 14957 | ;; |
| 14958 | |
| 14959 | beos*) |
| 14960 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14961 | allow_undefined_flag=unsupported |
| 14962 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14963 | # support --undefined. This deserves some investigation. FIXME |
| 14964 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14965 | else |
| 14966 | ld_shlibs=no |
| 14967 | fi |
| 14968 | ;; |
| 14969 | |
| 14970 | cygwin* | mingw* | pw32*) |
| 14971 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 14972 | # as there is no search path for DLLs. |
| 14973 | hardcode_libdir_flag_spec='-L$libdir' |
| 14974 | allow_undefined_flag=unsupported |
| 14975 | always_export_symbols=no |
| 14976 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14977 | 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] | 14978 | |
| 14979 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14980 | 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] | 14981 | # If the export-symbols file already is a .def file (1st line |
| 14982 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14983 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14984 | cp $export_symbols $output_objdir/$soname.def; |
| 14985 | else |
| 14986 | echo EXPORTS > $output_objdir/$soname.def; |
| 14987 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14988 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14989 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14990 | else |
| 14991 | ld_shlibs=no |
| 14992 | fi |
| 14993 | ;; |
| 14994 | |
| 14995 | interix3*) |
| 14996 | hardcode_direct=no |
| 14997 | hardcode_shlibpath_var=no |
| 14998 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14999 | export_dynamic_flag_spec='${wl}-E' |
| 15000 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15001 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15002 | # default) and relocated if they conflict, which is a slow very memory |
| 15003 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15004 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15005 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15006 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15007 | 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' |
| 15008 | ;; |
| 15009 | |
| 15010 | linux*) |
| 15011 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15012 | tmp_addflag= |
| 15013 | case $cc_basename,$host_cpu in |
| 15014 | pgcc*) # Portland Group C compiler |
| 15015 | 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' |
| 15016 | tmp_addflag=' $pic_flag' |
| 15017 | ;; |
| 15018 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15019 | 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' |
| 15020 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15021 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15022 | tmp_addflag=' -i_dynamic' ;; |
| 15023 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15024 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15025 | ifc* | ifort*) # Intel Fortran compiler |
| 15026 | tmp_addflag=' -nofor_main' ;; |
| 15027 | esac |
| 15028 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15029 | |
| 15030 | if test $supports_anon_versioning = yes; then |
| 15031 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15032 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15033 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15034 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15035 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15036 | else |
| 15037 | ld_shlibs=no |
| 15038 | fi |
| 15039 | ;; |
| 15040 | |
| 15041 | netbsd*) |
| 15042 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15043 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15044 | wlarc= |
| 15045 | else |
| 15046 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15047 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15048 | fi |
| 15049 | ;; |
| 15050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15051 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15052 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15053 | ld_shlibs=no |
| 15054 | cat <<EOF 1>&2 |
| 15055 | |
| 15056 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15057 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15058 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15059 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15060 | *** your PATH or compiler configuration so that the native linker is |
| 15061 | *** used, and then restart. |
| 15062 | |
| 15063 | EOF |
| 15064 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15065 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15066 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15067 | else |
| 15068 | ld_shlibs=no |
| 15069 | fi |
| 15070 | ;; |
| 15071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15072 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15073 | case `$LD -v 2>&1` in |
| 15074 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15075 | ld_shlibs=no |
| 15076 | cat <<_LT_EOF 1>&2 |
| 15077 | |
| 15078 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15079 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15080 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15081 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15082 | *** your PATH or compiler configuration so that the native linker is |
| 15083 | *** used, and then restart. |
| 15084 | |
| 15085 | _LT_EOF |
| 15086 | ;; |
| 15087 | *) |
| 15088 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15089 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15090 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15091 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15092 | else |
| 15093 | ld_shlibs=no |
| 15094 | fi |
| 15095 | ;; |
| 15096 | esac |
| 15097 | ;; |
| 15098 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15099 | sunos4*) |
| 15100 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15101 | wlarc= |
| 15102 | hardcode_direct=yes |
| 15103 | hardcode_shlibpath_var=no |
| 15104 | ;; |
| 15105 | |
| 15106 | *) |
| 15107 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15108 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15109 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15110 | else |
| 15111 | ld_shlibs=no |
| 15112 | fi |
| 15113 | ;; |
| 15114 | esac |
| 15115 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15116 | if test "$ld_shlibs" = no; then |
| 15117 | runpath_var= |
| 15118 | hardcode_libdir_flag_spec= |
| 15119 | export_dynamic_flag_spec= |
| 15120 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15121 | fi |
| 15122 | else |
| 15123 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15124 | case $host_os in |
| 15125 | aix3*) |
| 15126 | allow_undefined_flag=unsupported |
| 15127 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15128 | 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] | 15129 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15130 | # are no directories specified by -L. |
| 15131 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15132 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15133 | # Neither direct hardcoding nor static linking is supported with a |
| 15134 | # broken collect2. |
| 15135 | hardcode_direct=unsupported |
| 15136 | fi |
| 15137 | ;; |
| 15138 | |
| 15139 | aix4* | aix5*) |
| 15140 | if test "$host_cpu" = ia64; then |
| 15141 | # On IA64, the linker does run time linking by default, so we don't |
| 15142 | # have to do anything special. |
| 15143 | aix_use_runtimelinking=no |
| 15144 | exp_sym_flag='-Bexport' |
| 15145 | no_entry_flag="" |
| 15146 | else |
| 15147 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15148 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15149 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15150 | 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' |
| 15151 | else |
| 15152 | 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' |
| 15153 | fi |
| 15154 | aix_use_runtimelinking=no |
| 15155 | |
| 15156 | # Test if we are trying to use run time linking or normal |
| 15157 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15158 | # need to do runtime linking. |
| 15159 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15160 | for ld_flag in $LDFLAGS; do |
| 15161 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15162 | aix_use_runtimelinking=yes |
| 15163 | break |
| 15164 | fi |
| 15165 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15166 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15167 | esac |
| 15168 | |
| 15169 | exp_sym_flag='-bexport' |
| 15170 | no_entry_flag='-bnoentry' |
| 15171 | fi |
| 15172 | |
| 15173 | # When large executables or shared objects are built, AIX ld can |
| 15174 | # have problems creating the table of contents. If linking a library |
| 15175 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15176 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15177 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15178 | |
| 15179 | archive_cmds='' |
| 15180 | hardcode_direct=yes |
| 15181 | hardcode_libdir_separator=':' |
| 15182 | link_all_deplibs=yes |
| 15183 | |
| 15184 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15185 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15186 | # We only want to do this on AIX 4.2 and lower, the check |
| 15187 | # below for broken collect2 doesn't work under 4.3+ |
| 15188 | collect2name=`${CC} -print-prog-name=collect2` |
| 15189 | if test -f "$collect2name" && \ |
| 15190 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15191 | then |
| 15192 | # We have reworked collect2 |
| 15193 | hardcode_direct=yes |
| 15194 | else |
| 15195 | # We have old collect2 |
| 15196 | hardcode_direct=unsupported |
| 15197 | # It fails to find uninstalled libraries when the uninstalled |
| 15198 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15199 | # to unsupported forces relinking |
| 15200 | hardcode_minus_L=yes |
| 15201 | hardcode_libdir_flag_spec='-L$libdir' |
| 15202 | hardcode_libdir_separator= |
| 15203 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15204 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15205 | esac |
| 15206 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15207 | if test "$aix_use_runtimelinking" = yes; then |
| 15208 | shared_flag="$shared_flag "'${wl}-G' |
| 15209 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15210 | else |
| 15211 | # not using gcc |
| 15212 | if test "$host_cpu" = ia64; then |
| 15213 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15214 | # chokes on -Wl,-G. The following line is correct: |
| 15215 | shared_flag='-G' |
| 15216 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15217 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15218 | shared_flag='${wl}-G' |
| 15219 | else |
| 15220 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15221 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15222 | fi |
| 15223 | fi |
| 15224 | |
| 15225 | # It seems that -bexpall does not export symbols beginning with |
| 15226 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15227 | always_export_symbols=yes |
| 15228 | if test "$aix_use_runtimelinking" = yes; then |
| 15229 | # Warning - without using the other runtime loading flags (-brtl), |
| 15230 | # -berok will link without error, but may produce a broken library. |
| 15231 | allow_undefined_flag='-berok' |
| 15232 | # Determine the default libpath from the value encoded in an empty executable. |
| 15233 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15234 | /* confdefs.h. */ |
| 15235 | _ACEOF |
| 15236 | cat confdefs.h >>conftest.$ac_ext |
| 15237 | cat >>conftest.$ac_ext <<_ACEOF |
| 15238 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15239 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15240 | int |
| 15241 | main () |
| 15242 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15243 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15244 | ; |
| 15245 | return 0; |
| 15246 | } |
| 15247 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15248 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15249 | if { (ac_try="$ac_link" |
| 15250 | case "(($ac_try" in |
| 15251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15252 | *) ac_try_echo=$ac_try;; |
| 15253 | esac |
| 15254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15255 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15256 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15258 | rm -f conftest.er1 |
| 15259 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 15261 | (exit $ac_status); } && |
| 15262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15263 | { (case "(($ac_try" in |
| 15264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15265 | *) ac_try_echo=$ac_try;; |
| 15266 | esac |
| 15267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15268 | (eval "$ac_try") 2>&5 |
| 15269 | ac_status=$? |
| 15270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15271 | (exit $ac_status); }; } && |
| 15272 | { ac_try='test -s conftest$ac_exeext' |
| 15273 | { (case "(($ac_try" in |
| 15274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15275 | *) ac_try_echo=$ac_try;; |
| 15276 | esac |
| 15277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15278 | (eval "$ac_try") 2>&5 |
| 15279 | ac_status=$? |
| 15280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15281 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15282 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15283 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15284 | }'` |
| 15285 | # Check for a 64-bit object if we didn't find anything. |
| 15286 | 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; } |
| 15287 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15288 | else |
| 15289 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15292 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15293 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15294 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 15295 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15296 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15297 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15298 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15299 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15300 | 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] | 15301 | else |
| 15302 | if test "$host_cpu" = ia64; then |
| 15303 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15304 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15305 | 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] | 15306 | else |
| 15307 | # Determine the default libpath from the value encoded in an empty executable. |
| 15308 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15309 | /* confdefs.h. */ |
| 15310 | _ACEOF |
| 15311 | cat confdefs.h >>conftest.$ac_ext |
| 15312 | cat >>conftest.$ac_ext <<_ACEOF |
| 15313 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15314 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15315 | int |
| 15316 | main () |
| 15317 | { |
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 | ; |
| 15320 | return 0; |
| 15321 | } |
| 15322 | _ACEOF |
| 15323 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15324 | if { (ac_try="$ac_link" |
| 15325 | case "(($ac_try" in |
| 15326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15327 | *) ac_try_echo=$ac_try;; |
| 15328 | esac |
| 15329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15330 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15331 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15333 | rm -f conftest.er1 |
| 15334 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 15336 | (exit $ac_status); } && |
| 15337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15338 | { (case "(($ac_try" in |
| 15339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15340 | *) ac_try_echo=$ac_try;; |
| 15341 | esac |
| 15342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15343 | (eval "$ac_try") 2>&5 |
| 15344 | ac_status=$? |
| 15345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15346 | (exit $ac_status); }; } && |
| 15347 | { ac_try='test -s conftest$ac_exeext' |
| 15348 | { (case "(($ac_try" in |
| 15349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15350 | *) ac_try_echo=$ac_try;; |
| 15351 | esac |
| 15352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15353 | (eval "$ac_try") 2>&5 |
| 15354 | ac_status=$? |
| 15355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15356 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15357 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15358 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15359 | }'` |
| 15360 | # Check for a 64-bit object if we didn't find anything. |
| 15361 | 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; } |
| 15362 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15363 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15364 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15366 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15367 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15368 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15369 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 15370 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15371 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15372 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15373 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15374 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15375 | # Warning - without using the other run time loading flags, |
| 15376 | # -berok will link without error, but may produce a broken library. |
| 15377 | no_undefined_flag=' ${wl}-bernotok' |
| 15378 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15379 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15380 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15381 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15382 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15383 | 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] | 15384 | fi |
| 15385 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15386 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15387 | |
| 15388 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15389 | 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] | 15390 | hardcode_libdir_flag_spec='-L$libdir' |
| 15391 | hardcode_minus_L=yes |
| 15392 | # see comment about different semantics on the GNU ld section |
| 15393 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15394 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15395 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15396 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15397 | export_dynamic_flag_spec=-rdynamic |
| 15398 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15399 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15400 | cygwin* | mingw* | pw32*) |
| 15401 | # When not using gcc, we currently assume that we are using |
| 15402 | # Microsoft Visual C++. |
| 15403 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15404 | # no search path for DLLs. |
| 15405 | hardcode_libdir_flag_spec=' ' |
| 15406 | allow_undefined_flag=unsupported |
| 15407 | # Tell ltmain to make .lib files, not .a files. |
| 15408 | libext=lib |
| 15409 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15410 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15411 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15412 | 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] | 15413 | # The linker will automatically build a .lib file if we build a DLL. |
| 15414 | old_archive_From_new_cmds='true' |
| 15415 | # FIXME: Should let the user specify the lib program. |
| 15416 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15417 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15418 | enable_shared_with_static_runtimes=yes |
| 15419 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15420 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15421 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15422 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15423 | rhapsody* | darwin1.[012]) |
| 15424 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15425 | ;; |
| 15426 | *) # Darwin 1.3 on |
| 15427 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15428 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15429 | else |
| 15430 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15431 | 10.[012]) |
| 15432 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15433 | ;; |
| 15434 | 10.*) |
| 15435 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15436 | ;; |
| 15437 | esac |
| 15438 | fi |
| 15439 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15440 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15441 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15442 | hardcode_direct=no |
| 15443 | hardcode_automatic=yes |
| 15444 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15445 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15446 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15447 | if test "$GCC" = yes ; then |
| 15448 | output_verbose_link_cmd='echo' |
| 15449 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15450 | 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] | 15451 | # 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] | 15452 | 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}' |
| 15453 | 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] | 15454 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15455 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15456 | xlc*) |
| 15457 | output_verbose_link_cmd='echo' |
| 15458 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15459 | 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] | 15460 | # 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] | 15461 | 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}' |
| 15462 | 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] | 15463 | ;; |
| 15464 | *) |
| 15465 | ld_shlibs=no |
| 15466 | ;; |
| 15467 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15468 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15469 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15470 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15471 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15472 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15473 | hardcode_libdir_flag_spec='-L$libdir' |
| 15474 | hardcode_shlibpath_var=no |
| 15475 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15476 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15477 | freebsd1*) |
| 15478 | ld_shlibs=no |
| 15479 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15480 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15481 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15482 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15483 | # does not break anything, and helps significantly (at the cost of a little |
| 15484 | # extra space). |
| 15485 | freebsd2.2*) |
| 15486 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15487 | hardcode_libdir_flag_spec='-R$libdir' |
| 15488 | hardcode_direct=yes |
| 15489 | hardcode_shlibpath_var=no |
| 15490 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15491 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15492 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15493 | freebsd2*) |
| 15494 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15495 | hardcode_direct=yes |
| 15496 | hardcode_minus_L=yes |
| 15497 | hardcode_shlibpath_var=no |
| 15498 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15499 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15500 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15501 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15502 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15503 | hardcode_libdir_flag_spec='-R$libdir' |
| 15504 | hardcode_direct=yes |
| 15505 | hardcode_shlibpath_var=no |
| 15506 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15507 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15508 | hpux9*) |
| 15509 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15510 | 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] | 15511 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15512 | 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] | 15513 | fi |
| 15514 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15515 | hardcode_libdir_separator=: |
| 15516 | hardcode_direct=yes |
| 15517 | |
| 15518 | # hardcode_minus_L: Not really in the search PATH, |
| 15519 | # but as the default location of the library. |
| 15520 | hardcode_minus_L=yes |
| 15521 | export_dynamic_flag_spec='${wl}-E' |
| 15522 | ;; |
| 15523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15524 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15525 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15526 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15527 | else |
| 15528 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15529 | fi |
| 15530 | if test "$with_gnu_ld" = no; then |
| 15531 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15532 | hardcode_libdir_separator=: |
| 15533 | |
| 15534 | hardcode_direct=yes |
| 15535 | export_dynamic_flag_spec='${wl}-E' |
| 15536 | |
| 15537 | # hardcode_minus_L: Not really in the search PATH, |
| 15538 | # but as the default location of the library. |
| 15539 | hardcode_minus_L=yes |
| 15540 | fi |
| 15541 | ;; |
| 15542 | |
| 15543 | hpux11*) |
| 15544 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15545 | case $host_cpu in |
| 15546 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15547 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15548 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15549 | ia64*) |
| 15550 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15551 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15552 | *) |
| 15553 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15554 | ;; |
| 15555 | esac |
| 15556 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15557 | case $host_cpu in |
| 15558 | hppa*64*) |
| 15559 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15560 | ;; |
| 15561 | ia64*) |
| 15562 | 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] | 15563 | ;; |
| 15564 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15565 | 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] | 15566 | ;; |
| 15567 | esac |
| 15568 | fi |
| 15569 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15570 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15571 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15572 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15573 | case $host_cpu in |
| 15574 | hppa*64*|ia64*) |
| 15575 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15576 | hardcode_direct=no |
| 15577 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15578 | ;; |
| 15579 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15580 | hardcode_direct=yes |
| 15581 | export_dynamic_flag_spec='${wl}-E' |
| 15582 | |
| 15583 | # hardcode_minus_L: Not really in the search PATH, |
| 15584 | # but as the default location of the library. |
| 15585 | hardcode_minus_L=yes |
| 15586 | ;; |
| 15587 | esac |
| 15588 | fi |
| 15589 | ;; |
| 15590 | |
| 15591 | irix5* | irix6* | nonstopux*) |
| 15592 | if test "$GCC" = yes; then |
| 15593 | 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' |
| 15594 | else |
| 15595 | 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' |
| 15596 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15597 | fi |
| 15598 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15599 | hardcode_libdir_separator=: |
| 15600 | link_all_deplibs=yes |
| 15601 | ;; |
| 15602 | |
| 15603 | netbsd*) |
| 15604 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15605 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15606 | else |
| 15607 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15608 | fi |
| 15609 | hardcode_libdir_flag_spec='-R$libdir' |
| 15610 | hardcode_direct=yes |
| 15611 | hardcode_shlibpath_var=no |
| 15612 | ;; |
| 15613 | |
| 15614 | newsos6) |
| 15615 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15616 | hardcode_direct=yes |
| 15617 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15618 | hardcode_libdir_separator=: |
| 15619 | hardcode_shlibpath_var=no |
| 15620 | ;; |
| 15621 | |
| 15622 | openbsd*) |
| 15623 | hardcode_direct=yes |
| 15624 | hardcode_shlibpath_var=no |
| 15625 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15626 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15627 | 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] | 15628 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15629 | export_dynamic_flag_spec='${wl}-E' |
| 15630 | else |
| 15631 | case $host_os in |
| 15632 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15633 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15634 | hardcode_libdir_flag_spec='-R$libdir' |
| 15635 | ;; |
| 15636 | *) |
| 15637 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15638 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15639 | ;; |
| 15640 | esac |
| 15641 | fi |
| 15642 | ;; |
| 15643 | |
| 15644 | os2*) |
| 15645 | hardcode_libdir_flag_spec='-L$libdir' |
| 15646 | hardcode_minus_L=yes |
| 15647 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15648 | 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] | 15649 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15650 | ;; |
| 15651 | |
| 15652 | osf3*) |
| 15653 | if test "$GCC" = yes; then |
| 15654 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15655 | 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' |
| 15656 | else |
| 15657 | allow_undefined_flag=' -expect_unresolved \*' |
| 15658 | 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' |
| 15659 | fi |
| 15660 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15661 | hardcode_libdir_separator=: |
| 15662 | ;; |
| 15663 | |
| 15664 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15665 | if test "$GCC" = yes; then |
| 15666 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15667 | 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' |
| 15668 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15669 | else |
| 15670 | allow_undefined_flag=' -expect_unresolved \*' |
| 15671 | 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] | 15672 | 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] | 15673 | $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] | 15674 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15675 | # Both c and cxx compiler support -rpath directly |
| 15676 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15677 | fi |
| 15678 | hardcode_libdir_separator=: |
| 15679 | ;; |
| 15680 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15681 | solaris*) |
| 15682 | no_undefined_flag=' -z text' |
| 15683 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15684 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15685 | 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] | 15686 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15687 | $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] | 15688 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15689 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15690 | 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] | 15691 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15692 | $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] | 15693 | fi |
| 15694 | hardcode_libdir_flag_spec='-R$libdir' |
| 15695 | hardcode_shlibpath_var=no |
| 15696 | case $host_os in |
| 15697 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15698 | *) |
| 15699 | # The compiler driver will combine linker options so we |
| 15700 | # cannot just pass the convience library names through |
| 15701 | # without $wl, iff we do not link with $LD. |
| 15702 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15703 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15704 | case $wlarc in |
| 15705 | '') |
| 15706 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15707 | *) |
| 15708 | 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' ;; |
| 15709 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15710 | esac |
| 15711 | link_all_deplibs=yes |
| 15712 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15713 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15714 | sunos4*) |
| 15715 | if test "x$host_vendor" = xsequent; then |
| 15716 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15717 | # files that make .init and .fini sections work. |
| 15718 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15719 | else |
| 15720 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15721 | fi |
| 15722 | hardcode_libdir_flag_spec='-L$libdir' |
| 15723 | hardcode_direct=yes |
| 15724 | hardcode_minus_L=yes |
| 15725 | hardcode_shlibpath_var=no |
| 15726 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15727 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15728 | sysv4) |
| 15729 | case $host_vendor in |
| 15730 | sni) |
| 15731 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15732 | hardcode_direct=yes # is this really true??? |
| 15733 | ;; |
| 15734 | siemens) |
| 15735 | ## LD is ld it makes a PLAMLIB |
| 15736 | ## CC just makes a GrossModule. |
| 15737 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15738 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15739 | hardcode_direct=no |
| 15740 | ;; |
| 15741 | motorola) |
| 15742 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15743 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15744 | ;; |
| 15745 | esac |
| 15746 | runpath_var='LD_RUN_PATH' |
| 15747 | hardcode_shlibpath_var=no |
| 15748 | ;; |
| 15749 | |
| 15750 | sysv4.3*) |
| 15751 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15752 | hardcode_shlibpath_var=no |
| 15753 | export_dynamic_flag_spec='-Bexport' |
| 15754 | ;; |
| 15755 | |
| 15756 | sysv4*MP*) |
| 15757 | if test -d /usr/nec; then |
| 15758 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15759 | hardcode_shlibpath_var=no |
| 15760 | runpath_var=LD_RUN_PATH |
| 15761 | hardcode_runpath_var=yes |
| 15762 | ld_shlibs=yes |
| 15763 | fi |
| 15764 | ;; |
| 15765 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15766 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15767 | no_undefined_flag='${wl}-z,text' |
| 15768 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15769 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15770 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15771 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15772 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15773 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15774 | 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] | 15775 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15776 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15777 | 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] | 15778 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15779 | ;; |
| 15780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15781 | sysv5* | sco3.2v5* | sco5v6*) |
| 15782 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15783 | # link with -lc, and that would cause any symbols used from libc to |
| 15784 | # always be unresolved, which means just about no library would |
| 15785 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15786 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15787 | # as -z defs. |
| 15788 | no_undefined_flag='${wl}-z,text' |
| 15789 | allow_undefined_flag='${wl}-z,nodefs' |
| 15790 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15791 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15792 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15793 | hardcode_libdir_separator=':' |
| 15794 | link_all_deplibs=yes |
| 15795 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15796 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15797 | |
| 15798 | if test "$GCC" = yes; then |
| 15799 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15800 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15801 | else |
| 15802 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15803 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15804 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15805 | ;; |
| 15806 | |
| 15807 | uts4*) |
| 15808 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15809 | hardcode_libdir_flag_spec='-L$libdir' |
| 15810 | hardcode_shlibpath_var=no |
| 15811 | ;; |
| 15812 | |
| 15813 | *) |
| 15814 | ld_shlibs=no |
| 15815 | ;; |
| 15816 | esac |
| 15817 | fi |
| 15818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15819 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 15820 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15821 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15822 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15823 | # |
| 15824 | # Do we need to explicitly link libc? |
| 15825 | # |
| 15826 | case "x$archive_cmds_need_lc" in |
| 15827 | x|xyes) |
| 15828 | # Assume -lc should be added |
| 15829 | archive_cmds_need_lc=yes |
| 15830 | |
| 15831 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15832 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15833 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15834 | # FIXME: we may have to deal with multi-command sequences. |
| 15835 | ;; |
| 15836 | '$CC '*) |
| 15837 | # Test whether the compiler implicitly links with -lc since on some |
| 15838 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15839 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15840 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15841 | 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] | 15842 | $rm conftest* |
| 15843 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15844 | |
| 15845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15846 | (eval $ac_compile) 2>&5 |
| 15847 | ac_status=$? |
| 15848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15849 | (exit $ac_status); } 2>conftest.err; then |
| 15850 | soname=conftest |
| 15851 | lib=conftest |
| 15852 | libobjs=conftest.$ac_objext |
| 15853 | deplibs= |
| 15854 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15855 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15856 | compiler_flags=-v |
| 15857 | linker_flags=-v |
| 15858 | verstring= |
| 15859 | output_objdir=. |
| 15860 | libname=conftest |
| 15861 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15862 | allow_undefined_flag= |
| 15863 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15864 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15865 | ac_status=$? |
| 15866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15867 | (exit $ac_status); } |
| 15868 | then |
| 15869 | archive_cmds_need_lc=no |
| 15870 | else |
| 15871 | archive_cmds_need_lc=yes |
| 15872 | fi |
| 15873 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15874 | else |
| 15875 | cat conftest.err 1>&5 |
| 15876 | fi |
| 15877 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15878 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 15879 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15880 | ;; |
| 15881 | esac |
| 15882 | fi |
| 15883 | ;; |
| 15884 | esac |
| 15885 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15886 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15887 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15888 | library_names_spec= |
| 15889 | libname_spec='lib$name' |
| 15890 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15891 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15892 | postinstall_cmds= |
| 15893 | postuninstall_cmds= |
| 15894 | finish_cmds= |
| 15895 | finish_eval= |
| 15896 | shlibpath_var= |
| 15897 | shlibpath_overrides_runpath=unknown |
| 15898 | version_type=none |
| 15899 | dynamic_linker="$host_os ld.so" |
| 15900 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15901 | if test "$GCC" = yes; then |
| 15902 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15903 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15904 | # if the path contains ";" then we assume it to be the separator |
| 15905 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15906 | # assumed that no part of a normal pathname contains ";" but that should |
| 15907 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15908 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15909 | else |
| 15910 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15911 | fi |
| 15912 | else |
| 15913 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15914 | fi |
| 15915 | need_lib_prefix=unknown |
| 15916 | hardcode_into_libs=no |
| 15917 | |
| 15918 | # when you set need_version to no, make sure it does not cause -set_version |
| 15919 | # flags to be left without arguments |
| 15920 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15921 | |
| 15922 | case $host_os in |
| 15923 | aix3*) |
| 15924 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15925 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15926 | shlibpath_var=LIBPATH |
| 15927 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15928 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15929 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15930 | ;; |
| 15931 | |
| 15932 | aix4* | aix5*) |
| 15933 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15934 | need_lib_prefix=no |
| 15935 | need_version=no |
| 15936 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15937 | if test "$host_cpu" = ia64; then |
| 15938 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15939 | 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] | 15940 | shlibpath_var=LD_LIBRARY_PATH |
| 15941 | else |
| 15942 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15943 | # for dependence libraries. The import file would start with |
| 15944 | # the line `#! .'. This would cause the generated library to |
| 15945 | # depend on `.', always an invalid library. This was fixed in |
| 15946 | # development snapshots of GCC prior to 3.0. |
| 15947 | case $host_os in |
| 15948 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15949 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15950 | echo ' yes ' |
| 15951 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15952 | : |
| 15953 | else |
| 15954 | can_build_shared=no |
| 15955 | fi |
| 15956 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15957 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15958 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15959 | # soname into executable. Probably we can add versioning support to |
| 15960 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15961 | if test "$aix_use_runtimelinking" = yes; then |
| 15962 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15963 | # instead of lib<name>.a to let people know that these are not |
| 15964 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15965 | 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] | 15966 | else |
| 15967 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15968 | # and later when we are not doing run time linking. |
| 15969 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15970 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15971 | fi |
| 15972 | shlibpath_var=LIBPATH |
| 15973 | fi |
| 15974 | ;; |
| 15975 | |
| 15976 | amigaos*) |
| 15977 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15978 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15979 | 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] | 15980 | ;; |
| 15981 | |
| 15982 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15983 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15984 | dynamic_linker="$host_os ld.so" |
| 15985 | shlibpath_var=LIBRARY_PATH |
| 15986 | ;; |
| 15987 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15988 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15989 | version_type=linux |
| 15990 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15992 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15993 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15994 | shlibpath_var=LD_LIBRARY_PATH |
| 15995 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15996 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15997 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15998 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15999 | # libtool to hard-code these into programs |
| 16000 | ;; |
| 16001 | |
| 16002 | cygwin* | mingw* | pw32*) |
| 16003 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16004 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16005 | need_version=no |
| 16006 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16007 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16008 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16009 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16010 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16011 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16012 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16013 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16014 | dldir=$destdir/`dirname \$dlpath`~ |
| 16015 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16016 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16017 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16018 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16019 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16020 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16021 | shlibpath_overrides_runpath=yes |
| 16022 | |
| 16023 | case $host_os in |
| 16024 | cygwin*) |
| 16025 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16026 | 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] | 16027 | 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] | 16028 | ;; |
| 16029 | mingw*) |
| 16030 | # MinGW DLLs use traditional 'lib' prefix |
| 16031 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16032 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16033 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16034 | # It is most probably a Windows format PATH printed by |
| 16035 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16036 | # path with ; separators, and with drive letters. We can handle the |
| 16037 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16038 | # especially as we might pass files found there to a mingw objdump, |
| 16039 | # which wouldn't understand a cygwinified path. Ahh. |
| 16040 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16041 | else |
| 16042 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16043 | fi |
| 16044 | ;; |
| 16045 | pw32*) |
| 16046 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16047 | 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] | 16048 | ;; |
| 16049 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16050 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16051 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16052 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16053 | 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] | 16054 | ;; |
| 16055 | esac |
| 16056 | dynamic_linker='Win32 ld.exe' |
| 16057 | # FIXME: first we should search . and the directory the executable is in |
| 16058 | shlibpath_var=PATH |
| 16059 | ;; |
| 16060 | |
| 16061 | darwin* | rhapsody*) |
| 16062 | dynamic_linker="$host_os dyld" |
| 16063 | version_type=darwin |
| 16064 | need_lib_prefix=no |
| 16065 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16066 | 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] | 16067 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16068 | shlibpath_overrides_runpath=yes |
| 16069 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16070 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16071 | # 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] | 16072 | if test "$GCC" = yes; then |
| 16073 | 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"` |
| 16074 | else |
| 16075 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16076 | fi |
| 16077 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16078 | ;; |
| 16079 | |
| 16080 | dgux*) |
| 16081 | version_type=linux |
| 16082 | need_lib_prefix=no |
| 16083 | need_version=no |
| 16084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16085 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16086 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16087 | ;; |
| 16088 | |
| 16089 | freebsd1*) |
| 16090 | dynamic_linker=no |
| 16091 | ;; |
| 16092 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16093 | kfreebsd*-gnu) |
| 16094 | version_type=linux |
| 16095 | need_lib_prefix=no |
| 16096 | need_version=no |
| 16097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16098 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16099 | shlibpath_var=LD_LIBRARY_PATH |
| 16100 | shlibpath_overrides_runpath=no |
| 16101 | hardcode_into_libs=yes |
| 16102 | dynamic_linker='GNU ld.so' |
| 16103 | ;; |
| 16104 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16105 | freebsd* | dragonfly*) |
| 16106 | # DragonFly does not have aout. When/if they implement a new |
| 16107 | # versioning mechanism, adjust this. |
| 16108 | if test -x /usr/bin/objformat; then |
| 16109 | objformat=`/usr/bin/objformat` |
| 16110 | else |
| 16111 | case $host_os in |
| 16112 | freebsd[123]*) objformat=aout ;; |
| 16113 | *) objformat=elf ;; |
| 16114 | esac |
| 16115 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16116 | version_type=freebsd-$objformat |
| 16117 | case $version_type in |
| 16118 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16119 | 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] | 16120 | need_version=no |
| 16121 | need_lib_prefix=no |
| 16122 | ;; |
| 16123 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16124 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16125 | need_version=yes |
| 16126 | ;; |
| 16127 | esac |
| 16128 | shlibpath_var=LD_LIBRARY_PATH |
| 16129 | case $host_os in |
| 16130 | freebsd2*) |
| 16131 | shlibpath_overrides_runpath=yes |
| 16132 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16133 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16134 | shlibpath_overrides_runpath=yes |
| 16135 | hardcode_into_libs=yes |
| 16136 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16137 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16138 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16139 | shlibpath_overrides_runpath=no |
| 16140 | hardcode_into_libs=yes |
| 16141 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16142 | freebsd*) # from 4.6 on |
| 16143 | shlibpath_overrides_runpath=yes |
| 16144 | hardcode_into_libs=yes |
| 16145 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16146 | esac |
| 16147 | ;; |
| 16148 | |
| 16149 | gnu*) |
| 16150 | version_type=linux |
| 16151 | need_lib_prefix=no |
| 16152 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16154 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16155 | shlibpath_var=LD_LIBRARY_PATH |
| 16156 | hardcode_into_libs=yes |
| 16157 | ;; |
| 16158 | |
| 16159 | hpux9* | hpux10* | hpux11*) |
| 16160 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16161 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16162 | version_type=sunos |
| 16163 | need_lib_prefix=no |
| 16164 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16165 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16166 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16167 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16168 | hardcode_into_libs=yes |
| 16169 | dynamic_linker="$host_os dld.so" |
| 16170 | shlibpath_var=LD_LIBRARY_PATH |
| 16171 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16173 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16174 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16175 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16176 | else |
| 16177 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16178 | fi |
| 16179 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16180 | ;; |
| 16181 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16182 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16183 | hardcode_into_libs=yes |
| 16184 | dynamic_linker="$host_os dld.sl" |
| 16185 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16186 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16188 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16189 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16190 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16191 | ;; |
| 16192 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16193 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16194 | dynamic_linker="$host_os dld.sl" |
| 16195 | shlibpath_var=SHLIB_PATH |
| 16196 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16198 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16199 | ;; |
| 16200 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16201 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16202 | postinstall_cmds='chmod 555 $lib' |
| 16203 | ;; |
| 16204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16205 | interix3*) |
| 16206 | version_type=linux |
| 16207 | need_lib_prefix=no |
| 16208 | need_version=no |
| 16209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16210 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16211 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16212 | shlibpath_var=LD_LIBRARY_PATH |
| 16213 | shlibpath_overrides_runpath=no |
| 16214 | hardcode_into_libs=yes |
| 16215 | ;; |
| 16216 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16217 | irix5* | irix6* | nonstopux*) |
| 16218 | case $host_os in |
| 16219 | nonstopux*) version_type=nonstopux ;; |
| 16220 | *) |
| 16221 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16222 | version_type=linux |
| 16223 | else |
| 16224 | version_type=irix |
| 16225 | fi ;; |
| 16226 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16227 | need_lib_prefix=no |
| 16228 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16229 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16230 | 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] | 16231 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16232 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16233 | libsuff= shlibsuff= |
| 16234 | ;; |
| 16235 | *) |
| 16236 | 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] | 16237 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16238 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16239 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16240 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16241 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16242 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16243 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16244 | esac |
| 16245 | ;; |
| 16246 | esac |
| 16247 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16248 | shlibpath_overrides_runpath=no |
| 16249 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16250 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16251 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16252 | ;; |
| 16253 | |
| 16254 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16255 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16256 | dynamic_linker=no |
| 16257 | ;; |
| 16258 | |
| 16259 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16260 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16261 | version_type=linux |
| 16262 | need_lib_prefix=no |
| 16263 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16265 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16266 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16267 | shlibpath_var=LD_LIBRARY_PATH |
| 16268 | shlibpath_overrides_runpath=no |
| 16269 | # This implies no fast_install, which is unacceptable. |
| 16270 | # Some rework will be needed to allow for fast_install |
| 16271 | # before this can be enabled. |
| 16272 | hardcode_into_libs=yes |
| 16273 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16274 | # Append ld.so.conf contents to the search path |
| 16275 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16276 | 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] | 16277 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16278 | fi |
| 16279 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16280 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16281 | # powerpc, because MkLinux only supported shared libraries with the |
| 16282 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16283 | # most powerpc-linux boxes support dynamic linking these days and |
| 16284 | # people can always --disable-shared, the test was removed, and we |
| 16285 | # assume the GNU/Linux dynamic linker is in use. |
| 16286 | dynamic_linker='GNU/Linux ld.so' |
| 16287 | ;; |
| 16288 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16289 | knetbsd*-gnu) |
| 16290 | version_type=linux |
| 16291 | need_lib_prefix=no |
| 16292 | need_version=no |
| 16293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16294 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16295 | shlibpath_var=LD_LIBRARY_PATH |
| 16296 | shlibpath_overrides_runpath=no |
| 16297 | hardcode_into_libs=yes |
| 16298 | dynamic_linker='GNU ld.so' |
| 16299 | ;; |
| 16300 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16301 | netbsd*) |
| 16302 | version_type=sunos |
| 16303 | need_lib_prefix=no |
| 16304 | need_version=no |
| 16305 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16307 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16308 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16309 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16310 | 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] | 16311 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16312 | dynamic_linker='NetBSD ld.elf_so' |
| 16313 | fi |
| 16314 | shlibpath_var=LD_LIBRARY_PATH |
| 16315 | shlibpath_overrides_runpath=yes |
| 16316 | hardcode_into_libs=yes |
| 16317 | ;; |
| 16318 | |
| 16319 | newsos6) |
| 16320 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16322 | shlibpath_var=LD_LIBRARY_PATH |
| 16323 | shlibpath_overrides_runpath=yes |
| 16324 | ;; |
| 16325 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16326 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16327 | version_type=linux |
| 16328 | need_lib_prefix=no |
| 16329 | need_version=no |
| 16330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16331 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16332 | shlibpath_var=LD_LIBRARY_PATH |
| 16333 | shlibpath_overrides_runpath=yes |
| 16334 | ;; |
| 16335 | |
| 16336 | openbsd*) |
| 16337 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16338 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16339 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16340 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16341 | case $host_os in |
| 16342 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16343 | *) need_version=no ;; |
| 16344 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16346 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16347 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16348 | 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] | 16349 | case $host_os in |
| 16350 | openbsd2.[89] | openbsd2.[89].*) |
| 16351 | shlibpath_overrides_runpath=no |
| 16352 | ;; |
| 16353 | *) |
| 16354 | shlibpath_overrides_runpath=yes |
| 16355 | ;; |
| 16356 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16357 | else |
| 16358 | shlibpath_overrides_runpath=yes |
| 16359 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16360 | ;; |
| 16361 | |
| 16362 | os2*) |
| 16363 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16364 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16365 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16366 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16367 | dynamic_linker='OS/2 ld.exe' |
| 16368 | shlibpath_var=LIBPATH |
| 16369 | ;; |
| 16370 | |
| 16371 | osf3* | osf4* | osf5*) |
| 16372 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16373 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16374 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16375 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16376 | 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] | 16377 | shlibpath_var=LD_LIBRARY_PATH |
| 16378 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16379 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16380 | ;; |
| 16381 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16382 | solaris*) |
| 16383 | version_type=linux |
| 16384 | need_lib_prefix=no |
| 16385 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16386 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16387 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16388 | shlibpath_var=LD_LIBRARY_PATH |
| 16389 | shlibpath_overrides_runpath=yes |
| 16390 | hardcode_into_libs=yes |
| 16391 | # ldd complains unless libraries are executable |
| 16392 | postinstall_cmds='chmod +x $lib' |
| 16393 | ;; |
| 16394 | |
| 16395 | sunos4*) |
| 16396 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16398 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16399 | shlibpath_var=LD_LIBRARY_PATH |
| 16400 | shlibpath_overrides_runpath=yes |
| 16401 | if test "$with_gnu_ld" = yes; then |
| 16402 | need_lib_prefix=no |
| 16403 | fi |
| 16404 | need_version=yes |
| 16405 | ;; |
| 16406 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16407 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16408 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16410 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16411 | shlibpath_var=LD_LIBRARY_PATH |
| 16412 | case $host_vendor in |
| 16413 | sni) |
| 16414 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16415 | need_lib_prefix=no |
| 16416 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16417 | runpath_var=LD_RUN_PATH |
| 16418 | ;; |
| 16419 | siemens) |
| 16420 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16421 | ;; |
| 16422 | motorola) |
| 16423 | need_lib_prefix=no |
| 16424 | need_version=no |
| 16425 | shlibpath_overrides_runpath=no |
| 16426 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16427 | ;; |
| 16428 | esac |
| 16429 | ;; |
| 16430 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16431 | sysv4*MP*) |
| 16432 | if test -d /usr/nec ;then |
| 16433 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16434 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16435 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16436 | shlibpath_var=LD_LIBRARY_PATH |
| 16437 | fi |
| 16438 | ;; |
| 16439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16440 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16441 | version_type=freebsd-elf |
| 16442 | need_lib_prefix=no |
| 16443 | need_version=no |
| 16444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16445 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16446 | shlibpath_var=LD_LIBRARY_PATH |
| 16447 | hardcode_into_libs=yes |
| 16448 | if test "$with_gnu_ld" = yes; then |
| 16449 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16450 | shlibpath_overrides_runpath=no |
| 16451 | else |
| 16452 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16453 | shlibpath_overrides_runpath=yes |
| 16454 | case $host_os in |
| 16455 | sco3.2v5*) |
| 16456 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16457 | ;; |
| 16458 | esac |
| 16459 | fi |
| 16460 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16461 | ;; |
| 16462 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16463 | uts4*) |
| 16464 | version_type=linux |
| 16465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16466 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16467 | shlibpath_var=LD_LIBRARY_PATH |
| 16468 | ;; |
| 16469 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16470 | *) |
| 16471 | dynamic_linker=no |
| 16472 | ;; |
| 16473 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16474 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16475 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16476 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16478 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16479 | if test "$GCC" = yes; then |
| 16480 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16481 | fi |
| 16482 | |
| 16483 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16484 | 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] | 16485 | hardcode_action= |
| 16486 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16487 | test -n "$runpath_var" || \ |
| 16488 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16489 | |
| 16490 | # We can hardcode non-existant directories. |
| 16491 | if test "$hardcode_direct" != no && |
| 16492 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16493 | # have to relink, otherwise we might link with an installed library |
| 16494 | # when we should be linking with a yet-to-be-installed one |
| 16495 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16496 | test "$hardcode_minus_L" != no; then |
| 16497 | # Linking always hardcodes the temporary library directory. |
| 16498 | hardcode_action=relink |
| 16499 | else |
| 16500 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16501 | hardcode_action=immediate |
| 16502 | fi |
| 16503 | else |
| 16504 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16505 | # directories. |
| 16506 | hardcode_action=unsupported |
| 16507 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16508 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16509 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16510 | |
| 16511 | if test "$hardcode_action" = relink; then |
| 16512 | # Fast installation is not supported |
| 16513 | enable_fast_install=no |
| 16514 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16515 | test "$enable_shared" = no; then |
| 16516 | # Fast installation is not necessary |
| 16517 | enable_fast_install=needless |
| 16518 | fi |
| 16519 | |
| 16520 | striplib= |
| 16521 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16522 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16523 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16524 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16525 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16526 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16527 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16528 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16529 | else |
| 16530 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16531 | case $host_os in |
| 16532 | darwin*) |
| 16533 | if test -n "$STRIP" ; then |
| 16534 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16535 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16536 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16537 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16538 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16539 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16540 | fi |
| 16541 | ;; |
| 16542 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16543 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16544 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16545 | ;; |
| 16546 | esac |
| 16547 | fi |
| 16548 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16549 | if test "x$enable_dlopen" != xyes; then |
| 16550 | enable_dlopen=unknown |
| 16551 | enable_dlopen_self=unknown |
| 16552 | enable_dlopen_self_static=unknown |
| 16553 | else |
| 16554 | lt_cv_dlopen=no |
| 16555 | lt_cv_dlopen_libs= |
| 16556 | |
| 16557 | case $host_os in |
| 16558 | beos*) |
| 16559 | lt_cv_dlopen="load_add_on" |
| 16560 | lt_cv_dlopen_libs= |
| 16561 | lt_cv_dlopen_self=yes |
| 16562 | ;; |
| 16563 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16564 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16565 | lt_cv_dlopen="LoadLibrary" |
| 16566 | lt_cv_dlopen_libs= |
| 16567 | ;; |
| 16568 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16569 | cygwin*) |
| 16570 | lt_cv_dlopen="dlopen" |
| 16571 | lt_cv_dlopen_libs= |
| 16572 | ;; |
| 16573 | |
| 16574 | darwin*) |
| 16575 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16576 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16577 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16578 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16580 | else |
| 16581 | ac_check_lib_save_LIBS=$LIBS |
| 16582 | LIBS="-ldl $LIBS" |
| 16583 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16584 | /* confdefs.h. */ |
| 16585 | _ACEOF |
| 16586 | cat confdefs.h >>conftest.$ac_ext |
| 16587 | cat >>conftest.$ac_ext <<_ACEOF |
| 16588 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16589 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16590 | /* Override any GCC internal prototype to avoid an error. |
| 16591 | Use char because int might match the return type of a GCC |
| 16592 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16593 | #ifdef __cplusplus |
| 16594 | extern "C" |
| 16595 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16596 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16597 | int |
| 16598 | main () |
| 16599 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16600 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16601 | ; |
| 16602 | return 0; |
| 16603 | } |
| 16604 | _ACEOF |
| 16605 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16606 | if { (ac_try="$ac_link" |
| 16607 | case "(($ac_try" in |
| 16608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16609 | *) ac_try_echo=$ac_try;; |
| 16610 | esac |
| 16611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16612 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16613 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16615 | rm -f conftest.er1 |
| 16616 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 16618 | (exit $ac_status); } && |
| 16619 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16620 | { (case "(($ac_try" in |
| 16621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16622 | *) ac_try_echo=$ac_try;; |
| 16623 | esac |
| 16624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16625 | (eval "$ac_try") 2>&5 |
| 16626 | ac_status=$? |
| 16627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16628 | (exit $ac_status); }; } && |
| 16629 | { ac_try='test -s conftest$ac_exeext' |
| 16630 | { (case "(($ac_try" in |
| 16631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16632 | *) ac_try_echo=$ac_try;; |
| 16633 | esac |
| 16634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16635 | (eval "$ac_try") 2>&5 |
| 16636 | ac_status=$? |
| 16637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16638 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16639 | ac_cv_lib_dl_dlopen=yes |
| 16640 | else |
| 16641 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16643 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16644 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16645 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16646 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 16647 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16648 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16649 | LIBS=$ac_check_lib_save_LIBS |
| 16650 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16651 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16652 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16653 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16654 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16655 | else |
| 16656 | |
| 16657 | lt_cv_dlopen="dyld" |
| 16658 | lt_cv_dlopen_libs= |
| 16659 | lt_cv_dlopen_self=yes |
| 16660 | |
| 16661 | fi |
| 16662 | |
| 16663 | ;; |
| 16664 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16665 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16666 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16667 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16668 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16670 | else |
| 16671 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16672 | /* confdefs.h. */ |
| 16673 | _ACEOF |
| 16674 | cat confdefs.h >>conftest.$ac_ext |
| 16675 | cat >>conftest.$ac_ext <<_ACEOF |
| 16676 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16677 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16679 | #define shl_load innocuous_shl_load |
| 16680 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16681 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16682 | which can conflict with char shl_load (); below. |
| 16683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16684 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16685 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16686 | #ifdef __STDC__ |
| 16687 | # include <limits.h> |
| 16688 | #else |
| 16689 | # include <assert.h> |
| 16690 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16691 | |
| 16692 | #undef shl_load |
| 16693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16694 | /* Override any GCC internal prototype to avoid an error. |
| 16695 | Use char because int might match the return type of a GCC |
| 16696 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16697 | #ifdef __cplusplus |
| 16698 | extern "C" |
| 16699 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16700 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16701 | /* The GNU C library defines this for functions which it implements |
| 16702 | to always fail with ENOSYS. Some functions are actually named |
| 16703 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16704 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16705 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16706 | #endif |
| 16707 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16708 | int |
| 16709 | main () |
| 16710 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16711 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16712 | ; |
| 16713 | return 0; |
| 16714 | } |
| 16715 | _ACEOF |
| 16716 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16717 | if { (ac_try="$ac_link" |
| 16718 | case "(($ac_try" in |
| 16719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16720 | *) ac_try_echo=$ac_try;; |
| 16721 | esac |
| 16722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16723 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16724 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16726 | rm -f conftest.er1 |
| 16727 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 16729 | (exit $ac_status); } && |
| 16730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16731 | { (case "(($ac_try" in |
| 16732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16733 | *) ac_try_echo=$ac_try;; |
| 16734 | esac |
| 16735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16736 | (eval "$ac_try") 2>&5 |
| 16737 | ac_status=$? |
| 16738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16739 | (exit $ac_status); }; } && |
| 16740 | { ac_try='test -s conftest$ac_exeext' |
| 16741 | { (case "(($ac_try" in |
| 16742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16743 | *) ac_try_echo=$ac_try;; |
| 16744 | esac |
| 16745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16746 | (eval "$ac_try") 2>&5 |
| 16747 | ac_status=$? |
| 16748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16749 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16750 | ac_cv_func_shl_load=yes |
| 16751 | else |
| 16752 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16755 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16756 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16757 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 16758 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16759 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16760 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16761 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16762 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16763 | if test $ac_cv_func_shl_load = yes; then |
| 16764 | lt_cv_dlopen="shl_load" |
| 16765 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16766 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16767 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16768 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16770 | else |
| 16771 | ac_check_lib_save_LIBS=$LIBS |
| 16772 | LIBS="-ldld $LIBS" |
| 16773 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16774 | /* confdefs.h. */ |
| 16775 | _ACEOF |
| 16776 | cat confdefs.h >>conftest.$ac_ext |
| 16777 | cat >>conftest.$ac_ext <<_ACEOF |
| 16778 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16779 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16780 | /* Override any GCC internal prototype to avoid an error. |
| 16781 | Use char because int might match the return type of a GCC |
| 16782 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16783 | #ifdef __cplusplus |
| 16784 | extern "C" |
| 16785 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16786 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16787 | int |
| 16788 | main () |
| 16789 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16790 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16791 | ; |
| 16792 | return 0; |
| 16793 | } |
| 16794 | _ACEOF |
| 16795 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16796 | if { (ac_try="$ac_link" |
| 16797 | case "(($ac_try" in |
| 16798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16799 | *) ac_try_echo=$ac_try;; |
| 16800 | esac |
| 16801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16802 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16803 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16805 | rm -f conftest.er1 |
| 16806 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 16808 | (exit $ac_status); } && |
| 16809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16810 | { (case "(($ac_try" in |
| 16811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16812 | *) ac_try_echo=$ac_try;; |
| 16813 | esac |
| 16814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16815 | (eval "$ac_try") 2>&5 |
| 16816 | ac_status=$? |
| 16817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16818 | (exit $ac_status); }; } && |
| 16819 | { ac_try='test -s conftest$ac_exeext' |
| 16820 | { (case "(($ac_try" in |
| 16821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16822 | *) ac_try_echo=$ac_try;; |
| 16823 | esac |
| 16824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16825 | (eval "$ac_try") 2>&5 |
| 16826 | ac_status=$? |
| 16827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16828 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16829 | ac_cv_lib_dld_shl_load=yes |
| 16830 | else |
| 16831 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16834 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16835 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16836 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 16837 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16838 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16839 | LIBS=$ac_check_lib_save_LIBS |
| 16840 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16841 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16842 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16843 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16844 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16845 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16846 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16847 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16848 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16850 | else |
| 16851 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16852 | /* confdefs.h. */ |
| 16853 | _ACEOF |
| 16854 | cat confdefs.h >>conftest.$ac_ext |
| 16855 | cat >>conftest.$ac_ext <<_ACEOF |
| 16856 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16857 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16858 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16859 | #define dlopen innocuous_dlopen |
| 16860 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16861 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16862 | which can conflict with char dlopen (); below. |
| 16863 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16864 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16865 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16866 | #ifdef __STDC__ |
| 16867 | # include <limits.h> |
| 16868 | #else |
| 16869 | # include <assert.h> |
| 16870 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16871 | |
| 16872 | #undef dlopen |
| 16873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16874 | /* Override any GCC internal prototype to avoid an error. |
| 16875 | Use char because int might match the return type of a GCC |
| 16876 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16877 | #ifdef __cplusplus |
| 16878 | extern "C" |
| 16879 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16880 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16881 | /* The GNU C library defines this for functions which it implements |
| 16882 | to always fail with ENOSYS. Some functions are actually named |
| 16883 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16884 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16885 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16886 | #endif |
| 16887 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16888 | int |
| 16889 | main () |
| 16890 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16891 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16892 | ; |
| 16893 | return 0; |
| 16894 | } |
| 16895 | _ACEOF |
| 16896 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16897 | if { (ac_try="$ac_link" |
| 16898 | case "(($ac_try" in |
| 16899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16900 | *) ac_try_echo=$ac_try;; |
| 16901 | esac |
| 16902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16903 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16904 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16906 | rm -f conftest.er1 |
| 16907 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 16909 | (exit $ac_status); } && |
| 16910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16911 | { (case "(($ac_try" in |
| 16912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16913 | *) ac_try_echo=$ac_try;; |
| 16914 | esac |
| 16915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16916 | (eval "$ac_try") 2>&5 |
| 16917 | ac_status=$? |
| 16918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16919 | (exit $ac_status); }; } && |
| 16920 | { ac_try='test -s conftest$ac_exeext' |
| 16921 | { (case "(($ac_try" in |
| 16922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16923 | *) ac_try_echo=$ac_try;; |
| 16924 | esac |
| 16925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16926 | (eval "$ac_try") 2>&5 |
| 16927 | ac_status=$? |
| 16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16929 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16930 | ac_cv_func_dlopen=yes |
| 16931 | else |
| 16932 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16935 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16936 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16937 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 16938 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16939 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16940 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16941 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16942 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16943 | if test $ac_cv_func_dlopen = yes; then |
| 16944 | lt_cv_dlopen="dlopen" |
| 16945 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16946 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16947 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16948 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16950 | else |
| 16951 | ac_check_lib_save_LIBS=$LIBS |
| 16952 | LIBS="-ldl $LIBS" |
| 16953 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16954 | /* confdefs.h. */ |
| 16955 | _ACEOF |
| 16956 | cat confdefs.h >>conftest.$ac_ext |
| 16957 | cat >>conftest.$ac_ext <<_ACEOF |
| 16958 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16960 | /* Override any GCC internal prototype to avoid an error. |
| 16961 | Use char because int might match the return type of a GCC |
| 16962 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16963 | #ifdef __cplusplus |
| 16964 | extern "C" |
| 16965 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16966 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16967 | int |
| 16968 | main () |
| 16969 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16970 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16971 | ; |
| 16972 | return 0; |
| 16973 | } |
| 16974 | _ACEOF |
| 16975 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16976 | if { (ac_try="$ac_link" |
| 16977 | case "(($ac_try" in |
| 16978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16979 | *) ac_try_echo=$ac_try;; |
| 16980 | esac |
| 16981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16982 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16983 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16985 | rm -f conftest.er1 |
| 16986 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 16988 | (exit $ac_status); } && |
| 16989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16990 | { (case "(($ac_try" in |
| 16991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16992 | *) ac_try_echo=$ac_try;; |
| 16993 | esac |
| 16994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16995 | (eval "$ac_try") 2>&5 |
| 16996 | ac_status=$? |
| 16997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16998 | (exit $ac_status); }; } && |
| 16999 | { ac_try='test -s conftest$ac_exeext' |
| 17000 | { (case "(($ac_try" in |
| 17001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17002 | *) ac_try_echo=$ac_try;; |
| 17003 | esac |
| 17004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17005 | (eval "$ac_try") 2>&5 |
| 17006 | ac_status=$? |
| 17007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17008 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17009 | ac_cv_lib_dl_dlopen=yes |
| 17010 | else |
| 17011 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17014 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17015 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17016 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 17017 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17018 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17019 | LIBS=$ac_check_lib_save_LIBS |
| 17020 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17021 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17022 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17023 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17024 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17025 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17026 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17027 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17028 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17030 | else |
| 17031 | ac_check_lib_save_LIBS=$LIBS |
| 17032 | LIBS="-lsvld $LIBS" |
| 17033 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17034 | /* confdefs.h. */ |
| 17035 | _ACEOF |
| 17036 | cat confdefs.h >>conftest.$ac_ext |
| 17037 | cat >>conftest.$ac_ext <<_ACEOF |
| 17038 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17040 | /* Override any GCC internal prototype to avoid an error. |
| 17041 | Use char because int might match the return type of a GCC |
| 17042 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17043 | #ifdef __cplusplus |
| 17044 | extern "C" |
| 17045 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17046 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17047 | int |
| 17048 | main () |
| 17049 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17050 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17051 | ; |
| 17052 | return 0; |
| 17053 | } |
| 17054 | _ACEOF |
| 17055 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17056 | if { (ac_try="$ac_link" |
| 17057 | case "(($ac_try" in |
| 17058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17059 | *) ac_try_echo=$ac_try;; |
| 17060 | esac |
| 17061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17062 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17063 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17065 | rm -f conftest.er1 |
| 17066 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 17068 | (exit $ac_status); } && |
| 17069 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17070 | { (case "(($ac_try" in |
| 17071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17072 | *) ac_try_echo=$ac_try;; |
| 17073 | esac |
| 17074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17075 | (eval "$ac_try") 2>&5 |
| 17076 | ac_status=$? |
| 17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17078 | (exit $ac_status); }; } && |
| 17079 | { ac_try='test -s conftest$ac_exeext' |
| 17080 | { (case "(($ac_try" in |
| 17081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17082 | *) ac_try_echo=$ac_try;; |
| 17083 | esac |
| 17084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17085 | (eval "$ac_try") 2>&5 |
| 17086 | ac_status=$? |
| 17087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17088 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17089 | ac_cv_lib_svld_dlopen=yes |
| 17090 | else |
| 17091 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17093 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17094 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17095 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17096 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 17097 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17098 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17099 | LIBS=$ac_check_lib_save_LIBS |
| 17100 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17101 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17102 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17103 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17104 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17105 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17106 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17107 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17108 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17110 | else |
| 17111 | ac_check_lib_save_LIBS=$LIBS |
| 17112 | LIBS="-ldld $LIBS" |
| 17113 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17114 | /* confdefs.h. */ |
| 17115 | _ACEOF |
| 17116 | cat confdefs.h >>conftest.$ac_ext |
| 17117 | cat >>conftest.$ac_ext <<_ACEOF |
| 17118 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17119 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17120 | /* Override any GCC internal prototype to avoid an error. |
| 17121 | Use char because int might match the return type of a GCC |
| 17122 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17123 | #ifdef __cplusplus |
| 17124 | extern "C" |
| 17125 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17126 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17127 | int |
| 17128 | main () |
| 17129 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17130 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17131 | ; |
| 17132 | return 0; |
| 17133 | } |
| 17134 | _ACEOF |
| 17135 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17136 | if { (ac_try="$ac_link" |
| 17137 | case "(($ac_try" in |
| 17138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17139 | *) ac_try_echo=$ac_try;; |
| 17140 | esac |
| 17141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17142 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17143 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17145 | rm -f conftest.er1 |
| 17146 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 17148 | (exit $ac_status); } && |
| 17149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17150 | { (case "(($ac_try" in |
| 17151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17152 | *) ac_try_echo=$ac_try;; |
| 17153 | esac |
| 17154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17155 | (eval "$ac_try") 2>&5 |
| 17156 | ac_status=$? |
| 17157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17158 | (exit $ac_status); }; } && |
| 17159 | { ac_try='test -s conftest$ac_exeext' |
| 17160 | { (case "(($ac_try" in |
| 17161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17162 | *) ac_try_echo=$ac_try;; |
| 17163 | esac |
| 17164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17165 | (eval "$ac_try") 2>&5 |
| 17166 | ac_status=$? |
| 17167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17168 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17169 | ac_cv_lib_dld_dld_link=yes |
| 17170 | else |
| 17171 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17174 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17175 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17176 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 17177 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17178 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17179 | LIBS=$ac_check_lib_save_LIBS |
| 17180 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17181 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17182 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17183 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17184 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17185 | fi |
| 17186 | |
| 17187 | |
| 17188 | fi |
| 17189 | |
| 17190 | |
| 17191 | fi |
| 17192 | |
| 17193 | |
| 17194 | fi |
| 17195 | |
| 17196 | |
| 17197 | fi |
| 17198 | |
| 17199 | |
| 17200 | fi |
| 17201 | |
| 17202 | ;; |
| 17203 | esac |
| 17204 | |
| 17205 | if test "x$lt_cv_dlopen" != xno; then |
| 17206 | enable_dlopen=yes |
| 17207 | else |
| 17208 | enable_dlopen=no |
| 17209 | fi |
| 17210 | |
| 17211 | case $lt_cv_dlopen in |
| 17212 | dlopen) |
| 17213 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17214 | 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] | 17215 | |
| 17216 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17217 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17218 | |
| 17219 | save_LIBS="$LIBS" |
| 17220 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17222 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17223 | 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] | 17224 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17226 | else |
| 17227 | if test "$cross_compiling" = yes; then : |
| 17228 | lt_cv_dlopen_self=cross |
| 17229 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17230 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17231 | lt_status=$lt_dlunknown |
| 17232 | cat > conftest.$ac_ext <<EOF |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 17233 | #line 17233 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17234 | #include "confdefs.h" |
| 17235 | |
| 17236 | #if HAVE_DLFCN_H |
| 17237 | #include <dlfcn.h> |
| 17238 | #endif |
| 17239 | |
| 17240 | #include <stdio.h> |
| 17241 | |
| 17242 | #ifdef RTLD_GLOBAL |
| 17243 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17244 | #else |
| 17245 | # ifdef DL_GLOBAL |
| 17246 | # define LT_DLGLOBAL DL_GLOBAL |
| 17247 | # else |
| 17248 | # define LT_DLGLOBAL 0 |
| 17249 | # endif |
| 17250 | #endif |
| 17251 | |
| 17252 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17253 | find out it does not work in some platform. */ |
| 17254 | #ifndef LT_DLLAZY_OR_NOW |
| 17255 | # ifdef RTLD_LAZY |
| 17256 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17257 | # else |
| 17258 | # ifdef DL_LAZY |
| 17259 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17260 | # else |
| 17261 | # ifdef RTLD_NOW |
| 17262 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17263 | # else |
| 17264 | # ifdef DL_NOW |
| 17265 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17266 | # else |
| 17267 | # define LT_DLLAZY_OR_NOW 0 |
| 17268 | # endif |
| 17269 | # endif |
| 17270 | # endif |
| 17271 | # endif |
| 17272 | #endif |
| 17273 | |
| 17274 | #ifdef __cplusplus |
| 17275 | extern "C" void exit (int); |
| 17276 | #endif |
| 17277 | |
| 17278 | void fnord() { int i=42;} |
| 17279 | int main () |
| 17280 | { |
| 17281 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17282 | int status = $lt_dlunknown; |
| 17283 | |
| 17284 | if (self) |
| 17285 | { |
| 17286 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17287 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17288 | /* dlclose (self); */ |
| 17289 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17290 | else |
| 17291 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17292 | |
| 17293 | exit (status); |
| 17294 | } |
| 17295 | EOF |
| 17296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17297 | (eval $ac_link) 2>&5 |
| 17298 | ac_status=$? |
| 17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17300 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17301 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17302 | lt_status=$? |
| 17303 | case x$lt_status in |
| 17304 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17305 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17306 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17307 | esac |
| 17308 | else : |
| 17309 | # compilation failed |
| 17310 | lt_cv_dlopen_self=no |
| 17311 | fi |
| 17312 | fi |
| 17313 | rm -fr conftest* |
| 17314 | |
| 17315 | |
| 17316 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17317 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17318 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17319 | |
| 17320 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17321 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17322 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17323 | 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] | 17324 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17326 | else |
| 17327 | if test "$cross_compiling" = yes; then : |
| 17328 | lt_cv_dlopen_self_static=cross |
| 17329 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17330 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17331 | lt_status=$lt_dlunknown |
| 17332 | cat > conftest.$ac_ext <<EOF |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 17333 | #line 17333 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17334 | #include "confdefs.h" |
| 17335 | |
| 17336 | #if HAVE_DLFCN_H |
| 17337 | #include <dlfcn.h> |
| 17338 | #endif |
| 17339 | |
| 17340 | #include <stdio.h> |
| 17341 | |
| 17342 | #ifdef RTLD_GLOBAL |
| 17343 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17344 | #else |
| 17345 | # ifdef DL_GLOBAL |
| 17346 | # define LT_DLGLOBAL DL_GLOBAL |
| 17347 | # else |
| 17348 | # define LT_DLGLOBAL 0 |
| 17349 | # endif |
| 17350 | #endif |
| 17351 | |
| 17352 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17353 | find out it does not work in some platform. */ |
| 17354 | #ifndef LT_DLLAZY_OR_NOW |
| 17355 | # ifdef RTLD_LAZY |
| 17356 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17357 | # else |
| 17358 | # ifdef DL_LAZY |
| 17359 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17360 | # else |
| 17361 | # ifdef RTLD_NOW |
| 17362 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17363 | # else |
| 17364 | # ifdef DL_NOW |
| 17365 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17366 | # else |
| 17367 | # define LT_DLLAZY_OR_NOW 0 |
| 17368 | # endif |
| 17369 | # endif |
| 17370 | # endif |
| 17371 | # endif |
| 17372 | #endif |
| 17373 | |
| 17374 | #ifdef __cplusplus |
| 17375 | extern "C" void exit (int); |
| 17376 | #endif |
| 17377 | |
| 17378 | void fnord() { int i=42;} |
| 17379 | int main () |
| 17380 | { |
| 17381 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17382 | int status = $lt_dlunknown; |
| 17383 | |
| 17384 | if (self) |
| 17385 | { |
| 17386 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17387 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17388 | /* dlclose (self); */ |
| 17389 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17390 | else |
| 17391 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17392 | |
| 17393 | exit (status); |
| 17394 | } |
| 17395 | EOF |
| 17396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17397 | (eval $ac_link) 2>&5 |
| 17398 | ac_status=$? |
| 17399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17400 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17401 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17402 | lt_status=$? |
| 17403 | case x$lt_status in |
| 17404 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17405 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17406 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17407 | esac |
| 17408 | else : |
| 17409 | # compilation failed |
| 17410 | lt_cv_dlopen_self_static=no |
| 17411 | fi |
| 17412 | fi |
| 17413 | rm -fr conftest* |
| 17414 | |
| 17415 | |
| 17416 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17417 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17418 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17419 | fi |
| 17420 | |
| 17421 | CPPFLAGS="$save_CPPFLAGS" |
| 17422 | LDFLAGS="$save_LDFLAGS" |
| 17423 | LIBS="$save_LIBS" |
| 17424 | ;; |
| 17425 | esac |
| 17426 | |
| 17427 | case $lt_cv_dlopen_self in |
| 17428 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17429 | *) enable_dlopen_self=unknown ;; |
| 17430 | esac |
| 17431 | |
| 17432 | case $lt_cv_dlopen_self_static in |
| 17433 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17434 | *) enable_dlopen_self_static=unknown ;; |
| 17435 | esac |
| 17436 | fi |
| 17437 | |
| 17438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17439 | # Report which library types will actually be built |
| 17440 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17441 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17442 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17443 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17445 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17446 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17447 | test "$can_build_shared" = "no" && enable_shared=no |
| 17448 | |
| 17449 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17450 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17451 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17452 | aix3*) |
| 17453 | test "$enable_shared" = yes && enable_static=no |
| 17454 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17455 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17456 | postinstall_cmds='$RANLIB $lib' |
| 17457 | fi |
| 17458 | ;; |
| 17459 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17460 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17461 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17462 | test "$enable_shared" = yes && enable_static=no |
| 17463 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17464 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17465 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17466 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17467 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17469 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17470 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17471 | # Make sure either enable_shared or enable_static is yes. |
| 17472 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17473 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17474 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17475 | |
| 17476 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17477 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17478 | # with your package, and you will get complaints that there are |
| 17479 | # no rules to generate ltmain.sh. |
| 17480 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17481 | # See if we are running on zsh, and set the options which allow our commands through |
| 17482 | # without removal of \ escapes. |
| 17483 | if test -n "${ZSH_VERSION+set}" ; then |
| 17484 | setopt NO_GLOB_SUBST |
| 17485 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17486 | # Now quote all the things that may contain metacharacters while being |
| 17487 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17488 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17489 | 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] | 17490 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17491 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17492 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17493 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17494 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17495 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17496 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17497 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17498 | compiler \ |
| 17499 | CC \ |
| 17500 | LD \ |
| 17501 | lt_prog_compiler_wl \ |
| 17502 | lt_prog_compiler_pic \ |
| 17503 | lt_prog_compiler_static \ |
| 17504 | lt_prog_compiler_no_builtin_flag \ |
| 17505 | export_dynamic_flag_spec \ |
| 17506 | thread_safe_flag_spec \ |
| 17507 | whole_archive_flag_spec \ |
| 17508 | enable_shared_with_static_runtimes \ |
| 17509 | old_archive_cmds \ |
| 17510 | old_archive_from_new_cmds \ |
| 17511 | predep_objects \ |
| 17512 | postdep_objects \ |
| 17513 | predeps \ |
| 17514 | postdeps \ |
| 17515 | compiler_lib_search_path \ |
| 17516 | archive_cmds \ |
| 17517 | archive_expsym_cmds \ |
| 17518 | postinstall_cmds \ |
| 17519 | postuninstall_cmds \ |
| 17520 | old_archive_from_expsyms_cmds \ |
| 17521 | allow_undefined_flag \ |
| 17522 | no_undefined_flag \ |
| 17523 | export_symbols_cmds \ |
| 17524 | hardcode_libdir_flag_spec \ |
| 17525 | hardcode_libdir_flag_spec_ld \ |
| 17526 | hardcode_libdir_separator \ |
| 17527 | hardcode_automatic \ |
| 17528 | module_cmds \ |
| 17529 | module_expsym_cmds \ |
| 17530 | lt_cv_prog_compiler_c_o \ |
| 17531 | exclude_expsyms \ |
| 17532 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17533 | |
| 17534 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17535 | old_archive_cmds | \ |
| 17536 | old_archive_from_new_cmds | \ |
| 17537 | archive_cmds | \ |
| 17538 | archive_expsym_cmds | \ |
| 17539 | module_cmds | \ |
| 17540 | module_expsym_cmds | \ |
| 17541 | old_archive_from_expsyms_cmds | \ |
| 17542 | export_symbols_cmds | \ |
| 17543 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17544 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17545 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17546 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17547 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17548 | 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] | 17549 | ;; |
| 17550 | *) |
| 17551 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17552 | ;; |
| 17553 | esac |
| 17554 | done |
| 17555 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17556 | case $lt_echo in |
| 17557 | *'\$0 --fallback-echo"') |
| 17558 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17559 | ;; |
| 17560 | esac |
| 17561 | |
| 17562 | cfgfile="${ofile}T" |
| 17563 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17564 | $rm -f "$cfgfile" |
| 17565 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17566 | echo "$as_me: creating $ofile" >&6;} |
| 17567 | |
| 17568 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17569 | #! $SHELL |
| 17570 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17571 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17572 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17573 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17574 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17575 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17576 | # Free Software Foundation, Inc. |
| 17577 | # |
| 17578 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17579 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17580 | # |
| 17581 | # This program is free software; you can redistribute it and/or modify |
| 17582 | # it under the terms of the GNU General Public License as published by |
| 17583 | # the Free Software Foundation; either version 2 of the License, or |
| 17584 | # (at your option) any later version. |
| 17585 | # |
| 17586 | # This program is distributed in the hope that it will be useful, but |
| 17587 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17588 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17589 | # General Public License for more details. |
| 17590 | # |
| 17591 | # You should have received a copy of the GNU General Public License |
| 17592 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17593 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17594 | # |
| 17595 | # As a special exception to the GNU General Public License, if you |
| 17596 | # distribute this file as part of a program that contains a |
| 17597 | # configuration script generated by Autoconf, you may include it under |
| 17598 | # the same distribution terms that you use for the rest of that program. |
| 17599 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17600 | # A sed program that does not truncate output. |
| 17601 | SED=$lt_SED |
| 17602 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17603 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17604 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17605 | |
| 17606 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17607 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17608 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17609 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17610 | # The names of the tagged configurations supported by this script. |
| 17611 | available_tags= |
| 17612 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17613 | # ### BEGIN LIBTOOL CONFIG |
| 17614 | |
| 17615 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17616 | |
| 17617 | # Shell to use when invoking shell scripts. |
| 17618 | SHELL=$lt_SHELL |
| 17619 | |
| 17620 | # Whether or not to build shared libraries. |
| 17621 | build_libtool_libs=$enable_shared |
| 17622 | |
| 17623 | # Whether or not to build static libraries. |
| 17624 | build_old_libs=$enable_static |
| 17625 | |
| 17626 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17627 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17628 | |
| 17629 | # Whether or not to disallow shared libs when runtime libs are static |
| 17630 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17631 | |
| 17632 | # Whether or not to optimize for fast installation. |
| 17633 | fast_install=$enable_fast_install |
| 17634 | |
| 17635 | # The host system. |
| 17636 | host_alias=$host_alias |
| 17637 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17638 | host_os=$host_os |
| 17639 | |
| 17640 | # The build system. |
| 17641 | build_alias=$build_alias |
| 17642 | build=$build |
| 17643 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17644 | |
| 17645 | # An echo program that does not interpret backslashes. |
| 17646 | echo=$lt_echo |
| 17647 | |
| 17648 | # The archiver. |
| 17649 | AR=$lt_AR |
| 17650 | AR_FLAGS=$lt_AR_FLAGS |
| 17651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17652 | # A C compiler. |
| 17653 | LTCC=$lt_LTCC |
| 17654 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17655 | # LTCC compiler flags. |
| 17656 | LTCFLAGS=$lt_LTCFLAGS |
| 17657 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17658 | # A language-specific compiler. |
| 17659 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17660 | |
| 17661 | # Is the compiler the GNU C compiler? |
| 17662 | with_gcc=$GCC |
| 17663 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17664 | # An ERE matcher. |
| 17665 | EGREP=$lt_EGREP |
| 17666 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17667 | # The linker used to build libraries. |
| 17668 | LD=$lt_LD |
| 17669 | |
| 17670 | # Whether we need hard or soft links. |
| 17671 | LN_S=$lt_LN_S |
| 17672 | |
| 17673 | # A BSD-compatible nm program. |
| 17674 | NM=$lt_NM |
| 17675 | |
| 17676 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17677 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17678 | |
| 17679 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17680 | MAGIC_CMD=$MAGIC_CMD |
| 17681 | |
| 17682 | # Used on cygwin: DLL creation program. |
| 17683 | DLLTOOL="$DLLTOOL" |
| 17684 | |
| 17685 | # Used on cygwin: object dumper. |
| 17686 | OBJDUMP="$OBJDUMP" |
| 17687 | |
| 17688 | # Used on cygwin: assembler. |
| 17689 | AS="$AS" |
| 17690 | |
| 17691 | # The name of the directory that contains temporary libtool files. |
| 17692 | objdir=$objdir |
| 17693 | |
| 17694 | # How to create reloadable object files. |
| 17695 | reload_flag=$lt_reload_flag |
| 17696 | reload_cmds=$lt_reload_cmds |
| 17697 | |
| 17698 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17699 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17700 | |
| 17701 | # Object file suffix (normally "o"). |
| 17702 | objext="$ac_objext" |
| 17703 | |
| 17704 | # Old archive suffix (normally "a"). |
| 17705 | libext="$libext" |
| 17706 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17707 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17708 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17709 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17710 | # Executable file suffix (normally ""). |
| 17711 | exeext="$exeext" |
| 17712 | |
| 17713 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17714 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17715 | pic_mode=$pic_mode |
| 17716 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17717 | # What is the maximum length of a command? |
| 17718 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17719 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17720 | # Does compiler simultaneously support -c and -o options? |
| 17721 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17722 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17723 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17724 | need_locks=$lt_need_locks |
| 17725 | |
| 17726 | # Do we need the lib prefix for modules? |
| 17727 | need_lib_prefix=$need_lib_prefix |
| 17728 | |
| 17729 | # Do we need a version for libraries? |
| 17730 | need_version=$need_version |
| 17731 | |
| 17732 | # Whether dlopen is supported. |
| 17733 | dlopen_support=$enable_dlopen |
| 17734 | |
| 17735 | # Whether dlopen of programs is supported. |
| 17736 | dlopen_self=$enable_dlopen_self |
| 17737 | |
| 17738 | # Whether dlopen of statically linked programs is supported. |
| 17739 | dlopen_self_static=$enable_dlopen_self_static |
| 17740 | |
| 17741 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17742 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17743 | |
| 17744 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17745 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17746 | |
| 17747 | # Compiler flag to allow reflexive dlopens. |
| 17748 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17749 | |
| 17750 | # Compiler flag to generate shared objects directly from archives. |
| 17751 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17752 | |
| 17753 | # Compiler flag to generate thread-safe objects. |
| 17754 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 17755 | |
| 17756 | # Library versioning type. |
| 17757 | version_type=$version_type |
| 17758 | |
| 17759 | # Format of library name prefix. |
| 17760 | libname_spec=$lt_libname_spec |
| 17761 | |
| 17762 | # List of archive names. First name is the real one, the rest are links. |
| 17763 | # The last name is the one that the linker finds with -lNAME. |
| 17764 | library_names_spec=$lt_library_names_spec |
| 17765 | |
| 17766 | # The coded name of the library, if different from the real name. |
| 17767 | soname_spec=$lt_soname_spec |
| 17768 | |
| 17769 | # Commands used to build and install an old-style archive. |
| 17770 | RANLIB=$lt_RANLIB |
| 17771 | old_archive_cmds=$lt_old_archive_cmds |
| 17772 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17773 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17774 | |
| 17775 | # Create an old-style archive from a shared archive. |
| 17776 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17777 | |
| 17778 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17779 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17780 | |
| 17781 | # Commands used to build and install a shared archive. |
| 17782 | archive_cmds=$lt_archive_cmds |
| 17783 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17784 | postinstall_cmds=$lt_postinstall_cmds |
| 17785 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17786 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17787 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17788 | module_cmds=$lt_module_cmds |
| 17789 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17790 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17791 | # Commands to strip libraries. |
| 17792 | old_striplib=$lt_old_striplib |
| 17793 | striplib=$lt_striplib |
| 17794 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17795 | # Dependencies to place before the objects being linked to create a |
| 17796 | # shared library. |
| 17797 | predep_objects=$lt_predep_objects |
| 17798 | |
| 17799 | # Dependencies to place after the objects being linked to create a |
| 17800 | # shared library. |
| 17801 | postdep_objects=$lt_postdep_objects |
| 17802 | |
| 17803 | # Dependencies to place before the objects being linked to create a |
| 17804 | # shared library. |
| 17805 | predeps=$lt_predeps |
| 17806 | |
| 17807 | # Dependencies to place after the objects being linked to create a |
| 17808 | # shared library. |
| 17809 | postdeps=$lt_postdeps |
| 17810 | |
| 17811 | # The library search path used internally by the compiler when linking |
| 17812 | # a shared library. |
| 17813 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17814 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17815 | # Method to check whether dependent libraries are shared objects. |
| 17816 | deplibs_check_method=$lt_deplibs_check_method |
| 17817 | |
| 17818 | # Command to use when deplibs_check_method == file_magic. |
| 17819 | file_magic_cmd=$lt_file_magic_cmd |
| 17820 | |
| 17821 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17822 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17823 | |
| 17824 | # Flag that forces no undefined symbols. |
| 17825 | no_undefined_flag=$lt_no_undefined_flag |
| 17826 | |
| 17827 | # Commands used to finish a libtool library installation in a directory. |
| 17828 | finish_cmds=$lt_finish_cmds |
| 17829 | |
| 17830 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17831 | finish_eval=$lt_finish_eval |
| 17832 | |
| 17833 | # 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] | 17834 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17835 | |
| 17836 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17837 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17838 | |
| 17839 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17840 | 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] | 17841 | |
| 17842 | # This is the shared library runtime path variable. |
| 17843 | runpath_var=$runpath_var |
| 17844 | |
| 17845 | # This is the shared library path variable. |
| 17846 | shlibpath_var=$shlibpath_var |
| 17847 | |
| 17848 | # Is shlibpath searched before the hard-coded library search path? |
| 17849 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17850 | |
| 17851 | # How to hardcode a shared library path into an executable. |
| 17852 | hardcode_action=$hardcode_action |
| 17853 | |
| 17854 | # Whether we should hardcode library paths into libraries. |
| 17855 | hardcode_into_libs=$hardcode_into_libs |
| 17856 | |
| 17857 | # Flag to hardcode \$libdir into a binary during linking. |
| 17858 | # This must work even if \$libdir does not exist. |
| 17859 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17860 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17861 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17862 | # a binary during linking. This must work even if \$libdir does |
| 17863 | # not exist. |
| 17864 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17865 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17866 | # Whether we need a single -rpath flag with a separated argument. |
| 17867 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17868 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17869 | # 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] | 17870 | # resulting binary. |
| 17871 | hardcode_direct=$hardcode_direct |
| 17872 | |
| 17873 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17874 | # resulting binary. |
| 17875 | hardcode_minus_L=$hardcode_minus_L |
| 17876 | |
| 17877 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17878 | # the resulting binary. |
| 17879 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17880 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17881 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17882 | # and all subsequent libraries and executables linked against it. |
| 17883 | hardcode_automatic=$hardcode_automatic |
| 17884 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17885 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17886 | # restored at relink time. |
| 17887 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17888 | |
| 17889 | # Whether libtool must link a program against all its dependency libraries. |
| 17890 | link_all_deplibs=$link_all_deplibs |
| 17891 | |
| 17892 | # Compile-time system search path for libraries |
| 17893 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17894 | |
| 17895 | # Run-time system search path for libraries |
| 17896 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17897 | |
| 17898 | # Fix the shell variable \$srcfile for the compiler. |
| 17899 | fix_srcfile_path="$fix_srcfile_path" |
| 17900 | |
| 17901 | # Set to yes if exported symbols are required. |
| 17902 | always_export_symbols=$always_export_symbols |
| 17903 | |
| 17904 | # The commands to list exported symbols. |
| 17905 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17906 | |
| 17907 | # The commands to extract the exported symbol list from a shared archive. |
| 17908 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17909 | |
| 17910 | # Symbols that should not be listed in the preloaded symbols. |
| 17911 | exclude_expsyms=$lt_exclude_expsyms |
| 17912 | |
| 17913 | # Symbols that must always be exported. |
| 17914 | include_expsyms=$lt_include_expsyms |
| 17915 | |
| 17916 | # ### END LIBTOOL CONFIG |
| 17917 | |
| 17918 | __EOF__ |
| 17919 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17920 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17921 | case $host_os in |
| 17922 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17923 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17924 | |
| 17925 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17926 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17927 | # vanish in a puff of smoke. |
| 17928 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17929 | COLLECT_NAMES= |
| 17930 | export COLLECT_NAMES |
| 17931 | fi |
| 17932 | EOF |
| 17933 | ;; |
| 17934 | esac |
| 17935 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17936 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17937 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17938 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17939 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17940 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17941 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17942 | mv -f "$cfgfile" "$ofile" || \ |
| 17943 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17944 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17945 | |
| 17946 | else |
| 17947 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17948 | # `config.status --recheck' to rerun these tests and create the |
| 17949 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17950 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17951 | if test -f "$ltmain_in"; then |
| 17952 | test -f Makefile && make "$ltmain" |
| 17953 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17954 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17955 | |
| 17956 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17957 | ac_ext=c |
| 17958 | ac_cpp='$CPP $CPPFLAGS' |
| 17959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17962 | |
| 17963 | CC="$lt_save_CC" |
| 17964 | |
| 17965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17966 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17967 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17968 | withval=$with_tags; tagnames="$withval" |
| 17969 | fi |
| 17970 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17971 | |
| 17972 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 17973 | if test ! -f "${ofile}"; then |
| 17974 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 17975 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 17976 | fi |
| 17977 | |
| 17978 | if test -z "$LTCC"; then |
| 17979 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 17980 | if test -z "$LTCC"; then |
| 17981 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 17982 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 17983 | else |
| 17984 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 17985 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 17986 | fi |
| 17987 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17988 | if test -z "$LTCFLAGS"; then |
| 17989 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 17990 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17991 | |
| 17992 | # Extract list of available tagged configurations in $ofile. |
| 17993 | # Note that this assumes the entire list is on one line. |
| 17994 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 17995 | |
| 17996 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 17997 | for tagname in $tagnames; do |
| 17998 | IFS="$lt_save_ifs" |
| 17999 | # Check whether tagname contains only valid characters |
| 18000 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18001 | "") ;; |
| 18002 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18003 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18004 | { (exit 1); exit 1; }; } |
| 18005 | ;; |
| 18006 | esac |
| 18007 | |
| 18008 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18009 | then |
| 18010 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18011 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18012 | { (exit 1); exit 1; }; } |
| 18013 | fi |
| 18014 | |
| 18015 | # Update the list of available tags. |
| 18016 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18017 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18018 | |
| 18019 | case $tagname in |
| 18020 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18021 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18022 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18023 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18024 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18025 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18026 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18027 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18028 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18029 | |
| 18030 | |
| 18031 | |
| 18032 | |
| 18033 | archive_cmds_need_lc_CXX=no |
| 18034 | allow_undefined_flag_CXX= |
| 18035 | always_export_symbols_CXX=no |
| 18036 | archive_expsym_cmds_CXX= |
| 18037 | export_dynamic_flag_spec_CXX= |
| 18038 | hardcode_direct_CXX=no |
| 18039 | hardcode_libdir_flag_spec_CXX= |
| 18040 | hardcode_libdir_flag_spec_ld_CXX= |
| 18041 | hardcode_libdir_separator_CXX= |
| 18042 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18043 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18044 | hardcode_automatic_CXX=no |
| 18045 | module_cmds_CXX= |
| 18046 | module_expsym_cmds_CXX= |
| 18047 | link_all_deplibs_CXX=unknown |
| 18048 | old_archive_cmds_CXX=$old_archive_cmds |
| 18049 | no_undefined_flag_CXX= |
| 18050 | whole_archive_flag_spec_CXX= |
| 18051 | enable_shared_with_static_runtimes_CXX=no |
| 18052 | |
| 18053 | # Dependencies to place before and after the object being linked: |
| 18054 | predep_objects_CXX= |
| 18055 | postdep_objects_CXX= |
| 18056 | predeps_CXX= |
| 18057 | postdeps_CXX= |
| 18058 | compiler_lib_search_path_CXX= |
| 18059 | |
| 18060 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18061 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18062 | |
| 18063 | # Object file extension for compiled C++ test sources. |
| 18064 | objext=o |
| 18065 | objext_CXX=$objext |
| 18066 | |
| 18067 | # Code to be used in simple compile tests |
| 18068 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18069 | |
| 18070 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18071 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18072 | |
| 18073 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18074 | |
| 18075 | # If no C compiler was specified, use CC. |
| 18076 | LTCC=${LTCC-"$CC"} |
| 18077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18078 | # If no C compiler flags were specified, use CFLAGS. |
| 18079 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18080 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18081 | # Allow CC to be a program name with arguments. |
| 18082 | compiler=$CC |
| 18083 | |
| 18084 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18085 | # save warnings/boilerplate of simple test code |
| 18086 | ac_outfile=conftest.$ac_objext |
| 18087 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18088 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18089 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18090 | $rm conftest* |
| 18091 | |
| 18092 | ac_outfile=conftest.$ac_objext |
| 18093 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18094 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18095 | _lt_linker_boilerplate=`cat conftest.err` |
| 18096 | $rm conftest* |
| 18097 | |
| 18098 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18099 | # Allow CC to be a program name with arguments. |
| 18100 | lt_save_CC=$CC |
| 18101 | lt_save_LD=$LD |
| 18102 | lt_save_GCC=$GCC |
| 18103 | GCC=$GXX |
| 18104 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18105 | lt_save_path_LD=$lt_cv_path_LD |
| 18106 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18107 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18108 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18109 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18110 | fi |
| 18111 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18112 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18113 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18114 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18115 | fi |
| 18116 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18117 | CC=${CXX-"c++"} |
| 18118 | compiler=$CC |
| 18119 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18120 | for cc_temp in $compiler""; do |
| 18121 | case $cc_temp in |
| 18122 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18123 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18124 | \-*) ;; |
| 18125 | *) break;; |
| 18126 | esac |
| 18127 | done |
| 18128 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18129 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18130 | |
| 18131 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18132 | # no_builtin_flag separately |
| 18133 | if test "$GXX" = yes; then |
| 18134 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18135 | else |
| 18136 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18137 | fi |
| 18138 | |
| 18139 | if test "$GXX" = yes; then |
| 18140 | # Set up default GNU C++ configuration |
| 18141 | |
| 18142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18143 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18144 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18145 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18146 | else |
| 18147 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18148 | fi |
| 18149 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18150 | ac_prog=ld |
| 18151 | if test "$GCC" = yes; then |
| 18152 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18153 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18154 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18155 | case $host in |
| 18156 | *-*-mingw*) |
| 18157 | # gcc leaves a trailing carriage return which upsets mingw |
| 18158 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18159 | *) |
| 18160 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18161 | esac |
| 18162 | case $ac_prog in |
| 18163 | # Accept absolute paths. |
| 18164 | [\\/]* | ?:[\\/]*) |
| 18165 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18166 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18167 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18168 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18169 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18170 | done |
| 18171 | test -z "$LD" && LD="$ac_prog" |
| 18172 | ;; |
| 18173 | "") |
| 18174 | # If it fails, then pretend we aren't using GCC. |
| 18175 | ac_prog=ld |
| 18176 | ;; |
| 18177 | *) |
| 18178 | # If it is relative, then search for the first ld in PATH. |
| 18179 | with_gnu_ld=unknown |
| 18180 | ;; |
| 18181 | esac |
| 18182 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18183 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18184 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18185 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18186 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18187 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18188 | fi |
| 18189 | if test "${lt_cv_path_LD+set}" = set; then |
| 18190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18191 | else |
| 18192 | if test -z "$LD"; then |
| 18193 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18194 | for ac_dir in $PATH; do |
| 18195 | IFS="$lt_save_ifs" |
| 18196 | test -z "$ac_dir" && ac_dir=. |
| 18197 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18198 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18199 | # 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] | 18200 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18201 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18202 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18203 | *GNU* | *'with BFD'*) |
| 18204 | test "$with_gnu_ld" != no && break |
| 18205 | ;; |
| 18206 | *) |
| 18207 | test "$with_gnu_ld" != yes && break |
| 18208 | ;; |
| 18209 | esac |
| 18210 | fi |
| 18211 | done |
| 18212 | IFS="$lt_save_ifs" |
| 18213 | else |
| 18214 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18215 | fi |
| 18216 | fi |
| 18217 | |
| 18218 | LD="$lt_cv_path_LD" |
| 18219 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18220 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18221 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18222 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18223 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18224 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18225 | fi |
| 18226 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18227 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18228 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18229 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18230 | 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] | 18231 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18233 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18234 | # 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] | 18235 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18236 | *GNU* | *'with BFD'*) |
| 18237 | lt_cv_prog_gnu_ld=yes |
| 18238 | ;; |
| 18239 | *) |
| 18240 | lt_cv_prog_gnu_ld=no |
| 18241 | ;; |
| 18242 | esac |
| 18243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18244 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18245 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18246 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18247 | |
| 18248 | |
| 18249 | |
| 18250 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18251 | # archiving commands below assume that GNU ld is being used. |
| 18252 | if test "$with_gnu_ld" = yes; then |
| 18253 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18254 | 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' |
| 18255 | |
| 18256 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18257 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18258 | |
| 18259 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18260 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18261 | # investigate it a little bit more. (MM) |
| 18262 | wlarc='${wl}' |
| 18263 | |
| 18264 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18265 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18266 | grep 'no-whole-archive' > /dev/null; then |
| 18267 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18268 | else |
| 18269 | whole_archive_flag_spec_CXX= |
| 18270 | fi |
| 18271 | else |
| 18272 | with_gnu_ld=no |
| 18273 | wlarc= |
| 18274 | |
| 18275 | # A generic and very simple default shared library creation |
| 18276 | # command for GNU C++ for the case where it uses the native |
| 18277 | # linker, instead of GNU ld. If possible, this setting should |
| 18278 | # overridden to take advantage of the native linker features on |
| 18279 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18280 | 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] | 18281 | fi |
| 18282 | |
| 18283 | # Commands to make compiler produce verbose output that lists |
| 18284 | # what "hidden" libraries, object files and flags are used when |
| 18285 | # linking a shared library. |
| 18286 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18287 | |
| 18288 | else |
| 18289 | GXX=no |
| 18290 | with_gnu_ld=no |
| 18291 | wlarc= |
| 18292 | fi |
| 18293 | |
| 18294 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18295 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18296 | 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] | 18297 | ld_shlibs_CXX=yes |
| 18298 | case $host_os in |
| 18299 | aix3*) |
| 18300 | # FIXME: insert proper C++ library support |
| 18301 | ld_shlibs_CXX=no |
| 18302 | ;; |
| 18303 | aix4* | aix5*) |
| 18304 | if test "$host_cpu" = ia64; then |
| 18305 | # On IA64, the linker does run time linking by default, so we don't |
| 18306 | # have to do anything special. |
| 18307 | aix_use_runtimelinking=no |
| 18308 | exp_sym_flag='-Bexport' |
| 18309 | no_entry_flag="" |
| 18310 | else |
| 18311 | aix_use_runtimelinking=no |
| 18312 | |
| 18313 | # Test if we are trying to use run time linking or normal |
| 18314 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18315 | # need to do runtime linking. |
| 18316 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18317 | for ld_flag in $LDFLAGS; do |
| 18318 | case $ld_flag in |
| 18319 | *-brtl*) |
| 18320 | aix_use_runtimelinking=yes |
| 18321 | break |
| 18322 | ;; |
| 18323 | esac |
| 18324 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18325 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18326 | esac |
| 18327 | |
| 18328 | exp_sym_flag='-bexport' |
| 18329 | no_entry_flag='-bnoentry' |
| 18330 | fi |
| 18331 | |
| 18332 | # When large executables or shared objects are built, AIX ld can |
| 18333 | # have problems creating the table of contents. If linking a library |
| 18334 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18335 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18336 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18337 | |
| 18338 | archive_cmds_CXX='' |
| 18339 | hardcode_direct_CXX=yes |
| 18340 | hardcode_libdir_separator_CXX=':' |
| 18341 | link_all_deplibs_CXX=yes |
| 18342 | |
| 18343 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18344 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18345 | # We only want to do this on AIX 4.2 and lower, the check |
| 18346 | # below for broken collect2 doesn't work under 4.3+ |
| 18347 | collect2name=`${CC} -print-prog-name=collect2` |
| 18348 | if test -f "$collect2name" && \ |
| 18349 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18350 | then |
| 18351 | # We have reworked collect2 |
| 18352 | hardcode_direct_CXX=yes |
| 18353 | else |
| 18354 | # We have old collect2 |
| 18355 | hardcode_direct_CXX=unsupported |
| 18356 | # It fails to find uninstalled libraries when the uninstalled |
| 18357 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18358 | # to unsupported forces relinking |
| 18359 | hardcode_minus_L_CXX=yes |
| 18360 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18361 | hardcode_libdir_separator_CXX= |
| 18362 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18363 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18364 | esac |
| 18365 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18366 | if test "$aix_use_runtimelinking" = yes; then |
| 18367 | shared_flag="$shared_flag "'${wl}-G' |
| 18368 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18369 | else |
| 18370 | # not using gcc |
| 18371 | if test "$host_cpu" = ia64; then |
| 18372 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18373 | # chokes on -Wl,-G. The following line is correct: |
| 18374 | shared_flag='-G' |
| 18375 | else |
| 18376 | if test "$aix_use_runtimelinking" = yes; then |
| 18377 | shared_flag='${wl}-G' |
| 18378 | else |
| 18379 | shared_flag='${wl}-bM:SRE' |
| 18380 | fi |
| 18381 | fi |
| 18382 | fi |
| 18383 | |
| 18384 | # It seems that -bexpall does not export symbols beginning with |
| 18385 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18386 | always_export_symbols_CXX=yes |
| 18387 | if test "$aix_use_runtimelinking" = yes; then |
| 18388 | # Warning - without using the other runtime loading flags (-brtl), |
| 18389 | # -berok will link without error, but may produce a broken library. |
| 18390 | allow_undefined_flag_CXX='-berok' |
| 18391 | # Determine the default libpath from the value encoded in an empty executable. |
| 18392 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18393 | /* confdefs.h. */ |
| 18394 | _ACEOF |
| 18395 | cat confdefs.h >>conftest.$ac_ext |
| 18396 | cat >>conftest.$ac_ext <<_ACEOF |
| 18397 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18398 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18399 | int |
| 18400 | main () |
| 18401 | { |
| 18402 | |
| 18403 | ; |
| 18404 | return 0; |
| 18405 | } |
| 18406 | _ACEOF |
| 18407 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18408 | if { (ac_try="$ac_link" |
| 18409 | case "(($ac_try" in |
| 18410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18411 | *) ac_try_echo=$ac_try;; |
| 18412 | esac |
| 18413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18414 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18415 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18417 | rm -f conftest.er1 |
| 18418 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 18420 | (exit $ac_status); } && |
| 18421 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18422 | { (case "(($ac_try" in |
| 18423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18424 | *) ac_try_echo=$ac_try;; |
| 18425 | esac |
| 18426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18427 | (eval "$ac_try") 2>&5 |
| 18428 | ac_status=$? |
| 18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18430 | (exit $ac_status); }; } && |
| 18431 | { ac_try='test -s conftest$ac_exeext' |
| 18432 | { (case "(($ac_try" in |
| 18433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18434 | *) ac_try_echo=$ac_try;; |
| 18435 | esac |
| 18436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18437 | (eval "$ac_try") 2>&5 |
| 18438 | ac_status=$? |
| 18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18440 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18441 | |
| 18442 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18443 | }'` |
| 18444 | # Check for a 64-bit object if we didn't find anything. |
| 18445 | 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; } |
| 18446 | }'`; fi |
| 18447 | else |
| 18448 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18451 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18452 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18453 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 18454 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18455 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18456 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18457 | |
| 18458 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18459 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18460 | 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] | 18461 | else |
| 18462 | if test "$host_cpu" = ia64; then |
| 18463 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18464 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18465 | 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] | 18466 | else |
| 18467 | # Determine the default libpath from the value encoded in an empty executable. |
| 18468 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18469 | /* confdefs.h. */ |
| 18470 | _ACEOF |
| 18471 | cat confdefs.h >>conftest.$ac_ext |
| 18472 | cat >>conftest.$ac_ext <<_ACEOF |
| 18473 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18474 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18475 | int |
| 18476 | main () |
| 18477 | { |
| 18478 | |
| 18479 | ; |
| 18480 | return 0; |
| 18481 | } |
| 18482 | _ACEOF |
| 18483 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18484 | if { (ac_try="$ac_link" |
| 18485 | case "(($ac_try" in |
| 18486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18487 | *) ac_try_echo=$ac_try;; |
| 18488 | esac |
| 18489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18490 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18491 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18493 | rm -f conftest.er1 |
| 18494 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 18496 | (exit $ac_status); } && |
| 18497 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18498 | { (case "(($ac_try" in |
| 18499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18500 | *) ac_try_echo=$ac_try;; |
| 18501 | esac |
| 18502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18503 | (eval "$ac_try") 2>&5 |
| 18504 | ac_status=$? |
| 18505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18506 | (exit $ac_status); }; } && |
| 18507 | { ac_try='test -s conftest$ac_exeext' |
| 18508 | { (case "(($ac_try" in |
| 18509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18510 | *) ac_try_echo=$ac_try;; |
| 18511 | esac |
| 18512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18513 | (eval "$ac_try") 2>&5 |
| 18514 | ac_status=$? |
| 18515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18516 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18517 | |
| 18518 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18519 | }'` |
| 18520 | # Check for a 64-bit object if we didn't find anything. |
| 18521 | 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; } |
| 18522 | }'`; fi |
| 18523 | else |
| 18524 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18527 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18529 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 18530 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18531 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18532 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18533 | |
| 18534 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18535 | # Warning - without using the other run time loading flags, |
| 18536 | # -berok will link without error, but may produce a broken library. |
| 18537 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18538 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18539 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18540 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18541 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18542 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18543 | 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] | 18544 | fi |
| 18545 | fi |
| 18546 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18547 | |
| 18548 | beos*) |
| 18549 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18550 | allow_undefined_flag_CXX=unsupported |
| 18551 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18552 | # support --undefined. This deserves some investigation. FIXME |
| 18553 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18554 | else |
| 18555 | ld_shlibs_CXX=no |
| 18556 | fi |
| 18557 | ;; |
| 18558 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18559 | chorus*) |
| 18560 | case $cc_basename in |
| 18561 | *) |
| 18562 | # FIXME: insert proper C++ library support |
| 18563 | ld_shlibs_CXX=no |
| 18564 | ;; |
| 18565 | esac |
| 18566 | ;; |
| 18567 | |
| 18568 | cygwin* | mingw* | pw32*) |
| 18569 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18570 | # as there is no search path for DLLs. |
| 18571 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18572 | allow_undefined_flag_CXX=unsupported |
| 18573 | always_export_symbols_CXX=no |
| 18574 | enable_shared_with_static_runtimes_CXX=yes |
| 18575 | |
| 18576 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18577 | 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] | 18578 | # If the export-symbols file already is a .def file (1st line |
| 18579 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18580 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18581 | cp $export_symbols $output_objdir/$soname.def; |
| 18582 | else |
| 18583 | echo EXPORTS > $output_objdir/$soname.def; |
| 18584 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18585 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18586 | $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] | 18587 | else |
| 18588 | ld_shlibs_CXX=no |
| 18589 | fi |
| 18590 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18591 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18592 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18593 | rhapsody* | darwin1.[012]) |
| 18594 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18595 | ;; |
| 18596 | *) # Darwin 1.3 on |
| 18597 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18598 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18599 | else |
| 18600 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18601 | 10.[012]) |
| 18602 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18603 | ;; |
| 18604 | 10.*) |
| 18605 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18606 | ;; |
| 18607 | esac |
| 18608 | fi |
| 18609 | ;; |
| 18610 | esac |
| 18611 | archive_cmds_need_lc_CXX=no |
| 18612 | hardcode_direct_CXX=no |
| 18613 | hardcode_automatic_CXX=yes |
| 18614 | hardcode_shlibpath_var_CXX=unsupported |
| 18615 | whole_archive_flag_spec_CXX='' |
| 18616 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18617 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18618 | if test "$GXX" = yes ; then |
| 18619 | lt_int_apple_cc_single_mod=no |
| 18620 | output_verbose_link_cmd='echo' |
| 18621 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18622 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18623 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18624 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18625 | 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] | 18626 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18627 | 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] | 18628 | fi |
| 18629 | 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] | 18630 | # 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] | 18631 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18632 | 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] | 18633 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18634 | 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] | 18635 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18636 | 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] | 18637 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18638 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18639 | xlc*) |
| 18640 | output_verbose_link_cmd='echo' |
| 18641 | 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' |
| 18642 | 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] | 18643 | # 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] | 18644 | 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}' |
| 18645 | 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] | 18646 | ;; |
| 18647 | *) |
| 18648 | ld_shlibs_CXX=no |
| 18649 | ;; |
| 18650 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18651 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18652 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18653 | |
| 18654 | dgux*) |
| 18655 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18656 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18657 | # FIXME: insert proper C++ library support |
| 18658 | ld_shlibs_CXX=no |
| 18659 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18660 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18661 | # Green Hills C++ Compiler |
| 18662 | # FIXME: insert proper C++ library support |
| 18663 | ld_shlibs_CXX=no |
| 18664 | ;; |
| 18665 | *) |
| 18666 | # FIXME: insert proper C++ library support |
| 18667 | ld_shlibs_CXX=no |
| 18668 | ;; |
| 18669 | esac |
| 18670 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18671 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18672 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18673 | ld_shlibs_CXX=no |
| 18674 | ;; |
| 18675 | freebsd-elf*) |
| 18676 | archive_cmds_need_lc_CXX=no |
| 18677 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18678 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18679 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18680 | # conventions |
| 18681 | ld_shlibs_CXX=yes |
| 18682 | ;; |
| 18683 | gnu*) |
| 18684 | ;; |
| 18685 | hpux9*) |
| 18686 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18687 | hardcode_libdir_separator_CXX=: |
| 18688 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18689 | hardcode_direct_CXX=yes |
| 18690 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18691 | # but as the default |
| 18692 | # location of the library. |
| 18693 | |
| 18694 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18695 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18696 | # FIXME: insert proper C++ library support |
| 18697 | ld_shlibs_CXX=no |
| 18698 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18699 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18700 | 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] | 18701 | # Commands to make compiler produce verbose output that lists |
| 18702 | # what "hidden" libraries, object files and flags are used when |
| 18703 | # linking a shared library. |
| 18704 | # |
| 18705 | # There doesn't appear to be a way to prevent this compiler from |
| 18706 | # explicitly linking system object files so we need to strip them |
| 18707 | # from the output so that they don't get included in the library |
| 18708 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18709 | 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] | 18710 | ;; |
| 18711 | *) |
| 18712 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18713 | 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] | 18714 | else |
| 18715 | # FIXME: insert proper C++ library support |
| 18716 | ld_shlibs_CXX=no |
| 18717 | fi |
| 18718 | ;; |
| 18719 | esac |
| 18720 | ;; |
| 18721 | hpux10*|hpux11*) |
| 18722 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18723 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18724 | hardcode_libdir_separator_CXX=: |
| 18725 | |
| 18726 | case $host_cpu in |
| 18727 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18728 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18729 | ;; |
| 18730 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18731 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18732 | ;; |
| 18733 | esac |
| 18734 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18735 | case $host_cpu in |
| 18736 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18737 | hardcode_direct_CXX=no |
| 18738 | hardcode_shlibpath_var_CXX=no |
| 18739 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18740 | *) |
| 18741 | hardcode_direct_CXX=yes |
| 18742 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18743 | # but as the default |
| 18744 | # location of the library. |
| 18745 | ;; |
| 18746 | esac |
| 18747 | |
| 18748 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18749 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18750 | # FIXME: insert proper C++ library support |
| 18751 | ld_shlibs_CXX=no |
| 18752 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18753 | aCC*) |
| 18754 | case $host_cpu in |
| 18755 | hppa*64*) |
| 18756 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18757 | ;; |
| 18758 | ia64*) |
| 18759 | 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] | 18760 | ;; |
| 18761 | *) |
| 18762 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18763 | ;; |
| 18764 | esac |
| 18765 | # Commands to make compiler produce verbose output that lists |
| 18766 | # what "hidden" libraries, object files and flags are used when |
| 18767 | # linking a shared library. |
| 18768 | # |
| 18769 | # There doesn't appear to be a way to prevent this compiler from |
| 18770 | # explicitly linking system object files so we need to strip them |
| 18771 | # from the output so that they don't get included in the library |
| 18772 | # dependencies. |
| 18773 | 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' |
| 18774 | ;; |
| 18775 | *) |
| 18776 | if test "$GXX" = yes; then |
| 18777 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18778 | case $host_cpu in |
| 18779 | hppa*64*) |
| 18780 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18781 | ;; |
| 18782 | ia64*) |
| 18783 | 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] | 18784 | ;; |
| 18785 | *) |
| 18786 | 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' |
| 18787 | ;; |
| 18788 | esac |
| 18789 | fi |
| 18790 | else |
| 18791 | # FIXME: insert proper C++ library support |
| 18792 | ld_shlibs_CXX=no |
| 18793 | fi |
| 18794 | ;; |
| 18795 | esac |
| 18796 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18797 | interix3*) |
| 18798 | hardcode_direct_CXX=no |
| 18799 | hardcode_shlibpath_var_CXX=no |
| 18800 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18801 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18802 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18803 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18804 | # default) and relocated if they conflict, which is a slow very memory |
| 18805 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18806 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18807 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18808 | 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' |
| 18809 | 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' |
| 18810 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18811 | irix5* | irix6*) |
| 18812 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18813 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18814 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18815 | 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] | 18816 | |
| 18817 | # Archives containing C++ object files must be created using |
| 18818 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18819 | # necessary to make sure instantiated templates are included |
| 18820 | # in the archive. |
| 18821 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18822 | ;; |
| 18823 | *) |
| 18824 | if test "$GXX" = yes; then |
| 18825 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18826 | 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] | 18827 | else |
| 18828 | 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' |
| 18829 | fi |
| 18830 | fi |
| 18831 | link_all_deplibs_CXX=yes |
| 18832 | ;; |
| 18833 | esac |
| 18834 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18835 | hardcode_libdir_separator_CXX=: |
| 18836 | ;; |
| 18837 | linux*) |
| 18838 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18839 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18840 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18841 | |
| 18842 | # KCC will only create a shared library if the output file |
| 18843 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18844 | # to its proper name (with version) after linking. |
| 18845 | 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' |
| 18846 | 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' |
| 18847 | # Commands to make compiler produce verbose output that lists |
| 18848 | # what "hidden" libraries, object files and flags are used when |
| 18849 | # linking a shared library. |
| 18850 | # |
| 18851 | # There doesn't appear to be a way to prevent this compiler from |
| 18852 | # explicitly linking system object files so we need to strip them |
| 18853 | # from the output so that they don't get included in the library |
| 18854 | # dependencies. |
| 18855 | 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' |
| 18856 | |
| 18857 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 18858 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18859 | |
| 18860 | # Archives containing C++ object files must be created using |
| 18861 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18862 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18863 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18864 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18865 | # Intel C++ |
| 18866 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18867 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18868 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18869 | # earlier do not add the objects themselves. |
| 18870 | case `$CC -V 2>&1` in |
| 18871 | *"Version 7."*) |
| 18872 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18873 | 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' |
| 18874 | ;; |
| 18875 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18876 | tmp_idyn= |
| 18877 | case $host_cpu in |
| 18878 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18879 | esac |
| 18880 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18881 | 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] | 18882 | ;; |
| 18883 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18884 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18885 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18886 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18887 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18888 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18889 | pgCC*) |
| 18890 | # Portland Group C++ compiler |
| 18891 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18892 | 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' |
| 18893 | |
| 18894 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18895 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18896 | 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' |
| 18897 | ;; |
| 18898 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18899 | # Compaq C++ |
| 18900 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18901 | 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' |
| 18902 | |
| 18903 | runpath_var=LD_RUN_PATH |
| 18904 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18905 | hardcode_libdir_separator_CXX=: |
| 18906 | |
| 18907 | # Commands to make compiler produce verbose output that lists |
| 18908 | # what "hidden" libraries, object files and flags are used when |
| 18909 | # linking a shared library. |
| 18910 | # |
| 18911 | # There doesn't appear to be a way to prevent this compiler from |
| 18912 | # explicitly linking system object files so we need to strip them |
| 18913 | # from the output so that they don't get included in the library |
| 18914 | # dependencies. |
| 18915 | 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' |
| 18916 | ;; |
| 18917 | esac |
| 18918 | ;; |
| 18919 | lynxos*) |
| 18920 | # FIXME: insert proper C++ library support |
| 18921 | ld_shlibs_CXX=no |
| 18922 | ;; |
| 18923 | m88k*) |
| 18924 | # FIXME: insert proper C++ library support |
| 18925 | ld_shlibs_CXX=no |
| 18926 | ;; |
| 18927 | mvs*) |
| 18928 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18929 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18930 | # FIXME: insert proper C++ library support |
| 18931 | ld_shlibs_CXX=no |
| 18932 | ;; |
| 18933 | *) |
| 18934 | # FIXME: insert proper C++ library support |
| 18935 | ld_shlibs_CXX=no |
| 18936 | ;; |
| 18937 | esac |
| 18938 | ;; |
| 18939 | netbsd*) |
| 18940 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18941 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18942 | wlarc= |
| 18943 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18944 | hardcode_direct_CXX=yes |
| 18945 | hardcode_shlibpath_var_CXX=no |
| 18946 | fi |
| 18947 | # Workaround some broken pre-1.5 toolchains |
| 18948 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18949 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18950 | openbsd2*) |
| 18951 | # C++ shared libraries are fairly broken |
| 18952 | ld_shlibs_CXX=no |
| 18953 | ;; |
| 18954 | openbsd*) |
| 18955 | hardcode_direct_CXX=yes |
| 18956 | hardcode_shlibpath_var_CXX=no |
| 18957 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18958 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18959 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18960 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 18961 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18962 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18963 | fi |
| 18964 | output_verbose_link_cmd='echo' |
| 18965 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18966 | osf3*) |
| 18967 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18968 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18969 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18970 | |
| 18971 | # KCC will only create a shared library if the output file |
| 18972 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18973 | # to its proper name (with version) after linking. |
| 18974 | 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' |
| 18975 | |
| 18976 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18977 | hardcode_libdir_separator_CXX=: |
| 18978 | |
| 18979 | # Archives containing C++ object files must be created using |
| 18980 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18981 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18982 | |
| 18983 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18984 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18985 | # Rational C++ 2.4.1 |
| 18986 | # FIXME: insert proper C++ library support |
| 18987 | ld_shlibs_CXX=no |
| 18988 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18989 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18990 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18991 | 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] | 18992 | |
| 18993 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18994 | hardcode_libdir_separator_CXX=: |
| 18995 | |
| 18996 | # Commands to make compiler produce verbose output that lists |
| 18997 | # what "hidden" libraries, object files and flags are used when |
| 18998 | # linking a shared library. |
| 18999 | # |
| 19000 | # There doesn't appear to be a way to prevent this compiler from |
| 19001 | # explicitly linking system object files so we need to strip them |
| 19002 | # from the output so that they don't get included in the library |
| 19003 | # dependencies. |
| 19004 | 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' |
| 19005 | ;; |
| 19006 | *) |
| 19007 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19008 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19009 | 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] | 19010 | |
| 19011 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19012 | hardcode_libdir_separator_CXX=: |
| 19013 | |
| 19014 | # Commands to make compiler produce verbose output that lists |
| 19015 | # what "hidden" libraries, object files and flags are used when |
| 19016 | # linking a shared library. |
| 19017 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19018 | |
| 19019 | else |
| 19020 | # FIXME: insert proper C++ library support |
| 19021 | ld_shlibs_CXX=no |
| 19022 | fi |
| 19023 | ;; |
| 19024 | esac |
| 19025 | ;; |
| 19026 | osf4* | osf5*) |
| 19027 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19028 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19029 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19030 | |
| 19031 | # KCC will only create a shared library if the output file |
| 19032 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19033 | # to its proper name (with version) after linking. |
| 19034 | 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' |
| 19035 | |
| 19036 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19037 | hardcode_libdir_separator_CXX=: |
| 19038 | |
| 19039 | # Archives containing C++ object files must be created using |
| 19040 | # the KAI C++ compiler. |
| 19041 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19042 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19043 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19044 | # Rational C++ 2.4.1 |
| 19045 | # FIXME: insert proper C++ library support |
| 19046 | ld_shlibs_CXX=no |
| 19047 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19048 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19049 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19050 | 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] | 19051 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19052 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19053 | $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] | 19054 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19055 | |
| 19056 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19057 | hardcode_libdir_separator_CXX=: |
| 19058 | |
| 19059 | # Commands to make compiler produce verbose output that lists |
| 19060 | # what "hidden" libraries, object files and flags are used when |
| 19061 | # linking a shared library. |
| 19062 | # |
| 19063 | # There doesn't appear to be a way to prevent this compiler from |
| 19064 | # explicitly linking system object files so we need to strip them |
| 19065 | # from the output so that they don't get included in the library |
| 19066 | # dependencies. |
| 19067 | 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' |
| 19068 | ;; |
| 19069 | *) |
| 19070 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19071 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19072 | 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] | 19073 | |
| 19074 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19075 | hardcode_libdir_separator_CXX=: |
| 19076 | |
| 19077 | # Commands to make compiler produce verbose output that lists |
| 19078 | # what "hidden" libraries, object files and flags are used when |
| 19079 | # linking a shared library. |
| 19080 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19081 | |
| 19082 | else |
| 19083 | # FIXME: insert proper C++ library support |
| 19084 | ld_shlibs_CXX=no |
| 19085 | fi |
| 19086 | ;; |
| 19087 | esac |
| 19088 | ;; |
| 19089 | psos*) |
| 19090 | # FIXME: insert proper C++ library support |
| 19091 | ld_shlibs_CXX=no |
| 19092 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19093 | sunos4*) |
| 19094 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19095 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19096 | # Sun C++ 4.x |
| 19097 | # FIXME: insert proper C++ library support |
| 19098 | ld_shlibs_CXX=no |
| 19099 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19100 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19101 | # Lucid |
| 19102 | # FIXME: insert proper C++ library support |
| 19103 | ld_shlibs_CXX=no |
| 19104 | ;; |
| 19105 | *) |
| 19106 | # FIXME: insert proper C++ library support |
| 19107 | ld_shlibs_CXX=no |
| 19108 | ;; |
| 19109 | esac |
| 19110 | ;; |
| 19111 | solaris*) |
| 19112 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19113 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19114 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19115 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19116 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19117 | 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] | 19118 | 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] | 19119 | $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] | 19120 | |
| 19121 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19122 | hardcode_shlibpath_var_CXX=no |
| 19123 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19124 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19125 | *) |
| 19126 | # The C++ compiler is used as linker so we must use $wl |
| 19127 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19128 | # linker. We must also pass each convience library through |
| 19129 | # to the system linker between allextract/defaultextract. |
| 19130 | # The C++ compiler will combine linker options so we |
| 19131 | # cannot just pass the convience library names through |
| 19132 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19133 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19134 | 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] | 19135 | ;; |
| 19136 | esac |
| 19137 | link_all_deplibs_CXX=yes |
| 19138 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19139 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19140 | |
| 19141 | # Archives containing C++ object files must be created using |
| 19142 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19143 | # necessary to make sure instantiated templates are included |
| 19144 | # in the archive. |
| 19145 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19146 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19147 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19148 | # Green Hills C++ Compiler |
| 19149 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19150 | |
| 19151 | # The C++ compiler must be used to create the archive. |
| 19152 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19153 | ;; |
| 19154 | *) |
| 19155 | # GNU C++ compiler with Solaris linker |
| 19156 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19157 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19158 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19159 | 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] | 19160 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19161 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19162 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19163 | # Commands to make compiler produce verbose output that lists |
| 19164 | # what "hidden" libraries, object files and flags are used when |
| 19165 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19166 | 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] | 19167 | else |
| 19168 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19169 | # platform. |
| 19170 | 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] | 19171 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19172 | $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] | 19173 | |
| 19174 | # Commands to make compiler produce verbose output that lists |
| 19175 | # what "hidden" libraries, object files and flags are used when |
| 19176 | # linking a shared library. |
| 19177 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19178 | fi |
| 19179 | |
| 19180 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19181 | fi |
| 19182 | ;; |
| 19183 | esac |
| 19184 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19185 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19186 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19187 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19188 | hardcode_shlibpath_var_CXX=no |
| 19189 | runpath_var='LD_RUN_PATH' |
| 19190 | |
| 19191 | case $cc_basename in |
| 19192 | CC*) |
| 19193 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19194 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19195 | ;; |
| 19196 | *) |
| 19197 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19198 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19199 | ;; |
| 19200 | esac |
| 19201 | ;; |
| 19202 | sysv5* | sco3.2v5* | sco5v6*) |
| 19203 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19204 | # link with -lc, and that would cause any symbols used from libc to |
| 19205 | # always be unresolved, which means just about no library would |
| 19206 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19207 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19208 | # as -z defs. |
| 19209 | # For security reasons, it is highly recommended that you always |
| 19210 | # use absolute paths for naming shared libraries, and exclude the |
| 19211 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19212 | # requires that you compile everything twice, which is a pain. |
| 19213 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19214 | # non-empty value in the environment. Most likely only useful for |
| 19215 | # creating official distributions of packages. |
| 19216 | # This is a hack until libtool officially supports absolute path |
| 19217 | # names for shared libraries. |
| 19218 | no_undefined_flag_CXX='${wl}-z,text' |
| 19219 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19220 | archive_cmds_need_lc_CXX=no |
| 19221 | hardcode_shlibpath_var_CXX=no |
| 19222 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19223 | hardcode_libdir_separator_CXX=':' |
| 19224 | link_all_deplibs_CXX=yes |
| 19225 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19226 | runpath_var='LD_RUN_PATH' |
| 19227 | |
| 19228 | case $cc_basename in |
| 19229 | CC*) |
| 19230 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19231 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19232 | ;; |
| 19233 | *) |
| 19234 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19235 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19236 | ;; |
| 19237 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19238 | ;; |
| 19239 | tandem*) |
| 19240 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19241 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19242 | # NonStop-UX NCC 3.20 |
| 19243 | # FIXME: insert proper C++ library support |
| 19244 | ld_shlibs_CXX=no |
| 19245 | ;; |
| 19246 | *) |
| 19247 | # FIXME: insert proper C++ library support |
| 19248 | ld_shlibs_CXX=no |
| 19249 | ;; |
| 19250 | esac |
| 19251 | ;; |
| 19252 | vxworks*) |
| 19253 | # FIXME: insert proper C++ library support |
| 19254 | ld_shlibs_CXX=no |
| 19255 | ;; |
| 19256 | *) |
| 19257 | # FIXME: insert proper C++ library support |
| 19258 | ld_shlibs_CXX=no |
| 19259 | ;; |
| 19260 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19261 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19262 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19263 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19264 | |
| 19265 | GCC_CXX="$GXX" |
| 19266 | LD_CXX="$LD" |
| 19267 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19268 | |
| 19269 | cat > conftest.$ac_ext <<EOF |
| 19270 | class Foo |
| 19271 | { |
| 19272 | public: |
| 19273 | Foo (void) { a = 0; } |
| 19274 | private: |
| 19275 | int a; |
| 19276 | }; |
| 19277 | EOF |
| 19278 | |
| 19279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19280 | (eval $ac_compile) 2>&5 |
| 19281 | ac_status=$? |
| 19282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19283 | (exit $ac_status); }; then |
| 19284 | # Parse the compiler output and extract the necessary |
| 19285 | # objects, libraries and library flags. |
| 19286 | |
| 19287 | # Sentinel used to keep track of whether or not we are before |
| 19288 | # the conftest object file. |
| 19289 | pre_test_object_deps_done=no |
| 19290 | |
| 19291 | # The `*' in the case matches for architectures that use `case' in |
| 19292 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19293 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19294 | 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] | 19295 | |
| 19296 | for p in `eval $output_verbose_link_cmd`; do |
| 19297 | case $p in |
| 19298 | |
| 19299 | -L* | -R* | -l*) |
| 19300 | # Some compilers place space between "-{L,R}" and the path. |
| 19301 | # Remove the space. |
| 19302 | if test $p = "-L" \ |
| 19303 | || test $p = "-R"; then |
| 19304 | prev=$p |
| 19305 | continue |
| 19306 | else |
| 19307 | prev= |
| 19308 | fi |
| 19309 | |
| 19310 | if test "$pre_test_object_deps_done" = no; then |
| 19311 | case $p in |
| 19312 | -L* | -R*) |
| 19313 | # Internal compiler library paths should come after those |
| 19314 | # provided the user. The postdeps already come after the |
| 19315 | # user supplied libs so there is no need to process them. |
| 19316 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19317 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19318 | else |
| 19319 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19320 | fi |
| 19321 | ;; |
| 19322 | # The "-l" case would never come before the object being |
| 19323 | # linked, so don't bother handling this case. |
| 19324 | esac |
| 19325 | else |
| 19326 | if test -z "$postdeps_CXX"; then |
| 19327 | postdeps_CXX="${prev}${p}" |
| 19328 | else |
| 19329 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19330 | fi |
| 19331 | fi |
| 19332 | ;; |
| 19333 | |
| 19334 | *.$objext) |
| 19335 | # This assumes that the test object file only shows up |
| 19336 | # once in the compiler output. |
| 19337 | if test "$p" = "conftest.$objext"; then |
| 19338 | pre_test_object_deps_done=yes |
| 19339 | continue |
| 19340 | fi |
| 19341 | |
| 19342 | if test "$pre_test_object_deps_done" = no; then |
| 19343 | if test -z "$predep_objects_CXX"; then |
| 19344 | predep_objects_CXX="$p" |
| 19345 | else |
| 19346 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19347 | fi |
| 19348 | else |
| 19349 | if test -z "$postdep_objects_CXX"; then |
| 19350 | postdep_objects_CXX="$p" |
| 19351 | else |
| 19352 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19353 | fi |
| 19354 | fi |
| 19355 | ;; |
| 19356 | |
| 19357 | *) ;; # Ignore the rest. |
| 19358 | |
| 19359 | esac |
| 19360 | done |
| 19361 | |
| 19362 | # Clean up. |
| 19363 | rm -f a.out a.exe |
| 19364 | else |
| 19365 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19366 | fi |
| 19367 | |
| 19368 | $rm -f confest.$objext |
| 19369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19370 | # PORTME: override above test on systems where it is broken |
| 19371 | case $host_os in |
| 19372 | interix3*) |
| 19373 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19374 | # hack all around it, let's just trust "g++" to DTRT. |
| 19375 | predep_objects_CXX= |
| 19376 | postdep_objects_CXX= |
| 19377 | postdeps_CXX= |
| 19378 | ;; |
| 19379 | |
| 19380 | solaris*) |
| 19381 | case $cc_basename in |
| 19382 | CC*) |
| 19383 | # Adding this requires a known-good setup of shared libraries for |
| 19384 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19385 | # archive will be linked into the output, leading to subtle bugs. |
| 19386 | postdeps_CXX='-lCstd -lCrun' |
| 19387 | ;; |
| 19388 | esac |
| 19389 | ;; |
| 19390 | esac |
| 19391 | |
| 19392 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19393 | case " $postdeps_CXX " in |
| 19394 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19395 | esac |
| 19396 | |
| 19397 | lt_prog_compiler_wl_CXX= |
| 19398 | lt_prog_compiler_pic_CXX= |
| 19399 | lt_prog_compiler_static_CXX= |
| 19400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19401 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19402 | 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] | 19403 | |
| 19404 | # C++ specific cases for pic, static, wl, etc. |
| 19405 | if test "$GXX" = yes; then |
| 19406 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19407 | lt_prog_compiler_static_CXX='-static' |
| 19408 | |
| 19409 | case $host_os in |
| 19410 | aix*) |
| 19411 | # All AIX code is PIC. |
| 19412 | if test "$host_cpu" = ia64; then |
| 19413 | # AIX 5 now supports IA64 processor |
| 19414 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19415 | fi |
| 19416 | ;; |
| 19417 | amigaos*) |
| 19418 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19419 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19420 | # like `-m68040'. |
| 19421 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19422 | ;; |
| 19423 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19424 | # PIC is the default for these OSes. |
| 19425 | ;; |
| 19426 | mingw* | os2* | pw32*) |
| 19427 | # This hack is so that the source file can tell whether it is being |
| 19428 | # built for inclusion in a dll (and should export symbols for example). |
| 19429 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19430 | ;; |
| 19431 | darwin* | rhapsody*) |
| 19432 | # PIC is the default on this platform |
| 19433 | # Common symbols not allowed in MH_DYLIB files |
| 19434 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19435 | ;; |
| 19436 | *djgpp*) |
| 19437 | # DJGPP does not support shared libraries at all |
| 19438 | lt_prog_compiler_pic_CXX= |
| 19439 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19440 | interix3*) |
| 19441 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19442 | # Instead, we relocate shared libraries at runtime. |
| 19443 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19444 | sysv4*MP*) |
| 19445 | if test -d /usr/nec; then |
| 19446 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19447 | fi |
| 19448 | ;; |
| 19449 | hpux*) |
| 19450 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19451 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19452 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19453 | hppa*64*|ia64*) |
| 19454 | ;; |
| 19455 | *) |
| 19456 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19457 | ;; |
| 19458 | esac |
| 19459 | ;; |
| 19460 | *) |
| 19461 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19462 | ;; |
| 19463 | esac |
| 19464 | else |
| 19465 | case $host_os in |
| 19466 | aix4* | aix5*) |
| 19467 | # All AIX code is PIC. |
| 19468 | if test "$host_cpu" = ia64; then |
| 19469 | # AIX 5 now supports IA64 processor |
| 19470 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19471 | else |
| 19472 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19473 | fi |
| 19474 | ;; |
| 19475 | chorus*) |
| 19476 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19477 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19478 | # Green Hills C++ Compiler |
| 19479 | # _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" |
| 19480 | ;; |
| 19481 | esac |
| 19482 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19483 | darwin*) |
| 19484 | # PIC is the default on this platform |
| 19485 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19486 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19487 | xlc*) |
| 19488 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19489 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19490 | ;; |
| 19491 | esac |
| 19492 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19493 | dgux*) |
| 19494 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19495 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19496 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19497 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19498 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19499 | # Green Hills C++ Compiler |
| 19500 | lt_prog_compiler_pic_CXX='-pic' |
| 19501 | ;; |
| 19502 | *) |
| 19503 | ;; |
| 19504 | esac |
| 19505 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19506 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19507 | # FreeBSD uses GNU C++ |
| 19508 | ;; |
| 19509 | hpux9* | hpux10* | hpux11*) |
| 19510 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19511 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19512 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19513 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19514 | if test "$host_cpu" != ia64; then |
| 19515 | lt_prog_compiler_pic_CXX='+Z' |
| 19516 | fi |
| 19517 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19518 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19519 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19520 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19521 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19522 | hppa*64*|ia64*) |
| 19523 | # +Z the default |
| 19524 | ;; |
| 19525 | *) |
| 19526 | lt_prog_compiler_pic_CXX='+Z' |
| 19527 | ;; |
| 19528 | esac |
| 19529 | ;; |
| 19530 | *) |
| 19531 | ;; |
| 19532 | esac |
| 19533 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19534 | interix*) |
| 19535 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19536 | # Anyone wants to do a port? |
| 19537 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19538 | irix5* | irix6* | nonstopux*) |
| 19539 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19540 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19541 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19542 | lt_prog_compiler_static_CXX='-non_shared' |
| 19543 | # CC pic flag -KPIC is the default. |
| 19544 | ;; |
| 19545 | *) |
| 19546 | ;; |
| 19547 | esac |
| 19548 | ;; |
| 19549 | linux*) |
| 19550 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19551 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19552 | # KAI C++ Compiler |
| 19553 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19554 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19555 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19556 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19557 | # Intel C++ |
| 19558 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19559 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19560 | lt_prog_compiler_static_CXX='-static' |
| 19561 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19562 | pgCC*) |
| 19563 | # Portland Group C++ compiler. |
| 19564 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19565 | lt_prog_compiler_pic_CXX='-fpic' |
| 19566 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19567 | ;; |
| 19568 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19569 | # Compaq C++ |
| 19570 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19571 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19572 | lt_prog_compiler_pic_CXX= |
| 19573 | lt_prog_compiler_static_CXX='-non_shared' |
| 19574 | ;; |
| 19575 | *) |
| 19576 | ;; |
| 19577 | esac |
| 19578 | ;; |
| 19579 | lynxos*) |
| 19580 | ;; |
| 19581 | m88k*) |
| 19582 | ;; |
| 19583 | mvs*) |
| 19584 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19585 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19586 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19587 | ;; |
| 19588 | *) |
| 19589 | ;; |
| 19590 | esac |
| 19591 | ;; |
| 19592 | netbsd*) |
| 19593 | ;; |
| 19594 | osf3* | osf4* | osf5*) |
| 19595 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19596 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19597 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19598 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19599 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19600 | # Rational C++ 2.4.1 |
| 19601 | lt_prog_compiler_pic_CXX='-pic' |
| 19602 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19603 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19604 | # Digital/Compaq C++ |
| 19605 | lt_prog_compiler_wl_CXX='-Wl,' |
| 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 | psos*) |
| 19616 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19617 | solaris*) |
| 19618 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19619 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19620 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19621 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19622 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19623 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19624 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19625 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19626 | # Green Hills C++ Compiler |
| 19627 | lt_prog_compiler_pic_CXX='-PIC' |
| 19628 | ;; |
| 19629 | *) |
| 19630 | ;; |
| 19631 | esac |
| 19632 | ;; |
| 19633 | sunos4*) |
| 19634 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19635 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19636 | # Sun C++ 4.x |
| 19637 | lt_prog_compiler_pic_CXX='-pic' |
| 19638 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19639 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19640 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19641 | # Lucid |
| 19642 | lt_prog_compiler_pic_CXX='-pic' |
| 19643 | ;; |
| 19644 | *) |
| 19645 | ;; |
| 19646 | esac |
| 19647 | ;; |
| 19648 | tandem*) |
| 19649 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19650 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19651 | # NonStop-UX NCC 3.20 |
| 19652 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19653 | ;; |
| 19654 | *) |
| 19655 | ;; |
| 19656 | esac |
| 19657 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19658 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19659 | case $cc_basename in |
| 19660 | CC*) |
| 19661 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19662 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19663 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19664 | ;; |
| 19665 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19666 | ;; |
| 19667 | vxworks*) |
| 19668 | ;; |
| 19669 | *) |
| 19670 | lt_prog_compiler_can_build_shared_CXX=no |
| 19671 | ;; |
| 19672 | esac |
| 19673 | fi |
| 19674 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19675 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19676 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19677 | |
| 19678 | # |
| 19679 | # Check to make sure the PIC flag actually works. |
| 19680 | # |
| 19681 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19682 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19683 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19684 | 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] | 19685 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19687 | else |
| 19688 | lt_prog_compiler_pic_works_CXX=no |
| 19689 | ac_outfile=conftest.$ac_objext |
| 19690 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19691 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19692 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19693 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19694 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19695 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19696 | # The option is referenced via a variable to avoid confusing sed. |
| 19697 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19698 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19699 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19700 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 19701 | (eval echo "\"\$as_me:19701: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19702 | (eval "$lt_compile" 2>conftest.err) |
| 19703 | ac_status=$? |
| 19704 | cat conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 19705 | echo "$as_me:19705: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19706 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19707 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19708 | # So say no if there are warnings other than the usual output. |
| 19709 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19710 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19711 | 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] | 19712 | lt_prog_compiler_pic_works_CXX=yes |
| 19713 | fi |
| 19714 | fi |
| 19715 | $rm conftest* |
| 19716 | |
| 19717 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19718 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 19719 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19720 | |
| 19721 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 19722 | case $lt_prog_compiler_pic_CXX in |
| 19723 | "" | " "*) ;; |
| 19724 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19725 | esac |
| 19726 | else |
| 19727 | lt_prog_compiler_pic_CXX= |
| 19728 | lt_prog_compiler_can_build_shared_CXX=no |
| 19729 | fi |
| 19730 | |
| 19731 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19732 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19733 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19734 | *djgpp*) |
| 19735 | lt_prog_compiler_pic_CXX= |
| 19736 | ;; |
| 19737 | *) |
| 19738 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19739 | ;; |
| 19740 | esac |
| 19741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19742 | # |
| 19743 | # Check to make sure the static flag actually works. |
| 19744 | # |
| 19745 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19746 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19747 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 19748 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 19749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19750 | else |
| 19751 | lt_prog_compiler_static_works_CXX=no |
| 19752 | save_LDFLAGS="$LDFLAGS" |
| 19753 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19754 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19755 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19756 | # The linker can only warn and ignore the option if not recognized |
| 19757 | # So say no if there are warnings |
| 19758 | if test -s conftest.err; then |
| 19759 | # Append any errors to the config.log. |
| 19760 | cat conftest.err 1>&5 |
| 19761 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 19762 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19763 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19764 | lt_prog_compiler_static_works_CXX=yes |
| 19765 | fi |
| 19766 | else |
| 19767 | lt_prog_compiler_static_works_CXX=yes |
| 19768 | fi |
| 19769 | fi |
| 19770 | $rm conftest* |
| 19771 | LDFLAGS="$save_LDFLAGS" |
| 19772 | |
| 19773 | fi |
| 19774 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 19775 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 19776 | |
| 19777 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 19778 | : |
| 19779 | else |
| 19780 | lt_prog_compiler_static_CXX= |
| 19781 | fi |
| 19782 | |
| 19783 | |
| 19784 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19785 | 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] | 19786 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 19787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19788 | else |
| 19789 | lt_cv_prog_compiler_c_o_CXX=no |
| 19790 | $rm -r conftest 2>/dev/null |
| 19791 | mkdir conftest |
| 19792 | cd conftest |
| 19793 | mkdir out |
| 19794 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19795 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19796 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19797 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19798 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19799 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19800 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19801 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19802 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19803 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19804 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 19805 | (eval echo "\"\$as_me:19805: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19806 | (eval "$lt_compile" 2>out/conftest.err) |
| 19807 | ac_status=$? |
| 19808 | cat out/conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 19809 | echo "$as_me:19809: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19810 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19811 | then |
| 19812 | # The compiler can only warn and ignore the option if not recognized |
| 19813 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19814 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 19815 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19816 | 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] | 19817 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19818 | fi |
| 19819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19820 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19821 | $rm conftest* |
| 19822 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19823 | # template instantiation |
| 19824 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19825 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19826 | cd .. |
| 19827 | rmdir conftest |
| 19828 | $rm conftest* |
| 19829 | |
| 19830 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19831 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19832 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19833 | |
| 19834 | |
| 19835 | hard_links="nottested" |
| 19836 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19837 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19838 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19839 | 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] | 19840 | hard_links=yes |
| 19841 | $rm conftest* |
| 19842 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19843 | touch conftest.a |
| 19844 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19845 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19846 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19847 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19848 | if test "$hard_links" = no; then |
| 19849 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19850 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19851 | need_locks=warn |
| 19852 | fi |
| 19853 | else |
| 19854 | need_locks=no |
| 19855 | fi |
| 19856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19857 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19858 | 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] | 19859 | |
| 19860 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19861 | case $host_os in |
| 19862 | aix4* | aix5*) |
| 19863 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19864 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19865 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19866 | 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' |
| 19867 | else |
| 19868 | 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' |
| 19869 | fi |
| 19870 | ;; |
| 19871 | pw32*) |
| 19872 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 19873 | ;; |
| 19874 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19875 | 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] | 19876 | ;; |
| 19877 | *) |
| 19878 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19879 | ;; |
| 19880 | esac |
| 19881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19882 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19883 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19884 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19885 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19886 | # |
| 19887 | # Do we need to explicitly link libc? |
| 19888 | # |
| 19889 | case "x$archive_cmds_need_lc_CXX" in |
| 19890 | x|xyes) |
| 19891 | # Assume -lc should be added |
| 19892 | archive_cmds_need_lc_CXX=yes |
| 19893 | |
| 19894 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19895 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19896 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19897 | # FIXME: we may have to deal with multi-command sequences. |
| 19898 | ;; |
| 19899 | '$CC '*) |
| 19900 | # Test whether the compiler implicitly links with -lc since on some |
| 19901 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19902 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19903 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19904 | 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] | 19905 | $rm conftest* |
| 19906 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19907 | |
| 19908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19909 | (eval $ac_compile) 2>&5 |
| 19910 | ac_status=$? |
| 19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19912 | (exit $ac_status); } 2>conftest.err; then |
| 19913 | soname=conftest |
| 19914 | lib=conftest |
| 19915 | libobjs=conftest.$ac_objext |
| 19916 | deplibs= |
| 19917 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19918 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19919 | compiler_flags=-v |
| 19920 | linker_flags=-v |
| 19921 | verstring= |
| 19922 | output_objdir=. |
| 19923 | libname=conftest |
| 19924 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19925 | allow_undefined_flag_CXX= |
| 19926 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 19927 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19928 | ac_status=$? |
| 19929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19930 | (exit $ac_status); } |
| 19931 | then |
| 19932 | archive_cmds_need_lc_CXX=no |
| 19933 | else |
| 19934 | archive_cmds_need_lc_CXX=yes |
| 19935 | fi |
| 19936 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19937 | else |
| 19938 | cat conftest.err 1>&5 |
| 19939 | fi |
| 19940 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19941 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 19942 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19943 | ;; |
| 19944 | esac |
| 19945 | fi |
| 19946 | ;; |
| 19947 | esac |
| 19948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19949 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 19950 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19951 | library_names_spec= |
| 19952 | libname_spec='lib$name' |
| 19953 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19954 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19955 | postinstall_cmds= |
| 19956 | postuninstall_cmds= |
| 19957 | finish_cmds= |
| 19958 | finish_eval= |
| 19959 | shlibpath_var= |
| 19960 | shlibpath_overrides_runpath=unknown |
| 19961 | version_type=none |
| 19962 | dynamic_linker="$host_os ld.so" |
| 19963 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19964 | if test "$GCC" = yes; then |
| 19965 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19966 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 19967 | # if the path contains ";" then we assume it to be the separator |
| 19968 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 19969 | # assumed that no part of a normal pathname contains ";" but that should |
| 19970 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 19971 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19972 | else |
| 19973 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19974 | fi |
| 19975 | else |
| 19976 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 19977 | fi |
| 19978 | need_lib_prefix=unknown |
| 19979 | hardcode_into_libs=no |
| 19980 | |
| 19981 | # when you set need_version to no, make sure it does not cause -set_version |
| 19982 | # flags to be left without arguments |
| 19983 | need_version=unknown |
| 19984 | |
| 19985 | case $host_os in |
| 19986 | aix3*) |
| 19987 | version_type=linux |
| 19988 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19989 | shlibpath_var=LIBPATH |
| 19990 | |
| 19991 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19992 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19993 | ;; |
| 19994 | |
| 19995 | aix4* | aix5*) |
| 19996 | version_type=linux |
| 19997 | need_lib_prefix=no |
| 19998 | need_version=no |
| 19999 | hardcode_into_libs=yes |
| 20000 | if test "$host_cpu" = ia64; then |
| 20001 | # AIX 5 supports IA64 |
| 20002 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20003 | shlibpath_var=LD_LIBRARY_PATH |
| 20004 | else |
| 20005 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20006 | # for dependence libraries. The import file would start with |
| 20007 | # the line `#! .'. This would cause the generated library to |
| 20008 | # depend on `.', always an invalid library. This was fixed in |
| 20009 | # development snapshots of GCC prior to 3.0. |
| 20010 | case $host_os in |
| 20011 | aix4 | aix4.[01] | aix4.[01].*) |
| 20012 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20013 | echo ' yes ' |
| 20014 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20015 | : |
| 20016 | else |
| 20017 | can_build_shared=no |
| 20018 | fi |
| 20019 | ;; |
| 20020 | esac |
| 20021 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20022 | # soname into executable. Probably we can add versioning support to |
| 20023 | # collect2, so additional links can be useful in future. |
| 20024 | if test "$aix_use_runtimelinking" = yes; then |
| 20025 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20026 | # instead of lib<name>.a to let people know that these are not |
| 20027 | # typical AIX shared libraries. |
| 20028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20029 | else |
| 20030 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20031 | # and later when we are not doing run time linking. |
| 20032 | library_names_spec='${libname}${release}.a $libname.a' |
| 20033 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20034 | fi |
| 20035 | shlibpath_var=LIBPATH |
| 20036 | fi |
| 20037 | ;; |
| 20038 | |
| 20039 | amigaos*) |
| 20040 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20041 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20042 | 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] | 20043 | ;; |
| 20044 | |
| 20045 | beos*) |
| 20046 | library_names_spec='${libname}${shared_ext}' |
| 20047 | dynamic_linker="$host_os ld.so" |
| 20048 | shlibpath_var=LIBRARY_PATH |
| 20049 | ;; |
| 20050 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20051 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20052 | version_type=linux |
| 20053 | need_version=no |
| 20054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20055 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20056 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20057 | shlibpath_var=LD_LIBRARY_PATH |
| 20058 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20059 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20060 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20061 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20062 | # libtool to hard-code these into programs |
| 20063 | ;; |
| 20064 | |
| 20065 | cygwin* | mingw* | pw32*) |
| 20066 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20067 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20068 | need_version=no |
| 20069 | need_lib_prefix=no |
| 20070 | |
| 20071 | case $GCC,$host_os in |
| 20072 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20073 | library_names_spec='$libname.dll.a' |
| 20074 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20075 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20076 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20077 | dldir=$destdir/`dirname \$dlpath`~ |
| 20078 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20079 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20080 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20081 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20082 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20083 | $rm \$dlpath' |
| 20084 | shlibpath_overrides_runpath=yes |
| 20085 | |
| 20086 | case $host_os in |
| 20087 | cygwin*) |
| 20088 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20089 | 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] | 20090 | 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] | 20091 | ;; |
| 20092 | mingw*) |
| 20093 | # MinGW DLLs use traditional 'lib' prefix |
| 20094 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20095 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20096 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20097 | # It is most probably a Windows format PATH printed by |
| 20098 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20099 | # path with ; separators, and with drive letters. We can handle the |
| 20100 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20101 | # especially as we might pass files found there to a mingw objdump, |
| 20102 | # which wouldn't understand a cygwinified path. Ahh. |
| 20103 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20104 | else |
| 20105 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20106 | fi |
| 20107 | ;; |
| 20108 | pw32*) |
| 20109 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20110 | 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] | 20111 | ;; |
| 20112 | esac |
| 20113 | ;; |
| 20114 | |
| 20115 | *) |
| 20116 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20117 | ;; |
| 20118 | esac |
| 20119 | dynamic_linker='Win32 ld.exe' |
| 20120 | # FIXME: first we should search . and the directory the executable is in |
| 20121 | shlibpath_var=PATH |
| 20122 | ;; |
| 20123 | |
| 20124 | darwin* | rhapsody*) |
| 20125 | dynamic_linker="$host_os dyld" |
| 20126 | version_type=darwin |
| 20127 | need_lib_prefix=no |
| 20128 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20129 | 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] | 20130 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20131 | shlibpath_overrides_runpath=yes |
| 20132 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20133 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20134 | # 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] | 20135 | if test "$GCC" = yes; then |
| 20136 | 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"` |
| 20137 | else |
| 20138 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20139 | fi |
| 20140 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20141 | ;; |
| 20142 | |
| 20143 | dgux*) |
| 20144 | version_type=linux |
| 20145 | need_lib_prefix=no |
| 20146 | need_version=no |
| 20147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20148 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20149 | shlibpath_var=LD_LIBRARY_PATH |
| 20150 | ;; |
| 20151 | |
| 20152 | freebsd1*) |
| 20153 | dynamic_linker=no |
| 20154 | ;; |
| 20155 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20156 | kfreebsd*-gnu) |
| 20157 | version_type=linux |
| 20158 | need_lib_prefix=no |
| 20159 | need_version=no |
| 20160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20161 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20162 | shlibpath_var=LD_LIBRARY_PATH |
| 20163 | shlibpath_overrides_runpath=no |
| 20164 | hardcode_into_libs=yes |
| 20165 | dynamic_linker='GNU ld.so' |
| 20166 | ;; |
| 20167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20168 | freebsd* | dragonfly*) |
| 20169 | # DragonFly does not have aout. When/if they implement a new |
| 20170 | # versioning mechanism, adjust this. |
| 20171 | if test -x /usr/bin/objformat; then |
| 20172 | objformat=`/usr/bin/objformat` |
| 20173 | else |
| 20174 | case $host_os in |
| 20175 | freebsd[123]*) objformat=aout ;; |
| 20176 | *) objformat=elf ;; |
| 20177 | esac |
| 20178 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20179 | version_type=freebsd-$objformat |
| 20180 | case $version_type in |
| 20181 | freebsd-elf*) |
| 20182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20183 | need_version=no |
| 20184 | need_lib_prefix=no |
| 20185 | ;; |
| 20186 | freebsd-*) |
| 20187 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20188 | need_version=yes |
| 20189 | ;; |
| 20190 | esac |
| 20191 | shlibpath_var=LD_LIBRARY_PATH |
| 20192 | case $host_os in |
| 20193 | freebsd2*) |
| 20194 | shlibpath_overrides_runpath=yes |
| 20195 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20196 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20197 | shlibpath_overrides_runpath=yes |
| 20198 | hardcode_into_libs=yes |
| 20199 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20200 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20201 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20202 | shlibpath_overrides_runpath=no |
| 20203 | hardcode_into_libs=yes |
| 20204 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20205 | freebsd*) # from 4.6 on |
| 20206 | shlibpath_overrides_runpath=yes |
| 20207 | hardcode_into_libs=yes |
| 20208 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20209 | esac |
| 20210 | ;; |
| 20211 | |
| 20212 | gnu*) |
| 20213 | version_type=linux |
| 20214 | need_lib_prefix=no |
| 20215 | need_version=no |
| 20216 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20217 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20218 | shlibpath_var=LD_LIBRARY_PATH |
| 20219 | hardcode_into_libs=yes |
| 20220 | ;; |
| 20221 | |
| 20222 | hpux9* | hpux10* | hpux11*) |
| 20223 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20224 | # link against other versions. |
| 20225 | version_type=sunos |
| 20226 | need_lib_prefix=no |
| 20227 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20228 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20229 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20230 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20231 | hardcode_into_libs=yes |
| 20232 | dynamic_linker="$host_os dld.so" |
| 20233 | shlibpath_var=LD_LIBRARY_PATH |
| 20234 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20236 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20237 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20238 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20239 | else |
| 20240 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20241 | fi |
| 20242 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20243 | ;; |
| 20244 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20245 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20246 | hardcode_into_libs=yes |
| 20247 | dynamic_linker="$host_os dld.sl" |
| 20248 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20249 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20251 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20252 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20253 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20254 | ;; |
| 20255 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20256 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20257 | dynamic_linker="$host_os dld.sl" |
| 20258 | shlibpath_var=SHLIB_PATH |
| 20259 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20261 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20262 | ;; |
| 20263 | esac |
| 20264 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20265 | postinstall_cmds='chmod 555 $lib' |
| 20266 | ;; |
| 20267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20268 | interix3*) |
| 20269 | version_type=linux |
| 20270 | need_lib_prefix=no |
| 20271 | need_version=no |
| 20272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20273 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20274 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20275 | shlibpath_var=LD_LIBRARY_PATH |
| 20276 | shlibpath_overrides_runpath=no |
| 20277 | hardcode_into_libs=yes |
| 20278 | ;; |
| 20279 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20280 | irix5* | irix6* | nonstopux*) |
| 20281 | case $host_os in |
| 20282 | nonstopux*) version_type=nonstopux ;; |
| 20283 | *) |
| 20284 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20285 | version_type=linux |
| 20286 | else |
| 20287 | version_type=irix |
| 20288 | fi ;; |
| 20289 | esac |
| 20290 | need_lib_prefix=no |
| 20291 | need_version=no |
| 20292 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20294 | case $host_os in |
| 20295 | irix5* | nonstopux*) |
| 20296 | libsuff= shlibsuff= |
| 20297 | ;; |
| 20298 | *) |
| 20299 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20300 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20301 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20302 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20303 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20304 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20305 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20306 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20307 | esac |
| 20308 | ;; |
| 20309 | esac |
| 20310 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20311 | shlibpath_overrides_runpath=no |
| 20312 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20313 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20314 | hardcode_into_libs=yes |
| 20315 | ;; |
| 20316 | |
| 20317 | # No shared lib support for Linux oldld, aout, or coff. |
| 20318 | linux*oldld* | linux*aout* | linux*coff*) |
| 20319 | dynamic_linker=no |
| 20320 | ;; |
| 20321 | |
| 20322 | # This must be Linux ELF. |
| 20323 | linux*) |
| 20324 | version_type=linux |
| 20325 | need_lib_prefix=no |
| 20326 | need_version=no |
| 20327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20328 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20329 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20330 | shlibpath_var=LD_LIBRARY_PATH |
| 20331 | shlibpath_overrides_runpath=no |
| 20332 | # This implies no fast_install, which is unacceptable. |
| 20333 | # Some rework will be needed to allow for fast_install |
| 20334 | # before this can be enabled. |
| 20335 | hardcode_into_libs=yes |
| 20336 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20337 | # Append ld.so.conf contents to the search path |
| 20338 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20339 | 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] | 20340 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20341 | fi |
| 20342 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20343 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20344 | # powerpc, because MkLinux only supported shared libraries with the |
| 20345 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20346 | # most powerpc-linux boxes support dynamic linking these days and |
| 20347 | # people can always --disable-shared, the test was removed, and we |
| 20348 | # assume the GNU/Linux dynamic linker is in use. |
| 20349 | dynamic_linker='GNU/Linux ld.so' |
| 20350 | ;; |
| 20351 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20352 | knetbsd*-gnu) |
| 20353 | version_type=linux |
| 20354 | need_lib_prefix=no |
| 20355 | need_version=no |
| 20356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20357 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20358 | shlibpath_var=LD_LIBRARY_PATH |
| 20359 | shlibpath_overrides_runpath=no |
| 20360 | hardcode_into_libs=yes |
| 20361 | dynamic_linker='GNU ld.so' |
| 20362 | ;; |
| 20363 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20364 | netbsd*) |
| 20365 | version_type=sunos |
| 20366 | need_lib_prefix=no |
| 20367 | need_version=no |
| 20368 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20370 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20371 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20372 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20373 | 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] | 20374 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20375 | dynamic_linker='NetBSD ld.elf_so' |
| 20376 | fi |
| 20377 | shlibpath_var=LD_LIBRARY_PATH |
| 20378 | shlibpath_overrides_runpath=yes |
| 20379 | hardcode_into_libs=yes |
| 20380 | ;; |
| 20381 | |
| 20382 | newsos6) |
| 20383 | version_type=linux |
| 20384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20385 | shlibpath_var=LD_LIBRARY_PATH |
| 20386 | shlibpath_overrides_runpath=yes |
| 20387 | ;; |
| 20388 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20389 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20390 | version_type=linux |
| 20391 | need_lib_prefix=no |
| 20392 | need_version=no |
| 20393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20394 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20395 | shlibpath_var=LD_LIBRARY_PATH |
| 20396 | shlibpath_overrides_runpath=yes |
| 20397 | ;; |
| 20398 | |
| 20399 | openbsd*) |
| 20400 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20401 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20402 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20403 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20404 | case $host_os in |
| 20405 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20406 | *) need_version=no ;; |
| 20407 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20409 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20410 | shlibpath_var=LD_LIBRARY_PATH |
| 20411 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20412 | case $host_os in |
| 20413 | openbsd2.[89] | openbsd2.[89].*) |
| 20414 | shlibpath_overrides_runpath=no |
| 20415 | ;; |
| 20416 | *) |
| 20417 | shlibpath_overrides_runpath=yes |
| 20418 | ;; |
| 20419 | esac |
| 20420 | else |
| 20421 | shlibpath_overrides_runpath=yes |
| 20422 | fi |
| 20423 | ;; |
| 20424 | |
| 20425 | os2*) |
| 20426 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20427 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20428 | need_lib_prefix=no |
| 20429 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20430 | dynamic_linker='OS/2 ld.exe' |
| 20431 | shlibpath_var=LIBPATH |
| 20432 | ;; |
| 20433 | |
| 20434 | osf3* | osf4* | osf5*) |
| 20435 | version_type=osf |
| 20436 | need_lib_prefix=no |
| 20437 | need_version=no |
| 20438 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20440 | shlibpath_var=LD_LIBRARY_PATH |
| 20441 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20442 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20443 | ;; |
| 20444 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20445 | solaris*) |
| 20446 | version_type=linux |
| 20447 | need_lib_prefix=no |
| 20448 | need_version=no |
| 20449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20450 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20451 | shlibpath_var=LD_LIBRARY_PATH |
| 20452 | shlibpath_overrides_runpath=yes |
| 20453 | hardcode_into_libs=yes |
| 20454 | # ldd complains unless libraries are executable |
| 20455 | postinstall_cmds='chmod +x $lib' |
| 20456 | ;; |
| 20457 | |
| 20458 | sunos4*) |
| 20459 | version_type=sunos |
| 20460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20461 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20462 | shlibpath_var=LD_LIBRARY_PATH |
| 20463 | shlibpath_overrides_runpath=yes |
| 20464 | if test "$with_gnu_ld" = yes; then |
| 20465 | need_lib_prefix=no |
| 20466 | fi |
| 20467 | need_version=yes |
| 20468 | ;; |
| 20469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20470 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20471 | version_type=linux |
| 20472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20473 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20474 | shlibpath_var=LD_LIBRARY_PATH |
| 20475 | case $host_vendor in |
| 20476 | sni) |
| 20477 | shlibpath_overrides_runpath=no |
| 20478 | need_lib_prefix=no |
| 20479 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20480 | runpath_var=LD_RUN_PATH |
| 20481 | ;; |
| 20482 | siemens) |
| 20483 | need_lib_prefix=no |
| 20484 | ;; |
| 20485 | motorola) |
| 20486 | need_lib_prefix=no |
| 20487 | need_version=no |
| 20488 | shlibpath_overrides_runpath=no |
| 20489 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20490 | ;; |
| 20491 | esac |
| 20492 | ;; |
| 20493 | |
| 20494 | sysv4*MP*) |
| 20495 | if test -d /usr/nec ;then |
| 20496 | version_type=linux |
| 20497 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20498 | soname_spec='$libname${shared_ext}.$major' |
| 20499 | shlibpath_var=LD_LIBRARY_PATH |
| 20500 | fi |
| 20501 | ;; |
| 20502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20503 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20504 | version_type=freebsd-elf |
| 20505 | need_lib_prefix=no |
| 20506 | need_version=no |
| 20507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20508 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20509 | shlibpath_var=LD_LIBRARY_PATH |
| 20510 | hardcode_into_libs=yes |
| 20511 | if test "$with_gnu_ld" = yes; then |
| 20512 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20513 | shlibpath_overrides_runpath=no |
| 20514 | else |
| 20515 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20516 | shlibpath_overrides_runpath=yes |
| 20517 | case $host_os in |
| 20518 | sco3.2v5*) |
| 20519 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20520 | ;; |
| 20521 | esac |
| 20522 | fi |
| 20523 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20524 | ;; |
| 20525 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20526 | uts4*) |
| 20527 | version_type=linux |
| 20528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20529 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20530 | shlibpath_var=LD_LIBRARY_PATH |
| 20531 | ;; |
| 20532 | |
| 20533 | *) |
| 20534 | dynamic_linker=no |
| 20535 | ;; |
| 20536 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20537 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20538 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20539 | test "$dynamic_linker" = no && can_build_shared=no |
| 20540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20541 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20542 | if test "$GCC" = yes; then |
| 20543 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20544 | fi |
| 20545 | |
| 20546 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20547 | 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] | 20548 | hardcode_action_CXX= |
| 20549 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20550 | test -n "$runpath_var_CXX" || \ |
| 20551 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20552 | |
| 20553 | # We can hardcode non-existant directories. |
| 20554 | if test "$hardcode_direct_CXX" != no && |
| 20555 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20556 | # have to relink, otherwise we might link with an installed library |
| 20557 | # when we should be linking with a yet-to-be-installed one |
| 20558 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20559 | test "$hardcode_minus_L_CXX" != no; then |
| 20560 | # Linking always hardcodes the temporary library directory. |
| 20561 | hardcode_action_CXX=relink |
| 20562 | else |
| 20563 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20564 | hardcode_action_CXX=immediate |
| 20565 | fi |
| 20566 | else |
| 20567 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20568 | # directories. |
| 20569 | hardcode_action_CXX=unsupported |
| 20570 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20571 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20572 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20573 | |
| 20574 | if test "$hardcode_action_CXX" = relink; then |
| 20575 | # Fast installation is not supported |
| 20576 | enable_fast_install=no |
| 20577 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20578 | test "$enable_shared" = no; then |
| 20579 | # Fast installation is not necessary |
| 20580 | enable_fast_install=needless |
| 20581 | fi |
| 20582 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20583 | |
| 20584 | # The else clause should only fire when bootstrapping the |
| 20585 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20586 | # with your package, and you will get complaints that there are |
| 20587 | # no rules to generate ltmain.sh. |
| 20588 | if test -f "$ltmain"; then |
| 20589 | # See if we are running on zsh, and set the options which allow our commands through |
| 20590 | # without removal of \ escapes. |
| 20591 | if test -n "${ZSH_VERSION+set}" ; then |
| 20592 | setopt NO_GLOB_SUBST |
| 20593 | fi |
| 20594 | # Now quote all the things that may contain metacharacters while being |
| 20595 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20596 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20597 | 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] | 20598 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20599 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20600 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20601 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20602 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20603 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20604 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20605 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20606 | compiler_CXX \ |
| 20607 | CC_CXX \ |
| 20608 | LD_CXX \ |
| 20609 | lt_prog_compiler_wl_CXX \ |
| 20610 | lt_prog_compiler_pic_CXX \ |
| 20611 | lt_prog_compiler_static_CXX \ |
| 20612 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20613 | export_dynamic_flag_spec_CXX \ |
| 20614 | thread_safe_flag_spec_CXX \ |
| 20615 | whole_archive_flag_spec_CXX \ |
| 20616 | enable_shared_with_static_runtimes_CXX \ |
| 20617 | old_archive_cmds_CXX \ |
| 20618 | old_archive_from_new_cmds_CXX \ |
| 20619 | predep_objects_CXX \ |
| 20620 | postdep_objects_CXX \ |
| 20621 | predeps_CXX \ |
| 20622 | postdeps_CXX \ |
| 20623 | compiler_lib_search_path_CXX \ |
| 20624 | archive_cmds_CXX \ |
| 20625 | archive_expsym_cmds_CXX \ |
| 20626 | postinstall_cmds_CXX \ |
| 20627 | postuninstall_cmds_CXX \ |
| 20628 | old_archive_from_expsyms_cmds_CXX \ |
| 20629 | allow_undefined_flag_CXX \ |
| 20630 | no_undefined_flag_CXX \ |
| 20631 | export_symbols_cmds_CXX \ |
| 20632 | hardcode_libdir_flag_spec_CXX \ |
| 20633 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20634 | hardcode_libdir_separator_CXX \ |
| 20635 | hardcode_automatic_CXX \ |
| 20636 | module_cmds_CXX \ |
| 20637 | module_expsym_cmds_CXX \ |
| 20638 | lt_cv_prog_compiler_c_o_CXX \ |
| 20639 | exclude_expsyms_CXX \ |
| 20640 | include_expsyms_CXX; do |
| 20641 | |
| 20642 | case $var in |
| 20643 | old_archive_cmds_CXX | \ |
| 20644 | old_archive_from_new_cmds_CXX | \ |
| 20645 | archive_cmds_CXX | \ |
| 20646 | archive_expsym_cmds_CXX | \ |
| 20647 | module_cmds_CXX | \ |
| 20648 | module_expsym_cmds_CXX | \ |
| 20649 | old_archive_from_expsyms_cmds_CXX | \ |
| 20650 | export_symbols_cmds_CXX | \ |
| 20651 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20652 | postinstall_cmds | postuninstall_cmds | \ |
| 20653 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20654 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20655 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20656 | 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] | 20657 | ;; |
| 20658 | *) |
| 20659 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20660 | ;; |
| 20661 | esac |
| 20662 | done |
| 20663 | |
| 20664 | case $lt_echo in |
| 20665 | *'\$0 --fallback-echo"') |
| 20666 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20667 | ;; |
| 20668 | esac |
| 20669 | |
| 20670 | cfgfile="$ofile" |
| 20671 | |
| 20672 | cat <<__EOF__ >> "$cfgfile" |
| 20673 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20674 | |
| 20675 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20676 | |
| 20677 | # Shell to use when invoking shell scripts. |
| 20678 | SHELL=$lt_SHELL |
| 20679 | |
| 20680 | # Whether or not to build shared libraries. |
| 20681 | build_libtool_libs=$enable_shared |
| 20682 | |
| 20683 | # Whether or not to build static libraries. |
| 20684 | build_old_libs=$enable_static |
| 20685 | |
| 20686 | # Whether or not to add -lc for building shared libraries. |
| 20687 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20688 | |
| 20689 | # Whether or not to disallow shared libs when runtime libs are static |
| 20690 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20691 | |
| 20692 | # Whether or not to optimize for fast installation. |
| 20693 | fast_install=$enable_fast_install |
| 20694 | |
| 20695 | # The host system. |
| 20696 | host_alias=$host_alias |
| 20697 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20698 | host_os=$host_os |
| 20699 | |
| 20700 | # The build system. |
| 20701 | build_alias=$build_alias |
| 20702 | build=$build |
| 20703 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20704 | |
| 20705 | # An echo program that does not interpret backslashes. |
| 20706 | echo=$lt_echo |
| 20707 | |
| 20708 | # The archiver. |
| 20709 | AR=$lt_AR |
| 20710 | AR_FLAGS=$lt_AR_FLAGS |
| 20711 | |
| 20712 | # A C compiler. |
| 20713 | LTCC=$lt_LTCC |
| 20714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20715 | # LTCC compiler flags. |
| 20716 | LTCFLAGS=$lt_LTCFLAGS |
| 20717 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20718 | # A language-specific compiler. |
| 20719 | CC=$lt_compiler_CXX |
| 20720 | |
| 20721 | # Is the compiler the GNU C compiler? |
| 20722 | with_gcc=$GCC_CXX |
| 20723 | |
| 20724 | # An ERE matcher. |
| 20725 | EGREP=$lt_EGREP |
| 20726 | |
| 20727 | # The linker used to build libraries. |
| 20728 | LD=$lt_LD_CXX |
| 20729 | |
| 20730 | # Whether we need hard or soft links. |
| 20731 | LN_S=$lt_LN_S |
| 20732 | |
| 20733 | # A BSD-compatible nm program. |
| 20734 | NM=$lt_NM |
| 20735 | |
| 20736 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20737 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20738 | |
| 20739 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20740 | MAGIC_CMD=$MAGIC_CMD |
| 20741 | |
| 20742 | # Used on cygwin: DLL creation program. |
| 20743 | DLLTOOL="$DLLTOOL" |
| 20744 | |
| 20745 | # Used on cygwin: object dumper. |
| 20746 | OBJDUMP="$OBJDUMP" |
| 20747 | |
| 20748 | # Used on cygwin: assembler. |
| 20749 | AS="$AS" |
| 20750 | |
| 20751 | # The name of the directory that contains temporary libtool files. |
| 20752 | objdir=$objdir |
| 20753 | |
| 20754 | # How to create reloadable object files. |
| 20755 | reload_flag=$lt_reload_flag |
| 20756 | reload_cmds=$lt_reload_cmds |
| 20757 | |
| 20758 | # How to pass a linker flag through the compiler. |
| 20759 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20760 | |
| 20761 | # Object file suffix (normally "o"). |
| 20762 | objext="$ac_objext" |
| 20763 | |
| 20764 | # Old archive suffix (normally "a"). |
| 20765 | libext="$libext" |
| 20766 | |
| 20767 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20768 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20769 | |
| 20770 | # Executable file suffix (normally ""). |
| 20771 | exeext="$exeext" |
| 20772 | |
| 20773 | # Additional compiler flags for building library objects. |
| 20774 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20775 | pic_mode=$pic_mode |
| 20776 | |
| 20777 | # What is the maximum length of a command? |
| 20778 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20779 | |
| 20780 | # Does compiler simultaneously support -c and -o options? |
| 20781 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20782 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20783 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20784 | need_locks=$lt_need_locks |
| 20785 | |
| 20786 | # Do we need the lib prefix for modules? |
| 20787 | need_lib_prefix=$need_lib_prefix |
| 20788 | |
| 20789 | # Do we need a version for libraries? |
| 20790 | need_version=$need_version |
| 20791 | |
| 20792 | # Whether dlopen is supported. |
| 20793 | dlopen_support=$enable_dlopen |
| 20794 | |
| 20795 | # Whether dlopen of programs is supported. |
| 20796 | dlopen_self=$enable_dlopen_self |
| 20797 | |
| 20798 | # Whether dlopen of statically linked programs is supported. |
| 20799 | dlopen_self_static=$enable_dlopen_self_static |
| 20800 | |
| 20801 | # Compiler flag to prevent dynamic linking. |
| 20802 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20803 | |
| 20804 | # Compiler flag to turn off builtin functions. |
| 20805 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20806 | |
| 20807 | # Compiler flag to allow reflexive dlopens. |
| 20808 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20809 | |
| 20810 | # Compiler flag to generate shared objects directly from archives. |
| 20811 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20812 | |
| 20813 | # Compiler flag to generate thread-safe objects. |
| 20814 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 20815 | |
| 20816 | # Library versioning type. |
| 20817 | version_type=$version_type |
| 20818 | |
| 20819 | # Format of library name prefix. |
| 20820 | libname_spec=$lt_libname_spec |
| 20821 | |
| 20822 | # List of archive names. First name is the real one, the rest are links. |
| 20823 | # The last name is the one that the linker finds with -lNAME. |
| 20824 | library_names_spec=$lt_library_names_spec |
| 20825 | |
| 20826 | # The coded name of the library, if different from the real name. |
| 20827 | soname_spec=$lt_soname_spec |
| 20828 | |
| 20829 | # Commands used to build and install an old-style archive. |
| 20830 | RANLIB=$lt_RANLIB |
| 20831 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20832 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20833 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20834 | |
| 20835 | # Create an old-style archive from a shared archive. |
| 20836 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20837 | |
| 20838 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20839 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20840 | |
| 20841 | # Commands used to build and install a shared archive. |
| 20842 | archive_cmds=$lt_archive_cmds_CXX |
| 20843 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20844 | postinstall_cmds=$lt_postinstall_cmds |
| 20845 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20846 | |
| 20847 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20848 | module_cmds=$lt_module_cmds_CXX |
| 20849 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20850 | |
| 20851 | # Commands to strip libraries. |
| 20852 | old_striplib=$lt_old_striplib |
| 20853 | striplib=$lt_striplib |
| 20854 | |
| 20855 | # Dependencies to place before the objects being linked to create a |
| 20856 | # shared library. |
| 20857 | predep_objects=$lt_predep_objects_CXX |
| 20858 | |
| 20859 | # Dependencies to place after the objects being linked to create a |
| 20860 | # shared library. |
| 20861 | postdep_objects=$lt_postdep_objects_CXX |
| 20862 | |
| 20863 | # Dependencies to place before the objects being linked to create a |
| 20864 | # shared library. |
| 20865 | predeps=$lt_predeps_CXX |
| 20866 | |
| 20867 | # Dependencies to place after the objects being linked to create a |
| 20868 | # shared library. |
| 20869 | postdeps=$lt_postdeps_CXX |
| 20870 | |
| 20871 | # The library search path used internally by the compiler when linking |
| 20872 | # a shared library. |
| 20873 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20874 | |
| 20875 | # Method to check whether dependent libraries are shared objects. |
| 20876 | deplibs_check_method=$lt_deplibs_check_method |
| 20877 | |
| 20878 | # Command to use when deplibs_check_method == file_magic. |
| 20879 | file_magic_cmd=$lt_file_magic_cmd |
| 20880 | |
| 20881 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20882 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20883 | |
| 20884 | # Flag that forces no undefined symbols. |
| 20885 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20886 | |
| 20887 | # Commands used to finish a libtool library installation in a directory. |
| 20888 | finish_cmds=$lt_finish_cmds |
| 20889 | |
| 20890 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20891 | finish_eval=$lt_finish_eval |
| 20892 | |
| 20893 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20894 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20895 | |
| 20896 | # Transform the output of nm in a proper C declaration |
| 20897 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20898 | |
| 20899 | # Transform the output of nm in a C name address pair |
| 20900 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20901 | |
| 20902 | # This is the shared library runtime path variable. |
| 20903 | runpath_var=$runpath_var |
| 20904 | |
| 20905 | # This is the shared library path variable. |
| 20906 | shlibpath_var=$shlibpath_var |
| 20907 | |
| 20908 | # Is shlibpath searched before the hard-coded library search path? |
| 20909 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20910 | |
| 20911 | # How to hardcode a shared library path into an executable. |
| 20912 | hardcode_action=$hardcode_action_CXX |
| 20913 | |
| 20914 | # Whether we should hardcode library paths into libraries. |
| 20915 | hardcode_into_libs=$hardcode_into_libs |
| 20916 | |
| 20917 | # Flag to hardcode \$libdir into a binary during linking. |
| 20918 | # This must work even if \$libdir does not exist. |
| 20919 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20920 | |
| 20921 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20922 | # a binary during linking. This must work even if \$libdir does |
| 20923 | # not exist. |
| 20924 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 20925 | |
| 20926 | # Whether we need a single -rpath flag with a separated argument. |
| 20927 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20928 | |
| 20929 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20930 | # resulting binary. |
| 20931 | hardcode_direct=$hardcode_direct_CXX |
| 20932 | |
| 20933 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20934 | # resulting binary. |
| 20935 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20936 | |
| 20937 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20938 | # the resulting binary. |
| 20939 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20940 | |
| 20941 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20942 | # and all subsequent libraries and executables linked against it. |
| 20943 | hardcode_automatic=$hardcode_automatic_CXX |
| 20944 | |
| 20945 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20946 | # restored at relink time. |
| 20947 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20948 | |
| 20949 | # Whether libtool must link a program against all its dependency libraries. |
| 20950 | link_all_deplibs=$link_all_deplibs_CXX |
| 20951 | |
| 20952 | # Compile-time system search path for libraries |
| 20953 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20954 | |
| 20955 | # Run-time system search path for libraries |
| 20956 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20957 | |
| 20958 | # Fix the shell variable \$srcfile for the compiler. |
| 20959 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 20960 | |
| 20961 | # Set to yes if exported symbols are required. |
| 20962 | always_export_symbols=$always_export_symbols_CXX |
| 20963 | |
| 20964 | # The commands to list exported symbols. |
| 20965 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 20966 | |
| 20967 | # The commands to extract the exported symbol list from a shared archive. |
| 20968 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20969 | |
| 20970 | # Symbols that should not be listed in the preloaded symbols. |
| 20971 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 20972 | |
| 20973 | # Symbols that must always be exported. |
| 20974 | include_expsyms=$lt_include_expsyms_CXX |
| 20975 | |
| 20976 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20977 | |
| 20978 | __EOF__ |
| 20979 | |
| 20980 | |
| 20981 | else |
| 20982 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20983 | # `config.status --recheck' to rerun these tests and create the |
| 20984 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20985 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20986 | if test -f "$ltmain_in"; then |
| 20987 | test -f Makefile && make "$ltmain" |
| 20988 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20989 | fi |
| 20990 | |
| 20991 | |
| 20992 | ac_ext=c |
| 20993 | ac_cpp='$CPP $CPPFLAGS' |
| 20994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20997 | |
| 20998 | CC=$lt_save_CC |
| 20999 | LDCXX=$LD |
| 21000 | LD=$lt_save_LD |
| 21001 | GCC=$lt_save_GCC |
| 21002 | with_gnu_ldcxx=$with_gnu_ld |
| 21003 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21004 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21005 | lt_cv_path_LD=$lt_save_path_LD |
| 21006 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21007 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21008 | |
| 21009 | else |
| 21010 | tagname="" |
| 21011 | fi |
| 21012 | ;; |
| 21013 | |
| 21014 | F77) |
| 21015 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21016 | |
| 21017 | ac_ext=f |
| 21018 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21019 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21020 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21021 | |
| 21022 | |
| 21023 | archive_cmds_need_lc_F77=no |
| 21024 | allow_undefined_flag_F77= |
| 21025 | always_export_symbols_F77=no |
| 21026 | archive_expsym_cmds_F77= |
| 21027 | export_dynamic_flag_spec_F77= |
| 21028 | hardcode_direct_F77=no |
| 21029 | hardcode_libdir_flag_spec_F77= |
| 21030 | hardcode_libdir_flag_spec_ld_F77= |
| 21031 | hardcode_libdir_separator_F77= |
| 21032 | hardcode_minus_L_F77=no |
| 21033 | hardcode_automatic_F77=no |
| 21034 | module_cmds_F77= |
| 21035 | module_expsym_cmds_F77= |
| 21036 | link_all_deplibs_F77=unknown |
| 21037 | old_archive_cmds_F77=$old_archive_cmds |
| 21038 | no_undefined_flag_F77= |
| 21039 | whole_archive_flag_spec_F77= |
| 21040 | enable_shared_with_static_runtimes_F77=no |
| 21041 | |
| 21042 | # Source file extension for f77 test sources. |
| 21043 | ac_ext=f |
| 21044 | |
| 21045 | # Object file extension for compiled f77 test sources. |
| 21046 | objext=o |
| 21047 | objext_F77=$objext |
| 21048 | |
| 21049 | # Code to be used in simple compile tests |
| 21050 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21051 | |
| 21052 | # Code to be used in simple link tests |
| 21053 | lt_simple_link_test_code=" program t\n end\n" |
| 21054 | |
| 21055 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21056 | |
| 21057 | # If no C compiler was specified, use CC. |
| 21058 | LTCC=${LTCC-"$CC"} |
| 21059 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21060 | # If no C compiler flags were specified, use CFLAGS. |
| 21061 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21062 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21063 | # Allow CC to be a program name with arguments. |
| 21064 | compiler=$CC |
| 21065 | |
| 21066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21067 | # save warnings/boilerplate of simple test code |
| 21068 | ac_outfile=conftest.$ac_objext |
| 21069 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21070 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21071 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21072 | $rm conftest* |
| 21073 | |
| 21074 | ac_outfile=conftest.$ac_objext |
| 21075 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21076 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21077 | _lt_linker_boilerplate=`cat conftest.err` |
| 21078 | $rm conftest* |
| 21079 | |
| 21080 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21081 | # Allow CC to be a program name with arguments. |
| 21082 | lt_save_CC="$CC" |
| 21083 | CC=${F77-"f77"} |
| 21084 | compiler=$CC |
| 21085 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21086 | for cc_temp in $compiler""; do |
| 21087 | case $cc_temp in |
| 21088 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21089 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21090 | \-*) ;; |
| 21091 | *) break;; |
| 21092 | esac |
| 21093 | done |
| 21094 | 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] | 21095 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21097 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21098 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21099 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21100 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21101 | |
| 21102 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21103 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21104 | test "$can_build_shared" = "no" && enable_shared=no |
| 21105 | |
| 21106 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21107 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21108 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21109 | aix3*) |
| 21110 | test "$enable_shared" = yes && enable_static=no |
| 21111 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21112 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21113 | postinstall_cmds='$RANLIB $lib' |
| 21114 | fi |
| 21115 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21116 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21117 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21118 | test "$enable_shared" = yes && enable_static=no |
| 21119 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21120 | ;; |
| 21121 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21122 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21123 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21125 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21126 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21127 | # Make sure either enable_shared or enable_static is yes. |
| 21128 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21129 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21130 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21131 | |
| 21132 | GCC_F77="$G77" |
| 21133 | LD_F77="$LD" |
| 21134 | |
| 21135 | lt_prog_compiler_wl_F77= |
| 21136 | lt_prog_compiler_pic_F77= |
| 21137 | lt_prog_compiler_static_F77= |
| 21138 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21139 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21140 | 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] | 21141 | |
| 21142 | if test "$GCC" = yes; then |
| 21143 | lt_prog_compiler_wl_F77='-Wl,' |
| 21144 | lt_prog_compiler_static_F77='-static' |
| 21145 | |
| 21146 | case $host_os in |
| 21147 | aix*) |
| 21148 | # All AIX code is PIC. |
| 21149 | if test "$host_cpu" = ia64; then |
| 21150 | # AIX 5 now supports IA64 processor |
| 21151 | lt_prog_compiler_static_F77='-Bstatic' |
| 21152 | fi |
| 21153 | ;; |
| 21154 | |
| 21155 | amigaos*) |
| 21156 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21157 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21158 | # like `-m68040'. |
| 21159 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21160 | ;; |
| 21161 | |
| 21162 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21163 | # PIC is the default for these OSes. |
| 21164 | ;; |
| 21165 | |
| 21166 | mingw* | pw32* | os2*) |
| 21167 | # This hack is so that the source file can tell whether it is being |
| 21168 | # built for inclusion in a dll (and should export symbols for example). |
| 21169 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21170 | ;; |
| 21171 | |
| 21172 | darwin* | rhapsody*) |
| 21173 | # PIC is the default on this platform |
| 21174 | # Common symbols not allowed in MH_DYLIB files |
| 21175 | lt_prog_compiler_pic_F77='-fno-common' |
| 21176 | ;; |
| 21177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21178 | interix3*) |
| 21179 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21180 | # Instead, we relocate shared libraries at runtime. |
| 21181 | ;; |
| 21182 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21183 | msdosdjgpp*) |
| 21184 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21185 | # on systems that don't support them. |
| 21186 | lt_prog_compiler_can_build_shared_F77=no |
| 21187 | enable_shared=no |
| 21188 | ;; |
| 21189 | |
| 21190 | sysv4*MP*) |
| 21191 | if test -d /usr/nec; then |
| 21192 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21193 | fi |
| 21194 | ;; |
| 21195 | |
| 21196 | hpux*) |
| 21197 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21198 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21199 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21200 | hppa*64*|ia64*) |
| 21201 | # +Z the default |
| 21202 | ;; |
| 21203 | *) |
| 21204 | lt_prog_compiler_pic_F77='-fPIC' |
| 21205 | ;; |
| 21206 | esac |
| 21207 | ;; |
| 21208 | |
| 21209 | *) |
| 21210 | lt_prog_compiler_pic_F77='-fPIC' |
| 21211 | ;; |
| 21212 | esac |
| 21213 | else |
| 21214 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21215 | case $host_os in |
| 21216 | aix*) |
| 21217 | lt_prog_compiler_wl_F77='-Wl,' |
| 21218 | if test "$host_cpu" = ia64; then |
| 21219 | # AIX 5 now supports IA64 processor |
| 21220 | lt_prog_compiler_static_F77='-Bstatic' |
| 21221 | else |
| 21222 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21223 | fi |
| 21224 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21225 | darwin*) |
| 21226 | # PIC is the default on this platform |
| 21227 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21228 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21229 | xlc*) |
| 21230 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21231 | lt_prog_compiler_wl_F77='-Wl,' |
| 21232 | ;; |
| 21233 | esac |
| 21234 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21235 | |
| 21236 | mingw* | pw32* | os2*) |
| 21237 | # This hack is so that the source file can tell whether it is being |
| 21238 | # built for inclusion in a dll (and should export symbols for example). |
| 21239 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21240 | ;; |
| 21241 | |
| 21242 | hpux9* | hpux10* | hpux11*) |
| 21243 | lt_prog_compiler_wl_F77='-Wl,' |
| 21244 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21245 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21246 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21247 | hppa*64*|ia64*) |
| 21248 | # +Z the default |
| 21249 | ;; |
| 21250 | *) |
| 21251 | lt_prog_compiler_pic_F77='+Z' |
| 21252 | ;; |
| 21253 | esac |
| 21254 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21255 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21256 | ;; |
| 21257 | |
| 21258 | irix5* | irix6* | nonstopux*) |
| 21259 | lt_prog_compiler_wl_F77='-Wl,' |
| 21260 | # PIC (with -KPIC) is the default. |
| 21261 | lt_prog_compiler_static_F77='-non_shared' |
| 21262 | ;; |
| 21263 | |
| 21264 | newsos6) |
| 21265 | lt_prog_compiler_pic_F77='-KPIC' |
| 21266 | lt_prog_compiler_static_F77='-Bstatic' |
| 21267 | ;; |
| 21268 | |
| 21269 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21270 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21271 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21272 | lt_prog_compiler_wl_F77='-Wl,' |
| 21273 | lt_prog_compiler_pic_F77='-KPIC' |
| 21274 | lt_prog_compiler_static_F77='-static' |
| 21275 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21276 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21277 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21278 | # which looks to be a dead project) |
| 21279 | lt_prog_compiler_wl_F77='-Wl,' |
| 21280 | lt_prog_compiler_pic_F77='-fpic' |
| 21281 | lt_prog_compiler_static_F77='-Bstatic' |
| 21282 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21283 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21284 | lt_prog_compiler_wl_F77='-Wl,' |
| 21285 | # All Alpha code is PIC. |
| 21286 | lt_prog_compiler_static_F77='-non_shared' |
| 21287 | ;; |
| 21288 | esac |
| 21289 | ;; |
| 21290 | |
| 21291 | osf3* | osf4* | osf5*) |
| 21292 | lt_prog_compiler_wl_F77='-Wl,' |
| 21293 | # All OSF/1 code is PIC. |
| 21294 | lt_prog_compiler_static_F77='-non_shared' |
| 21295 | ;; |
| 21296 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21297 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21298 | lt_prog_compiler_pic_F77='-KPIC' |
| 21299 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21300 | case $cc_basename in |
| 21301 | f77* | f90* | f95*) |
| 21302 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21303 | *) |
| 21304 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21305 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21306 | ;; |
| 21307 | |
| 21308 | sunos4*) |
| 21309 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21310 | lt_prog_compiler_pic_F77='-PIC' |
| 21311 | lt_prog_compiler_static_F77='-Bstatic' |
| 21312 | ;; |
| 21313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21314 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21315 | lt_prog_compiler_wl_F77='-Wl,' |
| 21316 | lt_prog_compiler_pic_F77='-KPIC' |
| 21317 | lt_prog_compiler_static_F77='-Bstatic' |
| 21318 | ;; |
| 21319 | |
| 21320 | sysv4*MP*) |
| 21321 | if test -d /usr/nec ;then |
| 21322 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21323 | lt_prog_compiler_static_F77='-Bstatic' |
| 21324 | fi |
| 21325 | ;; |
| 21326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21327 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21328 | lt_prog_compiler_wl_F77='-Wl,' |
| 21329 | lt_prog_compiler_pic_F77='-KPIC' |
| 21330 | lt_prog_compiler_static_F77='-Bstatic' |
| 21331 | ;; |
| 21332 | |
| 21333 | unicos*) |
| 21334 | lt_prog_compiler_wl_F77='-Wl,' |
| 21335 | lt_prog_compiler_can_build_shared_F77=no |
| 21336 | ;; |
| 21337 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21338 | uts4*) |
| 21339 | lt_prog_compiler_pic_F77='-pic' |
| 21340 | lt_prog_compiler_static_F77='-Bstatic' |
| 21341 | ;; |
| 21342 | |
| 21343 | *) |
| 21344 | lt_prog_compiler_can_build_shared_F77=no |
| 21345 | ;; |
| 21346 | esac |
| 21347 | fi |
| 21348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21349 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21350 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21351 | |
| 21352 | # |
| 21353 | # Check to make sure the PIC flag actually works. |
| 21354 | # |
| 21355 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21357 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21358 | 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] | 21359 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21361 | else |
| 21362 | lt_prog_compiler_pic_works_F77=no |
| 21363 | ac_outfile=conftest.$ac_objext |
| 21364 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21365 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21366 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21367 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21368 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21369 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21370 | # The option is referenced via a variable to avoid confusing sed. |
| 21371 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21372 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21373 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21374 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 21375 | (eval echo "\"\$as_me:21375: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21376 | (eval "$lt_compile" 2>conftest.err) |
| 21377 | ac_status=$? |
| 21378 | cat conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 21379 | echo "$as_me:21379: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21380 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21381 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21382 | # So say no if there are warnings other than the usual output. |
| 21383 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21384 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21385 | 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] | 21386 | lt_prog_compiler_pic_works_F77=yes |
| 21387 | fi |
| 21388 | fi |
| 21389 | $rm conftest* |
| 21390 | |
| 21391 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21392 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21393 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21394 | |
| 21395 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21396 | case $lt_prog_compiler_pic_F77 in |
| 21397 | "" | " "*) ;; |
| 21398 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21399 | esac |
| 21400 | else |
| 21401 | lt_prog_compiler_pic_F77= |
| 21402 | lt_prog_compiler_can_build_shared_F77=no |
| 21403 | fi |
| 21404 | |
| 21405 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21406 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21407 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21408 | *djgpp*) |
| 21409 | lt_prog_compiler_pic_F77= |
| 21410 | ;; |
| 21411 | *) |
| 21412 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21413 | ;; |
| 21414 | esac |
| 21415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21416 | # |
| 21417 | # Check to make sure the static flag actually works. |
| 21418 | # |
| 21419 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21420 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21421 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21422 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21424 | else |
| 21425 | lt_prog_compiler_static_works_F77=no |
| 21426 | save_LDFLAGS="$LDFLAGS" |
| 21427 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21428 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21429 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21430 | # The linker can only warn and ignore the option if not recognized |
| 21431 | # So say no if there are warnings |
| 21432 | if test -s conftest.err; then |
| 21433 | # Append any errors to the config.log. |
| 21434 | cat conftest.err 1>&5 |
| 21435 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21436 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21437 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21438 | lt_prog_compiler_static_works_F77=yes |
| 21439 | fi |
| 21440 | else |
| 21441 | lt_prog_compiler_static_works_F77=yes |
| 21442 | fi |
| 21443 | fi |
| 21444 | $rm conftest* |
| 21445 | LDFLAGS="$save_LDFLAGS" |
| 21446 | |
| 21447 | fi |
| 21448 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21449 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21450 | |
| 21451 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21452 | : |
| 21453 | else |
| 21454 | lt_prog_compiler_static_F77= |
| 21455 | fi |
| 21456 | |
| 21457 | |
| 21458 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21459 | 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] | 21460 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21462 | else |
| 21463 | lt_cv_prog_compiler_c_o_F77=no |
| 21464 | $rm -r conftest 2>/dev/null |
| 21465 | mkdir conftest |
| 21466 | cd conftest |
| 21467 | mkdir out |
| 21468 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21469 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21470 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21471 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21472 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21473 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21474 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21475 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21476 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21477 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21478 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 21479 | (eval echo "\"\$as_me:21479: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21480 | (eval "$lt_compile" 2>out/conftest.err) |
| 21481 | ac_status=$? |
| 21482 | cat out/conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 21483 | echo "$as_me:21483: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21484 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21485 | then |
| 21486 | # The compiler can only warn and ignore the option if not recognized |
| 21487 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21488 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21489 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21490 | 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] | 21491 | lt_cv_prog_compiler_c_o_F77=yes |
| 21492 | fi |
| 21493 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21494 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21495 | $rm conftest* |
| 21496 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21497 | # template instantiation |
| 21498 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21499 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21500 | cd .. |
| 21501 | rmdir conftest |
| 21502 | $rm conftest* |
| 21503 | |
| 21504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21505 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21506 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21507 | |
| 21508 | |
| 21509 | hard_links="nottested" |
| 21510 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21511 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21512 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21513 | 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] | 21514 | hard_links=yes |
| 21515 | $rm conftest* |
| 21516 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21517 | touch conftest.a |
| 21518 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21519 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21520 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21521 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21522 | if test "$hard_links" = no; then |
| 21523 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21524 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21525 | need_locks=warn |
| 21526 | fi |
| 21527 | else |
| 21528 | need_locks=no |
| 21529 | fi |
| 21530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21531 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21532 | 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] | 21533 | |
| 21534 | runpath_var= |
| 21535 | allow_undefined_flag_F77= |
| 21536 | enable_shared_with_static_runtimes_F77=no |
| 21537 | archive_cmds_F77= |
| 21538 | archive_expsym_cmds_F77= |
| 21539 | old_archive_From_new_cmds_F77= |
| 21540 | old_archive_from_expsyms_cmds_F77= |
| 21541 | export_dynamic_flag_spec_F77= |
| 21542 | whole_archive_flag_spec_F77= |
| 21543 | thread_safe_flag_spec_F77= |
| 21544 | hardcode_libdir_flag_spec_F77= |
| 21545 | hardcode_libdir_flag_spec_ld_F77= |
| 21546 | hardcode_libdir_separator_F77= |
| 21547 | hardcode_direct_F77=no |
| 21548 | hardcode_minus_L_F77=no |
| 21549 | hardcode_shlibpath_var_F77=unsupported |
| 21550 | link_all_deplibs_F77=unknown |
| 21551 | hardcode_automatic_F77=no |
| 21552 | module_cmds_F77= |
| 21553 | module_expsym_cmds_F77= |
| 21554 | always_export_symbols_F77=no |
| 21555 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21556 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21557 | # included in the symbol list |
| 21558 | include_expsyms_F77= |
| 21559 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21560 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21561 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21562 | # as well as any symbol that contains `d'. |
| 21563 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21564 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21565 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21566 | # the symbol is explicitly referenced. Since portable code cannot |
| 21567 | # rely on this symbol name, it's probably fine to never include it in |
| 21568 | # preloaded symbol tables. |
| 21569 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21570 | # Just being paranoid about ensuring that cc_basename is set. |
| 21571 | for cc_temp in $compiler""; do |
| 21572 | case $cc_temp in |
| 21573 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21574 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21575 | \-*) ;; |
| 21576 | *) break;; |
| 21577 | esac |
| 21578 | done |
| 21579 | 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] | 21580 | |
| 21581 | case $host_os in |
| 21582 | cygwin* | mingw* | pw32*) |
| 21583 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21584 | # When not using gcc, we currently assume that we are using |
| 21585 | # Microsoft Visual C++. |
| 21586 | if test "$GCC" != yes; then |
| 21587 | with_gnu_ld=no |
| 21588 | fi |
| 21589 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21590 | interix*) |
| 21591 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21592 | with_gnu_ld=yes |
| 21593 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21594 | openbsd*) |
| 21595 | with_gnu_ld=no |
| 21596 | ;; |
| 21597 | esac |
| 21598 | |
| 21599 | ld_shlibs_F77=yes |
| 21600 | if test "$with_gnu_ld" = yes; then |
| 21601 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21602 | wlarc='${wl}' |
| 21603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21604 | # Set some defaults for GNU ld with shared library support. These |
| 21605 | # are reset later if shared libraries are not supported. Putting them |
| 21606 | # here allows them to be overridden if necessary. |
| 21607 | runpath_var=LD_RUN_PATH |
| 21608 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21609 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21610 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21611 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21612 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21613 | else |
| 21614 | whole_archive_flag_spec_F77= |
| 21615 | fi |
| 21616 | supports_anon_versioning=no |
| 21617 | case `$LD -v 2>/dev/null` in |
| 21618 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21619 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21620 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21621 | *\ 2.11.*) ;; # other 2.11 versions |
| 21622 | *) supports_anon_versioning=yes ;; |
| 21623 | esac |
| 21624 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21625 | # See if GNU ld supports shared libraries. |
| 21626 | case $host_os in |
| 21627 | aix3* | aix4* | aix5*) |
| 21628 | # On AIX/PPC, the GNU linker is very broken |
| 21629 | if test "$host_cpu" != ia64; then |
| 21630 | ld_shlibs_F77=no |
| 21631 | cat <<EOF 1>&2 |
| 21632 | |
| 21633 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21634 | *** to be unable to reliably create shared libraries on AIX. |
| 21635 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21636 | *** really care for shared libraries, you may want to modify your PATH |
| 21637 | *** so that a non-GNU linker is found, and then restart. |
| 21638 | |
| 21639 | EOF |
| 21640 | fi |
| 21641 | ;; |
| 21642 | |
| 21643 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21644 | 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] | 21645 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21646 | hardcode_minus_L_F77=yes |
| 21647 | |
| 21648 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21649 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21650 | # to version 4, is to share data among multiple programs linked |
| 21651 | # with the same dynamic library. Since this doesn't match the |
| 21652 | # behavior of shared libraries on other platforms, we can't use |
| 21653 | # them. |
| 21654 | ld_shlibs_F77=no |
| 21655 | ;; |
| 21656 | |
| 21657 | beos*) |
| 21658 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21659 | allow_undefined_flag_F77=unsupported |
| 21660 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21661 | # support --undefined. This deserves some investigation. FIXME |
| 21662 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21663 | else |
| 21664 | ld_shlibs_F77=no |
| 21665 | fi |
| 21666 | ;; |
| 21667 | |
| 21668 | cygwin* | mingw* | pw32*) |
| 21669 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21670 | # as there is no search path for DLLs. |
| 21671 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21672 | allow_undefined_flag_F77=unsupported |
| 21673 | always_export_symbols_F77=no |
| 21674 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21675 | 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] | 21676 | |
| 21677 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21678 | 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] | 21679 | # If the export-symbols file already is a .def file (1st line |
| 21680 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21681 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21682 | cp $export_symbols $output_objdir/$soname.def; |
| 21683 | else |
| 21684 | echo EXPORTS > $output_objdir/$soname.def; |
| 21685 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21686 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21687 | $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] | 21688 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21689 | ld_shlibs_F77=no |
| 21690 | fi |
| 21691 | ;; |
| 21692 | |
| 21693 | interix3*) |
| 21694 | hardcode_direct_F77=no |
| 21695 | hardcode_shlibpath_var_F77=no |
| 21696 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21697 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21698 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21699 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21700 | # default) and relocated if they conflict, which is a slow very memory |
| 21701 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21702 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21703 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21704 | 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' |
| 21705 | 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' |
| 21706 | ;; |
| 21707 | |
| 21708 | linux*) |
| 21709 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21710 | tmp_addflag= |
| 21711 | case $cc_basename,$host_cpu in |
| 21712 | pgcc*) # Portland Group C compiler |
| 21713 | 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' |
| 21714 | tmp_addflag=' $pic_flag' |
| 21715 | ;; |
| 21716 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21717 | 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' |
| 21718 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21719 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21720 | tmp_addflag=' -i_dynamic' ;; |
| 21721 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21722 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21723 | ifc* | ifort*) # Intel Fortran compiler |
| 21724 | tmp_addflag=' -nofor_main' ;; |
| 21725 | esac |
| 21726 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21727 | |
| 21728 | if test $supports_anon_versioning = yes; then |
| 21729 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21730 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21731 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21732 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21733 | fi |
| 21734 | else |
| 21735 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21736 | fi |
| 21737 | ;; |
| 21738 | |
| 21739 | netbsd*) |
| 21740 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21741 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21742 | wlarc= |
| 21743 | else |
| 21744 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21745 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21746 | fi |
| 21747 | ;; |
| 21748 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21749 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21750 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21751 | ld_shlibs_F77=no |
| 21752 | cat <<EOF 1>&2 |
| 21753 | |
| 21754 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21755 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21756 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21757 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21758 | *** your PATH or compiler configuration so that the native linker is |
| 21759 | *** used, and then restart. |
| 21760 | |
| 21761 | EOF |
| 21762 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21763 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21764 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21765 | else |
| 21766 | ld_shlibs_F77=no |
| 21767 | fi |
| 21768 | ;; |
| 21769 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21770 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21771 | case `$LD -v 2>&1` in |
| 21772 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 21773 | ld_shlibs_F77=no |
| 21774 | cat <<_LT_EOF 1>&2 |
| 21775 | |
| 21776 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21777 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21778 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21779 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21780 | *** your PATH or compiler configuration so that the native linker is |
| 21781 | *** used, and then restart. |
| 21782 | |
| 21783 | _LT_EOF |
| 21784 | ;; |
| 21785 | *) |
| 21786 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21787 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 21788 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 21789 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 21790 | else |
| 21791 | ld_shlibs_F77=no |
| 21792 | fi |
| 21793 | ;; |
| 21794 | esac |
| 21795 | ;; |
| 21796 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21797 | sunos4*) |
| 21798 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21799 | wlarc= |
| 21800 | hardcode_direct_F77=yes |
| 21801 | hardcode_shlibpath_var_F77=no |
| 21802 | ;; |
| 21803 | |
| 21804 | *) |
| 21805 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21806 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21807 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21808 | else |
| 21809 | ld_shlibs_F77=no |
| 21810 | fi |
| 21811 | ;; |
| 21812 | esac |
| 21813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21814 | if test "$ld_shlibs_F77" = no; then |
| 21815 | runpath_var= |
| 21816 | hardcode_libdir_flag_spec_F77= |
| 21817 | export_dynamic_flag_spec_F77= |
| 21818 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21819 | fi |
| 21820 | else |
| 21821 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21822 | case $host_os in |
| 21823 | aix3*) |
| 21824 | allow_undefined_flag_F77=unsupported |
| 21825 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21826 | 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] | 21827 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21828 | # are no directories specified by -L. |
| 21829 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21830 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21831 | # Neither direct hardcoding nor static linking is supported with a |
| 21832 | # broken collect2. |
| 21833 | hardcode_direct_F77=unsupported |
| 21834 | fi |
| 21835 | ;; |
| 21836 | |
| 21837 | aix4* | aix5*) |
| 21838 | if test "$host_cpu" = ia64; then |
| 21839 | # On IA64, the linker does run time linking by default, so we don't |
| 21840 | # have to do anything special. |
| 21841 | aix_use_runtimelinking=no |
| 21842 | exp_sym_flag='-Bexport' |
| 21843 | no_entry_flag="" |
| 21844 | else |
| 21845 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21846 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21847 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21848 | 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' |
| 21849 | else |
| 21850 | 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' |
| 21851 | fi |
| 21852 | aix_use_runtimelinking=no |
| 21853 | |
| 21854 | # Test if we are trying to use run time linking or normal |
| 21855 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21856 | # need to do runtime linking. |
| 21857 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21858 | for ld_flag in $LDFLAGS; do |
| 21859 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21860 | aix_use_runtimelinking=yes |
| 21861 | break |
| 21862 | fi |
| 21863 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21864 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21865 | esac |
| 21866 | |
| 21867 | exp_sym_flag='-bexport' |
| 21868 | no_entry_flag='-bnoentry' |
| 21869 | fi |
| 21870 | |
| 21871 | # When large executables or shared objects are built, AIX ld can |
| 21872 | # have problems creating the table of contents. If linking a library |
| 21873 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21874 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21875 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21876 | |
| 21877 | archive_cmds_F77='' |
| 21878 | hardcode_direct_F77=yes |
| 21879 | hardcode_libdir_separator_F77=':' |
| 21880 | link_all_deplibs_F77=yes |
| 21881 | |
| 21882 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21883 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21884 | # We only want to do this on AIX 4.2 and lower, the check |
| 21885 | # below for broken collect2 doesn't work under 4.3+ |
| 21886 | collect2name=`${CC} -print-prog-name=collect2` |
| 21887 | if test -f "$collect2name" && \ |
| 21888 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21889 | then |
| 21890 | # We have reworked collect2 |
| 21891 | hardcode_direct_F77=yes |
| 21892 | else |
| 21893 | # We have old collect2 |
| 21894 | hardcode_direct_F77=unsupported |
| 21895 | # It fails to find uninstalled libraries when the uninstalled |
| 21896 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21897 | # to unsupported forces relinking |
| 21898 | hardcode_minus_L_F77=yes |
| 21899 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21900 | hardcode_libdir_separator_F77= |
| 21901 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21902 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21903 | esac |
| 21904 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21905 | if test "$aix_use_runtimelinking" = yes; then |
| 21906 | shared_flag="$shared_flag "'${wl}-G' |
| 21907 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21908 | else |
| 21909 | # not using gcc |
| 21910 | if test "$host_cpu" = ia64; then |
| 21911 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21912 | # chokes on -Wl,-G. The following line is correct: |
| 21913 | shared_flag='-G' |
| 21914 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21915 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21916 | shared_flag='${wl}-G' |
| 21917 | else |
| 21918 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21919 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21920 | fi |
| 21921 | fi |
| 21922 | |
| 21923 | # It seems that -bexpall does not export symbols beginning with |
| 21924 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21925 | always_export_symbols_F77=yes |
| 21926 | if test "$aix_use_runtimelinking" = yes; then |
| 21927 | # Warning - without using the other runtime loading flags (-brtl), |
| 21928 | # -berok will link without error, but may produce a broken library. |
| 21929 | allow_undefined_flag_F77='-berok' |
| 21930 | # Determine the default libpath from the value encoded in an empty executable. |
| 21931 | cat >conftest.$ac_ext <<_ACEOF |
| 21932 | program main |
| 21933 | |
| 21934 | end |
| 21935 | _ACEOF |
| 21936 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21937 | if { (ac_try="$ac_link" |
| 21938 | case "(($ac_try" in |
| 21939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21940 | *) ac_try_echo=$ac_try;; |
| 21941 | esac |
| 21942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21943 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21944 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21946 | rm -f conftest.er1 |
| 21947 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 21949 | (exit $ac_status); } && |
| 21950 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21951 | { (case "(($ac_try" in |
| 21952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21953 | *) ac_try_echo=$ac_try;; |
| 21954 | esac |
| 21955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21956 | (eval "$ac_try") 2>&5 |
| 21957 | ac_status=$? |
| 21958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21959 | (exit $ac_status); }; } && |
| 21960 | { ac_try='test -s conftest$ac_exeext' |
| 21961 | { (case "(($ac_try" in |
| 21962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21963 | *) ac_try_echo=$ac_try;; |
| 21964 | esac |
| 21965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21966 | (eval "$ac_try") 2>&5 |
| 21967 | ac_status=$? |
| 21968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21969 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21970 | |
| 21971 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21972 | }'` |
| 21973 | # Check for a 64-bit object if we didn't find anything. |
| 21974 | 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; } |
| 21975 | }'`; fi |
| 21976 | else |
| 21977 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21980 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21981 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21982 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 21983 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21984 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21985 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21986 | |
| 21987 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21988 | 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] | 21989 | else |
| 21990 | if test "$host_cpu" = ia64; then |
| 21991 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 21992 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21993 | 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] | 21994 | else |
| 21995 | # Determine the default libpath from the value encoded in an empty executable. |
| 21996 | cat >conftest.$ac_ext <<_ACEOF |
| 21997 | program main |
| 21998 | |
| 21999 | end |
| 22000 | _ACEOF |
| 22001 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22002 | if { (ac_try="$ac_link" |
| 22003 | case "(($ac_try" in |
| 22004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22005 | *) ac_try_echo=$ac_try;; |
| 22006 | esac |
| 22007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22008 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22009 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22011 | rm -f conftest.er1 |
| 22012 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 22014 | (exit $ac_status); } && |
| 22015 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22016 | { (case "(($ac_try" in |
| 22017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22018 | *) ac_try_echo=$ac_try;; |
| 22019 | esac |
| 22020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22021 | (eval "$ac_try") 2>&5 |
| 22022 | ac_status=$? |
| 22023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22024 | (exit $ac_status); }; } && |
| 22025 | { ac_try='test -s conftest$ac_exeext' |
| 22026 | { (case "(($ac_try" in |
| 22027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22028 | *) ac_try_echo=$ac_try;; |
| 22029 | esac |
| 22030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22031 | (eval "$ac_try") 2>&5 |
| 22032 | ac_status=$? |
| 22033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22034 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22035 | |
| 22036 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22037 | }'` |
| 22038 | # Check for a 64-bit object if we didn't find anything. |
| 22039 | 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; } |
| 22040 | }'`; fi |
| 22041 | else |
| 22042 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22045 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22046 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22047 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 22048 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22049 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22050 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22051 | |
| 22052 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22053 | # Warning - without using the other run time loading flags, |
| 22054 | # -berok will link without error, but may produce a broken library. |
| 22055 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22056 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22057 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22058 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22059 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22060 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22061 | 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] | 22062 | fi |
| 22063 | fi |
| 22064 | ;; |
| 22065 | |
| 22066 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22067 | 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] | 22068 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22069 | hardcode_minus_L_F77=yes |
| 22070 | # see comment about different semantics on the GNU ld section |
| 22071 | ld_shlibs_F77=no |
| 22072 | ;; |
| 22073 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22074 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22075 | export_dynamic_flag_spec_F77=-rdynamic |
| 22076 | ;; |
| 22077 | |
| 22078 | cygwin* | mingw* | pw32*) |
| 22079 | # When not using gcc, we currently assume that we are using |
| 22080 | # Microsoft Visual C++. |
| 22081 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22082 | # no search path for DLLs. |
| 22083 | hardcode_libdir_flag_spec_F77=' ' |
| 22084 | allow_undefined_flag_F77=unsupported |
| 22085 | # Tell ltmain to make .lib files, not .a files. |
| 22086 | libext=lib |
| 22087 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22088 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22089 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22090 | 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] | 22091 | # The linker will automatically build a .lib file if we build a DLL. |
| 22092 | old_archive_From_new_cmds_F77='true' |
| 22093 | # FIXME: Should let the user specify the lib program. |
| 22094 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22095 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22096 | enable_shared_with_static_runtimes_F77=yes |
| 22097 | ;; |
| 22098 | |
| 22099 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22100 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22101 | rhapsody* | darwin1.[012]) |
| 22102 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22103 | ;; |
| 22104 | *) # Darwin 1.3 on |
| 22105 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22106 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22107 | else |
| 22108 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22109 | 10.[012]) |
| 22110 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22111 | ;; |
| 22112 | 10.*) |
| 22113 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22114 | ;; |
| 22115 | esac |
| 22116 | fi |
| 22117 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22118 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22119 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22120 | hardcode_direct_F77=no |
| 22121 | hardcode_automatic_F77=yes |
| 22122 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22123 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22124 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22125 | if test "$GCC" = yes ; then |
| 22126 | output_verbose_link_cmd='echo' |
| 22127 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22128 | 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] | 22129 | # 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] | 22130 | 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}' |
| 22131 | 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] | 22132 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22133 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22134 | xlc*) |
| 22135 | output_verbose_link_cmd='echo' |
| 22136 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22137 | 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] | 22138 | # 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] | 22139 | 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}' |
| 22140 | 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] | 22141 | ;; |
| 22142 | *) |
| 22143 | ld_shlibs_F77=no |
| 22144 | ;; |
| 22145 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22146 | fi |
| 22147 | ;; |
| 22148 | |
| 22149 | dgux*) |
| 22150 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22151 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22152 | hardcode_shlibpath_var_F77=no |
| 22153 | ;; |
| 22154 | |
| 22155 | freebsd1*) |
| 22156 | ld_shlibs_F77=no |
| 22157 | ;; |
| 22158 | |
| 22159 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22160 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22161 | # does not break anything, and helps significantly (at the cost of a little |
| 22162 | # extra space). |
| 22163 | freebsd2.2*) |
| 22164 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22165 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22166 | hardcode_direct_F77=yes |
| 22167 | hardcode_shlibpath_var_F77=no |
| 22168 | ;; |
| 22169 | |
| 22170 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22171 | freebsd2*) |
| 22172 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22173 | hardcode_direct_F77=yes |
| 22174 | hardcode_minus_L_F77=yes |
| 22175 | hardcode_shlibpath_var_F77=no |
| 22176 | ;; |
| 22177 | |
| 22178 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22179 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22180 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22181 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22182 | hardcode_direct_F77=yes |
| 22183 | hardcode_shlibpath_var_F77=no |
| 22184 | ;; |
| 22185 | |
| 22186 | hpux9*) |
| 22187 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22188 | 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] | 22189 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22190 | 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] | 22191 | fi |
| 22192 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22193 | hardcode_libdir_separator_F77=: |
| 22194 | hardcode_direct_F77=yes |
| 22195 | |
| 22196 | # hardcode_minus_L: Not really in the search PATH, |
| 22197 | # but as the default location of the library. |
| 22198 | hardcode_minus_L_F77=yes |
| 22199 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22200 | ;; |
| 22201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22202 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22203 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22204 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22205 | else |
| 22206 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22207 | fi |
| 22208 | if test "$with_gnu_ld" = no; then |
| 22209 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22210 | hardcode_libdir_separator_F77=: |
| 22211 | |
| 22212 | hardcode_direct_F77=yes |
| 22213 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22214 | |
| 22215 | # hardcode_minus_L: Not really in the search PATH, |
| 22216 | # but as the default location of the library. |
| 22217 | hardcode_minus_L_F77=yes |
| 22218 | fi |
| 22219 | ;; |
| 22220 | |
| 22221 | hpux11*) |
| 22222 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22223 | case $host_cpu in |
| 22224 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22225 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22226 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22227 | ia64*) |
| 22228 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22229 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22230 | *) |
| 22231 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22232 | ;; |
| 22233 | esac |
| 22234 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22235 | case $host_cpu in |
| 22236 | hppa*64*) |
| 22237 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22238 | ;; |
| 22239 | ia64*) |
| 22240 | 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] | 22241 | ;; |
| 22242 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22243 | 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] | 22244 | ;; |
| 22245 | esac |
| 22246 | fi |
| 22247 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22248 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22249 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22251 | case $host_cpu in |
| 22252 | hppa*64*|ia64*) |
| 22253 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22254 | hardcode_direct_F77=no |
| 22255 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22256 | ;; |
| 22257 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22258 | hardcode_direct_F77=yes |
| 22259 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22260 | |
| 22261 | # hardcode_minus_L: Not really in the search PATH, |
| 22262 | # but as the default location of the library. |
| 22263 | hardcode_minus_L_F77=yes |
| 22264 | ;; |
| 22265 | esac |
| 22266 | fi |
| 22267 | ;; |
| 22268 | |
| 22269 | irix5* | irix6* | nonstopux*) |
| 22270 | if test "$GCC" = yes; then |
| 22271 | 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' |
| 22272 | else |
| 22273 | 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' |
| 22274 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22275 | fi |
| 22276 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22277 | hardcode_libdir_separator_F77=: |
| 22278 | link_all_deplibs_F77=yes |
| 22279 | ;; |
| 22280 | |
| 22281 | netbsd*) |
| 22282 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22283 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22284 | else |
| 22285 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22286 | fi |
| 22287 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22288 | hardcode_direct_F77=yes |
| 22289 | hardcode_shlibpath_var_F77=no |
| 22290 | ;; |
| 22291 | |
| 22292 | newsos6) |
| 22293 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22294 | hardcode_direct_F77=yes |
| 22295 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22296 | hardcode_libdir_separator_F77=: |
| 22297 | hardcode_shlibpath_var_F77=no |
| 22298 | ;; |
| 22299 | |
| 22300 | openbsd*) |
| 22301 | hardcode_direct_F77=yes |
| 22302 | hardcode_shlibpath_var_F77=no |
| 22303 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22304 | 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] | 22305 | 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] | 22306 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22307 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22308 | else |
| 22309 | case $host_os in |
| 22310 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22311 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22312 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22313 | ;; |
| 22314 | *) |
| 22315 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22316 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22317 | ;; |
| 22318 | esac |
| 22319 | fi |
| 22320 | ;; |
| 22321 | |
| 22322 | os2*) |
| 22323 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22324 | hardcode_minus_L_F77=yes |
| 22325 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22326 | 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] | 22327 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22328 | ;; |
| 22329 | |
| 22330 | osf3*) |
| 22331 | if test "$GCC" = yes; then |
| 22332 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22333 | 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' |
| 22334 | else |
| 22335 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22336 | 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' |
| 22337 | fi |
| 22338 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22339 | hardcode_libdir_separator_F77=: |
| 22340 | ;; |
| 22341 | |
| 22342 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22343 | if test "$GCC" = yes; then |
| 22344 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22345 | 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' |
| 22346 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22347 | else |
| 22348 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22349 | 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] | 22350 | 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] | 22351 | $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] | 22352 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22353 | # Both c and cxx compiler support -rpath directly |
| 22354 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22355 | fi |
| 22356 | hardcode_libdir_separator_F77=: |
| 22357 | ;; |
| 22358 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22359 | solaris*) |
| 22360 | no_undefined_flag_F77=' -z text' |
| 22361 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22362 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22363 | 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] | 22364 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22365 | $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] | 22366 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22367 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22368 | 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] | 22369 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22370 | $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] | 22371 | fi |
| 22372 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22373 | hardcode_shlibpath_var_F77=no |
| 22374 | case $host_os in |
| 22375 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22376 | *) |
| 22377 | # The compiler driver will combine linker options so we |
| 22378 | # cannot just pass the convience library names through |
| 22379 | # without $wl, iff we do not link with $LD. |
| 22380 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22381 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22382 | case $wlarc in |
| 22383 | '') |
| 22384 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22385 | *) |
| 22386 | 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' ;; |
| 22387 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22388 | esac |
| 22389 | link_all_deplibs_F77=yes |
| 22390 | ;; |
| 22391 | |
| 22392 | sunos4*) |
| 22393 | if test "x$host_vendor" = xsequent; then |
| 22394 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22395 | # files that make .init and .fini sections work. |
| 22396 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22397 | else |
| 22398 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22399 | fi |
| 22400 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22401 | hardcode_direct_F77=yes |
| 22402 | hardcode_minus_L_F77=yes |
| 22403 | hardcode_shlibpath_var_F77=no |
| 22404 | ;; |
| 22405 | |
| 22406 | sysv4) |
| 22407 | case $host_vendor in |
| 22408 | sni) |
| 22409 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22410 | hardcode_direct_F77=yes # is this really true??? |
| 22411 | ;; |
| 22412 | siemens) |
| 22413 | ## LD is ld it makes a PLAMLIB |
| 22414 | ## CC just makes a GrossModule. |
| 22415 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22416 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22417 | hardcode_direct_F77=no |
| 22418 | ;; |
| 22419 | motorola) |
| 22420 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22421 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22422 | ;; |
| 22423 | esac |
| 22424 | runpath_var='LD_RUN_PATH' |
| 22425 | hardcode_shlibpath_var_F77=no |
| 22426 | ;; |
| 22427 | |
| 22428 | sysv4.3*) |
| 22429 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22430 | hardcode_shlibpath_var_F77=no |
| 22431 | export_dynamic_flag_spec_F77='-Bexport' |
| 22432 | ;; |
| 22433 | |
| 22434 | sysv4*MP*) |
| 22435 | if test -d /usr/nec; then |
| 22436 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22437 | hardcode_shlibpath_var_F77=no |
| 22438 | runpath_var=LD_RUN_PATH |
| 22439 | hardcode_runpath_var=yes |
| 22440 | ld_shlibs_F77=yes |
| 22441 | fi |
| 22442 | ;; |
| 22443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22444 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22445 | no_undefined_flag_F77='${wl}-z,text' |
| 22446 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22447 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22448 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22449 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22450 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22451 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22452 | 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] | 22453 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22454 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22455 | 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] | 22456 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22457 | ;; |
| 22458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22459 | sysv5* | sco3.2v5* | sco5v6*) |
| 22460 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22461 | # link with -lc, and that would cause any symbols used from libc to |
| 22462 | # always be unresolved, which means just about no library would |
| 22463 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22464 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22465 | # as -z defs. |
| 22466 | no_undefined_flag_F77='${wl}-z,text' |
| 22467 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22468 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22469 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22470 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22471 | hardcode_libdir_separator_F77=':' |
| 22472 | link_all_deplibs_F77=yes |
| 22473 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22474 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22475 | |
| 22476 | if test "$GCC" = yes; then |
| 22477 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22478 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22479 | else |
| 22480 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22481 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22482 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22483 | ;; |
| 22484 | |
| 22485 | uts4*) |
| 22486 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22487 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22488 | hardcode_shlibpath_var_F77=no |
| 22489 | ;; |
| 22490 | |
| 22491 | *) |
| 22492 | ld_shlibs_F77=no |
| 22493 | ;; |
| 22494 | esac |
| 22495 | fi |
| 22496 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22497 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22498 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22499 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22500 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22501 | # |
| 22502 | # Do we need to explicitly link libc? |
| 22503 | # |
| 22504 | case "x$archive_cmds_need_lc_F77" in |
| 22505 | x|xyes) |
| 22506 | # Assume -lc should be added |
| 22507 | archive_cmds_need_lc_F77=yes |
| 22508 | |
| 22509 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22510 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22511 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22512 | # FIXME: we may have to deal with multi-command sequences. |
| 22513 | ;; |
| 22514 | '$CC '*) |
| 22515 | # Test whether the compiler implicitly links with -lc since on some |
| 22516 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22517 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22518 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22519 | 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] | 22520 | $rm conftest* |
| 22521 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22522 | |
| 22523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22524 | (eval $ac_compile) 2>&5 |
| 22525 | ac_status=$? |
| 22526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22527 | (exit $ac_status); } 2>conftest.err; then |
| 22528 | soname=conftest |
| 22529 | lib=conftest |
| 22530 | libobjs=conftest.$ac_objext |
| 22531 | deplibs= |
| 22532 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22533 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22534 | compiler_flags=-v |
| 22535 | linker_flags=-v |
| 22536 | verstring= |
| 22537 | output_objdir=. |
| 22538 | libname=conftest |
| 22539 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22540 | allow_undefined_flag_F77= |
| 22541 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22542 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22543 | ac_status=$? |
| 22544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22545 | (exit $ac_status); } |
| 22546 | then |
| 22547 | archive_cmds_need_lc_F77=no |
| 22548 | else |
| 22549 | archive_cmds_need_lc_F77=yes |
| 22550 | fi |
| 22551 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22552 | else |
| 22553 | cat conftest.err 1>&5 |
| 22554 | fi |
| 22555 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22556 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22557 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22558 | ;; |
| 22559 | esac |
| 22560 | fi |
| 22561 | ;; |
| 22562 | esac |
| 22563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22564 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22565 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22566 | library_names_spec= |
| 22567 | libname_spec='lib$name' |
| 22568 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22569 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22570 | postinstall_cmds= |
| 22571 | postuninstall_cmds= |
| 22572 | finish_cmds= |
| 22573 | finish_eval= |
| 22574 | shlibpath_var= |
| 22575 | shlibpath_overrides_runpath=unknown |
| 22576 | version_type=none |
| 22577 | dynamic_linker="$host_os ld.so" |
| 22578 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22579 | if test "$GCC" = yes; then |
| 22580 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22581 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22582 | # if the path contains ";" then we assume it to be the separator |
| 22583 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22584 | # assumed that no part of a normal pathname contains ";" but that should |
| 22585 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22586 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22587 | else |
| 22588 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22589 | fi |
| 22590 | else |
| 22591 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22592 | fi |
| 22593 | need_lib_prefix=unknown |
| 22594 | hardcode_into_libs=no |
| 22595 | |
| 22596 | # when you set need_version to no, make sure it does not cause -set_version |
| 22597 | # flags to be left without arguments |
| 22598 | need_version=unknown |
| 22599 | |
| 22600 | case $host_os in |
| 22601 | aix3*) |
| 22602 | version_type=linux |
| 22603 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22604 | shlibpath_var=LIBPATH |
| 22605 | |
| 22606 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22607 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22608 | ;; |
| 22609 | |
| 22610 | aix4* | aix5*) |
| 22611 | version_type=linux |
| 22612 | need_lib_prefix=no |
| 22613 | need_version=no |
| 22614 | hardcode_into_libs=yes |
| 22615 | if test "$host_cpu" = ia64; then |
| 22616 | # AIX 5 supports IA64 |
| 22617 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22618 | shlibpath_var=LD_LIBRARY_PATH |
| 22619 | else |
| 22620 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22621 | # for dependence libraries. The import file would start with |
| 22622 | # the line `#! .'. This would cause the generated library to |
| 22623 | # depend on `.', always an invalid library. This was fixed in |
| 22624 | # development snapshots of GCC prior to 3.0. |
| 22625 | case $host_os in |
| 22626 | aix4 | aix4.[01] | aix4.[01].*) |
| 22627 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22628 | echo ' yes ' |
| 22629 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22630 | : |
| 22631 | else |
| 22632 | can_build_shared=no |
| 22633 | fi |
| 22634 | ;; |
| 22635 | esac |
| 22636 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22637 | # soname into executable. Probably we can add versioning support to |
| 22638 | # collect2, so additional links can be useful in future. |
| 22639 | if test "$aix_use_runtimelinking" = yes; then |
| 22640 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22641 | # instead of lib<name>.a to let people know that these are not |
| 22642 | # typical AIX shared libraries. |
| 22643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22644 | else |
| 22645 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22646 | # and later when we are not doing run time linking. |
| 22647 | library_names_spec='${libname}${release}.a $libname.a' |
| 22648 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22649 | fi |
| 22650 | shlibpath_var=LIBPATH |
| 22651 | fi |
| 22652 | ;; |
| 22653 | |
| 22654 | amigaos*) |
| 22655 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22656 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22657 | 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] | 22658 | ;; |
| 22659 | |
| 22660 | beos*) |
| 22661 | library_names_spec='${libname}${shared_ext}' |
| 22662 | dynamic_linker="$host_os ld.so" |
| 22663 | shlibpath_var=LIBRARY_PATH |
| 22664 | ;; |
| 22665 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22666 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22667 | version_type=linux |
| 22668 | need_version=no |
| 22669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22670 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22671 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22672 | shlibpath_var=LD_LIBRARY_PATH |
| 22673 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22674 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22675 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22676 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22677 | # libtool to hard-code these into programs |
| 22678 | ;; |
| 22679 | |
| 22680 | cygwin* | mingw* | pw32*) |
| 22681 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22682 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22683 | need_version=no |
| 22684 | need_lib_prefix=no |
| 22685 | |
| 22686 | case $GCC,$host_os in |
| 22687 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22688 | library_names_spec='$libname.dll.a' |
| 22689 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22690 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22691 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22692 | dldir=$destdir/`dirname \$dlpath`~ |
| 22693 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22694 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22695 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22696 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22697 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22698 | $rm \$dlpath' |
| 22699 | shlibpath_overrides_runpath=yes |
| 22700 | |
| 22701 | case $host_os in |
| 22702 | cygwin*) |
| 22703 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22704 | 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] | 22705 | 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] | 22706 | ;; |
| 22707 | mingw*) |
| 22708 | # MinGW DLLs use traditional 'lib' prefix |
| 22709 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22710 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22711 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22712 | # It is most probably a Windows format PATH printed by |
| 22713 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22714 | # path with ; separators, and with drive letters. We can handle the |
| 22715 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22716 | # especially as we might pass files found there to a mingw objdump, |
| 22717 | # which wouldn't understand a cygwinified path. Ahh. |
| 22718 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22719 | else |
| 22720 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22721 | fi |
| 22722 | ;; |
| 22723 | pw32*) |
| 22724 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22725 | 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] | 22726 | ;; |
| 22727 | esac |
| 22728 | ;; |
| 22729 | |
| 22730 | *) |
| 22731 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22732 | ;; |
| 22733 | esac |
| 22734 | dynamic_linker='Win32 ld.exe' |
| 22735 | # FIXME: first we should search . and the directory the executable is in |
| 22736 | shlibpath_var=PATH |
| 22737 | ;; |
| 22738 | |
| 22739 | darwin* | rhapsody*) |
| 22740 | dynamic_linker="$host_os dyld" |
| 22741 | version_type=darwin |
| 22742 | need_lib_prefix=no |
| 22743 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22744 | 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] | 22745 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22746 | shlibpath_overrides_runpath=yes |
| 22747 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 22748 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22749 | # 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] | 22750 | if test "$GCC" = yes; then |
| 22751 | 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"` |
| 22752 | else |
| 22753 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22754 | fi |
| 22755 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22756 | ;; |
| 22757 | |
| 22758 | dgux*) |
| 22759 | version_type=linux |
| 22760 | need_lib_prefix=no |
| 22761 | need_version=no |
| 22762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22763 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22764 | shlibpath_var=LD_LIBRARY_PATH |
| 22765 | ;; |
| 22766 | |
| 22767 | freebsd1*) |
| 22768 | dynamic_linker=no |
| 22769 | ;; |
| 22770 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22771 | kfreebsd*-gnu) |
| 22772 | version_type=linux |
| 22773 | need_lib_prefix=no |
| 22774 | need_version=no |
| 22775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22776 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22777 | shlibpath_var=LD_LIBRARY_PATH |
| 22778 | shlibpath_overrides_runpath=no |
| 22779 | hardcode_into_libs=yes |
| 22780 | dynamic_linker='GNU ld.so' |
| 22781 | ;; |
| 22782 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22783 | freebsd* | dragonfly*) |
| 22784 | # DragonFly does not have aout. When/if they implement a new |
| 22785 | # versioning mechanism, adjust this. |
| 22786 | if test -x /usr/bin/objformat; then |
| 22787 | objformat=`/usr/bin/objformat` |
| 22788 | else |
| 22789 | case $host_os in |
| 22790 | freebsd[123]*) objformat=aout ;; |
| 22791 | *) objformat=elf ;; |
| 22792 | esac |
| 22793 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22794 | version_type=freebsd-$objformat |
| 22795 | case $version_type in |
| 22796 | freebsd-elf*) |
| 22797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22798 | need_version=no |
| 22799 | need_lib_prefix=no |
| 22800 | ;; |
| 22801 | freebsd-*) |
| 22802 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22803 | need_version=yes |
| 22804 | ;; |
| 22805 | esac |
| 22806 | shlibpath_var=LD_LIBRARY_PATH |
| 22807 | case $host_os in |
| 22808 | freebsd2*) |
| 22809 | shlibpath_overrides_runpath=yes |
| 22810 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22811 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22812 | shlibpath_overrides_runpath=yes |
| 22813 | hardcode_into_libs=yes |
| 22814 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22815 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 22816 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22817 | shlibpath_overrides_runpath=no |
| 22818 | hardcode_into_libs=yes |
| 22819 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22820 | freebsd*) # from 4.6 on |
| 22821 | shlibpath_overrides_runpath=yes |
| 22822 | hardcode_into_libs=yes |
| 22823 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22824 | esac |
| 22825 | ;; |
| 22826 | |
| 22827 | gnu*) |
| 22828 | version_type=linux |
| 22829 | need_lib_prefix=no |
| 22830 | need_version=no |
| 22831 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22832 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22833 | shlibpath_var=LD_LIBRARY_PATH |
| 22834 | hardcode_into_libs=yes |
| 22835 | ;; |
| 22836 | |
| 22837 | hpux9* | hpux10* | hpux11*) |
| 22838 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22839 | # link against other versions. |
| 22840 | version_type=sunos |
| 22841 | need_lib_prefix=no |
| 22842 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22843 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22844 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22845 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22846 | hardcode_into_libs=yes |
| 22847 | dynamic_linker="$host_os dld.so" |
| 22848 | shlibpath_var=LD_LIBRARY_PATH |
| 22849 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22851 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22852 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22853 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22854 | else |
| 22855 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22856 | fi |
| 22857 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22858 | ;; |
| 22859 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22860 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22861 | hardcode_into_libs=yes |
| 22862 | dynamic_linker="$host_os dld.sl" |
| 22863 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22864 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22866 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22867 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22868 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22869 | ;; |
| 22870 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22871 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22872 | dynamic_linker="$host_os dld.sl" |
| 22873 | shlibpath_var=SHLIB_PATH |
| 22874 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22876 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22877 | ;; |
| 22878 | esac |
| 22879 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22880 | postinstall_cmds='chmod 555 $lib' |
| 22881 | ;; |
| 22882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22883 | interix3*) |
| 22884 | version_type=linux |
| 22885 | need_lib_prefix=no |
| 22886 | need_version=no |
| 22887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22888 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22889 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 22890 | shlibpath_var=LD_LIBRARY_PATH |
| 22891 | shlibpath_overrides_runpath=no |
| 22892 | hardcode_into_libs=yes |
| 22893 | ;; |
| 22894 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22895 | irix5* | irix6* | nonstopux*) |
| 22896 | case $host_os in |
| 22897 | nonstopux*) version_type=nonstopux ;; |
| 22898 | *) |
| 22899 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22900 | version_type=linux |
| 22901 | else |
| 22902 | version_type=irix |
| 22903 | fi ;; |
| 22904 | esac |
| 22905 | need_lib_prefix=no |
| 22906 | need_version=no |
| 22907 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22909 | case $host_os in |
| 22910 | irix5* | nonstopux*) |
| 22911 | libsuff= shlibsuff= |
| 22912 | ;; |
| 22913 | *) |
| 22914 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22915 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22916 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22917 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22918 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22919 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22920 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22921 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22922 | esac |
| 22923 | ;; |
| 22924 | esac |
| 22925 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22926 | shlibpath_overrides_runpath=no |
| 22927 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22928 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22929 | hardcode_into_libs=yes |
| 22930 | ;; |
| 22931 | |
| 22932 | # No shared lib support for Linux oldld, aout, or coff. |
| 22933 | linux*oldld* | linux*aout* | linux*coff*) |
| 22934 | dynamic_linker=no |
| 22935 | ;; |
| 22936 | |
| 22937 | # This must be Linux ELF. |
| 22938 | linux*) |
| 22939 | version_type=linux |
| 22940 | need_lib_prefix=no |
| 22941 | need_version=no |
| 22942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22943 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22944 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22945 | shlibpath_var=LD_LIBRARY_PATH |
| 22946 | shlibpath_overrides_runpath=no |
| 22947 | # This implies no fast_install, which is unacceptable. |
| 22948 | # Some rework will be needed to allow for fast_install |
| 22949 | # before this can be enabled. |
| 22950 | hardcode_into_libs=yes |
| 22951 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22952 | # Append ld.so.conf contents to the search path |
| 22953 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22954 | 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] | 22955 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22956 | fi |
| 22957 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22958 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22959 | # powerpc, because MkLinux only supported shared libraries with the |
| 22960 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22961 | # most powerpc-linux boxes support dynamic linking these days and |
| 22962 | # people can always --disable-shared, the test was removed, and we |
| 22963 | # assume the GNU/Linux dynamic linker is in use. |
| 22964 | dynamic_linker='GNU/Linux ld.so' |
| 22965 | ;; |
| 22966 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22967 | knetbsd*-gnu) |
| 22968 | version_type=linux |
| 22969 | need_lib_prefix=no |
| 22970 | need_version=no |
| 22971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22973 | shlibpath_var=LD_LIBRARY_PATH |
| 22974 | shlibpath_overrides_runpath=no |
| 22975 | hardcode_into_libs=yes |
| 22976 | dynamic_linker='GNU ld.so' |
| 22977 | ;; |
| 22978 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22979 | netbsd*) |
| 22980 | version_type=sunos |
| 22981 | need_lib_prefix=no |
| 22982 | need_version=no |
| 22983 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22985 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22986 | dynamic_linker='NetBSD (a.out) ld.so' |
| 22987 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22988 | 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] | 22989 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22990 | dynamic_linker='NetBSD ld.elf_so' |
| 22991 | fi |
| 22992 | shlibpath_var=LD_LIBRARY_PATH |
| 22993 | shlibpath_overrides_runpath=yes |
| 22994 | hardcode_into_libs=yes |
| 22995 | ;; |
| 22996 | |
| 22997 | newsos6) |
| 22998 | version_type=linux |
| 22999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23000 | shlibpath_var=LD_LIBRARY_PATH |
| 23001 | shlibpath_overrides_runpath=yes |
| 23002 | ;; |
| 23003 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23004 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23005 | version_type=linux |
| 23006 | need_lib_prefix=no |
| 23007 | need_version=no |
| 23008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23009 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23010 | shlibpath_var=LD_LIBRARY_PATH |
| 23011 | shlibpath_overrides_runpath=yes |
| 23012 | ;; |
| 23013 | |
| 23014 | openbsd*) |
| 23015 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23016 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23017 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23018 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23019 | case $host_os in |
| 23020 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23021 | *) need_version=no ;; |
| 23022 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23024 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23025 | shlibpath_var=LD_LIBRARY_PATH |
| 23026 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23027 | case $host_os in |
| 23028 | openbsd2.[89] | openbsd2.[89].*) |
| 23029 | shlibpath_overrides_runpath=no |
| 23030 | ;; |
| 23031 | *) |
| 23032 | shlibpath_overrides_runpath=yes |
| 23033 | ;; |
| 23034 | esac |
| 23035 | else |
| 23036 | shlibpath_overrides_runpath=yes |
| 23037 | fi |
| 23038 | ;; |
| 23039 | |
| 23040 | os2*) |
| 23041 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23042 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23043 | need_lib_prefix=no |
| 23044 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23045 | dynamic_linker='OS/2 ld.exe' |
| 23046 | shlibpath_var=LIBPATH |
| 23047 | ;; |
| 23048 | |
| 23049 | osf3* | osf4* | osf5*) |
| 23050 | version_type=osf |
| 23051 | need_lib_prefix=no |
| 23052 | need_version=no |
| 23053 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23055 | shlibpath_var=LD_LIBRARY_PATH |
| 23056 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23057 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23058 | ;; |
| 23059 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23060 | solaris*) |
| 23061 | version_type=linux |
| 23062 | need_lib_prefix=no |
| 23063 | need_version=no |
| 23064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23065 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23066 | shlibpath_var=LD_LIBRARY_PATH |
| 23067 | shlibpath_overrides_runpath=yes |
| 23068 | hardcode_into_libs=yes |
| 23069 | # ldd complains unless libraries are executable |
| 23070 | postinstall_cmds='chmod +x $lib' |
| 23071 | ;; |
| 23072 | |
| 23073 | sunos4*) |
| 23074 | version_type=sunos |
| 23075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23076 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23077 | shlibpath_var=LD_LIBRARY_PATH |
| 23078 | shlibpath_overrides_runpath=yes |
| 23079 | if test "$with_gnu_ld" = yes; then |
| 23080 | need_lib_prefix=no |
| 23081 | fi |
| 23082 | need_version=yes |
| 23083 | ;; |
| 23084 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23085 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23086 | version_type=linux |
| 23087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23088 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23089 | shlibpath_var=LD_LIBRARY_PATH |
| 23090 | case $host_vendor in |
| 23091 | sni) |
| 23092 | shlibpath_overrides_runpath=no |
| 23093 | need_lib_prefix=no |
| 23094 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23095 | runpath_var=LD_RUN_PATH |
| 23096 | ;; |
| 23097 | siemens) |
| 23098 | need_lib_prefix=no |
| 23099 | ;; |
| 23100 | motorola) |
| 23101 | need_lib_prefix=no |
| 23102 | need_version=no |
| 23103 | shlibpath_overrides_runpath=no |
| 23104 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23105 | ;; |
| 23106 | esac |
| 23107 | ;; |
| 23108 | |
| 23109 | sysv4*MP*) |
| 23110 | if test -d /usr/nec ;then |
| 23111 | version_type=linux |
| 23112 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23113 | soname_spec='$libname${shared_ext}.$major' |
| 23114 | shlibpath_var=LD_LIBRARY_PATH |
| 23115 | fi |
| 23116 | ;; |
| 23117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23118 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23119 | version_type=freebsd-elf |
| 23120 | need_lib_prefix=no |
| 23121 | need_version=no |
| 23122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23123 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23124 | shlibpath_var=LD_LIBRARY_PATH |
| 23125 | hardcode_into_libs=yes |
| 23126 | if test "$with_gnu_ld" = yes; then |
| 23127 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23128 | shlibpath_overrides_runpath=no |
| 23129 | else |
| 23130 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23131 | shlibpath_overrides_runpath=yes |
| 23132 | case $host_os in |
| 23133 | sco3.2v5*) |
| 23134 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23135 | ;; |
| 23136 | esac |
| 23137 | fi |
| 23138 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23139 | ;; |
| 23140 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23141 | uts4*) |
| 23142 | version_type=linux |
| 23143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23144 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23145 | shlibpath_var=LD_LIBRARY_PATH |
| 23146 | ;; |
| 23147 | |
| 23148 | *) |
| 23149 | dynamic_linker=no |
| 23150 | ;; |
| 23151 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23152 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23153 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23154 | test "$dynamic_linker" = no && can_build_shared=no |
| 23155 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23156 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23157 | if test "$GCC" = yes; then |
| 23158 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23159 | fi |
| 23160 | |
| 23161 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23162 | 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] | 23163 | hardcode_action_F77= |
| 23164 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23165 | test -n "$runpath_var_F77" || \ |
| 23166 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23167 | |
| 23168 | # We can hardcode non-existant directories. |
| 23169 | if test "$hardcode_direct_F77" != no && |
| 23170 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23171 | # have to relink, otherwise we might link with an installed library |
| 23172 | # when we should be linking with a yet-to-be-installed one |
| 23173 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23174 | test "$hardcode_minus_L_F77" != no; then |
| 23175 | # Linking always hardcodes the temporary library directory. |
| 23176 | hardcode_action_F77=relink |
| 23177 | else |
| 23178 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23179 | hardcode_action_F77=immediate |
| 23180 | fi |
| 23181 | else |
| 23182 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23183 | # directories. |
| 23184 | hardcode_action_F77=unsupported |
| 23185 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23186 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23187 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23188 | |
| 23189 | if test "$hardcode_action_F77" = relink; then |
| 23190 | # Fast installation is not supported |
| 23191 | enable_fast_install=no |
| 23192 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23193 | test "$enable_shared" = no; then |
| 23194 | # Fast installation is not necessary |
| 23195 | enable_fast_install=needless |
| 23196 | fi |
| 23197 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23198 | |
| 23199 | # The else clause should only fire when bootstrapping the |
| 23200 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23201 | # with your package, and you will get complaints that there are |
| 23202 | # no rules to generate ltmain.sh. |
| 23203 | if test -f "$ltmain"; then |
| 23204 | # See if we are running on zsh, and set the options which allow our commands through |
| 23205 | # without removal of \ escapes. |
| 23206 | if test -n "${ZSH_VERSION+set}" ; then |
| 23207 | setopt NO_GLOB_SUBST |
| 23208 | fi |
| 23209 | # Now quote all the things that may contain metacharacters while being |
| 23210 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23211 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23212 | 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] | 23213 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23214 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23215 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23216 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23217 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23218 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23219 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23220 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23221 | compiler_F77 \ |
| 23222 | CC_F77 \ |
| 23223 | LD_F77 \ |
| 23224 | lt_prog_compiler_wl_F77 \ |
| 23225 | lt_prog_compiler_pic_F77 \ |
| 23226 | lt_prog_compiler_static_F77 \ |
| 23227 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23228 | export_dynamic_flag_spec_F77 \ |
| 23229 | thread_safe_flag_spec_F77 \ |
| 23230 | whole_archive_flag_spec_F77 \ |
| 23231 | enable_shared_with_static_runtimes_F77 \ |
| 23232 | old_archive_cmds_F77 \ |
| 23233 | old_archive_from_new_cmds_F77 \ |
| 23234 | predep_objects_F77 \ |
| 23235 | postdep_objects_F77 \ |
| 23236 | predeps_F77 \ |
| 23237 | postdeps_F77 \ |
| 23238 | compiler_lib_search_path_F77 \ |
| 23239 | archive_cmds_F77 \ |
| 23240 | archive_expsym_cmds_F77 \ |
| 23241 | postinstall_cmds_F77 \ |
| 23242 | postuninstall_cmds_F77 \ |
| 23243 | old_archive_from_expsyms_cmds_F77 \ |
| 23244 | allow_undefined_flag_F77 \ |
| 23245 | no_undefined_flag_F77 \ |
| 23246 | export_symbols_cmds_F77 \ |
| 23247 | hardcode_libdir_flag_spec_F77 \ |
| 23248 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23249 | hardcode_libdir_separator_F77 \ |
| 23250 | hardcode_automatic_F77 \ |
| 23251 | module_cmds_F77 \ |
| 23252 | module_expsym_cmds_F77 \ |
| 23253 | lt_cv_prog_compiler_c_o_F77 \ |
| 23254 | exclude_expsyms_F77 \ |
| 23255 | include_expsyms_F77; do |
| 23256 | |
| 23257 | case $var in |
| 23258 | old_archive_cmds_F77 | \ |
| 23259 | old_archive_from_new_cmds_F77 | \ |
| 23260 | archive_cmds_F77 | \ |
| 23261 | archive_expsym_cmds_F77 | \ |
| 23262 | module_cmds_F77 | \ |
| 23263 | module_expsym_cmds_F77 | \ |
| 23264 | old_archive_from_expsyms_cmds_F77 | \ |
| 23265 | export_symbols_cmds_F77 | \ |
| 23266 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23267 | postinstall_cmds | postuninstall_cmds | \ |
| 23268 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23269 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23270 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23271 | 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] | 23272 | ;; |
| 23273 | *) |
| 23274 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23275 | ;; |
| 23276 | esac |
| 23277 | done |
| 23278 | |
| 23279 | case $lt_echo in |
| 23280 | *'\$0 --fallback-echo"') |
| 23281 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23282 | ;; |
| 23283 | esac |
| 23284 | |
| 23285 | cfgfile="$ofile" |
| 23286 | |
| 23287 | cat <<__EOF__ >> "$cfgfile" |
| 23288 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23289 | |
| 23290 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23291 | |
| 23292 | # Shell to use when invoking shell scripts. |
| 23293 | SHELL=$lt_SHELL |
| 23294 | |
| 23295 | # Whether or not to build shared libraries. |
| 23296 | build_libtool_libs=$enable_shared |
| 23297 | |
| 23298 | # Whether or not to build static libraries. |
| 23299 | build_old_libs=$enable_static |
| 23300 | |
| 23301 | # Whether or not to add -lc for building shared libraries. |
| 23302 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23303 | |
| 23304 | # Whether or not to disallow shared libs when runtime libs are static |
| 23305 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23306 | |
| 23307 | # Whether or not to optimize for fast installation. |
| 23308 | fast_install=$enable_fast_install |
| 23309 | |
| 23310 | # The host system. |
| 23311 | host_alias=$host_alias |
| 23312 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23313 | host_os=$host_os |
| 23314 | |
| 23315 | # The build system. |
| 23316 | build_alias=$build_alias |
| 23317 | build=$build |
| 23318 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23319 | |
| 23320 | # An echo program that does not interpret backslashes. |
| 23321 | echo=$lt_echo |
| 23322 | |
| 23323 | # The archiver. |
| 23324 | AR=$lt_AR |
| 23325 | AR_FLAGS=$lt_AR_FLAGS |
| 23326 | |
| 23327 | # A C compiler. |
| 23328 | LTCC=$lt_LTCC |
| 23329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23330 | # LTCC compiler flags. |
| 23331 | LTCFLAGS=$lt_LTCFLAGS |
| 23332 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23333 | # A language-specific compiler. |
| 23334 | CC=$lt_compiler_F77 |
| 23335 | |
| 23336 | # Is the compiler the GNU C compiler? |
| 23337 | with_gcc=$GCC_F77 |
| 23338 | |
| 23339 | # An ERE matcher. |
| 23340 | EGREP=$lt_EGREP |
| 23341 | |
| 23342 | # The linker used to build libraries. |
| 23343 | LD=$lt_LD_F77 |
| 23344 | |
| 23345 | # Whether we need hard or soft links. |
| 23346 | LN_S=$lt_LN_S |
| 23347 | |
| 23348 | # A BSD-compatible nm program. |
| 23349 | NM=$lt_NM |
| 23350 | |
| 23351 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23352 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23353 | |
| 23354 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23355 | MAGIC_CMD=$MAGIC_CMD |
| 23356 | |
| 23357 | # Used on cygwin: DLL creation program. |
| 23358 | DLLTOOL="$DLLTOOL" |
| 23359 | |
| 23360 | # Used on cygwin: object dumper. |
| 23361 | OBJDUMP="$OBJDUMP" |
| 23362 | |
| 23363 | # Used on cygwin: assembler. |
| 23364 | AS="$AS" |
| 23365 | |
| 23366 | # The name of the directory that contains temporary libtool files. |
| 23367 | objdir=$objdir |
| 23368 | |
| 23369 | # How to create reloadable object files. |
| 23370 | reload_flag=$lt_reload_flag |
| 23371 | reload_cmds=$lt_reload_cmds |
| 23372 | |
| 23373 | # How to pass a linker flag through the compiler. |
| 23374 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23375 | |
| 23376 | # Object file suffix (normally "o"). |
| 23377 | objext="$ac_objext" |
| 23378 | |
| 23379 | # Old archive suffix (normally "a"). |
| 23380 | libext="$libext" |
| 23381 | |
| 23382 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23383 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23384 | |
| 23385 | # Executable file suffix (normally ""). |
| 23386 | exeext="$exeext" |
| 23387 | |
| 23388 | # Additional compiler flags for building library objects. |
| 23389 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23390 | pic_mode=$pic_mode |
| 23391 | |
| 23392 | # What is the maximum length of a command? |
| 23393 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23394 | |
| 23395 | # Does compiler simultaneously support -c and -o options? |
| 23396 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23398 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23399 | need_locks=$lt_need_locks |
| 23400 | |
| 23401 | # Do we need the lib prefix for modules? |
| 23402 | need_lib_prefix=$need_lib_prefix |
| 23403 | |
| 23404 | # Do we need a version for libraries? |
| 23405 | need_version=$need_version |
| 23406 | |
| 23407 | # Whether dlopen is supported. |
| 23408 | dlopen_support=$enable_dlopen |
| 23409 | |
| 23410 | # Whether dlopen of programs is supported. |
| 23411 | dlopen_self=$enable_dlopen_self |
| 23412 | |
| 23413 | # Whether dlopen of statically linked programs is supported. |
| 23414 | dlopen_self_static=$enable_dlopen_self_static |
| 23415 | |
| 23416 | # Compiler flag to prevent dynamic linking. |
| 23417 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23418 | |
| 23419 | # Compiler flag to turn off builtin functions. |
| 23420 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23421 | |
| 23422 | # Compiler flag to allow reflexive dlopens. |
| 23423 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23424 | |
| 23425 | # Compiler flag to generate shared objects directly from archives. |
| 23426 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23427 | |
| 23428 | # Compiler flag to generate thread-safe objects. |
| 23429 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23430 | |
| 23431 | # Library versioning type. |
| 23432 | version_type=$version_type |
| 23433 | |
| 23434 | # Format of library name prefix. |
| 23435 | libname_spec=$lt_libname_spec |
| 23436 | |
| 23437 | # List of archive names. First name is the real one, the rest are links. |
| 23438 | # The last name is the one that the linker finds with -lNAME. |
| 23439 | library_names_spec=$lt_library_names_spec |
| 23440 | |
| 23441 | # The coded name of the library, if different from the real name. |
| 23442 | soname_spec=$lt_soname_spec |
| 23443 | |
| 23444 | # Commands used to build and install an old-style archive. |
| 23445 | RANLIB=$lt_RANLIB |
| 23446 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23447 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23448 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23449 | |
| 23450 | # Create an old-style archive from a shared archive. |
| 23451 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23452 | |
| 23453 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23454 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23455 | |
| 23456 | # Commands used to build and install a shared archive. |
| 23457 | archive_cmds=$lt_archive_cmds_F77 |
| 23458 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23459 | postinstall_cmds=$lt_postinstall_cmds |
| 23460 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23461 | |
| 23462 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23463 | module_cmds=$lt_module_cmds_F77 |
| 23464 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23465 | |
| 23466 | # Commands to strip libraries. |
| 23467 | old_striplib=$lt_old_striplib |
| 23468 | striplib=$lt_striplib |
| 23469 | |
| 23470 | # Dependencies to place before the objects being linked to create a |
| 23471 | # shared library. |
| 23472 | predep_objects=$lt_predep_objects_F77 |
| 23473 | |
| 23474 | # Dependencies to place after the objects being linked to create a |
| 23475 | # shared library. |
| 23476 | postdep_objects=$lt_postdep_objects_F77 |
| 23477 | |
| 23478 | # Dependencies to place before the objects being linked to create a |
| 23479 | # shared library. |
| 23480 | predeps=$lt_predeps_F77 |
| 23481 | |
| 23482 | # Dependencies to place after the objects being linked to create a |
| 23483 | # shared library. |
| 23484 | postdeps=$lt_postdeps_F77 |
| 23485 | |
| 23486 | # The library search path used internally by the compiler when linking |
| 23487 | # a shared library. |
| 23488 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23489 | |
| 23490 | # Method to check whether dependent libraries are shared objects. |
| 23491 | deplibs_check_method=$lt_deplibs_check_method |
| 23492 | |
| 23493 | # Command to use when deplibs_check_method == file_magic. |
| 23494 | file_magic_cmd=$lt_file_magic_cmd |
| 23495 | |
| 23496 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23497 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23498 | |
| 23499 | # Flag that forces no undefined symbols. |
| 23500 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23501 | |
| 23502 | # Commands used to finish a libtool library installation in a directory. |
| 23503 | finish_cmds=$lt_finish_cmds |
| 23504 | |
| 23505 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23506 | finish_eval=$lt_finish_eval |
| 23507 | |
| 23508 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23509 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23510 | |
| 23511 | # Transform the output of nm in a proper C declaration |
| 23512 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23513 | |
| 23514 | # Transform the output of nm in a C name address pair |
| 23515 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23516 | |
| 23517 | # This is the shared library runtime path variable. |
| 23518 | runpath_var=$runpath_var |
| 23519 | |
| 23520 | # This is the shared library path variable. |
| 23521 | shlibpath_var=$shlibpath_var |
| 23522 | |
| 23523 | # Is shlibpath searched before the hard-coded library search path? |
| 23524 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23525 | |
| 23526 | # How to hardcode a shared library path into an executable. |
| 23527 | hardcode_action=$hardcode_action_F77 |
| 23528 | |
| 23529 | # Whether we should hardcode library paths into libraries. |
| 23530 | hardcode_into_libs=$hardcode_into_libs |
| 23531 | |
| 23532 | # Flag to hardcode \$libdir into a binary during linking. |
| 23533 | # This must work even if \$libdir does not exist. |
| 23534 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23535 | |
| 23536 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23537 | # a binary during linking. This must work even if \$libdir does |
| 23538 | # not exist. |
| 23539 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23540 | |
| 23541 | # Whether we need a single -rpath flag with a separated argument. |
| 23542 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23543 | |
| 23544 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23545 | # resulting binary. |
| 23546 | hardcode_direct=$hardcode_direct_F77 |
| 23547 | |
| 23548 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23549 | # resulting binary. |
| 23550 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23551 | |
| 23552 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23553 | # the resulting binary. |
| 23554 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23555 | |
| 23556 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23557 | # and all subsequent libraries and executables linked against it. |
| 23558 | hardcode_automatic=$hardcode_automatic_F77 |
| 23559 | |
| 23560 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23561 | # restored at relink time. |
| 23562 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23563 | |
| 23564 | # Whether libtool must link a program against all its dependency libraries. |
| 23565 | link_all_deplibs=$link_all_deplibs_F77 |
| 23566 | |
| 23567 | # Compile-time system search path for libraries |
| 23568 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23569 | |
| 23570 | # Run-time system search path for libraries |
| 23571 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23572 | |
| 23573 | # Fix the shell variable \$srcfile for the compiler. |
| 23574 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23575 | |
| 23576 | # Set to yes if exported symbols are required. |
| 23577 | always_export_symbols=$always_export_symbols_F77 |
| 23578 | |
| 23579 | # The commands to list exported symbols. |
| 23580 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23581 | |
| 23582 | # The commands to extract the exported symbol list from a shared archive. |
| 23583 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23584 | |
| 23585 | # Symbols that should not be listed in the preloaded symbols. |
| 23586 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23587 | |
| 23588 | # Symbols that must always be exported. |
| 23589 | include_expsyms=$lt_include_expsyms_F77 |
| 23590 | |
| 23591 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23592 | |
| 23593 | __EOF__ |
| 23594 | |
| 23595 | |
| 23596 | else |
| 23597 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23598 | # `config.status --recheck' to rerun these tests and create the |
| 23599 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23600 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23601 | if test -f "$ltmain_in"; then |
| 23602 | test -f Makefile && make "$ltmain" |
| 23603 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23604 | fi |
| 23605 | |
| 23606 | |
| 23607 | ac_ext=c |
| 23608 | ac_cpp='$CPP $CPPFLAGS' |
| 23609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23612 | |
| 23613 | CC="$lt_save_CC" |
| 23614 | |
| 23615 | else |
| 23616 | tagname="" |
| 23617 | fi |
| 23618 | ;; |
| 23619 | |
| 23620 | GCJ) |
| 23621 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23622 | ac_ext=c |
| 23623 | ac_cpp='$CPP $CPPFLAGS' |
| 23624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23627 | |
| 23628 | |
| 23629 | # Source file extension for Java test sources. |
| 23630 | ac_ext=java |
| 23631 | |
| 23632 | # Object file extension for compiled Java test sources. |
| 23633 | objext=o |
| 23634 | objext_GCJ=$objext |
| 23635 | |
| 23636 | # Code to be used in simple compile tests |
| 23637 | lt_simple_compile_test_code="class foo {}\n" |
| 23638 | |
| 23639 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23640 | 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] | 23641 | |
| 23642 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23643 | |
| 23644 | # If no C compiler was specified, use CC. |
| 23645 | LTCC=${LTCC-"$CC"} |
| 23646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23647 | # If no C compiler flags were specified, use CFLAGS. |
| 23648 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23649 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23650 | # Allow CC to be a program name with arguments. |
| 23651 | compiler=$CC |
| 23652 | |
| 23653 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23654 | # save warnings/boilerplate of simple test code |
| 23655 | ac_outfile=conftest.$ac_objext |
| 23656 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23657 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23658 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23659 | $rm conftest* |
| 23660 | |
| 23661 | ac_outfile=conftest.$ac_objext |
| 23662 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23663 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23664 | _lt_linker_boilerplate=`cat conftest.err` |
| 23665 | $rm conftest* |
| 23666 | |
| 23667 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23668 | # Allow CC to be a program name with arguments. |
| 23669 | lt_save_CC="$CC" |
| 23670 | CC=${GCJ-"gcj"} |
| 23671 | compiler=$CC |
| 23672 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23673 | for cc_temp in $compiler""; do |
| 23674 | case $cc_temp in |
| 23675 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23676 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23677 | \-*) ;; |
| 23678 | *) break;; |
| 23679 | esac |
| 23680 | done |
| 23681 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23682 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23683 | |
| 23684 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23685 | archive_cmds_need_lc_GCJ=no |
| 23686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23687 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23688 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23689 | |
| 23690 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23691 | |
| 23692 | if test "$GCC" = yes; then |
| 23693 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23694 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23696 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23697 | 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] | 23698 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23700 | else |
| 23701 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23702 | ac_outfile=conftest.$ac_objext |
| 23703 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23704 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23705 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23706 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23707 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23708 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23709 | # The option is referenced via a variable to avoid confusing sed. |
| 23710 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23711 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23712 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23713 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 23714 | (eval echo "\"\$as_me:23714: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23715 | (eval "$lt_compile" 2>conftest.err) |
| 23716 | ac_status=$? |
| 23717 | cat conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 23718 | echo "$as_me:23718: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23719 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23720 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23721 | # So say no if there are warnings other than the usual output. |
| 23722 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23723 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23724 | 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] | 23725 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 23726 | fi |
| 23727 | fi |
| 23728 | $rm conftest* |
| 23729 | |
| 23730 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23731 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 23732 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23733 | |
| 23734 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 23735 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 23736 | else |
| 23737 | : |
| 23738 | fi |
| 23739 | |
| 23740 | fi |
| 23741 | |
| 23742 | lt_prog_compiler_wl_GCJ= |
| 23743 | lt_prog_compiler_pic_GCJ= |
| 23744 | lt_prog_compiler_static_GCJ= |
| 23745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23746 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 23747 | 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] | 23748 | |
| 23749 | if test "$GCC" = yes; then |
| 23750 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23751 | lt_prog_compiler_static_GCJ='-static' |
| 23752 | |
| 23753 | case $host_os in |
| 23754 | aix*) |
| 23755 | # All AIX code is PIC. |
| 23756 | if test "$host_cpu" = ia64; then |
| 23757 | # AIX 5 now supports IA64 processor |
| 23758 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23759 | fi |
| 23760 | ;; |
| 23761 | |
| 23762 | amigaos*) |
| 23763 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 23764 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 23765 | # like `-m68040'. |
| 23766 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 23767 | ;; |
| 23768 | |
| 23769 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23770 | # PIC is the default for these OSes. |
| 23771 | ;; |
| 23772 | |
| 23773 | mingw* | pw32* | os2*) |
| 23774 | # This hack is so that the source file can tell whether it is being |
| 23775 | # built for inclusion in a dll (and should export symbols for example). |
| 23776 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23777 | ;; |
| 23778 | |
| 23779 | darwin* | rhapsody*) |
| 23780 | # PIC is the default on this platform |
| 23781 | # Common symbols not allowed in MH_DYLIB files |
| 23782 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 23783 | ;; |
| 23784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23785 | interix3*) |
| 23786 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23787 | # Instead, we relocate shared libraries at runtime. |
| 23788 | ;; |
| 23789 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23790 | msdosdjgpp*) |
| 23791 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23792 | # on systems that don't support them. |
| 23793 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23794 | enable_shared=no |
| 23795 | ;; |
| 23796 | |
| 23797 | sysv4*MP*) |
| 23798 | if test -d /usr/nec; then |
| 23799 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 23800 | fi |
| 23801 | ;; |
| 23802 | |
| 23803 | hpux*) |
| 23804 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23805 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23806 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23807 | hppa*64*|ia64*) |
| 23808 | # +Z the default |
| 23809 | ;; |
| 23810 | *) |
| 23811 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23812 | ;; |
| 23813 | esac |
| 23814 | ;; |
| 23815 | |
| 23816 | *) |
| 23817 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23818 | ;; |
| 23819 | esac |
| 23820 | else |
| 23821 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 23822 | case $host_os in |
| 23823 | aix*) |
| 23824 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23825 | if test "$host_cpu" = ia64; then |
| 23826 | # AIX 5 now supports IA64 processor |
| 23827 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23828 | else |
| 23829 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 23830 | fi |
| 23831 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23832 | darwin*) |
| 23833 | # PIC is the default on this platform |
| 23834 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23835 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23836 | xlc*) |
| 23837 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 23838 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23839 | ;; |
| 23840 | esac |
| 23841 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23842 | |
| 23843 | mingw* | pw32* | os2*) |
| 23844 | # This hack is so that the source file can tell whether it is being |
| 23845 | # built for inclusion in a dll (and should export symbols for example). |
| 23846 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23847 | ;; |
| 23848 | |
| 23849 | hpux9* | hpux10* | hpux11*) |
| 23850 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23851 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23852 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23853 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23854 | hppa*64*|ia64*) |
| 23855 | # +Z the default |
| 23856 | ;; |
| 23857 | *) |
| 23858 | lt_prog_compiler_pic_GCJ='+Z' |
| 23859 | ;; |
| 23860 | esac |
| 23861 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23862 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 23863 | ;; |
| 23864 | |
| 23865 | irix5* | irix6* | nonstopux*) |
| 23866 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23867 | # PIC (with -KPIC) is the default. |
| 23868 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23869 | ;; |
| 23870 | |
| 23871 | newsos6) |
| 23872 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23873 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23874 | ;; |
| 23875 | |
| 23876 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23877 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23878 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23879 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23880 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23881 | lt_prog_compiler_static_GCJ='-static' |
| 23882 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23883 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 23884 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23885 | # which looks to be a dead project) |
| 23886 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23887 | lt_prog_compiler_pic_GCJ='-fpic' |
| 23888 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23889 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23890 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23891 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23892 | # All Alpha code is PIC. |
| 23893 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23894 | ;; |
| 23895 | esac |
| 23896 | ;; |
| 23897 | |
| 23898 | osf3* | osf4* | osf5*) |
| 23899 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23900 | # All OSF/1 code is PIC. |
| 23901 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23902 | ;; |
| 23903 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23904 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23905 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23906 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23907 | case $cc_basename in |
| 23908 | f77* | f90* | f95*) |
| 23909 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 23910 | *) |
| 23911 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 23912 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23913 | ;; |
| 23914 | |
| 23915 | sunos4*) |
| 23916 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 23917 | lt_prog_compiler_pic_GCJ='-PIC' |
| 23918 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23919 | ;; |
| 23920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23921 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23922 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23923 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23924 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23925 | ;; |
| 23926 | |
| 23927 | sysv4*MP*) |
| 23928 | if test -d /usr/nec ;then |
| 23929 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 23930 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23931 | fi |
| 23932 | ;; |
| 23933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23934 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 23935 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23936 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23937 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23938 | ;; |
| 23939 | |
| 23940 | unicos*) |
| 23941 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23942 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23943 | ;; |
| 23944 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23945 | uts4*) |
| 23946 | lt_prog_compiler_pic_GCJ='-pic' |
| 23947 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23948 | ;; |
| 23949 | |
| 23950 | *) |
| 23951 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23952 | ;; |
| 23953 | esac |
| 23954 | fi |
| 23955 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23956 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 23957 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23958 | |
| 23959 | # |
| 23960 | # Check to make sure the PIC flag actually works. |
| 23961 | # |
| 23962 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23963 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23964 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 23965 | 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] | 23966 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 23967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23968 | else |
| 23969 | lt_prog_compiler_pic_works_GCJ=no |
| 23970 | ac_outfile=conftest.$ac_objext |
| 23971 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23972 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 23973 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23974 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23975 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23976 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23977 | # The option is referenced via a variable to avoid confusing sed. |
| 23978 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23979 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23980 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23981 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 23982 | (eval echo "\"\$as_me:23982: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23983 | (eval "$lt_compile" 2>conftest.err) |
| 23984 | ac_status=$? |
| 23985 | cat conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 23986 | echo "$as_me:23986: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23987 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23988 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23989 | # So say no if there are warnings other than the usual output. |
| 23990 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23991 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23992 | 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] | 23993 | lt_prog_compiler_pic_works_GCJ=yes |
| 23994 | fi |
| 23995 | fi |
| 23996 | $rm conftest* |
| 23997 | |
| 23998 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23999 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24000 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24001 | |
| 24002 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24003 | case $lt_prog_compiler_pic_GCJ in |
| 24004 | "" | " "*) ;; |
| 24005 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24006 | esac |
| 24007 | else |
| 24008 | lt_prog_compiler_pic_GCJ= |
| 24009 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24010 | fi |
| 24011 | |
| 24012 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24013 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24014 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24015 | *djgpp*) |
| 24016 | lt_prog_compiler_pic_GCJ= |
| 24017 | ;; |
| 24018 | *) |
| 24019 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24020 | ;; |
| 24021 | esac |
| 24022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24023 | # |
| 24024 | # Check to make sure the static flag actually works. |
| 24025 | # |
| 24026 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24027 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24028 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24029 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24031 | else |
| 24032 | lt_prog_compiler_static_works_GCJ=no |
| 24033 | save_LDFLAGS="$LDFLAGS" |
| 24034 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24035 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24036 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24037 | # The linker can only warn and ignore the option if not recognized |
| 24038 | # So say no if there are warnings |
| 24039 | if test -s conftest.err; then |
| 24040 | # Append any errors to the config.log. |
| 24041 | cat conftest.err 1>&5 |
| 24042 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24043 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24044 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24045 | lt_prog_compiler_static_works_GCJ=yes |
| 24046 | fi |
| 24047 | else |
| 24048 | lt_prog_compiler_static_works_GCJ=yes |
| 24049 | fi |
| 24050 | fi |
| 24051 | $rm conftest* |
| 24052 | LDFLAGS="$save_LDFLAGS" |
| 24053 | |
| 24054 | fi |
| 24055 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24056 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24057 | |
| 24058 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24059 | : |
| 24060 | else |
| 24061 | lt_prog_compiler_static_GCJ= |
| 24062 | fi |
| 24063 | |
| 24064 | |
| 24065 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24066 | 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] | 24067 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24069 | else |
| 24070 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24071 | $rm -r conftest 2>/dev/null |
| 24072 | mkdir conftest |
| 24073 | cd conftest |
| 24074 | mkdir out |
| 24075 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24076 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24077 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24078 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24079 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24080 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24081 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24082 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24083 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24084 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24085 | -e 's:$: $lt_compiler_flag:'` |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 24086 | (eval echo "\"\$as_me:24086: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24087 | (eval "$lt_compile" 2>out/conftest.err) |
| 24088 | ac_status=$? |
| 24089 | cat out/conftest.err >&5 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 24090 | echo "$as_me:24090: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24091 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24092 | then |
| 24093 | # The compiler can only warn and ignore the option if not recognized |
| 24094 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24095 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24096 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24097 | 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] | 24098 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24099 | fi |
| 24100 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24101 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24102 | $rm conftest* |
| 24103 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24104 | # template instantiation |
| 24105 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24106 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24107 | cd .. |
| 24108 | rmdir conftest |
| 24109 | $rm conftest* |
| 24110 | |
| 24111 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24112 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24113 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24114 | |
| 24115 | |
| 24116 | hard_links="nottested" |
| 24117 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24118 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24119 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24120 | 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] | 24121 | hard_links=yes |
| 24122 | $rm conftest* |
| 24123 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24124 | touch conftest.a |
| 24125 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24126 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24127 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24128 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24129 | if test "$hard_links" = no; then |
| 24130 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24131 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24132 | need_locks=warn |
| 24133 | fi |
| 24134 | else |
| 24135 | need_locks=no |
| 24136 | fi |
| 24137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24138 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24139 | 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] | 24140 | |
| 24141 | runpath_var= |
| 24142 | allow_undefined_flag_GCJ= |
| 24143 | enable_shared_with_static_runtimes_GCJ=no |
| 24144 | archive_cmds_GCJ= |
| 24145 | archive_expsym_cmds_GCJ= |
| 24146 | old_archive_From_new_cmds_GCJ= |
| 24147 | old_archive_from_expsyms_cmds_GCJ= |
| 24148 | export_dynamic_flag_spec_GCJ= |
| 24149 | whole_archive_flag_spec_GCJ= |
| 24150 | thread_safe_flag_spec_GCJ= |
| 24151 | hardcode_libdir_flag_spec_GCJ= |
| 24152 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24153 | hardcode_libdir_separator_GCJ= |
| 24154 | hardcode_direct_GCJ=no |
| 24155 | hardcode_minus_L_GCJ=no |
| 24156 | hardcode_shlibpath_var_GCJ=unsupported |
| 24157 | link_all_deplibs_GCJ=unknown |
| 24158 | hardcode_automatic_GCJ=no |
| 24159 | module_cmds_GCJ= |
| 24160 | module_expsym_cmds_GCJ= |
| 24161 | always_export_symbols_GCJ=no |
| 24162 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24163 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24164 | # included in the symbol list |
| 24165 | include_expsyms_GCJ= |
| 24166 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24167 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24168 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24169 | # as well as any symbol that contains `d'. |
| 24170 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24171 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24172 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24173 | # the symbol is explicitly referenced. Since portable code cannot |
| 24174 | # rely on this symbol name, it's probably fine to never include it in |
| 24175 | # preloaded symbol tables. |
| 24176 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24177 | # Just being paranoid about ensuring that cc_basename is set. |
| 24178 | for cc_temp in $compiler""; do |
| 24179 | case $cc_temp in |
| 24180 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24181 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24182 | \-*) ;; |
| 24183 | *) break;; |
| 24184 | esac |
| 24185 | done |
| 24186 | 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] | 24187 | |
| 24188 | case $host_os in |
| 24189 | cygwin* | mingw* | pw32*) |
| 24190 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24191 | # When not using gcc, we currently assume that we are using |
| 24192 | # Microsoft Visual C++. |
| 24193 | if test "$GCC" != yes; then |
| 24194 | with_gnu_ld=no |
| 24195 | fi |
| 24196 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24197 | interix*) |
| 24198 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24199 | with_gnu_ld=yes |
| 24200 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24201 | openbsd*) |
| 24202 | with_gnu_ld=no |
| 24203 | ;; |
| 24204 | esac |
| 24205 | |
| 24206 | ld_shlibs_GCJ=yes |
| 24207 | if test "$with_gnu_ld" = yes; then |
| 24208 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24209 | wlarc='${wl}' |
| 24210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24211 | # Set some defaults for GNU ld with shared library support. These |
| 24212 | # are reset later if shared libraries are not supported. Putting them |
| 24213 | # here allows them to be overridden if necessary. |
| 24214 | runpath_var=LD_RUN_PATH |
| 24215 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24216 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24217 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24218 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24219 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24220 | else |
| 24221 | whole_archive_flag_spec_GCJ= |
| 24222 | fi |
| 24223 | supports_anon_versioning=no |
| 24224 | case `$LD -v 2>/dev/null` in |
| 24225 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24226 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24227 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24228 | *\ 2.11.*) ;; # other 2.11 versions |
| 24229 | *) supports_anon_versioning=yes ;; |
| 24230 | esac |
| 24231 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24232 | # See if GNU ld supports shared libraries. |
| 24233 | case $host_os in |
| 24234 | aix3* | aix4* | aix5*) |
| 24235 | # On AIX/PPC, the GNU linker is very broken |
| 24236 | if test "$host_cpu" != ia64; then |
| 24237 | ld_shlibs_GCJ=no |
| 24238 | cat <<EOF 1>&2 |
| 24239 | |
| 24240 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24241 | *** to be unable to reliably create shared libraries on AIX. |
| 24242 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24243 | *** really care for shared libraries, you may want to modify your PATH |
| 24244 | *** so that a non-GNU linker is found, and then restart. |
| 24245 | |
| 24246 | EOF |
| 24247 | fi |
| 24248 | ;; |
| 24249 | |
| 24250 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24251 | 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] | 24252 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24253 | hardcode_minus_L_GCJ=yes |
| 24254 | |
| 24255 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24256 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24257 | # to version 4, is to share data among multiple programs linked |
| 24258 | # with the same dynamic library. Since this doesn't match the |
| 24259 | # behavior of shared libraries on other platforms, we can't use |
| 24260 | # them. |
| 24261 | ld_shlibs_GCJ=no |
| 24262 | ;; |
| 24263 | |
| 24264 | beos*) |
| 24265 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24266 | allow_undefined_flag_GCJ=unsupported |
| 24267 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24268 | # support --undefined. This deserves some investigation. FIXME |
| 24269 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24270 | else |
| 24271 | ld_shlibs_GCJ=no |
| 24272 | fi |
| 24273 | ;; |
| 24274 | |
| 24275 | cygwin* | mingw* | pw32*) |
| 24276 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24277 | # as there is no search path for DLLs. |
| 24278 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24279 | allow_undefined_flag_GCJ=unsupported |
| 24280 | always_export_symbols_GCJ=no |
| 24281 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24282 | 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] | 24283 | |
| 24284 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24285 | 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] | 24286 | # If the export-symbols file already is a .def file (1st line |
| 24287 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24288 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24289 | cp $export_symbols $output_objdir/$soname.def; |
| 24290 | else |
| 24291 | echo EXPORTS > $output_objdir/$soname.def; |
| 24292 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24293 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24294 | $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] | 24295 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24296 | ld_shlibs_GCJ=no |
| 24297 | fi |
| 24298 | ;; |
| 24299 | |
| 24300 | interix3*) |
| 24301 | hardcode_direct_GCJ=no |
| 24302 | hardcode_shlibpath_var_GCJ=no |
| 24303 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24304 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24305 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24306 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24307 | # default) and relocated if they conflict, which is a slow very memory |
| 24308 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24309 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24310 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24311 | 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' |
| 24312 | 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' |
| 24313 | ;; |
| 24314 | |
| 24315 | linux*) |
| 24316 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24317 | tmp_addflag= |
| 24318 | case $cc_basename,$host_cpu in |
| 24319 | pgcc*) # Portland Group C compiler |
| 24320 | 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' |
| 24321 | tmp_addflag=' $pic_flag' |
| 24322 | ;; |
| 24323 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24324 | 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' |
| 24325 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24326 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24327 | tmp_addflag=' -i_dynamic' ;; |
| 24328 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24329 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24330 | ifc* | ifort*) # Intel Fortran compiler |
| 24331 | tmp_addflag=' -nofor_main' ;; |
| 24332 | esac |
| 24333 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24334 | |
| 24335 | if test $supports_anon_versioning = yes; then |
| 24336 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24337 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24338 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24339 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24340 | fi |
| 24341 | else |
| 24342 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24343 | fi |
| 24344 | ;; |
| 24345 | |
| 24346 | netbsd*) |
| 24347 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24348 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24349 | wlarc= |
| 24350 | else |
| 24351 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24352 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24353 | fi |
| 24354 | ;; |
| 24355 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24356 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24357 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24358 | ld_shlibs_GCJ=no |
| 24359 | cat <<EOF 1>&2 |
| 24360 | |
| 24361 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24362 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24363 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24364 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24365 | *** your PATH or compiler configuration so that the native linker is |
| 24366 | *** used, and then restart. |
| 24367 | |
| 24368 | EOF |
| 24369 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24370 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24371 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24372 | else |
| 24373 | ld_shlibs_GCJ=no |
| 24374 | fi |
| 24375 | ;; |
| 24376 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24377 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24378 | case `$LD -v 2>&1` in |
| 24379 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24380 | ld_shlibs_GCJ=no |
| 24381 | cat <<_LT_EOF 1>&2 |
| 24382 | |
| 24383 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24384 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24385 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24386 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24387 | *** your PATH or compiler configuration so that the native linker is |
| 24388 | *** used, and then restart. |
| 24389 | |
| 24390 | _LT_EOF |
| 24391 | ;; |
| 24392 | *) |
| 24393 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24394 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24395 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24396 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24397 | else |
| 24398 | ld_shlibs_GCJ=no |
| 24399 | fi |
| 24400 | ;; |
| 24401 | esac |
| 24402 | ;; |
| 24403 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24404 | sunos4*) |
| 24405 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24406 | wlarc= |
| 24407 | hardcode_direct_GCJ=yes |
| 24408 | hardcode_shlibpath_var_GCJ=no |
| 24409 | ;; |
| 24410 | |
| 24411 | *) |
| 24412 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24413 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24414 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24415 | else |
| 24416 | ld_shlibs_GCJ=no |
| 24417 | fi |
| 24418 | ;; |
| 24419 | esac |
| 24420 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24421 | if test "$ld_shlibs_GCJ" = no; then |
| 24422 | runpath_var= |
| 24423 | hardcode_libdir_flag_spec_GCJ= |
| 24424 | export_dynamic_flag_spec_GCJ= |
| 24425 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24426 | fi |
| 24427 | else |
| 24428 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24429 | case $host_os in |
| 24430 | aix3*) |
| 24431 | allow_undefined_flag_GCJ=unsupported |
| 24432 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24433 | 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] | 24434 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24435 | # are no directories specified by -L. |
| 24436 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24437 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24438 | # Neither direct hardcoding nor static linking is supported with a |
| 24439 | # broken collect2. |
| 24440 | hardcode_direct_GCJ=unsupported |
| 24441 | fi |
| 24442 | ;; |
| 24443 | |
| 24444 | aix4* | aix5*) |
| 24445 | if test "$host_cpu" = ia64; then |
| 24446 | # On IA64, the linker does run time linking by default, so we don't |
| 24447 | # have to do anything special. |
| 24448 | aix_use_runtimelinking=no |
| 24449 | exp_sym_flag='-Bexport' |
| 24450 | no_entry_flag="" |
| 24451 | else |
| 24452 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24453 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24454 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24455 | 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' |
| 24456 | else |
| 24457 | 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' |
| 24458 | fi |
| 24459 | aix_use_runtimelinking=no |
| 24460 | |
| 24461 | # Test if we are trying to use run time linking or normal |
| 24462 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24463 | # need to do runtime linking. |
| 24464 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24465 | for ld_flag in $LDFLAGS; do |
| 24466 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24467 | aix_use_runtimelinking=yes |
| 24468 | break |
| 24469 | fi |
| 24470 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24471 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24472 | esac |
| 24473 | |
| 24474 | exp_sym_flag='-bexport' |
| 24475 | no_entry_flag='-bnoentry' |
| 24476 | fi |
| 24477 | |
| 24478 | # When large executables or shared objects are built, AIX ld can |
| 24479 | # have problems creating the table of contents. If linking a library |
| 24480 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24481 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24482 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24483 | |
| 24484 | archive_cmds_GCJ='' |
| 24485 | hardcode_direct_GCJ=yes |
| 24486 | hardcode_libdir_separator_GCJ=':' |
| 24487 | link_all_deplibs_GCJ=yes |
| 24488 | |
| 24489 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24490 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24491 | # We only want to do this on AIX 4.2 and lower, the check |
| 24492 | # below for broken collect2 doesn't work under 4.3+ |
| 24493 | collect2name=`${CC} -print-prog-name=collect2` |
| 24494 | if test -f "$collect2name" && \ |
| 24495 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24496 | then |
| 24497 | # We have reworked collect2 |
| 24498 | hardcode_direct_GCJ=yes |
| 24499 | else |
| 24500 | # We have old collect2 |
| 24501 | hardcode_direct_GCJ=unsupported |
| 24502 | # It fails to find uninstalled libraries when the uninstalled |
| 24503 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24504 | # to unsupported forces relinking |
| 24505 | hardcode_minus_L_GCJ=yes |
| 24506 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24507 | hardcode_libdir_separator_GCJ= |
| 24508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24509 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24510 | esac |
| 24511 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24512 | if test "$aix_use_runtimelinking" = yes; then |
| 24513 | shared_flag="$shared_flag "'${wl}-G' |
| 24514 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24515 | else |
| 24516 | # not using gcc |
| 24517 | if test "$host_cpu" = ia64; then |
| 24518 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24519 | # chokes on -Wl,-G. The following line is correct: |
| 24520 | shared_flag='-G' |
| 24521 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24522 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24523 | shared_flag='${wl}-G' |
| 24524 | else |
| 24525 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24526 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24527 | fi |
| 24528 | fi |
| 24529 | |
| 24530 | # It seems that -bexpall does not export symbols beginning with |
| 24531 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24532 | always_export_symbols_GCJ=yes |
| 24533 | if test "$aix_use_runtimelinking" = yes; then |
| 24534 | # Warning - without using the other runtime loading flags (-brtl), |
| 24535 | # -berok will link without error, but may produce a broken library. |
| 24536 | allow_undefined_flag_GCJ='-berok' |
| 24537 | # Determine the default libpath from the value encoded in an empty executable. |
| 24538 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24539 | /* confdefs.h. */ |
| 24540 | _ACEOF |
| 24541 | cat confdefs.h >>conftest.$ac_ext |
| 24542 | cat >>conftest.$ac_ext <<_ACEOF |
| 24543 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24544 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24545 | int |
| 24546 | main () |
| 24547 | { |
| 24548 | |
| 24549 | ; |
| 24550 | return 0; |
| 24551 | } |
| 24552 | _ACEOF |
| 24553 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24554 | if { (ac_try="$ac_link" |
| 24555 | case "(($ac_try" in |
| 24556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24557 | *) ac_try_echo=$ac_try;; |
| 24558 | esac |
| 24559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24560 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24561 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24563 | rm -f conftest.er1 |
| 24564 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 24566 | (exit $ac_status); } && |
| 24567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24568 | { (case "(($ac_try" in |
| 24569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24570 | *) ac_try_echo=$ac_try;; |
| 24571 | esac |
| 24572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24573 | (eval "$ac_try") 2>&5 |
| 24574 | ac_status=$? |
| 24575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24576 | (exit $ac_status); }; } && |
| 24577 | { ac_try='test -s conftest$ac_exeext' |
| 24578 | { (case "(($ac_try" in |
| 24579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24580 | *) ac_try_echo=$ac_try;; |
| 24581 | esac |
| 24582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24583 | (eval "$ac_try") 2>&5 |
| 24584 | ac_status=$? |
| 24585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24586 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24587 | |
| 24588 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24589 | }'` |
| 24590 | # Check for a 64-bit object if we didn't find anything. |
| 24591 | 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; } |
| 24592 | }'`; fi |
| 24593 | else |
| 24594 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24597 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24598 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24599 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 24600 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24601 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24602 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24603 | |
| 24604 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24605 | 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] | 24606 | else |
| 24607 | if test "$host_cpu" = ia64; then |
| 24608 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24609 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24610 | 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] | 24611 | else |
| 24612 | # Determine the default libpath from the value encoded in an empty executable. |
| 24613 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24614 | /* confdefs.h. */ |
| 24615 | _ACEOF |
| 24616 | cat confdefs.h >>conftest.$ac_ext |
| 24617 | cat >>conftest.$ac_ext <<_ACEOF |
| 24618 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24619 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24620 | int |
| 24621 | main () |
| 24622 | { |
| 24623 | |
| 24624 | ; |
| 24625 | return 0; |
| 24626 | } |
| 24627 | _ACEOF |
| 24628 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24629 | if { (ac_try="$ac_link" |
| 24630 | case "(($ac_try" in |
| 24631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24632 | *) ac_try_echo=$ac_try;; |
| 24633 | esac |
| 24634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24635 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24636 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24638 | rm -f conftest.er1 |
| 24639 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 24641 | (exit $ac_status); } && |
| 24642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24643 | { (case "(($ac_try" in |
| 24644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24645 | *) ac_try_echo=$ac_try;; |
| 24646 | esac |
| 24647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24648 | (eval "$ac_try") 2>&5 |
| 24649 | ac_status=$? |
| 24650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24651 | (exit $ac_status); }; } && |
| 24652 | { ac_try='test -s conftest$ac_exeext' |
| 24653 | { (case "(($ac_try" in |
| 24654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24655 | *) ac_try_echo=$ac_try;; |
| 24656 | esac |
| 24657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24658 | (eval "$ac_try") 2>&5 |
| 24659 | ac_status=$? |
| 24660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24661 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24662 | |
| 24663 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24664 | }'` |
| 24665 | # Check for a 64-bit object if we didn't find anything. |
| 24666 | 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; } |
| 24667 | }'`; fi |
| 24668 | else |
| 24669 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24671 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24672 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24673 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24674 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 24675 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24676 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24677 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24678 | |
| 24679 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24680 | # Warning - without using the other run time loading flags, |
| 24681 | # -berok will link without error, but may produce a broken library. |
| 24682 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24683 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24684 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24685 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24686 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24687 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24688 | 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] | 24689 | fi |
| 24690 | fi |
| 24691 | ;; |
| 24692 | |
| 24693 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24694 | 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] | 24695 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24696 | hardcode_minus_L_GCJ=yes |
| 24697 | # see comment about different semantics on the GNU ld section |
| 24698 | ld_shlibs_GCJ=no |
| 24699 | ;; |
| 24700 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24701 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24702 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24703 | ;; |
| 24704 | |
| 24705 | cygwin* | mingw* | pw32*) |
| 24706 | # When not using gcc, we currently assume that we are using |
| 24707 | # Microsoft Visual C++. |
| 24708 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24709 | # no search path for DLLs. |
| 24710 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24711 | allow_undefined_flag_GCJ=unsupported |
| 24712 | # Tell ltmain to make .lib files, not .a files. |
| 24713 | libext=lib |
| 24714 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24715 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24716 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24717 | 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] | 24718 | # The linker will automatically build a .lib file if we build a DLL. |
| 24719 | old_archive_From_new_cmds_GCJ='true' |
| 24720 | # FIXME: Should let the user specify the lib program. |
| 24721 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24722 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24723 | enable_shared_with_static_runtimes_GCJ=yes |
| 24724 | ;; |
| 24725 | |
| 24726 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24727 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24728 | rhapsody* | darwin1.[012]) |
| 24729 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 24730 | ;; |
| 24731 | *) # Darwin 1.3 on |
| 24732 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24733 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24734 | else |
| 24735 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24736 | 10.[012]) |
| 24737 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24738 | ;; |
| 24739 | 10.*) |
| 24740 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 24741 | ;; |
| 24742 | esac |
| 24743 | fi |
| 24744 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24745 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24746 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24747 | hardcode_direct_GCJ=no |
| 24748 | hardcode_automatic_GCJ=yes |
| 24749 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24750 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24751 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24752 | if test "$GCC" = yes ; then |
| 24753 | output_verbose_link_cmd='echo' |
| 24754 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 24755 | 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] | 24756 | # 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] | 24757 | 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}' |
| 24758 | 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] | 24759 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24760 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24761 | xlc*) |
| 24762 | output_verbose_link_cmd='echo' |
| 24763 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 24764 | 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] | 24765 | # 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] | 24766 | 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}' |
| 24767 | 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] | 24768 | ;; |
| 24769 | *) |
| 24770 | ld_shlibs_GCJ=no |
| 24771 | ;; |
| 24772 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24773 | fi |
| 24774 | ;; |
| 24775 | |
| 24776 | dgux*) |
| 24777 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24778 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24779 | hardcode_shlibpath_var_GCJ=no |
| 24780 | ;; |
| 24781 | |
| 24782 | freebsd1*) |
| 24783 | ld_shlibs_GCJ=no |
| 24784 | ;; |
| 24785 | |
| 24786 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 24787 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 24788 | # does not break anything, and helps significantly (at the cost of a little |
| 24789 | # extra space). |
| 24790 | freebsd2.2*) |
| 24791 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 24792 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24793 | hardcode_direct_GCJ=yes |
| 24794 | hardcode_shlibpath_var_GCJ=no |
| 24795 | ;; |
| 24796 | |
| 24797 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 24798 | freebsd2*) |
| 24799 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24800 | hardcode_direct_GCJ=yes |
| 24801 | hardcode_minus_L_GCJ=yes |
| 24802 | hardcode_shlibpath_var_GCJ=no |
| 24803 | ;; |
| 24804 | |
| 24805 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24806 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24807 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 24808 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24809 | hardcode_direct_GCJ=yes |
| 24810 | hardcode_shlibpath_var_GCJ=no |
| 24811 | ;; |
| 24812 | |
| 24813 | hpux9*) |
| 24814 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24815 | 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] | 24816 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24817 | 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] | 24818 | fi |
| 24819 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24820 | hardcode_libdir_separator_GCJ=: |
| 24821 | hardcode_direct_GCJ=yes |
| 24822 | |
| 24823 | # hardcode_minus_L: Not really in the search PATH, |
| 24824 | # but as the default location of the library. |
| 24825 | hardcode_minus_L_GCJ=yes |
| 24826 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24827 | ;; |
| 24828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24829 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24830 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24831 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24832 | else |
| 24833 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 24834 | fi |
| 24835 | if test "$with_gnu_ld" = no; then |
| 24836 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24837 | hardcode_libdir_separator_GCJ=: |
| 24838 | |
| 24839 | hardcode_direct_GCJ=yes |
| 24840 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24841 | |
| 24842 | # hardcode_minus_L: Not really in the search PATH, |
| 24843 | # but as the default location of the library. |
| 24844 | hardcode_minus_L_GCJ=yes |
| 24845 | fi |
| 24846 | ;; |
| 24847 | |
| 24848 | hpux11*) |
| 24849 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 24850 | case $host_cpu in |
| 24851 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24852 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24853 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24854 | ia64*) |
| 24855 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 24856 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24857 | *) |
| 24858 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24859 | ;; |
| 24860 | esac |
| 24861 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24862 | case $host_cpu in |
| 24863 | hppa*64*) |
| 24864 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24865 | ;; |
| 24866 | ia64*) |
| 24867 | 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] | 24868 | ;; |
| 24869 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24870 | 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] | 24871 | ;; |
| 24872 | esac |
| 24873 | fi |
| 24874 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24875 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24876 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24878 | case $host_cpu in |
| 24879 | hppa*64*|ia64*) |
| 24880 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 24881 | hardcode_direct_GCJ=no |
| 24882 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24883 | ;; |
| 24884 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24885 | hardcode_direct_GCJ=yes |
| 24886 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24887 | |
| 24888 | # hardcode_minus_L: Not really in the search PATH, |
| 24889 | # but as the default location of the library. |
| 24890 | hardcode_minus_L_GCJ=yes |
| 24891 | ;; |
| 24892 | esac |
| 24893 | fi |
| 24894 | ;; |
| 24895 | |
| 24896 | irix5* | irix6* | nonstopux*) |
| 24897 | if test "$GCC" = yes; then |
| 24898 | 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' |
| 24899 | else |
| 24900 | 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' |
| 24901 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 24902 | fi |
| 24903 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24904 | hardcode_libdir_separator_GCJ=: |
| 24905 | link_all_deplibs_GCJ=yes |
| 24906 | ;; |
| 24907 | |
| 24908 | netbsd*) |
| 24909 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24910 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 24911 | else |
| 24912 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 24913 | fi |
| 24914 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24915 | hardcode_direct_GCJ=yes |
| 24916 | hardcode_shlibpath_var_GCJ=no |
| 24917 | ;; |
| 24918 | |
| 24919 | newsos6) |
| 24920 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24921 | hardcode_direct_GCJ=yes |
| 24922 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24923 | hardcode_libdir_separator_GCJ=: |
| 24924 | hardcode_shlibpath_var_GCJ=no |
| 24925 | ;; |
| 24926 | |
| 24927 | openbsd*) |
| 24928 | hardcode_direct_GCJ=yes |
| 24929 | hardcode_shlibpath_var_GCJ=no |
| 24930 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 24931 | 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] | 24932 | 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] | 24933 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24934 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24935 | else |
| 24936 | case $host_os in |
| 24937 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 24938 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24939 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24940 | ;; |
| 24941 | *) |
| 24942 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 24943 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24944 | ;; |
| 24945 | esac |
| 24946 | fi |
| 24947 | ;; |
| 24948 | |
| 24949 | os2*) |
| 24950 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24951 | hardcode_minus_L_GCJ=yes |
| 24952 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24953 | 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] | 24954 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 24955 | ;; |
| 24956 | |
| 24957 | osf3*) |
| 24958 | if test "$GCC" = yes; then |
| 24959 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24960 | 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' |
| 24961 | else |
| 24962 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24963 | 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' |
| 24964 | fi |
| 24965 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24966 | hardcode_libdir_separator_GCJ=: |
| 24967 | ;; |
| 24968 | |
| 24969 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 24970 | if test "$GCC" = yes; then |
| 24971 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24972 | 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' |
| 24973 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24974 | else |
| 24975 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24976 | 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] | 24977 | 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] | 24978 | $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] | 24979 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24980 | # Both c and cxx compiler support -rpath directly |
| 24981 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 24982 | fi |
| 24983 | hardcode_libdir_separator_GCJ=: |
| 24984 | ;; |
| 24985 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24986 | solaris*) |
| 24987 | no_undefined_flag_GCJ=' -z text' |
| 24988 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24989 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24990 | 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] | 24991 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24992 | $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] | 24993 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24994 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24995 | 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] | 24996 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24997 | $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] | 24998 | fi |
| 24999 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25000 | hardcode_shlibpath_var_GCJ=no |
| 25001 | case $host_os in |
| 25002 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25003 | *) |
| 25004 | # The compiler driver will combine linker options so we |
| 25005 | # cannot just pass the convience library names through |
| 25006 | # without $wl, iff we do not link with $LD. |
| 25007 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25008 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25009 | case $wlarc in |
| 25010 | '') |
| 25011 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25012 | *) |
| 25013 | 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' ;; |
| 25014 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25015 | esac |
| 25016 | link_all_deplibs_GCJ=yes |
| 25017 | ;; |
| 25018 | |
| 25019 | sunos4*) |
| 25020 | if test "x$host_vendor" = xsequent; then |
| 25021 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25022 | # files that make .init and .fini sections work. |
| 25023 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25024 | else |
| 25025 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25026 | fi |
| 25027 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25028 | hardcode_direct_GCJ=yes |
| 25029 | hardcode_minus_L_GCJ=yes |
| 25030 | hardcode_shlibpath_var_GCJ=no |
| 25031 | ;; |
| 25032 | |
| 25033 | sysv4) |
| 25034 | case $host_vendor in |
| 25035 | sni) |
| 25036 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25037 | hardcode_direct_GCJ=yes # is this really true??? |
| 25038 | ;; |
| 25039 | siemens) |
| 25040 | ## LD is ld it makes a PLAMLIB |
| 25041 | ## CC just makes a GrossModule. |
| 25042 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25043 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25044 | hardcode_direct_GCJ=no |
| 25045 | ;; |
| 25046 | motorola) |
| 25047 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25048 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25049 | ;; |
| 25050 | esac |
| 25051 | runpath_var='LD_RUN_PATH' |
| 25052 | hardcode_shlibpath_var_GCJ=no |
| 25053 | ;; |
| 25054 | |
| 25055 | sysv4.3*) |
| 25056 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25057 | hardcode_shlibpath_var_GCJ=no |
| 25058 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25059 | ;; |
| 25060 | |
| 25061 | sysv4*MP*) |
| 25062 | if test -d /usr/nec; then |
| 25063 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25064 | hardcode_shlibpath_var_GCJ=no |
| 25065 | runpath_var=LD_RUN_PATH |
| 25066 | hardcode_runpath_var=yes |
| 25067 | ld_shlibs_GCJ=yes |
| 25068 | fi |
| 25069 | ;; |
| 25070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25071 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25072 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25073 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25074 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25075 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25076 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25077 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25078 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25079 | 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] | 25080 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25081 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25082 | 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] | 25083 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25084 | ;; |
| 25085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25086 | sysv5* | sco3.2v5* | sco5v6*) |
| 25087 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25088 | # link with -lc, and that would cause any symbols used from libc to |
| 25089 | # always be unresolved, which means just about no library would |
| 25090 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25091 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25092 | # as -z defs. |
| 25093 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25094 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25095 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25096 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25097 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25098 | hardcode_libdir_separator_GCJ=':' |
| 25099 | link_all_deplibs_GCJ=yes |
| 25100 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25101 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25102 | |
| 25103 | if test "$GCC" = yes; then |
| 25104 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25105 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25106 | else |
| 25107 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25108 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25109 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25110 | ;; |
| 25111 | |
| 25112 | uts4*) |
| 25113 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25114 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25115 | hardcode_shlibpath_var_GCJ=no |
| 25116 | ;; |
| 25117 | |
| 25118 | *) |
| 25119 | ld_shlibs_GCJ=no |
| 25120 | ;; |
| 25121 | esac |
| 25122 | fi |
| 25123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25124 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25125 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25126 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25127 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25128 | # |
| 25129 | # Do we need to explicitly link libc? |
| 25130 | # |
| 25131 | case "x$archive_cmds_need_lc_GCJ" in |
| 25132 | x|xyes) |
| 25133 | # Assume -lc should be added |
| 25134 | archive_cmds_need_lc_GCJ=yes |
| 25135 | |
| 25136 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25137 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25138 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25139 | # FIXME: we may have to deal with multi-command sequences. |
| 25140 | ;; |
| 25141 | '$CC '*) |
| 25142 | # Test whether the compiler implicitly links with -lc since on some |
| 25143 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25144 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25145 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25146 | 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] | 25147 | $rm conftest* |
| 25148 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25149 | |
| 25150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25151 | (eval $ac_compile) 2>&5 |
| 25152 | ac_status=$? |
| 25153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25154 | (exit $ac_status); } 2>conftest.err; then |
| 25155 | soname=conftest |
| 25156 | lib=conftest |
| 25157 | libobjs=conftest.$ac_objext |
| 25158 | deplibs= |
| 25159 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25160 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25161 | compiler_flags=-v |
| 25162 | linker_flags=-v |
| 25163 | verstring= |
| 25164 | output_objdir=. |
| 25165 | libname=conftest |
| 25166 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25167 | allow_undefined_flag_GCJ= |
| 25168 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25169 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25170 | ac_status=$? |
| 25171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25172 | (exit $ac_status); } |
| 25173 | then |
| 25174 | archive_cmds_need_lc_GCJ=no |
| 25175 | else |
| 25176 | archive_cmds_need_lc_GCJ=yes |
| 25177 | fi |
| 25178 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25179 | else |
| 25180 | cat conftest.err 1>&5 |
| 25181 | fi |
| 25182 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25183 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25184 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25185 | ;; |
| 25186 | esac |
| 25187 | fi |
| 25188 | ;; |
| 25189 | esac |
| 25190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25191 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25192 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25193 | library_names_spec= |
| 25194 | libname_spec='lib$name' |
| 25195 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25196 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25197 | postinstall_cmds= |
| 25198 | postuninstall_cmds= |
| 25199 | finish_cmds= |
| 25200 | finish_eval= |
| 25201 | shlibpath_var= |
| 25202 | shlibpath_overrides_runpath=unknown |
| 25203 | version_type=none |
| 25204 | dynamic_linker="$host_os ld.so" |
| 25205 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25206 | if test "$GCC" = yes; then |
| 25207 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25208 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25209 | # if the path contains ";" then we assume it to be the separator |
| 25210 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25211 | # assumed that no part of a normal pathname contains ";" but that should |
| 25212 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25213 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25214 | else |
| 25215 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25216 | fi |
| 25217 | else |
| 25218 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25219 | fi |
| 25220 | need_lib_prefix=unknown |
| 25221 | hardcode_into_libs=no |
| 25222 | |
| 25223 | # when you set need_version to no, make sure it does not cause -set_version |
| 25224 | # flags to be left without arguments |
| 25225 | need_version=unknown |
| 25226 | |
| 25227 | case $host_os in |
| 25228 | aix3*) |
| 25229 | version_type=linux |
| 25230 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25231 | shlibpath_var=LIBPATH |
| 25232 | |
| 25233 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25234 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25235 | ;; |
| 25236 | |
| 25237 | aix4* | aix5*) |
| 25238 | version_type=linux |
| 25239 | need_lib_prefix=no |
| 25240 | need_version=no |
| 25241 | hardcode_into_libs=yes |
| 25242 | if test "$host_cpu" = ia64; then |
| 25243 | # AIX 5 supports IA64 |
| 25244 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25245 | shlibpath_var=LD_LIBRARY_PATH |
| 25246 | else |
| 25247 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25248 | # for dependence libraries. The import file would start with |
| 25249 | # the line `#! .'. This would cause the generated library to |
| 25250 | # depend on `.', always an invalid library. This was fixed in |
| 25251 | # development snapshots of GCC prior to 3.0. |
| 25252 | case $host_os in |
| 25253 | aix4 | aix4.[01] | aix4.[01].*) |
| 25254 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25255 | echo ' yes ' |
| 25256 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25257 | : |
| 25258 | else |
| 25259 | can_build_shared=no |
| 25260 | fi |
| 25261 | ;; |
| 25262 | esac |
| 25263 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25264 | # soname into executable. Probably we can add versioning support to |
| 25265 | # collect2, so additional links can be useful in future. |
| 25266 | if test "$aix_use_runtimelinking" = yes; then |
| 25267 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25268 | # instead of lib<name>.a to let people know that these are not |
| 25269 | # typical AIX shared libraries. |
| 25270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25271 | else |
| 25272 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25273 | # and later when we are not doing run time linking. |
| 25274 | library_names_spec='${libname}${release}.a $libname.a' |
| 25275 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25276 | fi |
| 25277 | shlibpath_var=LIBPATH |
| 25278 | fi |
| 25279 | ;; |
| 25280 | |
| 25281 | amigaos*) |
| 25282 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25283 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25284 | 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] | 25285 | ;; |
| 25286 | |
| 25287 | beos*) |
| 25288 | library_names_spec='${libname}${shared_ext}' |
| 25289 | dynamic_linker="$host_os ld.so" |
| 25290 | shlibpath_var=LIBRARY_PATH |
| 25291 | ;; |
| 25292 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25293 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25294 | version_type=linux |
| 25295 | need_version=no |
| 25296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25297 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25298 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25299 | shlibpath_var=LD_LIBRARY_PATH |
| 25300 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25301 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25302 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25303 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25304 | # libtool to hard-code these into programs |
| 25305 | ;; |
| 25306 | |
| 25307 | cygwin* | mingw* | pw32*) |
| 25308 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25309 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25310 | need_version=no |
| 25311 | need_lib_prefix=no |
| 25312 | |
| 25313 | case $GCC,$host_os in |
| 25314 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25315 | library_names_spec='$libname.dll.a' |
| 25316 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25317 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25318 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25319 | dldir=$destdir/`dirname \$dlpath`~ |
| 25320 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25321 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25322 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25323 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25324 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25325 | $rm \$dlpath' |
| 25326 | shlibpath_overrides_runpath=yes |
| 25327 | |
| 25328 | case $host_os in |
| 25329 | cygwin*) |
| 25330 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25331 | 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] | 25332 | 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] | 25333 | ;; |
| 25334 | mingw*) |
| 25335 | # MinGW DLLs use traditional 'lib' prefix |
| 25336 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25337 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25338 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25339 | # It is most probably a Windows format PATH printed by |
| 25340 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25341 | # path with ; separators, and with drive letters. We can handle the |
| 25342 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25343 | # especially as we might pass files found there to a mingw objdump, |
| 25344 | # which wouldn't understand a cygwinified path. Ahh. |
| 25345 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25346 | else |
| 25347 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25348 | fi |
| 25349 | ;; |
| 25350 | pw32*) |
| 25351 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25352 | 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] | 25353 | ;; |
| 25354 | esac |
| 25355 | ;; |
| 25356 | |
| 25357 | *) |
| 25358 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25359 | ;; |
| 25360 | esac |
| 25361 | dynamic_linker='Win32 ld.exe' |
| 25362 | # FIXME: first we should search . and the directory the executable is in |
| 25363 | shlibpath_var=PATH |
| 25364 | ;; |
| 25365 | |
| 25366 | darwin* | rhapsody*) |
| 25367 | dynamic_linker="$host_os dyld" |
| 25368 | version_type=darwin |
| 25369 | need_lib_prefix=no |
| 25370 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25371 | 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] | 25372 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25373 | shlibpath_overrides_runpath=yes |
| 25374 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25375 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25376 | # 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] | 25377 | if test "$GCC" = yes; then |
| 25378 | 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"` |
| 25379 | else |
| 25380 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25381 | fi |
| 25382 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25383 | ;; |
| 25384 | |
| 25385 | dgux*) |
| 25386 | version_type=linux |
| 25387 | need_lib_prefix=no |
| 25388 | need_version=no |
| 25389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25390 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25391 | shlibpath_var=LD_LIBRARY_PATH |
| 25392 | ;; |
| 25393 | |
| 25394 | freebsd1*) |
| 25395 | dynamic_linker=no |
| 25396 | ;; |
| 25397 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25398 | kfreebsd*-gnu) |
| 25399 | version_type=linux |
| 25400 | need_lib_prefix=no |
| 25401 | need_version=no |
| 25402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25403 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25404 | shlibpath_var=LD_LIBRARY_PATH |
| 25405 | shlibpath_overrides_runpath=no |
| 25406 | hardcode_into_libs=yes |
| 25407 | dynamic_linker='GNU ld.so' |
| 25408 | ;; |
| 25409 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25410 | freebsd* | dragonfly*) |
| 25411 | # DragonFly does not have aout. When/if they implement a new |
| 25412 | # versioning mechanism, adjust this. |
| 25413 | if test -x /usr/bin/objformat; then |
| 25414 | objformat=`/usr/bin/objformat` |
| 25415 | else |
| 25416 | case $host_os in |
| 25417 | freebsd[123]*) objformat=aout ;; |
| 25418 | *) objformat=elf ;; |
| 25419 | esac |
| 25420 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25421 | version_type=freebsd-$objformat |
| 25422 | case $version_type in |
| 25423 | freebsd-elf*) |
| 25424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25425 | need_version=no |
| 25426 | need_lib_prefix=no |
| 25427 | ;; |
| 25428 | freebsd-*) |
| 25429 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25430 | need_version=yes |
| 25431 | ;; |
| 25432 | esac |
| 25433 | shlibpath_var=LD_LIBRARY_PATH |
| 25434 | case $host_os in |
| 25435 | freebsd2*) |
| 25436 | shlibpath_overrides_runpath=yes |
| 25437 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25438 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25439 | shlibpath_overrides_runpath=yes |
| 25440 | hardcode_into_libs=yes |
| 25441 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25442 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25443 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25444 | shlibpath_overrides_runpath=no |
| 25445 | hardcode_into_libs=yes |
| 25446 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25447 | freebsd*) # from 4.6 on |
| 25448 | shlibpath_overrides_runpath=yes |
| 25449 | hardcode_into_libs=yes |
| 25450 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25451 | esac |
| 25452 | ;; |
| 25453 | |
| 25454 | gnu*) |
| 25455 | version_type=linux |
| 25456 | need_lib_prefix=no |
| 25457 | need_version=no |
| 25458 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25459 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25460 | shlibpath_var=LD_LIBRARY_PATH |
| 25461 | hardcode_into_libs=yes |
| 25462 | ;; |
| 25463 | |
| 25464 | hpux9* | hpux10* | hpux11*) |
| 25465 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25466 | # link against other versions. |
| 25467 | version_type=sunos |
| 25468 | need_lib_prefix=no |
| 25469 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25470 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25471 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25472 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25473 | hardcode_into_libs=yes |
| 25474 | dynamic_linker="$host_os dld.so" |
| 25475 | shlibpath_var=LD_LIBRARY_PATH |
| 25476 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25478 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25479 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25480 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25481 | else |
| 25482 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25483 | fi |
| 25484 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25485 | ;; |
| 25486 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25487 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25488 | hardcode_into_libs=yes |
| 25489 | dynamic_linker="$host_os dld.sl" |
| 25490 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25491 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25493 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25494 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25495 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25496 | ;; |
| 25497 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25498 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25499 | dynamic_linker="$host_os dld.sl" |
| 25500 | shlibpath_var=SHLIB_PATH |
| 25501 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25503 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25504 | ;; |
| 25505 | esac |
| 25506 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25507 | postinstall_cmds='chmod 555 $lib' |
| 25508 | ;; |
| 25509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25510 | interix3*) |
| 25511 | version_type=linux |
| 25512 | need_lib_prefix=no |
| 25513 | need_version=no |
| 25514 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25515 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25516 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25517 | shlibpath_var=LD_LIBRARY_PATH |
| 25518 | shlibpath_overrides_runpath=no |
| 25519 | hardcode_into_libs=yes |
| 25520 | ;; |
| 25521 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25522 | irix5* | irix6* | nonstopux*) |
| 25523 | case $host_os in |
| 25524 | nonstopux*) version_type=nonstopux ;; |
| 25525 | *) |
| 25526 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25527 | version_type=linux |
| 25528 | else |
| 25529 | version_type=irix |
| 25530 | fi ;; |
| 25531 | esac |
| 25532 | need_lib_prefix=no |
| 25533 | need_version=no |
| 25534 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25536 | case $host_os in |
| 25537 | irix5* | nonstopux*) |
| 25538 | libsuff= shlibsuff= |
| 25539 | ;; |
| 25540 | *) |
| 25541 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25542 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25543 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25544 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25545 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25546 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25547 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25548 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25549 | esac |
| 25550 | ;; |
| 25551 | esac |
| 25552 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25553 | shlibpath_overrides_runpath=no |
| 25554 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25555 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25556 | hardcode_into_libs=yes |
| 25557 | ;; |
| 25558 | |
| 25559 | # No shared lib support for Linux oldld, aout, or coff. |
| 25560 | linux*oldld* | linux*aout* | linux*coff*) |
| 25561 | dynamic_linker=no |
| 25562 | ;; |
| 25563 | |
| 25564 | # This must be Linux ELF. |
| 25565 | linux*) |
| 25566 | version_type=linux |
| 25567 | need_lib_prefix=no |
| 25568 | need_version=no |
| 25569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25570 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25571 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25572 | shlibpath_var=LD_LIBRARY_PATH |
| 25573 | shlibpath_overrides_runpath=no |
| 25574 | # This implies no fast_install, which is unacceptable. |
| 25575 | # Some rework will be needed to allow for fast_install |
| 25576 | # before this can be enabled. |
| 25577 | hardcode_into_libs=yes |
| 25578 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25579 | # Append ld.so.conf contents to the search path |
| 25580 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25581 | 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] | 25582 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25583 | fi |
| 25584 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25585 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25586 | # powerpc, because MkLinux only supported shared libraries with the |
| 25587 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25588 | # most powerpc-linux boxes support dynamic linking these days and |
| 25589 | # people can always --disable-shared, the test was removed, and we |
| 25590 | # assume the GNU/Linux dynamic linker is in use. |
| 25591 | dynamic_linker='GNU/Linux ld.so' |
| 25592 | ;; |
| 25593 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25594 | knetbsd*-gnu) |
| 25595 | version_type=linux |
| 25596 | need_lib_prefix=no |
| 25597 | need_version=no |
| 25598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25599 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25600 | shlibpath_var=LD_LIBRARY_PATH |
| 25601 | shlibpath_overrides_runpath=no |
| 25602 | hardcode_into_libs=yes |
| 25603 | dynamic_linker='GNU ld.so' |
| 25604 | ;; |
| 25605 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25606 | netbsd*) |
| 25607 | version_type=sunos |
| 25608 | need_lib_prefix=no |
| 25609 | need_version=no |
| 25610 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25612 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25613 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25614 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25615 | 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] | 25616 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25617 | dynamic_linker='NetBSD ld.elf_so' |
| 25618 | fi |
| 25619 | shlibpath_var=LD_LIBRARY_PATH |
| 25620 | shlibpath_overrides_runpath=yes |
| 25621 | hardcode_into_libs=yes |
| 25622 | ;; |
| 25623 | |
| 25624 | newsos6) |
| 25625 | version_type=linux |
| 25626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25627 | shlibpath_var=LD_LIBRARY_PATH |
| 25628 | shlibpath_overrides_runpath=yes |
| 25629 | ;; |
| 25630 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25631 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25632 | version_type=linux |
| 25633 | need_lib_prefix=no |
| 25634 | need_version=no |
| 25635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25636 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25637 | shlibpath_var=LD_LIBRARY_PATH |
| 25638 | shlibpath_overrides_runpath=yes |
| 25639 | ;; |
| 25640 | |
| 25641 | openbsd*) |
| 25642 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25643 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25644 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25645 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25646 | case $host_os in |
| 25647 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25648 | *) need_version=no ;; |
| 25649 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25650 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25651 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25652 | shlibpath_var=LD_LIBRARY_PATH |
| 25653 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25654 | case $host_os in |
| 25655 | openbsd2.[89] | openbsd2.[89].*) |
| 25656 | shlibpath_overrides_runpath=no |
| 25657 | ;; |
| 25658 | *) |
| 25659 | shlibpath_overrides_runpath=yes |
| 25660 | ;; |
| 25661 | esac |
| 25662 | else |
| 25663 | shlibpath_overrides_runpath=yes |
| 25664 | fi |
| 25665 | ;; |
| 25666 | |
| 25667 | os2*) |
| 25668 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25669 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25670 | need_lib_prefix=no |
| 25671 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25672 | dynamic_linker='OS/2 ld.exe' |
| 25673 | shlibpath_var=LIBPATH |
| 25674 | ;; |
| 25675 | |
| 25676 | osf3* | osf4* | osf5*) |
| 25677 | version_type=osf |
| 25678 | need_lib_prefix=no |
| 25679 | need_version=no |
| 25680 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25682 | shlibpath_var=LD_LIBRARY_PATH |
| 25683 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25684 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25685 | ;; |
| 25686 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25687 | solaris*) |
| 25688 | version_type=linux |
| 25689 | need_lib_prefix=no |
| 25690 | need_version=no |
| 25691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25692 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25693 | shlibpath_var=LD_LIBRARY_PATH |
| 25694 | shlibpath_overrides_runpath=yes |
| 25695 | hardcode_into_libs=yes |
| 25696 | # ldd complains unless libraries are executable |
| 25697 | postinstall_cmds='chmod +x $lib' |
| 25698 | ;; |
| 25699 | |
| 25700 | sunos4*) |
| 25701 | version_type=sunos |
| 25702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25703 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25704 | shlibpath_var=LD_LIBRARY_PATH |
| 25705 | shlibpath_overrides_runpath=yes |
| 25706 | if test "$with_gnu_ld" = yes; then |
| 25707 | need_lib_prefix=no |
| 25708 | fi |
| 25709 | need_version=yes |
| 25710 | ;; |
| 25711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25712 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25713 | version_type=linux |
| 25714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25715 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25716 | shlibpath_var=LD_LIBRARY_PATH |
| 25717 | case $host_vendor in |
| 25718 | sni) |
| 25719 | shlibpath_overrides_runpath=no |
| 25720 | need_lib_prefix=no |
| 25721 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 25722 | runpath_var=LD_RUN_PATH |
| 25723 | ;; |
| 25724 | siemens) |
| 25725 | need_lib_prefix=no |
| 25726 | ;; |
| 25727 | motorola) |
| 25728 | need_lib_prefix=no |
| 25729 | need_version=no |
| 25730 | shlibpath_overrides_runpath=no |
| 25731 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 25732 | ;; |
| 25733 | esac |
| 25734 | ;; |
| 25735 | |
| 25736 | sysv4*MP*) |
| 25737 | if test -d /usr/nec ;then |
| 25738 | version_type=linux |
| 25739 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 25740 | soname_spec='$libname${shared_ext}.$major' |
| 25741 | shlibpath_var=LD_LIBRARY_PATH |
| 25742 | fi |
| 25743 | ;; |
| 25744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25745 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 25746 | version_type=freebsd-elf |
| 25747 | need_lib_prefix=no |
| 25748 | need_version=no |
| 25749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25750 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25751 | shlibpath_var=LD_LIBRARY_PATH |
| 25752 | hardcode_into_libs=yes |
| 25753 | if test "$with_gnu_ld" = yes; then |
| 25754 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 25755 | shlibpath_overrides_runpath=no |
| 25756 | else |
| 25757 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 25758 | shlibpath_overrides_runpath=yes |
| 25759 | case $host_os in |
| 25760 | sco3.2v5*) |
| 25761 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 25762 | ;; |
| 25763 | esac |
| 25764 | fi |
| 25765 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 25766 | ;; |
| 25767 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25768 | uts4*) |
| 25769 | version_type=linux |
| 25770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25771 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25772 | shlibpath_var=LD_LIBRARY_PATH |
| 25773 | ;; |
| 25774 | |
| 25775 | *) |
| 25776 | dynamic_linker=no |
| 25777 | ;; |
| 25778 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25779 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 25780 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25781 | test "$dynamic_linker" = no && can_build_shared=no |
| 25782 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25783 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 25784 | if test "$GCC" = yes; then |
| 25785 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 25786 | fi |
| 25787 | |
| 25788 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 25789 | 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] | 25790 | hardcode_action_GCJ= |
| 25791 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 25792 | test -n "$runpath_var_GCJ" || \ |
| 25793 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 25794 | |
| 25795 | # We can hardcode non-existant directories. |
| 25796 | if test "$hardcode_direct_GCJ" != no && |
| 25797 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 25798 | # have to relink, otherwise we might link with an installed library |
| 25799 | # when we should be linking with a yet-to-be-installed one |
| 25800 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 25801 | test "$hardcode_minus_L_GCJ" != no; then |
| 25802 | # Linking always hardcodes the temporary library directory. |
| 25803 | hardcode_action_GCJ=relink |
| 25804 | else |
| 25805 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 25806 | hardcode_action_GCJ=immediate |
| 25807 | fi |
| 25808 | else |
| 25809 | # We cannot hardcode anything, or else we can only hardcode existing |
| 25810 | # directories. |
| 25811 | hardcode_action_GCJ=unsupported |
| 25812 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25813 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 25814 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25815 | |
| 25816 | if test "$hardcode_action_GCJ" = relink; then |
| 25817 | # Fast installation is not supported |
| 25818 | enable_fast_install=no |
| 25819 | elif test "$shlibpath_overrides_runpath" = yes || |
| 25820 | test "$enable_shared" = no; then |
| 25821 | # Fast installation is not necessary |
| 25822 | enable_fast_install=needless |
| 25823 | fi |
| 25824 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25825 | |
| 25826 | # The else clause should only fire when bootstrapping the |
| 25827 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25828 | # with your package, and you will get complaints that there are |
| 25829 | # no rules to generate ltmain.sh. |
| 25830 | if test -f "$ltmain"; then |
| 25831 | # See if we are running on zsh, and set the options which allow our commands through |
| 25832 | # without removal of \ escapes. |
| 25833 | if test -n "${ZSH_VERSION+set}" ; then |
| 25834 | setopt NO_GLOB_SUBST |
| 25835 | fi |
| 25836 | # Now quote all the things that may contain metacharacters while being |
| 25837 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25838 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25839 | 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] | 25840 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25841 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25842 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25843 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25844 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25845 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25846 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25847 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25848 | compiler_GCJ \ |
| 25849 | CC_GCJ \ |
| 25850 | LD_GCJ \ |
| 25851 | lt_prog_compiler_wl_GCJ \ |
| 25852 | lt_prog_compiler_pic_GCJ \ |
| 25853 | lt_prog_compiler_static_GCJ \ |
| 25854 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 25855 | export_dynamic_flag_spec_GCJ \ |
| 25856 | thread_safe_flag_spec_GCJ \ |
| 25857 | whole_archive_flag_spec_GCJ \ |
| 25858 | enable_shared_with_static_runtimes_GCJ \ |
| 25859 | old_archive_cmds_GCJ \ |
| 25860 | old_archive_from_new_cmds_GCJ \ |
| 25861 | predep_objects_GCJ \ |
| 25862 | postdep_objects_GCJ \ |
| 25863 | predeps_GCJ \ |
| 25864 | postdeps_GCJ \ |
| 25865 | compiler_lib_search_path_GCJ \ |
| 25866 | archive_cmds_GCJ \ |
| 25867 | archive_expsym_cmds_GCJ \ |
| 25868 | postinstall_cmds_GCJ \ |
| 25869 | postuninstall_cmds_GCJ \ |
| 25870 | old_archive_from_expsyms_cmds_GCJ \ |
| 25871 | allow_undefined_flag_GCJ \ |
| 25872 | no_undefined_flag_GCJ \ |
| 25873 | export_symbols_cmds_GCJ \ |
| 25874 | hardcode_libdir_flag_spec_GCJ \ |
| 25875 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 25876 | hardcode_libdir_separator_GCJ \ |
| 25877 | hardcode_automatic_GCJ \ |
| 25878 | module_cmds_GCJ \ |
| 25879 | module_expsym_cmds_GCJ \ |
| 25880 | lt_cv_prog_compiler_c_o_GCJ \ |
| 25881 | exclude_expsyms_GCJ \ |
| 25882 | include_expsyms_GCJ; do |
| 25883 | |
| 25884 | case $var in |
| 25885 | old_archive_cmds_GCJ | \ |
| 25886 | old_archive_from_new_cmds_GCJ | \ |
| 25887 | archive_cmds_GCJ | \ |
| 25888 | archive_expsym_cmds_GCJ | \ |
| 25889 | module_cmds_GCJ | \ |
| 25890 | module_expsym_cmds_GCJ | \ |
| 25891 | old_archive_from_expsyms_cmds_GCJ | \ |
| 25892 | export_symbols_cmds_GCJ | \ |
| 25893 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25894 | postinstall_cmds | postuninstall_cmds | \ |
| 25895 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25896 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25897 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25898 | 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] | 25899 | ;; |
| 25900 | *) |
| 25901 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 25902 | ;; |
| 25903 | esac |
| 25904 | done |
| 25905 | |
| 25906 | case $lt_echo in |
| 25907 | *'\$0 --fallback-echo"') |
| 25908 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 25909 | ;; |
| 25910 | esac |
| 25911 | |
| 25912 | cfgfile="$ofile" |
| 25913 | |
| 25914 | cat <<__EOF__ >> "$cfgfile" |
| 25915 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 25916 | |
| 25917 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 25918 | |
| 25919 | # Shell to use when invoking shell scripts. |
| 25920 | SHELL=$lt_SHELL |
| 25921 | |
| 25922 | # Whether or not to build shared libraries. |
| 25923 | build_libtool_libs=$enable_shared |
| 25924 | |
| 25925 | # Whether or not to build static libraries. |
| 25926 | build_old_libs=$enable_static |
| 25927 | |
| 25928 | # Whether or not to add -lc for building shared libraries. |
| 25929 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 25930 | |
| 25931 | # Whether or not to disallow shared libs when runtime libs are static |
| 25932 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 25933 | |
| 25934 | # Whether or not to optimize for fast installation. |
| 25935 | fast_install=$enable_fast_install |
| 25936 | |
| 25937 | # The host system. |
| 25938 | host_alias=$host_alias |
| 25939 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25940 | host_os=$host_os |
| 25941 | |
| 25942 | # The build system. |
| 25943 | build_alias=$build_alias |
| 25944 | build=$build |
| 25945 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25946 | |
| 25947 | # An echo program that does not interpret backslashes. |
| 25948 | echo=$lt_echo |
| 25949 | |
| 25950 | # The archiver. |
| 25951 | AR=$lt_AR |
| 25952 | AR_FLAGS=$lt_AR_FLAGS |
| 25953 | |
| 25954 | # A C compiler. |
| 25955 | LTCC=$lt_LTCC |
| 25956 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25957 | # LTCC compiler flags. |
| 25958 | LTCFLAGS=$lt_LTCFLAGS |
| 25959 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25960 | # A language-specific compiler. |
| 25961 | CC=$lt_compiler_GCJ |
| 25962 | |
| 25963 | # Is the compiler the GNU C compiler? |
| 25964 | with_gcc=$GCC_GCJ |
| 25965 | |
| 25966 | # An ERE matcher. |
| 25967 | EGREP=$lt_EGREP |
| 25968 | |
| 25969 | # The linker used to build libraries. |
| 25970 | LD=$lt_LD_GCJ |
| 25971 | |
| 25972 | # Whether we need hard or soft links. |
| 25973 | LN_S=$lt_LN_S |
| 25974 | |
| 25975 | # A BSD-compatible nm program. |
| 25976 | NM=$lt_NM |
| 25977 | |
| 25978 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25979 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25980 | |
| 25981 | # Used to examine libraries when file_magic_cmd begins "file" |
| 25982 | MAGIC_CMD=$MAGIC_CMD |
| 25983 | |
| 25984 | # Used on cygwin: DLL creation program. |
| 25985 | DLLTOOL="$DLLTOOL" |
| 25986 | |
| 25987 | # Used on cygwin: object dumper. |
| 25988 | OBJDUMP="$OBJDUMP" |
| 25989 | |
| 25990 | # Used on cygwin: assembler. |
| 25991 | AS="$AS" |
| 25992 | |
| 25993 | # The name of the directory that contains temporary libtool files. |
| 25994 | objdir=$objdir |
| 25995 | |
| 25996 | # How to create reloadable object files. |
| 25997 | reload_flag=$lt_reload_flag |
| 25998 | reload_cmds=$lt_reload_cmds |
| 25999 | |
| 26000 | # How to pass a linker flag through the compiler. |
| 26001 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26002 | |
| 26003 | # Object file suffix (normally "o"). |
| 26004 | objext="$ac_objext" |
| 26005 | |
| 26006 | # Old archive suffix (normally "a"). |
| 26007 | libext="$libext" |
| 26008 | |
| 26009 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26010 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26011 | |
| 26012 | # Executable file suffix (normally ""). |
| 26013 | exeext="$exeext" |
| 26014 | |
| 26015 | # Additional compiler flags for building library objects. |
| 26016 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26017 | pic_mode=$pic_mode |
| 26018 | |
| 26019 | # What is the maximum length of a command? |
| 26020 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26021 | |
| 26022 | # Does compiler simultaneously support -c and -o options? |
| 26023 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26025 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26026 | need_locks=$lt_need_locks |
| 26027 | |
| 26028 | # Do we need the lib prefix for modules? |
| 26029 | need_lib_prefix=$need_lib_prefix |
| 26030 | |
| 26031 | # Do we need a version for libraries? |
| 26032 | need_version=$need_version |
| 26033 | |
| 26034 | # Whether dlopen is supported. |
| 26035 | dlopen_support=$enable_dlopen |
| 26036 | |
| 26037 | # Whether dlopen of programs is supported. |
| 26038 | dlopen_self=$enable_dlopen_self |
| 26039 | |
| 26040 | # Whether dlopen of statically linked programs is supported. |
| 26041 | dlopen_self_static=$enable_dlopen_self_static |
| 26042 | |
| 26043 | # Compiler flag to prevent dynamic linking. |
| 26044 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26045 | |
| 26046 | # Compiler flag to turn off builtin functions. |
| 26047 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26048 | |
| 26049 | # Compiler flag to allow reflexive dlopens. |
| 26050 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26051 | |
| 26052 | # Compiler flag to generate shared objects directly from archives. |
| 26053 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26054 | |
| 26055 | # Compiler flag to generate thread-safe objects. |
| 26056 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26057 | |
| 26058 | # Library versioning type. |
| 26059 | version_type=$version_type |
| 26060 | |
| 26061 | # Format of library name prefix. |
| 26062 | libname_spec=$lt_libname_spec |
| 26063 | |
| 26064 | # List of archive names. First name is the real one, the rest are links. |
| 26065 | # The last name is the one that the linker finds with -lNAME. |
| 26066 | library_names_spec=$lt_library_names_spec |
| 26067 | |
| 26068 | # The coded name of the library, if different from the real name. |
| 26069 | soname_spec=$lt_soname_spec |
| 26070 | |
| 26071 | # Commands used to build and install an old-style archive. |
| 26072 | RANLIB=$lt_RANLIB |
| 26073 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26074 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26075 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26076 | |
| 26077 | # Create an old-style archive from a shared archive. |
| 26078 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26079 | |
| 26080 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26081 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26082 | |
| 26083 | # Commands used to build and install a shared archive. |
| 26084 | archive_cmds=$lt_archive_cmds_GCJ |
| 26085 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26086 | postinstall_cmds=$lt_postinstall_cmds |
| 26087 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26088 | |
| 26089 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26090 | module_cmds=$lt_module_cmds_GCJ |
| 26091 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26092 | |
| 26093 | # Commands to strip libraries. |
| 26094 | old_striplib=$lt_old_striplib |
| 26095 | striplib=$lt_striplib |
| 26096 | |
| 26097 | # Dependencies to place before the objects being linked to create a |
| 26098 | # shared library. |
| 26099 | predep_objects=$lt_predep_objects_GCJ |
| 26100 | |
| 26101 | # Dependencies to place after the objects being linked to create a |
| 26102 | # shared library. |
| 26103 | postdep_objects=$lt_postdep_objects_GCJ |
| 26104 | |
| 26105 | # Dependencies to place before the objects being linked to create a |
| 26106 | # shared library. |
| 26107 | predeps=$lt_predeps_GCJ |
| 26108 | |
| 26109 | # Dependencies to place after the objects being linked to create a |
| 26110 | # shared library. |
| 26111 | postdeps=$lt_postdeps_GCJ |
| 26112 | |
| 26113 | # The library search path used internally by the compiler when linking |
| 26114 | # a shared library. |
| 26115 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26116 | |
| 26117 | # Method to check whether dependent libraries are shared objects. |
| 26118 | deplibs_check_method=$lt_deplibs_check_method |
| 26119 | |
| 26120 | # Command to use when deplibs_check_method == file_magic. |
| 26121 | file_magic_cmd=$lt_file_magic_cmd |
| 26122 | |
| 26123 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26124 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26125 | |
| 26126 | # Flag that forces no undefined symbols. |
| 26127 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26128 | |
| 26129 | # Commands used to finish a libtool library installation in a directory. |
| 26130 | finish_cmds=$lt_finish_cmds |
| 26131 | |
| 26132 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26133 | finish_eval=$lt_finish_eval |
| 26134 | |
| 26135 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26136 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26137 | |
| 26138 | # Transform the output of nm in a proper C declaration |
| 26139 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26140 | |
| 26141 | # Transform the output of nm in a C name address pair |
| 26142 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26143 | |
| 26144 | # This is the shared library runtime path variable. |
| 26145 | runpath_var=$runpath_var |
| 26146 | |
| 26147 | # This is the shared library path variable. |
| 26148 | shlibpath_var=$shlibpath_var |
| 26149 | |
| 26150 | # Is shlibpath searched before the hard-coded library search path? |
| 26151 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26152 | |
| 26153 | # How to hardcode a shared library path into an executable. |
| 26154 | hardcode_action=$hardcode_action_GCJ |
| 26155 | |
| 26156 | # Whether we should hardcode library paths into libraries. |
| 26157 | hardcode_into_libs=$hardcode_into_libs |
| 26158 | |
| 26159 | # Flag to hardcode \$libdir into a binary during linking. |
| 26160 | # This must work even if \$libdir does not exist. |
| 26161 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26162 | |
| 26163 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26164 | # a binary during linking. This must work even if \$libdir does |
| 26165 | # not exist. |
| 26166 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26167 | |
| 26168 | # Whether we need a single -rpath flag with a separated argument. |
| 26169 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26170 | |
| 26171 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26172 | # resulting binary. |
| 26173 | hardcode_direct=$hardcode_direct_GCJ |
| 26174 | |
| 26175 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26176 | # resulting binary. |
| 26177 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26178 | |
| 26179 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26180 | # the resulting binary. |
| 26181 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26182 | |
| 26183 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26184 | # and all subsequent libraries and executables linked against it. |
| 26185 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26186 | |
| 26187 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26188 | # restored at relink time. |
| 26189 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26190 | |
| 26191 | # Whether libtool must link a program against all its dependency libraries. |
| 26192 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26193 | |
| 26194 | # Compile-time system search path for libraries |
| 26195 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26196 | |
| 26197 | # Run-time system search path for libraries |
| 26198 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26199 | |
| 26200 | # Fix the shell variable \$srcfile for the compiler. |
| 26201 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26202 | |
| 26203 | # Set to yes if exported symbols are required. |
| 26204 | always_export_symbols=$always_export_symbols_GCJ |
| 26205 | |
| 26206 | # The commands to list exported symbols. |
| 26207 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26208 | |
| 26209 | # The commands to extract the exported symbol list from a shared archive. |
| 26210 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26211 | |
| 26212 | # Symbols that should not be listed in the preloaded symbols. |
| 26213 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26214 | |
| 26215 | # Symbols that must always be exported. |
| 26216 | include_expsyms=$lt_include_expsyms_GCJ |
| 26217 | |
| 26218 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26219 | |
| 26220 | __EOF__ |
| 26221 | |
| 26222 | |
| 26223 | else |
| 26224 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26225 | # `config.status --recheck' to rerun these tests and create the |
| 26226 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26227 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26228 | if test -f "$ltmain_in"; then |
| 26229 | test -f Makefile && make "$ltmain" |
| 26230 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26231 | fi |
| 26232 | |
| 26233 | |
| 26234 | ac_ext=c |
| 26235 | ac_cpp='$CPP $CPPFLAGS' |
| 26236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26239 | |
| 26240 | CC="$lt_save_CC" |
| 26241 | |
| 26242 | else |
| 26243 | tagname="" |
| 26244 | fi |
| 26245 | ;; |
| 26246 | |
| 26247 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26248 | ac_ext=c |
| 26249 | ac_cpp='$CPP $CPPFLAGS' |
| 26250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26253 | |
| 26254 | |
| 26255 | # Source file extension for RC test sources. |
| 26256 | ac_ext=rc |
| 26257 | |
| 26258 | # Object file extension for compiled RC test sources. |
| 26259 | objext=o |
| 26260 | objext_RC=$objext |
| 26261 | |
| 26262 | # Code to be used in simple compile tests |
| 26263 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26264 | |
| 26265 | # Code to be used in simple link tests |
| 26266 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26267 | |
| 26268 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26269 | |
| 26270 | # If no C compiler was specified, use CC. |
| 26271 | LTCC=${LTCC-"$CC"} |
| 26272 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26273 | # If no C compiler flags were specified, use CFLAGS. |
| 26274 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26275 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26276 | # Allow CC to be a program name with arguments. |
| 26277 | compiler=$CC |
| 26278 | |
| 26279 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26280 | # save warnings/boilerplate of simple test code |
| 26281 | ac_outfile=conftest.$ac_objext |
| 26282 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26283 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26284 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26285 | $rm conftest* |
| 26286 | |
| 26287 | ac_outfile=conftest.$ac_objext |
| 26288 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26289 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26290 | _lt_linker_boilerplate=`cat conftest.err` |
| 26291 | $rm conftest* |
| 26292 | |
| 26293 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26294 | # Allow CC to be a program name with arguments. |
| 26295 | lt_save_CC="$CC" |
| 26296 | CC=${RC-"windres"} |
| 26297 | compiler=$CC |
| 26298 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26299 | for cc_temp in $compiler""; do |
| 26300 | case $cc_temp in |
| 26301 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26302 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26303 | \-*) ;; |
| 26304 | *) break;; |
| 26305 | esac |
| 26306 | done |
| 26307 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26308 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26309 | lt_cv_prog_compiler_c_o_RC=yes |
| 26310 | |
| 26311 | # The else clause should only fire when bootstrapping the |
| 26312 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26313 | # with your package, and you will get complaints that there are |
| 26314 | # no rules to generate ltmain.sh. |
| 26315 | if test -f "$ltmain"; then |
| 26316 | # See if we are running on zsh, and set the options which allow our commands through |
| 26317 | # without removal of \ escapes. |
| 26318 | if test -n "${ZSH_VERSION+set}" ; then |
| 26319 | setopt NO_GLOB_SUBST |
| 26320 | fi |
| 26321 | # Now quote all the things that may contain metacharacters while being |
| 26322 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26323 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26324 | 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] | 26325 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26326 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26327 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26328 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26329 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26330 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26331 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26332 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26333 | compiler_RC \ |
| 26334 | CC_RC \ |
| 26335 | LD_RC \ |
| 26336 | lt_prog_compiler_wl_RC \ |
| 26337 | lt_prog_compiler_pic_RC \ |
| 26338 | lt_prog_compiler_static_RC \ |
| 26339 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26340 | export_dynamic_flag_spec_RC \ |
| 26341 | thread_safe_flag_spec_RC \ |
| 26342 | whole_archive_flag_spec_RC \ |
| 26343 | enable_shared_with_static_runtimes_RC \ |
| 26344 | old_archive_cmds_RC \ |
| 26345 | old_archive_from_new_cmds_RC \ |
| 26346 | predep_objects_RC \ |
| 26347 | postdep_objects_RC \ |
| 26348 | predeps_RC \ |
| 26349 | postdeps_RC \ |
| 26350 | compiler_lib_search_path_RC \ |
| 26351 | archive_cmds_RC \ |
| 26352 | archive_expsym_cmds_RC \ |
| 26353 | postinstall_cmds_RC \ |
| 26354 | postuninstall_cmds_RC \ |
| 26355 | old_archive_from_expsyms_cmds_RC \ |
| 26356 | allow_undefined_flag_RC \ |
| 26357 | no_undefined_flag_RC \ |
| 26358 | export_symbols_cmds_RC \ |
| 26359 | hardcode_libdir_flag_spec_RC \ |
| 26360 | hardcode_libdir_flag_spec_ld_RC \ |
| 26361 | hardcode_libdir_separator_RC \ |
| 26362 | hardcode_automatic_RC \ |
| 26363 | module_cmds_RC \ |
| 26364 | module_expsym_cmds_RC \ |
| 26365 | lt_cv_prog_compiler_c_o_RC \ |
| 26366 | exclude_expsyms_RC \ |
| 26367 | include_expsyms_RC; do |
| 26368 | |
| 26369 | case $var in |
| 26370 | old_archive_cmds_RC | \ |
| 26371 | old_archive_from_new_cmds_RC | \ |
| 26372 | archive_cmds_RC | \ |
| 26373 | archive_expsym_cmds_RC | \ |
| 26374 | module_cmds_RC | \ |
| 26375 | module_expsym_cmds_RC | \ |
| 26376 | old_archive_from_expsyms_cmds_RC | \ |
| 26377 | export_symbols_cmds_RC | \ |
| 26378 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26379 | postinstall_cmds | postuninstall_cmds | \ |
| 26380 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26381 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26382 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26383 | 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] | 26384 | ;; |
| 26385 | *) |
| 26386 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26387 | ;; |
| 26388 | esac |
| 26389 | done |
| 26390 | |
| 26391 | case $lt_echo in |
| 26392 | *'\$0 --fallback-echo"') |
| 26393 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26394 | ;; |
| 26395 | esac |
| 26396 | |
| 26397 | cfgfile="$ofile" |
| 26398 | |
| 26399 | cat <<__EOF__ >> "$cfgfile" |
| 26400 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26401 | |
| 26402 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26403 | |
| 26404 | # Shell to use when invoking shell scripts. |
| 26405 | SHELL=$lt_SHELL |
| 26406 | |
| 26407 | # Whether or not to build shared libraries. |
| 26408 | build_libtool_libs=$enable_shared |
| 26409 | |
| 26410 | # Whether or not to build static libraries. |
| 26411 | build_old_libs=$enable_static |
| 26412 | |
| 26413 | # Whether or not to add -lc for building shared libraries. |
| 26414 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26415 | |
| 26416 | # Whether or not to disallow shared libs when runtime libs are static |
| 26417 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26418 | |
| 26419 | # Whether or not to optimize for fast installation. |
| 26420 | fast_install=$enable_fast_install |
| 26421 | |
| 26422 | # The host system. |
| 26423 | host_alias=$host_alias |
| 26424 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26425 | host_os=$host_os |
| 26426 | |
| 26427 | # The build system. |
| 26428 | build_alias=$build_alias |
| 26429 | build=$build |
| 26430 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26431 | |
| 26432 | # An echo program that does not interpret backslashes. |
| 26433 | echo=$lt_echo |
| 26434 | |
| 26435 | # The archiver. |
| 26436 | AR=$lt_AR |
| 26437 | AR_FLAGS=$lt_AR_FLAGS |
| 26438 | |
| 26439 | # A C compiler. |
| 26440 | LTCC=$lt_LTCC |
| 26441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26442 | # LTCC compiler flags. |
| 26443 | LTCFLAGS=$lt_LTCFLAGS |
| 26444 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26445 | # A language-specific compiler. |
| 26446 | CC=$lt_compiler_RC |
| 26447 | |
| 26448 | # Is the compiler the GNU C compiler? |
| 26449 | with_gcc=$GCC_RC |
| 26450 | |
| 26451 | # An ERE matcher. |
| 26452 | EGREP=$lt_EGREP |
| 26453 | |
| 26454 | # The linker used to build libraries. |
| 26455 | LD=$lt_LD_RC |
| 26456 | |
| 26457 | # Whether we need hard or soft links. |
| 26458 | LN_S=$lt_LN_S |
| 26459 | |
| 26460 | # A BSD-compatible nm program. |
| 26461 | NM=$lt_NM |
| 26462 | |
| 26463 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26464 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26465 | |
| 26466 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26467 | MAGIC_CMD=$MAGIC_CMD |
| 26468 | |
| 26469 | # Used on cygwin: DLL creation program. |
| 26470 | DLLTOOL="$DLLTOOL" |
| 26471 | |
| 26472 | # Used on cygwin: object dumper. |
| 26473 | OBJDUMP="$OBJDUMP" |
| 26474 | |
| 26475 | # Used on cygwin: assembler. |
| 26476 | AS="$AS" |
| 26477 | |
| 26478 | # The name of the directory that contains temporary libtool files. |
| 26479 | objdir=$objdir |
| 26480 | |
| 26481 | # How to create reloadable object files. |
| 26482 | reload_flag=$lt_reload_flag |
| 26483 | reload_cmds=$lt_reload_cmds |
| 26484 | |
| 26485 | # How to pass a linker flag through the compiler. |
| 26486 | wl=$lt_lt_prog_compiler_wl_RC |
| 26487 | |
| 26488 | # Object file suffix (normally "o"). |
| 26489 | objext="$ac_objext" |
| 26490 | |
| 26491 | # Old archive suffix (normally "a"). |
| 26492 | libext="$libext" |
| 26493 | |
| 26494 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26495 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26496 | |
| 26497 | # Executable file suffix (normally ""). |
| 26498 | exeext="$exeext" |
| 26499 | |
| 26500 | # Additional compiler flags for building library objects. |
| 26501 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26502 | pic_mode=$pic_mode |
| 26503 | |
| 26504 | # What is the maximum length of a command? |
| 26505 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26506 | |
| 26507 | # Does compiler simultaneously support -c and -o options? |
| 26508 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26510 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26511 | need_locks=$lt_need_locks |
| 26512 | |
| 26513 | # Do we need the lib prefix for modules? |
| 26514 | need_lib_prefix=$need_lib_prefix |
| 26515 | |
| 26516 | # Do we need a version for libraries? |
| 26517 | need_version=$need_version |
| 26518 | |
| 26519 | # Whether dlopen is supported. |
| 26520 | dlopen_support=$enable_dlopen |
| 26521 | |
| 26522 | # Whether dlopen of programs is supported. |
| 26523 | dlopen_self=$enable_dlopen_self |
| 26524 | |
| 26525 | # Whether dlopen of statically linked programs is supported. |
| 26526 | dlopen_self_static=$enable_dlopen_self_static |
| 26527 | |
| 26528 | # Compiler flag to prevent dynamic linking. |
| 26529 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26530 | |
| 26531 | # Compiler flag to turn off builtin functions. |
| 26532 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26533 | |
| 26534 | # Compiler flag to allow reflexive dlopens. |
| 26535 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26536 | |
| 26537 | # Compiler flag to generate shared objects directly from archives. |
| 26538 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26539 | |
| 26540 | # Compiler flag to generate thread-safe objects. |
| 26541 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26542 | |
| 26543 | # Library versioning type. |
| 26544 | version_type=$version_type |
| 26545 | |
| 26546 | # Format of library name prefix. |
| 26547 | libname_spec=$lt_libname_spec |
| 26548 | |
| 26549 | # List of archive names. First name is the real one, the rest are links. |
| 26550 | # The last name is the one that the linker finds with -lNAME. |
| 26551 | library_names_spec=$lt_library_names_spec |
| 26552 | |
| 26553 | # The coded name of the library, if different from the real name. |
| 26554 | soname_spec=$lt_soname_spec |
| 26555 | |
| 26556 | # Commands used to build and install an old-style archive. |
| 26557 | RANLIB=$lt_RANLIB |
| 26558 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26559 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26560 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26561 | |
| 26562 | # Create an old-style archive from a shared archive. |
| 26563 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26564 | |
| 26565 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26566 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26567 | |
| 26568 | # Commands used to build and install a shared archive. |
| 26569 | archive_cmds=$lt_archive_cmds_RC |
| 26570 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26571 | postinstall_cmds=$lt_postinstall_cmds |
| 26572 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26573 | |
| 26574 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26575 | module_cmds=$lt_module_cmds_RC |
| 26576 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26577 | |
| 26578 | # Commands to strip libraries. |
| 26579 | old_striplib=$lt_old_striplib |
| 26580 | striplib=$lt_striplib |
| 26581 | |
| 26582 | # Dependencies to place before the objects being linked to create a |
| 26583 | # shared library. |
| 26584 | predep_objects=$lt_predep_objects_RC |
| 26585 | |
| 26586 | # Dependencies to place after the objects being linked to create a |
| 26587 | # shared library. |
| 26588 | postdep_objects=$lt_postdep_objects_RC |
| 26589 | |
| 26590 | # Dependencies to place before the objects being linked to create a |
| 26591 | # shared library. |
| 26592 | predeps=$lt_predeps_RC |
| 26593 | |
| 26594 | # Dependencies to place after the objects being linked to create a |
| 26595 | # shared library. |
| 26596 | postdeps=$lt_postdeps_RC |
| 26597 | |
| 26598 | # The library search path used internally by the compiler when linking |
| 26599 | # a shared library. |
| 26600 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26601 | |
| 26602 | # Method to check whether dependent libraries are shared objects. |
| 26603 | deplibs_check_method=$lt_deplibs_check_method |
| 26604 | |
| 26605 | # Command to use when deplibs_check_method == file_magic. |
| 26606 | file_magic_cmd=$lt_file_magic_cmd |
| 26607 | |
| 26608 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26609 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26610 | |
| 26611 | # Flag that forces no undefined symbols. |
| 26612 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26613 | |
| 26614 | # Commands used to finish a libtool library installation in a directory. |
| 26615 | finish_cmds=$lt_finish_cmds |
| 26616 | |
| 26617 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26618 | finish_eval=$lt_finish_eval |
| 26619 | |
| 26620 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26621 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26622 | |
| 26623 | # Transform the output of nm in a proper C declaration |
| 26624 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26625 | |
| 26626 | # Transform the output of nm in a C name address pair |
| 26627 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26628 | |
| 26629 | # This is the shared library runtime path variable. |
| 26630 | runpath_var=$runpath_var |
| 26631 | |
| 26632 | # This is the shared library path variable. |
| 26633 | shlibpath_var=$shlibpath_var |
| 26634 | |
| 26635 | # Is shlibpath searched before the hard-coded library search path? |
| 26636 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26637 | |
| 26638 | # How to hardcode a shared library path into an executable. |
| 26639 | hardcode_action=$hardcode_action_RC |
| 26640 | |
| 26641 | # Whether we should hardcode library paths into libraries. |
| 26642 | hardcode_into_libs=$hardcode_into_libs |
| 26643 | |
| 26644 | # Flag to hardcode \$libdir into a binary during linking. |
| 26645 | # This must work even if \$libdir does not exist. |
| 26646 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26647 | |
| 26648 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26649 | # a binary during linking. This must work even if \$libdir does |
| 26650 | # not exist. |
| 26651 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26652 | |
| 26653 | # Whether we need a single -rpath flag with a separated argument. |
| 26654 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26655 | |
| 26656 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26657 | # resulting binary. |
| 26658 | hardcode_direct=$hardcode_direct_RC |
| 26659 | |
| 26660 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26661 | # resulting binary. |
| 26662 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26663 | |
| 26664 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26665 | # the resulting binary. |
| 26666 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26667 | |
| 26668 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26669 | # and all subsequent libraries and executables linked against it. |
| 26670 | hardcode_automatic=$hardcode_automatic_RC |
| 26671 | |
| 26672 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26673 | # restored at relink time. |
| 26674 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26675 | |
| 26676 | # Whether libtool must link a program against all its dependency libraries. |
| 26677 | link_all_deplibs=$link_all_deplibs_RC |
| 26678 | |
| 26679 | # Compile-time system search path for libraries |
| 26680 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26681 | |
| 26682 | # Run-time system search path for libraries |
| 26683 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26684 | |
| 26685 | # Fix the shell variable \$srcfile for the compiler. |
| 26686 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26687 | |
| 26688 | # Set to yes if exported symbols are required. |
| 26689 | always_export_symbols=$always_export_symbols_RC |
| 26690 | |
| 26691 | # The commands to list exported symbols. |
| 26692 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26693 | |
| 26694 | # The commands to extract the exported symbol list from a shared archive. |
| 26695 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26696 | |
| 26697 | # Symbols that should not be listed in the preloaded symbols. |
| 26698 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26699 | |
| 26700 | # Symbols that must always be exported. |
| 26701 | include_expsyms=$lt_include_expsyms_RC |
| 26702 | |
| 26703 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26704 | |
| 26705 | __EOF__ |
| 26706 | |
| 26707 | |
| 26708 | else |
| 26709 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26710 | # `config.status --recheck' to rerun these tests and create the |
| 26711 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26712 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26713 | if test -f "$ltmain_in"; then |
| 26714 | test -f Makefile && make "$ltmain" |
| 26715 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26716 | fi |
| 26717 | |
| 26718 | |
| 26719 | ac_ext=c |
| 26720 | ac_cpp='$CPP $CPPFLAGS' |
| 26721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26724 | |
| 26725 | CC="$lt_save_CC" |
| 26726 | |
| 26727 | ;; |
| 26728 | |
| 26729 | *) |
| 26730 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 26731 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 26732 | { (exit 1); exit 1; }; } |
| 26733 | ;; |
| 26734 | esac |
| 26735 | |
| 26736 | # Append the new tag name to the list of available tags. |
| 26737 | if test -n "$tagname" ; then |
| 26738 | available_tags="$available_tags $tagname" |
| 26739 | fi |
| 26740 | fi |
| 26741 | done |
| 26742 | IFS="$lt_save_ifs" |
| 26743 | |
| 26744 | # Now substitute the updated list of available tags. |
| 26745 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 26746 | mv "${ofile}T" "$ofile" |
| 26747 | chmod +x "$ofile" |
| 26748 | else |
| 26749 | rm -f "${ofile}T" |
| 26750 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 26751 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 26752 | { (exit 1); exit 1; }; } |
| 26753 | fi |
| 26754 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26755 | |
| 26756 | |
| 26757 | |
| 26758 | # This can be used to rebuild libtool when needed |
| 26759 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 26760 | |
| 26761 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26762 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26763 | |
| 26764 | # Prevent multiple expansion |
| 26765 | |
| 26766 | |
| 26767 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26768 | |
| 26769 | |
| 26770 | |
| 26771 | |
| 26772 | |
| 26773 | |
| 26774 | |
| 26775 | |
| 26776 | |
| 26777 | |
| 26778 | |
| 26779 | |
| 26780 | |
| 26781 | |
| 26782 | |
| 26783 | |
| 26784 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26785 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 26786 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 26787 | |
| 26788 | cat >>confdefs.h <<\_ACEOF |
| 26789 | #define CAN_DLOPEN_SELF 1 |
| 26790 | _ACEOF |
| 26791 | |
| 26792 | fi |
| 26793 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26794 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26795 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 26796 | LLVMGXX="llvm-g++${EXEEXT}" |
| 26797 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 26798 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26801 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 26802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26803 | else |
| 26804 | case $LLVMGCC in |
| 26805 | [\\/]* | ?:[\\/]*) |
| 26806 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 26807 | ;; |
| 26808 | *) |
| 26809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26810 | for as_dir in $PATH |
| 26811 | do |
| 26812 | IFS=$as_save_IFS |
| 26813 | test -z "$as_dir" && as_dir=. |
| 26814 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 26815 | 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] | 26816 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 26817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26818 | break 2 |
| 26819 | fi |
| 26820 | done |
| 26821 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26822 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26823 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26824 | ;; |
| 26825 | esac |
| 26826 | fi |
| 26827 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26828 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26829 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 26830 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26831 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26832 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26833 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26834 | fi |
| 26835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26836 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26837 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 26838 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26839 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26841 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 26842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26843 | else |
| 26844 | case $LLVMGXX in |
| 26845 | [\\/]* | ?:[\\/]*) |
| 26846 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 26847 | ;; |
| 26848 | *) |
| 26849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26850 | for as_dir in $PATH |
| 26851 | do |
| 26852 | IFS=$as_save_IFS |
| 26853 | test -z "$as_dir" && as_dir=. |
| 26854 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 26855 | 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] | 26856 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 26857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26858 | break 2 |
| 26859 | fi |
| 26860 | done |
| 26861 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26862 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26863 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26864 | ;; |
| 26865 | esac |
| 26866 | fi |
| 26867 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26868 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26869 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 26870 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26871 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26873 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26874 | fi |
| 26875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26876 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26877 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 26878 | if test -z "$LLVMGCC"; then |
| 26879 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 26880 | fi |
| 26881 | if test -z "$LLVMGXX"; then |
| 26882 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
| 26883 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26884 | LLVMGCC=$LLVMGCC |
| 26885 | |
| 26886 | LLVMGXX=$LLVMGXX |
| 26887 | |
| 26888 | fi |
| 26889 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26890 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 26891 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26892 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26893 | ICC=no |
| 26894 | IXX=no |
| 26895 | case $CC in |
| 26896 | icc*|icpc*) |
| 26897 | ICC=yes |
| 26898 | IXX=yes |
| 26899 | ;; |
| 26900 | *) |
| 26901 | ;; |
| 26902 | esac |
| 26903 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 26904 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 26905 | then |
| 26906 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 26907 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 26908 | { (exit 1); exit 1; }; } |
| 26909 | fi |
| 26910 | |
| 26911 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 26912 | then |
| 26913 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 26914 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 26915 | { (exit 1); exit 1; }; } |
| 26916 | fi |
| 26917 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26918 | if test "$GCC" = "yes" |
| 26919 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 26920 | cat >conftest.$ac_ext <<_ACEOF |
| 26921 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 26922 | #error Unsupported GCC version |
| 26923 | #endif |
| 26924 | |
| 26925 | _ACEOF |
| 26926 | rm -f conftest.$ac_objext |
| 26927 | if { (ac_try="$ac_compile" |
| 26928 | case "(($ac_try" in |
| 26929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26930 | *) ac_try_echo=$ac_try;; |
| 26931 | esac |
| 26932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26933 | (eval "$ac_compile") 2>conftest.er1 |
| 26934 | ac_status=$? |
| 26935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26936 | rm -f conftest.er1 |
| 26937 | cat conftest.err >&5 |
| 26938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 26939 | (exit $ac_status); } && |
| 26940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26941 | { (case "(($ac_try" in |
| 26942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26943 | *) ac_try_echo=$ac_try;; |
| 26944 | esac |
| 26945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26946 | (eval "$ac_try") 2>&5 |
| 26947 | ac_status=$? |
| 26948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26949 | (exit $ac_status); }; } && |
| 26950 | { ac_try='test -s conftest.$ac_objext' |
| 26951 | { (case "(($ac_try" in |
| 26952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26953 | *) ac_try_echo=$ac_try;; |
| 26954 | esac |
| 26955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26956 | (eval "$ac_try") 2>&5 |
| 26957 | ac_status=$? |
| 26958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26959 | (exit $ac_status); }; }; then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 26960 | : |
| 26961 | else |
| 26962 | echo "$as_me: failed program was:" >&5 |
| 26963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26964 | |
| 26965 | { { 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] | 26966 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 26967 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 26968 | fi |
| 26969 | |
| 26970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26971 | fi |
| 26972 | |
| 26973 | if test -z "$llvm_cv_gnu_make_command" |
| 26974 | then |
| 26975 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 26976 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 26977 | { (exit 1); exit 1; }; } |
| 26978 | fi |
| 26979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26980 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 26981 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26982 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26983 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26984 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26985 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 26986 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26987 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 26988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26989 | else |
| 26990 | ac_check_lib_save_LIBS=$LIBS |
| 26991 | LIBS="-lelf $LIBS" |
| 26992 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26993 | /* confdefs.h. */ |
| 26994 | _ACEOF |
| 26995 | cat confdefs.h >>conftest.$ac_ext |
| 26996 | cat >>conftest.$ac_ext <<_ACEOF |
| 26997 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26999 | /* Override any GCC internal prototype to avoid an error. |
| 27000 | Use char because int might match the return type of a GCC |
| 27001 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27002 | #ifdef __cplusplus |
| 27003 | extern "C" |
| 27004 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27005 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27006 | int |
| 27007 | main () |
| 27008 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27009 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27010 | ; |
| 27011 | return 0; |
| 27012 | } |
| 27013 | _ACEOF |
| 27014 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27015 | if { (ac_try="$ac_link" |
| 27016 | case "(($ac_try" in |
| 27017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27018 | *) ac_try_echo=$ac_try;; |
| 27019 | esac |
| 27020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27021 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27022 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27024 | rm -f conftest.er1 |
| 27025 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27027 | (exit $ac_status); } && |
| 27028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27029 | { (case "(($ac_try" in |
| 27030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27031 | *) ac_try_echo=$ac_try;; |
| 27032 | esac |
| 27033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27034 | (eval "$ac_try") 2>&5 |
| 27035 | ac_status=$? |
| 27036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27037 | (exit $ac_status); }; } && |
| 27038 | { ac_try='test -s conftest$ac_exeext' |
| 27039 | { (case "(($ac_try" in |
| 27040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27041 | *) ac_try_echo=$ac_try;; |
| 27042 | esac |
| 27043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27044 | (eval "$ac_try") 2>&5 |
| 27045 | ac_status=$? |
| 27046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27047 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27048 | ac_cv_lib_elf_elf_begin=yes |
| 27049 | else |
| 27050 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27053 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27054 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27055 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27056 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27057 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27058 | LIBS=$ac_check_lib_save_LIBS |
| 27059 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27060 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 27061 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27062 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 27063 | cat >>confdefs.h <<_ACEOF |
| 27064 | #define HAVE_LIBELF 1 |
| 27065 | _ACEOF |
| 27066 | |
| 27067 | LIBS="-lelf $LIBS" |
| 27068 | |
| 27069 | fi |
| 27070 | |
| 27071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27072 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27073 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27074 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27076 | else |
| 27077 | ac_check_lib_save_LIBS=$LIBS |
| 27078 | LIBS="-lm $LIBS" |
| 27079 | cat >conftest.$ac_ext <<_ACEOF |
| 27080 | /* confdefs.h. */ |
| 27081 | _ACEOF |
| 27082 | cat confdefs.h >>conftest.$ac_ext |
| 27083 | cat >>conftest.$ac_ext <<_ACEOF |
| 27084 | /* end confdefs.h. */ |
| 27085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27086 | /* Override any GCC internal prototype to avoid an error. |
| 27087 | Use char because int might match the return type of a GCC |
| 27088 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27089 | #ifdef __cplusplus |
| 27090 | extern "C" |
| 27091 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27092 | char sin (); |
| 27093 | int |
| 27094 | main () |
| 27095 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27096 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27097 | ; |
| 27098 | return 0; |
| 27099 | } |
| 27100 | _ACEOF |
| 27101 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27102 | if { (ac_try="$ac_link" |
| 27103 | case "(($ac_try" in |
| 27104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27105 | *) ac_try_echo=$ac_try;; |
| 27106 | esac |
| 27107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27108 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27109 | ac_status=$? |
| 27110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27111 | rm -f conftest.er1 |
| 27112 | cat conftest.err >&5 |
| 27113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27114 | (exit $ac_status); } && |
| 27115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27116 | { (case "(($ac_try" in |
| 27117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27118 | *) ac_try_echo=$ac_try;; |
| 27119 | esac |
| 27120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27121 | (eval "$ac_try") 2>&5 |
| 27122 | ac_status=$? |
| 27123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27124 | (exit $ac_status); }; } && |
| 27125 | { ac_try='test -s conftest$ac_exeext' |
| 27126 | { (case "(($ac_try" in |
| 27127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27128 | *) ac_try_echo=$ac_try;; |
| 27129 | esac |
| 27130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27131 | (eval "$ac_try") 2>&5 |
| 27132 | ac_status=$? |
| 27133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27134 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27135 | ac_cv_lib_m_sin=yes |
| 27136 | else |
| 27137 | echo "$as_me: failed program was:" >&5 |
| 27138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27140 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27141 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27142 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27143 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27144 | conftest$ac_exeext conftest.$ac_ext |
| 27145 | LIBS=$ac_check_lib_save_LIBS |
| 27146 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27147 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27148 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27149 | if test $ac_cv_lib_m_sin = yes; then |
| 27150 | cat >>confdefs.h <<_ACEOF |
| 27151 | #define HAVE_LIBM 1 |
| 27152 | _ACEOF |
| 27153 | |
| 27154 | LIBS="-lm $LIBS" |
| 27155 | |
| 27156 | fi |
| 27157 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27158 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27159 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27160 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27161 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27162 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27164 | else |
| 27165 | ac_check_lib_save_LIBS=$LIBS |
| 27166 | LIBS="-limagehlp $LIBS" |
| 27167 | cat >conftest.$ac_ext <<_ACEOF |
| 27168 | /* confdefs.h. */ |
| 27169 | _ACEOF |
| 27170 | cat confdefs.h >>conftest.$ac_ext |
| 27171 | cat >>conftest.$ac_ext <<_ACEOF |
| 27172 | /* end confdefs.h. */ |
| 27173 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27174 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27175 | int |
| 27176 | main () |
| 27177 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27178 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27179 | ; |
| 27180 | return 0; |
| 27181 | } |
| 27182 | _ACEOF |
| 27183 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27184 | if { (ac_try="$ac_link" |
| 27185 | case "(($ac_try" in |
| 27186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27187 | *) ac_try_echo=$ac_try;; |
| 27188 | esac |
| 27189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27190 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27191 | ac_status=$? |
| 27192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27193 | rm -f conftest.er1 |
| 27194 | cat conftest.err >&5 |
| 27195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27196 | (exit $ac_status); } && |
| 27197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27198 | { (case "(($ac_try" in |
| 27199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27200 | *) ac_try_echo=$ac_try;; |
| 27201 | esac |
| 27202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27203 | (eval "$ac_try") 2>&5 |
| 27204 | ac_status=$? |
| 27205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27206 | (exit $ac_status); }; } && |
| 27207 | { ac_try='test -s conftest$ac_exeext' |
| 27208 | { (case "(($ac_try" in |
| 27209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27210 | *) ac_try_echo=$ac_try;; |
| 27211 | esac |
| 27212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27213 | (eval "$ac_try") 2>&5 |
| 27214 | ac_status=$? |
| 27215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27216 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27217 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27218 | else |
| 27219 | echo "$as_me: failed program was:" >&5 |
| 27220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27222 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27223 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27224 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27225 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27226 | conftest$ac_exeext conftest.$ac_ext |
| 27227 | LIBS=$ac_check_lib_save_LIBS |
| 27228 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27229 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27230 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27231 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27232 | cat >>confdefs.h <<_ACEOF |
| 27233 | #define HAVE_LIBIMAGEHLP 1 |
| 27234 | _ACEOF |
| 27235 | |
| 27236 | LIBS="-limagehlp $LIBS" |
| 27237 | |
| 27238 | fi |
| 27239 | |
| 27240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27241 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27242 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27243 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27245 | else |
| 27246 | ac_check_lib_save_LIBS=$LIBS |
| 27247 | LIBS="-lpsapi $LIBS" |
| 27248 | cat >conftest.$ac_ext <<_ACEOF |
| 27249 | /* confdefs.h. */ |
| 27250 | _ACEOF |
| 27251 | cat confdefs.h >>conftest.$ac_ext |
| 27252 | cat >>conftest.$ac_ext <<_ACEOF |
| 27253 | /* end confdefs.h. */ |
| 27254 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27255 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27256 | int |
| 27257 | main () |
| 27258 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27259 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27260 | ; |
| 27261 | return 0; |
| 27262 | } |
| 27263 | _ACEOF |
| 27264 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27265 | if { (ac_try="$ac_link" |
| 27266 | case "(($ac_try" in |
| 27267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27268 | *) ac_try_echo=$ac_try;; |
| 27269 | esac |
| 27270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27271 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27272 | ac_status=$? |
| 27273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27274 | rm -f conftest.er1 |
| 27275 | cat conftest.err >&5 |
| 27276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27277 | (exit $ac_status); } && |
| 27278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27279 | { (case "(($ac_try" in |
| 27280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27281 | *) ac_try_echo=$ac_try;; |
| 27282 | esac |
| 27283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27284 | (eval "$ac_try") 2>&5 |
| 27285 | ac_status=$? |
| 27286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27287 | (exit $ac_status); }; } && |
| 27288 | { ac_try='test -s conftest$ac_exeext' |
| 27289 | { (case "(($ac_try" in |
| 27290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27291 | *) ac_try_echo=$ac_try;; |
| 27292 | esac |
| 27293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27294 | (eval "$ac_try") 2>&5 |
| 27295 | ac_status=$? |
| 27296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27297 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27298 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27299 | else |
| 27300 | echo "$as_me: failed program was:" >&5 |
| 27301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27302 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27303 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27304 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27305 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27306 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27307 | conftest$ac_exeext conftest.$ac_ext |
| 27308 | LIBS=$ac_check_lib_save_LIBS |
| 27309 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27310 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27311 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27312 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27313 | cat >>confdefs.h <<_ACEOF |
| 27314 | #define HAVE_LIBPSAPI 1 |
| 27315 | _ACEOF |
| 27316 | |
| 27317 | LIBS="-lpsapi $LIBS" |
| 27318 | |
| 27319 | fi |
| 27320 | |
| 27321 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27323 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27324 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27325 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27327 | else |
| 27328 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27329 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27330 | /* confdefs.h. */ |
| 27331 | _ACEOF |
| 27332 | cat confdefs.h >>conftest.$ac_ext |
| 27333 | cat >>conftest.$ac_ext <<_ACEOF |
| 27334 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27336 | /* Override any GCC internal prototype to avoid an error. |
| 27337 | Use char because int might match the return type of a GCC |
| 27338 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27339 | #ifdef __cplusplus |
| 27340 | extern "C" |
| 27341 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27342 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27343 | int |
| 27344 | main () |
| 27345 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27346 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27347 | ; |
| 27348 | return 0; |
| 27349 | } |
| 27350 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27351 | for ac_lib in '' dl; do |
| 27352 | if test -z "$ac_lib"; then |
| 27353 | ac_res="none required" |
| 27354 | else |
| 27355 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27356 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27357 | fi |
| 27358 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27359 | if { (ac_try="$ac_link" |
| 27360 | case "(($ac_try" in |
| 27361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27362 | *) ac_try_echo=$ac_try;; |
| 27363 | esac |
| 27364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27365 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27366 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27368 | rm -f conftest.er1 |
| 27369 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27371 | (exit $ac_status); } && |
| 27372 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27373 | { (case "(($ac_try" in |
| 27374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27375 | *) ac_try_echo=$ac_try;; |
| 27376 | esac |
| 27377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27378 | (eval "$ac_try") 2>&5 |
| 27379 | ac_status=$? |
| 27380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27381 | (exit $ac_status); }; } && |
| 27382 | { ac_try='test -s conftest$ac_exeext' |
| 27383 | { (case "(($ac_try" in |
| 27384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27385 | *) ac_try_echo=$ac_try;; |
| 27386 | esac |
| 27387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27388 | (eval "$ac_try") 2>&5 |
| 27389 | ac_status=$? |
| 27390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27391 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27392 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27393 | else |
| 27394 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27398 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27399 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27400 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27401 | conftest$ac_exeext |
| 27402 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27403 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27404 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27405 | done |
| 27406 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27407 | : |
| 27408 | else |
| 27409 | ac_cv_search_dlopen=no |
| 27410 | fi |
| 27411 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27412 | LIBS=$ac_func_search_save_LIBS |
| 27413 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27414 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27415 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27416 | ac_res=$ac_cv_search_dlopen |
| 27417 | if test "$ac_res" != no; then |
| 27418 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27419 | |
| 27420 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27421 | #define HAVE_DLOPEN 1 |
| 27422 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27423 | |
| 27424 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27425 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27426 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27427 | fi |
| 27428 | |
| 27429 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27430 | { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5 |
| 27431 | echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; } |
| 27432 | if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then |
| 27433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27434 | else |
| 27435 | ac_check_lib_save_LIBS=$LIBS |
| 27436 | LIBS="-lffi $LIBS" |
| 27437 | cat >conftest.$ac_ext <<_ACEOF |
| 27438 | /* confdefs.h. */ |
| 27439 | _ACEOF |
| 27440 | cat confdefs.h >>conftest.$ac_ext |
| 27441 | cat >>conftest.$ac_ext <<_ACEOF |
| 27442 | /* end confdefs.h. */ |
| 27443 | |
| 27444 | /* Override any GCC internal prototype to avoid an error. |
| 27445 | Use char because int might match the return type of a GCC |
| 27446 | builtin and then its argument prototype would still apply. */ |
| 27447 | #ifdef __cplusplus |
| 27448 | extern "C" |
| 27449 | #endif |
| 27450 | char ffi_call (); |
| 27451 | int |
| 27452 | main () |
| 27453 | { |
| 27454 | return ffi_call (); |
| 27455 | ; |
| 27456 | return 0; |
| 27457 | } |
| 27458 | _ACEOF |
| 27459 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27460 | if { (ac_try="$ac_link" |
| 27461 | case "(($ac_try" in |
| 27462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27463 | *) ac_try_echo=$ac_try;; |
| 27464 | esac |
| 27465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27466 | (eval "$ac_link") 2>conftest.er1 |
| 27467 | ac_status=$? |
| 27468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27469 | rm -f conftest.er1 |
| 27470 | cat conftest.err >&5 |
| 27471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27472 | (exit $ac_status); } && |
| 27473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27474 | { (case "(($ac_try" in |
| 27475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27476 | *) ac_try_echo=$ac_try;; |
| 27477 | esac |
| 27478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27479 | (eval "$ac_try") 2>&5 |
| 27480 | ac_status=$? |
| 27481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27482 | (exit $ac_status); }; } && |
| 27483 | { ac_try='test -s conftest$ac_exeext' |
| 27484 | { (case "(($ac_try" in |
| 27485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27486 | *) ac_try_echo=$ac_try;; |
| 27487 | esac |
| 27488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27489 | (eval "$ac_try") 2>&5 |
| 27490 | ac_status=$? |
| 27491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27492 | (exit $ac_status); }; }; then |
| 27493 | ac_cv_lib_ffi_ffi_call=yes |
| 27494 | else |
| 27495 | echo "$as_me: failed program was:" >&5 |
| 27496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27497 | |
| 27498 | ac_cv_lib_ffi_ffi_call=no |
| 27499 | fi |
| 27500 | |
| 27501 | rm -f core conftest.err conftest.$ac_objext \ |
| 27502 | conftest$ac_exeext conftest.$ac_ext |
| 27503 | LIBS=$ac_check_lib_save_LIBS |
| 27504 | fi |
| 27505 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5 |
| 27506 | echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; } |
| 27507 | if test $ac_cv_lib_ffi_ffi_call = yes; then |
| 27508 | have_libffi=1 |
| 27509 | else |
| 27510 | { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5 |
| 27511 | echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;} |
| 27512 | fi |
| 27513 | |
| 27514 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27515 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27516 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27517 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27519 | else |
| 27520 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27521 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27522 | /* confdefs.h. */ |
| 27523 | _ACEOF |
| 27524 | cat confdefs.h >>conftest.$ac_ext |
| 27525 | cat >>conftest.$ac_ext <<_ACEOF |
| 27526 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27528 | /* Override any GCC internal prototype to avoid an error. |
| 27529 | Use char because int might match the return type of a GCC |
| 27530 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27531 | #ifdef __cplusplus |
| 27532 | extern "C" |
| 27533 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27534 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27535 | int |
| 27536 | main () |
| 27537 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27538 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27539 | ; |
| 27540 | return 0; |
| 27541 | } |
| 27542 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27543 | for ac_lib in '' malloc; do |
| 27544 | if test -z "$ac_lib"; then |
| 27545 | ac_res="none required" |
| 27546 | else |
| 27547 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27548 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27549 | fi |
| 27550 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27551 | if { (ac_try="$ac_link" |
| 27552 | case "(($ac_try" in |
| 27553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27554 | *) ac_try_echo=$ac_try;; |
| 27555 | esac |
| 27556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27557 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27558 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27560 | rm -f conftest.er1 |
| 27561 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27563 | (exit $ac_status); } && |
| 27564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27565 | { (case "(($ac_try" in |
| 27566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27567 | *) ac_try_echo=$ac_try;; |
| 27568 | esac |
| 27569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27570 | (eval "$ac_try") 2>&5 |
| 27571 | ac_status=$? |
| 27572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27573 | (exit $ac_status); }; } && |
| 27574 | { ac_try='test -s conftest$ac_exeext' |
| 27575 | { (case "(($ac_try" in |
| 27576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27577 | *) ac_try_echo=$ac_try;; |
| 27578 | esac |
| 27579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27580 | (eval "$ac_try") 2>&5 |
| 27581 | ac_status=$? |
| 27582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27583 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27584 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27585 | else |
| 27586 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27588 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27589 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27590 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27591 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27592 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27593 | conftest$ac_exeext |
| 27594 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27595 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27596 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27597 | done |
| 27598 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27599 | : |
| 27600 | else |
| 27601 | ac_cv_search_mallinfo=no |
| 27602 | fi |
| 27603 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27604 | LIBS=$ac_func_search_save_LIBS |
| 27605 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27606 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27607 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27608 | ac_res=$ac_cv_search_mallinfo |
| 27609 | if test "$ac_res" != no; then |
| 27610 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27611 | |
| 27612 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27613 | #define HAVE_MALLINFO 1 |
| 27614 | _ACEOF |
| 27615 | |
| 27616 | fi |
| 27617 | |
| 27618 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27619 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27620 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27621 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27622 | 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] | 27623 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27625 | else |
| 27626 | ac_check_lib_save_LIBS=$LIBS |
| 27627 | LIBS="-lpthread $LIBS" |
| 27628 | cat >conftest.$ac_ext <<_ACEOF |
| 27629 | /* confdefs.h. */ |
| 27630 | _ACEOF |
| 27631 | cat confdefs.h >>conftest.$ac_ext |
| 27632 | cat >>conftest.$ac_ext <<_ACEOF |
| 27633 | /* end confdefs.h. */ |
| 27634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27635 | /* Override any GCC internal prototype to avoid an error. |
| 27636 | Use char because int might match the return type of a GCC |
| 27637 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27638 | #ifdef __cplusplus |
| 27639 | extern "C" |
| 27640 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27641 | char pthread_mutex_init (); |
| 27642 | int |
| 27643 | main () |
| 27644 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27645 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27646 | ; |
| 27647 | return 0; |
| 27648 | } |
| 27649 | _ACEOF |
| 27650 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27651 | if { (ac_try="$ac_link" |
| 27652 | case "(($ac_try" in |
| 27653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27654 | *) ac_try_echo=$ac_try;; |
| 27655 | esac |
| 27656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27657 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27658 | ac_status=$? |
| 27659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27660 | rm -f conftest.er1 |
| 27661 | cat conftest.err >&5 |
| 27662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27663 | (exit $ac_status); } && |
| 27664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27665 | { (case "(($ac_try" in |
| 27666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27667 | *) ac_try_echo=$ac_try;; |
| 27668 | esac |
| 27669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27670 | (eval "$ac_try") 2>&5 |
| 27671 | ac_status=$? |
| 27672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27673 | (exit $ac_status); }; } && |
| 27674 | { ac_try='test -s conftest$ac_exeext' |
| 27675 | { (case "(($ac_try" in |
| 27676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27677 | *) ac_try_echo=$ac_try;; |
| 27678 | esac |
| 27679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27680 | (eval "$ac_try") 2>&5 |
| 27681 | ac_status=$? |
| 27682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27683 | (exit $ac_status); }; }; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27684 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27685 | else |
| 27686 | echo "$as_me: failed program was:" >&5 |
| 27687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27689 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27690 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27691 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27692 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27693 | conftest$ac_exeext conftest.$ac_ext |
| 27694 | LIBS=$ac_check_lib_save_LIBS |
| 27695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27696 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27697 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27698 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27699 | cat >>confdefs.h <<_ACEOF |
| 27700 | #define HAVE_LIBPTHREAD 1 |
| 27701 | _ACEOF |
| 27702 | |
| 27703 | LIBS="-lpthread $LIBS" |
| 27704 | |
| 27705 | fi |
| 27706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27707 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27708 | 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] | 27709 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27711 | else |
| 27712 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27713 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27714 | /* confdefs.h. */ |
| 27715 | _ACEOF |
| 27716 | cat confdefs.h >>conftest.$ac_ext |
| 27717 | cat >>conftest.$ac_ext <<_ACEOF |
| 27718 | /* end confdefs.h. */ |
| 27719 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27720 | /* Override any GCC internal prototype to avoid an error. |
| 27721 | Use char because int might match the return type of a GCC |
| 27722 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27723 | #ifdef __cplusplus |
| 27724 | extern "C" |
| 27725 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27726 | char pthread_mutex_lock (); |
| 27727 | int |
| 27728 | main () |
| 27729 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27730 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27731 | ; |
| 27732 | return 0; |
| 27733 | } |
| 27734 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27735 | for ac_lib in '' pthread; do |
| 27736 | if test -z "$ac_lib"; then |
| 27737 | ac_res="none required" |
| 27738 | else |
| 27739 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27740 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27741 | fi |
| 27742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27743 | if { (ac_try="$ac_link" |
| 27744 | case "(($ac_try" in |
| 27745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27746 | *) ac_try_echo=$ac_try;; |
| 27747 | esac |
| 27748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27749 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27750 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27752 | rm -f conftest.er1 |
| 27753 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27755 | (exit $ac_status); } && |
| 27756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27757 | { (case "(($ac_try" in |
| 27758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27759 | *) ac_try_echo=$ac_try;; |
| 27760 | esac |
| 27761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27762 | (eval "$ac_try") 2>&5 |
| 27763 | ac_status=$? |
| 27764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27765 | (exit $ac_status); }; } && |
| 27766 | { ac_try='test -s conftest$ac_exeext' |
| 27767 | { (case "(($ac_try" in |
| 27768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27769 | *) ac_try_echo=$ac_try;; |
| 27770 | esac |
| 27771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27772 | (eval "$ac_try") 2>&5 |
| 27773 | ac_status=$? |
| 27774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27775 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27776 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27777 | else |
| 27778 | echo "$as_me: failed program was:" >&5 |
| 27779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27781 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27783 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27784 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27785 | conftest$ac_exeext |
| 27786 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27787 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27788 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27789 | done |
| 27790 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27791 | : |
| 27792 | else |
| 27793 | ac_cv_search_pthread_mutex_lock=no |
| 27794 | fi |
| 27795 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27796 | LIBS=$ac_func_search_save_LIBS |
| 27797 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27798 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 27799 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 27800 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 27801 | if test "$ac_res" != no; then |
| 27802 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27803 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 27804 | cat >>confdefs.h <<\_ACEOF |
| 27805 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 27806 | _ACEOF |
| 27807 | |
| 27808 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27809 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27810 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 27811 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27812 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27813 | # Check whether --with-udis86 was given. |
| 27814 | if test "${with_udis86+set}" = set; then |
| 27815 | withval=$with_udis86; |
| 27816 | USE_UDIS86=1 |
| 27817 | |
| 27818 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 27819 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27820 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 27821 | esac |
| 27822 | |
| 27823 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 27824 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 27825 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 27826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27827 | else |
| 27828 | ac_check_lib_save_LIBS=$LIBS |
| 27829 | LIBS="-ludis86 $LIBS" |
| 27830 | cat >conftest.$ac_ext <<_ACEOF |
| 27831 | /* confdefs.h. */ |
| 27832 | _ACEOF |
| 27833 | cat confdefs.h >>conftest.$ac_ext |
| 27834 | cat >>conftest.$ac_ext <<_ACEOF |
| 27835 | /* end confdefs.h. */ |
| 27836 | |
| 27837 | /* Override any GCC internal prototype to avoid an error. |
| 27838 | Use char because int might match the return type of a GCC |
| 27839 | builtin and then its argument prototype would still apply. */ |
| 27840 | #ifdef __cplusplus |
| 27841 | extern "C" |
| 27842 | #endif |
| 27843 | char ud_init (); |
| 27844 | int |
| 27845 | main () |
| 27846 | { |
| 27847 | return ud_init (); |
| 27848 | ; |
| 27849 | return 0; |
| 27850 | } |
| 27851 | _ACEOF |
| 27852 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27853 | if { (ac_try="$ac_link" |
| 27854 | case "(($ac_try" in |
| 27855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27856 | *) ac_try_echo=$ac_try;; |
| 27857 | esac |
| 27858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27859 | (eval "$ac_link") 2>conftest.er1 |
| 27860 | ac_status=$? |
| 27861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27862 | rm -f conftest.er1 |
| 27863 | cat conftest.err >&5 |
| 27864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27865 | (exit $ac_status); } && |
| 27866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27867 | { (case "(($ac_try" in |
| 27868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27869 | *) ac_try_echo=$ac_try;; |
| 27870 | esac |
| 27871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27872 | (eval "$ac_try") 2>&5 |
| 27873 | ac_status=$? |
| 27874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27875 | (exit $ac_status); }; } && |
| 27876 | { ac_try='test -s conftest$ac_exeext' |
| 27877 | { (case "(($ac_try" in |
| 27878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27879 | *) ac_try_echo=$ac_try;; |
| 27880 | esac |
| 27881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27882 | (eval "$ac_try") 2>&5 |
| 27883 | ac_status=$? |
| 27884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27885 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27886 | ac_cv_lib_udis86_ud_init=yes |
| 27887 | else |
| 27888 | echo "$as_me: failed program was:" >&5 |
| 27889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27890 | |
| 27891 | ac_cv_lib_udis86_ud_init=no |
| 27892 | fi |
| 27893 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27894 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27895 | conftest$ac_exeext conftest.$ac_ext |
| 27896 | LIBS=$ac_check_lib_save_LIBS |
| 27897 | fi |
| 27898 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 27899 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 27900 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 27901 | cat >>confdefs.h <<_ACEOF |
| 27902 | #define HAVE_LIBUDIS86 1 |
| 27903 | _ACEOF |
| 27904 | |
| 27905 | LIBS="-ludis86 $LIBS" |
| 27906 | |
| 27907 | else |
| 27908 | |
| 27909 | echo "Error! You need to have libudis86 around." |
| 27910 | exit -1 |
| 27911 | |
| 27912 | fi |
| 27913 | |
| 27914 | |
| 27915 | else |
| 27916 | USE_UDIS86=0 |
| 27917 | |
| 27918 | fi |
| 27919 | |
| 27920 | |
| 27921 | cat >>confdefs.h <<_ACEOF |
| 27922 | #define USE_UDIS86 $USE_UDIS86 |
| 27923 | _ACEOF |
| 27924 | |
| 27925 | |
| 27926 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27927 | |
| 27928 | |
| 27929 | |
| 27930 | |
| 27931 | |
| 27932 | ac_header_dirent=no |
| 27933 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 27934 | 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] | 27935 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 27936 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 27937 | 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] | 27938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27939 | else |
| 27940 | cat >conftest.$ac_ext <<_ACEOF |
| 27941 | /* confdefs.h. */ |
| 27942 | _ACEOF |
| 27943 | cat confdefs.h >>conftest.$ac_ext |
| 27944 | cat >>conftest.$ac_ext <<_ACEOF |
| 27945 | /* end confdefs.h. */ |
| 27946 | #include <sys/types.h> |
| 27947 | #include <$ac_hdr> |
| 27948 | |
| 27949 | int |
| 27950 | main () |
| 27951 | { |
| 27952 | if ((DIR *) 0) |
| 27953 | return 0; |
| 27954 | ; |
| 27955 | return 0; |
| 27956 | } |
| 27957 | _ACEOF |
| 27958 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27959 | if { (ac_try="$ac_compile" |
| 27960 | case "(($ac_try" in |
| 27961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27962 | *) ac_try_echo=$ac_try;; |
| 27963 | esac |
| 27964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27965 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27966 | ac_status=$? |
| 27967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27968 | rm -f conftest.er1 |
| 27969 | cat conftest.err >&5 |
| 27970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 27971 | (exit $ac_status); } && |
| 27972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27973 | { (case "(($ac_try" in |
| 27974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27975 | *) ac_try_echo=$ac_try;; |
| 27976 | esac |
| 27977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27978 | (eval "$ac_try") 2>&5 |
| 27979 | ac_status=$? |
| 27980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27981 | (exit $ac_status); }; } && |
| 27982 | { ac_try='test -s conftest.$ac_objext' |
| 27983 | { (case "(($ac_try" in |
| 27984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27985 | *) ac_try_echo=$ac_try;; |
| 27986 | esac |
| 27987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27988 | (eval "$ac_try") 2>&5 |
| 27989 | ac_status=$? |
| 27990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27991 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27992 | eval "$as_ac_Header=yes" |
| 27993 | else |
| 27994 | echo "$as_me: failed program was:" >&5 |
| 27995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27997 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27998 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27999 | |
| 28000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28001 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28002 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28003 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28004 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28005 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28006 | cat >>confdefs.h <<_ACEOF |
| 28007 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 28008 | _ACEOF |
| 28009 | |
| 28010 | ac_header_dirent=$ac_hdr; break |
| 28011 | fi |
| 28012 | |
| 28013 | done |
| 28014 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 28015 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28016 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28017 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28018 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28020 | else |
| 28021 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28022 | cat >conftest.$ac_ext <<_ACEOF |
| 28023 | /* confdefs.h. */ |
| 28024 | _ACEOF |
| 28025 | cat confdefs.h >>conftest.$ac_ext |
| 28026 | cat >>conftest.$ac_ext <<_ACEOF |
| 28027 | /* end confdefs.h. */ |
| 28028 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28029 | /* Override any GCC internal prototype to avoid an error. |
| 28030 | Use char because int might match the return type of a GCC |
| 28031 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28032 | #ifdef __cplusplus |
| 28033 | extern "C" |
| 28034 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28035 | char opendir (); |
| 28036 | int |
| 28037 | main () |
| 28038 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28039 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28040 | ; |
| 28041 | return 0; |
| 28042 | } |
| 28043 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28044 | for ac_lib in '' dir; do |
| 28045 | if test -z "$ac_lib"; then |
| 28046 | ac_res="none required" |
| 28047 | else |
| 28048 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28049 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28050 | fi |
| 28051 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28052 | if { (ac_try="$ac_link" |
| 28053 | case "(($ac_try" in |
| 28054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28055 | *) ac_try_echo=$ac_try;; |
| 28056 | esac |
| 28057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28058 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28059 | ac_status=$? |
| 28060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28061 | rm -f conftest.er1 |
| 28062 | cat conftest.err >&5 |
| 28063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28064 | (exit $ac_status); } && |
| 28065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28066 | { (case "(($ac_try" in |
| 28067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28068 | *) ac_try_echo=$ac_try;; |
| 28069 | esac |
| 28070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28071 | (eval "$ac_try") 2>&5 |
| 28072 | ac_status=$? |
| 28073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28074 | (exit $ac_status); }; } && |
| 28075 | { ac_try='test -s conftest$ac_exeext' |
| 28076 | { (case "(($ac_try" in |
| 28077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28078 | *) ac_try_echo=$ac_try;; |
| 28079 | esac |
| 28080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28081 | (eval "$ac_try") 2>&5 |
| 28082 | ac_status=$? |
| 28083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28084 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28085 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28086 | else |
| 28087 | echo "$as_me: failed program was:" >&5 |
| 28088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28089 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28090 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28091 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28092 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28093 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28094 | conftest$ac_exeext |
| 28095 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28096 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28097 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28098 | done |
| 28099 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28100 | : |
| 28101 | else |
| 28102 | ac_cv_search_opendir=no |
| 28103 | fi |
| 28104 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28105 | LIBS=$ac_func_search_save_LIBS |
| 28106 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28107 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28108 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28109 | ac_res=$ac_cv_search_opendir |
| 28110 | if test "$ac_res" != no; then |
| 28111 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28112 | |
| 28113 | fi |
| 28114 | |
| 28115 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28116 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28117 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28118 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28120 | else |
| 28121 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28122 | cat >conftest.$ac_ext <<_ACEOF |
| 28123 | /* confdefs.h. */ |
| 28124 | _ACEOF |
| 28125 | cat confdefs.h >>conftest.$ac_ext |
| 28126 | cat >>conftest.$ac_ext <<_ACEOF |
| 28127 | /* end confdefs.h. */ |
| 28128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28129 | /* Override any GCC internal prototype to avoid an error. |
| 28130 | Use char because int might match the return type of a GCC |
| 28131 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28132 | #ifdef __cplusplus |
| 28133 | extern "C" |
| 28134 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28135 | char opendir (); |
| 28136 | int |
| 28137 | main () |
| 28138 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28139 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28140 | ; |
| 28141 | return 0; |
| 28142 | } |
| 28143 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28144 | for ac_lib in '' x; do |
| 28145 | if test -z "$ac_lib"; then |
| 28146 | ac_res="none required" |
| 28147 | else |
| 28148 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28149 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28150 | fi |
| 28151 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28152 | if { (ac_try="$ac_link" |
| 28153 | case "(($ac_try" in |
| 28154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28155 | *) ac_try_echo=$ac_try;; |
| 28156 | esac |
| 28157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28158 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28159 | ac_status=$? |
| 28160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28161 | rm -f conftest.er1 |
| 28162 | cat conftest.err >&5 |
| 28163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28164 | (exit $ac_status); } && |
| 28165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28166 | { (case "(($ac_try" in |
| 28167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28168 | *) ac_try_echo=$ac_try;; |
| 28169 | esac |
| 28170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28171 | (eval "$ac_try") 2>&5 |
| 28172 | ac_status=$? |
| 28173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28174 | (exit $ac_status); }; } && |
| 28175 | { ac_try='test -s conftest$ac_exeext' |
| 28176 | { (case "(($ac_try" in |
| 28177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28178 | *) ac_try_echo=$ac_try;; |
| 28179 | esac |
| 28180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28181 | (eval "$ac_try") 2>&5 |
| 28182 | ac_status=$? |
| 28183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28184 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28185 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28186 | else |
| 28187 | echo "$as_me: failed program was:" >&5 |
| 28188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28189 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28190 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28191 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28192 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28193 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28194 | conftest$ac_exeext |
| 28195 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28196 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28197 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28198 | done |
| 28199 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28200 | : |
| 28201 | else |
| 28202 | ac_cv_search_opendir=no |
| 28203 | fi |
| 28204 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28205 | LIBS=$ac_func_search_save_LIBS |
| 28206 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28207 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28208 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28209 | ac_res=$ac_cv_search_opendir |
| 28210 | if test "$ac_res" != no; then |
| 28211 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28212 | |
| 28213 | fi |
| 28214 | |
| 28215 | fi |
| 28216 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28217 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 28218 | 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] | 28219 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 28220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28221 | else |
| 28222 | ac_ext=c |
| 28223 | ac_cpp='$CPP $CPPFLAGS' |
| 28224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28227 | |
| 28228 | cat >conftest.$ac_ext <<_ACEOF |
| 28229 | /* confdefs.h. */ |
| 28230 | _ACEOF |
| 28231 | cat confdefs.h >>conftest.$ac_ext |
| 28232 | cat >>conftest.$ac_ext <<_ACEOF |
| 28233 | /* end confdefs.h. */ |
| 28234 | #include <sys/mman.h> |
| 28235 | #include <unistd.h> |
| 28236 | #include <fcntl.h> |
| 28237 | int |
| 28238 | main () |
| 28239 | { |
| 28240 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 28241 | ; |
| 28242 | return 0; |
| 28243 | } |
| 28244 | _ACEOF |
| 28245 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28246 | if { (ac_try="$ac_compile" |
| 28247 | case "(($ac_try" in |
| 28248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28249 | *) ac_try_echo=$ac_try;; |
| 28250 | esac |
| 28251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28252 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28253 | ac_status=$? |
| 28254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28255 | rm -f conftest.er1 |
| 28256 | cat conftest.err >&5 |
| 28257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28258 | (exit $ac_status); } && |
| 28259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28260 | { (case "(($ac_try" in |
| 28261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28262 | *) ac_try_echo=$ac_try;; |
| 28263 | esac |
| 28264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28265 | (eval "$ac_try") 2>&5 |
| 28266 | ac_status=$? |
| 28267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28268 | (exit $ac_status); }; } && |
| 28269 | { ac_try='test -s conftest.$ac_objext' |
| 28270 | { (case "(($ac_try" in |
| 28271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28272 | *) ac_try_echo=$ac_try;; |
| 28273 | esac |
| 28274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28275 | (eval "$ac_try") 2>&5 |
| 28276 | ac_status=$? |
| 28277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28278 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28279 | ac_cv_header_mmap_anon=yes |
| 28280 | else |
| 28281 | echo "$as_me: failed program was:" >&5 |
| 28282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28283 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28284 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28285 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28286 | |
| 28287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28288 | ac_ext=c |
| 28289 | ac_cpp='$CPP $CPPFLAGS' |
| 28290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28293 | |
| 28294 | |
| 28295 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28296 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 28297 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28298 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 28299 | |
| 28300 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 28301 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28302 | _ACEOF |
| 28303 | |
| 28304 | fi |
| 28305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28306 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 28307 | 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] | 28308 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 28309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28310 | else |
| 28311 | cat >conftest.$ac_ext <<_ACEOF |
| 28312 | /* confdefs.h. */ |
| 28313 | _ACEOF |
| 28314 | cat confdefs.h >>conftest.$ac_ext |
| 28315 | cat >>conftest.$ac_ext <<_ACEOF |
| 28316 | /* end confdefs.h. */ |
| 28317 | #include <sys/types.h> |
| 28318 | #include <sys/stat.h> |
| 28319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28320 | #if defined S_ISBLK && defined S_IFDIR |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28321 | # if S_ISBLK (S_IFDIR) |
| 28322 | You lose. |
| 28323 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28324 | #endif |
| 28325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28326 | #if defined S_ISBLK && defined S_IFCHR |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28327 | # if S_ISBLK (S_IFCHR) |
| 28328 | You lose. |
| 28329 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28330 | #endif |
| 28331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28332 | #if defined S_ISLNK && defined S_IFREG |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28333 | # if S_ISLNK (S_IFREG) |
| 28334 | You lose. |
| 28335 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28336 | #endif |
| 28337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28338 | #if defined S_ISSOCK && defined S_IFREG |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28339 | # if S_ISSOCK (S_IFREG) |
| 28340 | You lose. |
| 28341 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28342 | #endif |
| 28343 | |
| 28344 | _ACEOF |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28346 | $EGREP "You lose" >/dev/null 2>&1; then |
| 28347 | ac_cv_header_stat_broken=yes |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 28348 | else |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28349 | ac_cv_header_stat_broken=no |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 28350 | fi |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28351 | rm -f conftest* |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 28352 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28353 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28354 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 28355 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28356 | if test $ac_cv_header_stat_broken = yes; then |
| 28357 | |
| 28358 | cat >>confdefs.h <<\_ACEOF |
| 28359 | #define STAT_MACROS_BROKEN 1 |
| 28360 | _ACEOF |
| 28361 | |
| 28362 | fi |
| 28363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28364 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 28365 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28366 | if test "${ac_cv_header_stdc+set}" = set; then |
| 28367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28368 | else |
| 28369 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28370 | /* confdefs.h. */ |
| 28371 | _ACEOF |
| 28372 | cat confdefs.h >>conftest.$ac_ext |
| 28373 | cat >>conftest.$ac_ext <<_ACEOF |
| 28374 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28375 | #include <stdlib.h> |
| 28376 | #include <stdarg.h> |
| 28377 | #include <string.h> |
| 28378 | #include <float.h> |
| 28379 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28380 | int |
| 28381 | main () |
| 28382 | { |
| 28383 | |
| 28384 | ; |
| 28385 | return 0; |
| 28386 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28387 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28388 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28389 | if { (ac_try="$ac_compile" |
| 28390 | case "(($ac_try" in |
| 28391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28392 | *) ac_try_echo=$ac_try;; |
| 28393 | esac |
| 28394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28395 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28396 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28398 | rm -f conftest.er1 |
| 28399 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28401 | (exit $ac_status); } && |
| 28402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28403 | { (case "(($ac_try" in |
| 28404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28405 | *) ac_try_echo=$ac_try;; |
| 28406 | esac |
| 28407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28408 | (eval "$ac_try") 2>&5 |
| 28409 | ac_status=$? |
| 28410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28411 | (exit $ac_status); }; } && |
| 28412 | { ac_try='test -s conftest.$ac_objext' |
| 28413 | { (case "(($ac_try" in |
| 28414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28415 | *) ac_try_echo=$ac_try;; |
| 28416 | esac |
| 28417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28418 | (eval "$ac_try") 2>&5 |
| 28419 | ac_status=$? |
| 28420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28421 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28422 | ac_cv_header_stdc=yes |
| 28423 | else |
| 28424 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28427 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28428 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28429 | |
| 28430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28431 | |
| 28432 | if test $ac_cv_header_stdc = yes; then |
| 28433 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28434 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28435 | /* confdefs.h. */ |
| 28436 | _ACEOF |
| 28437 | cat confdefs.h >>conftest.$ac_ext |
| 28438 | cat >>conftest.$ac_ext <<_ACEOF |
| 28439 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28440 | #include <string.h> |
| 28441 | |
| 28442 | _ACEOF |
| 28443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28444 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28445 | : |
| 28446 | else |
| 28447 | ac_cv_header_stdc=no |
| 28448 | fi |
| 28449 | rm -f conftest* |
| 28450 | |
| 28451 | fi |
| 28452 | |
| 28453 | if test $ac_cv_header_stdc = yes; then |
| 28454 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28455 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28456 | /* confdefs.h. */ |
| 28457 | _ACEOF |
| 28458 | cat confdefs.h >>conftest.$ac_ext |
| 28459 | cat >>conftest.$ac_ext <<_ACEOF |
| 28460 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28461 | #include <stdlib.h> |
| 28462 | |
| 28463 | _ACEOF |
| 28464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28465 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28466 | : |
| 28467 | else |
| 28468 | ac_cv_header_stdc=no |
| 28469 | fi |
| 28470 | rm -f conftest* |
| 28471 | |
| 28472 | fi |
| 28473 | |
| 28474 | if test $ac_cv_header_stdc = yes; then |
| 28475 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28476 | if test "$cross_compiling" = yes; then |
| 28477 | : |
| 28478 | else |
| 28479 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28480 | /* confdefs.h. */ |
| 28481 | _ACEOF |
| 28482 | cat confdefs.h >>conftest.$ac_ext |
| 28483 | cat >>conftest.$ac_ext <<_ACEOF |
| 28484 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28485 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28486 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28487 | #if ((' ' & 0x0FF) == 0x020) |
| 28488 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28489 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28490 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28491 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28492 | (('a' <= (c) && (c) <= 'i') \ |
| 28493 | || ('j' <= (c) && (c) <= 'r') \ |
| 28494 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28495 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28496 | #endif |
| 28497 | |
| 28498 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28499 | int |
| 28500 | main () |
| 28501 | { |
| 28502 | int i; |
| 28503 | for (i = 0; i < 256; i++) |
| 28504 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28505 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28506 | return 2; |
| 28507 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28508 | } |
| 28509 | _ACEOF |
| 28510 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28511 | if { (ac_try="$ac_link" |
| 28512 | case "(($ac_try" in |
| 28513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28514 | *) ac_try_echo=$ac_try;; |
| 28515 | esac |
| 28516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28517 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28518 | ac_status=$? |
| 28519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28521 | { (case "(($ac_try" in |
| 28522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28523 | *) ac_try_echo=$ac_try;; |
| 28524 | esac |
| 28525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28526 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28527 | ac_status=$? |
| 28528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28529 | (exit $ac_status); }; }; then |
| 28530 | : |
| 28531 | else |
| 28532 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28533 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28535 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28536 | ( exit $ac_status ) |
| 28537 | ac_cv_header_stdc=no |
| 28538 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28539 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28540 | fi |
| 28541 | |
| 28542 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28543 | fi |
| 28544 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28545 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28546 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28547 | if test $ac_cv_header_stdc = yes; then |
| 28548 | |
| 28549 | cat >>confdefs.h <<\_ACEOF |
| 28550 | #define STDC_HEADERS 1 |
| 28551 | _ACEOF |
| 28552 | |
| 28553 | fi |
| 28554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28555 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28556 | 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] | 28557 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28559 | else |
| 28560 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28561 | /* confdefs.h. */ |
| 28562 | _ACEOF |
| 28563 | cat confdefs.h >>conftest.$ac_ext |
| 28564 | cat >>conftest.$ac_ext <<_ACEOF |
| 28565 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28566 | #include <sys/types.h> |
| 28567 | #include <sys/wait.h> |
| 28568 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28569 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28570 | #endif |
| 28571 | #ifndef WIFEXITED |
| 28572 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28573 | #endif |
| 28574 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28575 | int |
| 28576 | main () |
| 28577 | { |
| 28578 | int s; |
| 28579 | wait (&s); |
| 28580 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28581 | ; |
| 28582 | return 0; |
| 28583 | } |
| 28584 | _ACEOF |
| 28585 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28586 | if { (ac_try="$ac_compile" |
| 28587 | case "(($ac_try" in |
| 28588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28589 | *) ac_try_echo=$ac_try;; |
| 28590 | esac |
| 28591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28592 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28593 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28595 | rm -f conftest.er1 |
| 28596 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28598 | (exit $ac_status); } && |
| 28599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28600 | { (case "(($ac_try" in |
| 28601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28602 | *) ac_try_echo=$ac_try;; |
| 28603 | esac |
| 28604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28605 | (eval "$ac_try") 2>&5 |
| 28606 | ac_status=$? |
| 28607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28608 | (exit $ac_status); }; } && |
| 28609 | { ac_try='test -s conftest.$ac_objext' |
| 28610 | { (case "(($ac_try" in |
| 28611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28612 | *) ac_try_echo=$ac_try;; |
| 28613 | esac |
| 28614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28615 | (eval "$ac_try") 2>&5 |
| 28616 | ac_status=$? |
| 28617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28618 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28619 | ac_cv_header_sys_wait_h=yes |
| 28620 | else |
| 28621 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28624 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28625 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28626 | |
| 28627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28628 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28629 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28630 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28631 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28632 | |
| 28633 | cat >>confdefs.h <<\_ACEOF |
| 28634 | #define HAVE_SYS_WAIT_H 1 |
| 28635 | _ACEOF |
| 28636 | |
| 28637 | fi |
| 28638 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28639 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28640 | 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] | 28641 | if test "${ac_cv_header_time+set}" = set; then |
| 28642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28643 | else |
| 28644 | cat >conftest.$ac_ext <<_ACEOF |
| 28645 | /* confdefs.h. */ |
| 28646 | _ACEOF |
| 28647 | cat confdefs.h >>conftest.$ac_ext |
| 28648 | cat >>conftest.$ac_ext <<_ACEOF |
| 28649 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28650 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28651 | #include <sys/time.h> |
| 28652 | #include <time.h> |
| 28653 | |
| 28654 | int |
| 28655 | main () |
| 28656 | { |
| 28657 | if ((struct tm *) 0) |
| 28658 | return 0; |
| 28659 | ; |
| 28660 | return 0; |
| 28661 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28662 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28663 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28664 | if { (ac_try="$ac_compile" |
| 28665 | case "(($ac_try" in |
| 28666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28667 | *) ac_try_echo=$ac_try;; |
| 28668 | esac |
| 28669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28670 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28671 | ac_status=$? |
| 28672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28673 | rm -f conftest.er1 |
| 28674 | cat conftest.err >&5 |
| 28675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28676 | (exit $ac_status); } && |
| 28677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28678 | { (case "(($ac_try" in |
| 28679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28680 | *) ac_try_echo=$ac_try;; |
| 28681 | esac |
| 28682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28683 | (eval "$ac_try") 2>&5 |
| 28684 | ac_status=$? |
| 28685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28686 | (exit $ac_status); }; } && |
| 28687 | { ac_try='test -s conftest.$ac_objext' |
| 28688 | { (case "(($ac_try" in |
| 28689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28690 | *) ac_try_echo=$ac_try;; |
| 28691 | esac |
| 28692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28693 | (eval "$ac_try") 2>&5 |
| 28694 | ac_status=$? |
| 28695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28696 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28697 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28698 | else |
| 28699 | echo "$as_me: failed program was:" >&5 |
| 28700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28701 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28702 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28703 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28704 | |
| 28705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28706 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28707 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28708 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28709 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28710 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28711 | cat >>confdefs.h <<\_ACEOF |
| 28712 | #define TIME_WITH_SYS_TIME 1 |
| 28713 | _ACEOF |
| 28714 | |
| 28715 | fi |
| 28716 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28717 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28718 | |
| 28719 | |
| 28720 | |
| 28721 | |
| 28722 | |
| 28723 | |
| 28724 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28725 | do |
| 28726 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28727 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28728 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28730 | 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] | 28731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28732 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28733 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28734 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28735 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28736 | else |
| 28737 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28738 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28739 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28740 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28741 | /* confdefs.h. */ |
| 28742 | _ACEOF |
| 28743 | cat confdefs.h >>conftest.$ac_ext |
| 28744 | cat >>conftest.$ac_ext <<_ACEOF |
| 28745 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28746 | $ac_includes_default |
| 28747 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28748 | _ACEOF |
| 28749 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28750 | if { (ac_try="$ac_compile" |
| 28751 | case "(($ac_try" in |
| 28752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28753 | *) ac_try_echo=$ac_try;; |
| 28754 | esac |
| 28755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28756 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28757 | ac_status=$? |
| 28758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28759 | rm -f conftest.er1 |
| 28760 | cat conftest.err >&5 |
| 28761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28762 | (exit $ac_status); } && |
| 28763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28764 | { (case "(($ac_try" in |
| 28765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28766 | *) ac_try_echo=$ac_try;; |
| 28767 | esac |
| 28768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28769 | (eval "$ac_try") 2>&5 |
| 28770 | ac_status=$? |
| 28771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28772 | (exit $ac_status); }; } && |
| 28773 | { ac_try='test -s conftest.$ac_objext' |
| 28774 | { (case "(($ac_try" in |
| 28775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28776 | *) ac_try_echo=$ac_try;; |
| 28777 | esac |
| 28778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28779 | (eval "$ac_try") 2>&5 |
| 28780 | ac_status=$? |
| 28781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28782 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28783 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28784 | else |
| 28785 | echo "$as_me: failed program was:" >&5 |
| 28786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28788 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28789 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28790 | |
| 28791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28792 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28793 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28794 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28795 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28796 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28797 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28798 | cat >conftest.$ac_ext <<_ACEOF |
| 28799 | /* confdefs.h. */ |
| 28800 | _ACEOF |
| 28801 | cat confdefs.h >>conftest.$ac_ext |
| 28802 | cat >>conftest.$ac_ext <<_ACEOF |
| 28803 | /* end confdefs.h. */ |
| 28804 | #include <$ac_header> |
| 28805 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28806 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28807 | case "(($ac_try" in |
| 28808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28809 | *) ac_try_echo=$ac_try;; |
| 28810 | esac |
| 28811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28812 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28813 | ac_status=$? |
| 28814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28815 | rm -f conftest.er1 |
| 28816 | cat conftest.err >&5 |
| 28817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28818 | (exit $ac_status); } >/dev/null; then |
| 28819 | if test -s conftest.err; then |
| 28820 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28821 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28822 | else |
| 28823 | ac_cpp_err= |
| 28824 | fi |
| 28825 | else |
| 28826 | ac_cpp_err=yes |
| 28827 | fi |
| 28828 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28829 | ac_header_preproc=yes |
| 28830 | else |
| 28831 | echo "$as_me: failed program was:" >&5 |
| 28832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28833 | |
| 28834 | ac_header_preproc=no |
| 28835 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28836 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28837 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28838 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28839 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28840 | |
| 28841 | # So? What about this header? |
| 28842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28843 | yes:no: ) |
| 28844 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28845 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28847 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28848 | ac_header_preproc=yes |
| 28849 | ;; |
| 28850 | no:yes:* ) |
| 28851 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28852 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28853 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28854 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28855 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28856 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28857 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28858 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28860 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28861 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28862 | 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] | 28863 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28864 | ## ----------------------------------- ## |
| 28865 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28866 | ## ----------------------------------- ## |
| 28867 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28868 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28869 | ;; |
| 28870 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28871 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28872 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28873 | 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] | 28874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28875 | else |
| 28876 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28877 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28878 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28879 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28880 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28881 | |
| 28882 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28883 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28884 | cat >>confdefs.h <<_ACEOF |
| 28885 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28886 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28887 | |
| 28888 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28889 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28890 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28891 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28892 | |
| 28893 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28894 | |
| 28895 | |
| 28896 | |
| 28897 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28898 | 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] | 28899 | do |
| 28900 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28901 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28902 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28904 | 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] | 28905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28907 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28908 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28909 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28910 | else |
| 28911 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28912 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28913 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28914 | cat >conftest.$ac_ext <<_ACEOF |
| 28915 | /* confdefs.h. */ |
| 28916 | _ACEOF |
| 28917 | cat confdefs.h >>conftest.$ac_ext |
| 28918 | cat >>conftest.$ac_ext <<_ACEOF |
| 28919 | /* end confdefs.h. */ |
| 28920 | $ac_includes_default |
| 28921 | #include <$ac_header> |
| 28922 | _ACEOF |
| 28923 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28924 | if { (ac_try="$ac_compile" |
| 28925 | case "(($ac_try" in |
| 28926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28927 | *) ac_try_echo=$ac_try;; |
| 28928 | esac |
| 28929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28930 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28931 | ac_status=$? |
| 28932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28933 | rm -f conftest.er1 |
| 28934 | cat conftest.err >&5 |
| 28935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28936 | (exit $ac_status); } && |
| 28937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28938 | { (case "(($ac_try" in |
| 28939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28940 | *) ac_try_echo=$ac_try;; |
| 28941 | esac |
| 28942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28943 | (eval "$ac_try") 2>&5 |
| 28944 | ac_status=$? |
| 28945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28946 | (exit $ac_status); }; } && |
| 28947 | { ac_try='test -s conftest.$ac_objext' |
| 28948 | { (case "(($ac_try" in |
| 28949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28950 | *) ac_try_echo=$ac_try;; |
| 28951 | esac |
| 28952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28953 | (eval "$ac_try") 2>&5 |
| 28954 | ac_status=$? |
| 28955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28956 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28957 | ac_header_compiler=yes |
| 28958 | else |
| 28959 | echo "$as_me: failed program was:" >&5 |
| 28960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28961 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28962 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28963 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28964 | |
| 28965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28966 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28967 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28968 | |
| 28969 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28970 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28971 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28972 | cat >conftest.$ac_ext <<_ACEOF |
| 28973 | /* confdefs.h. */ |
| 28974 | _ACEOF |
| 28975 | cat confdefs.h >>conftest.$ac_ext |
| 28976 | cat >>conftest.$ac_ext <<_ACEOF |
| 28977 | /* end confdefs.h. */ |
| 28978 | #include <$ac_header> |
| 28979 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28980 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28981 | case "(($ac_try" in |
| 28982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28983 | *) ac_try_echo=$ac_try;; |
| 28984 | esac |
| 28985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28986 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28987 | ac_status=$? |
| 28988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28989 | rm -f conftest.er1 |
| 28990 | cat conftest.err >&5 |
| 28991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 28992 | (exit $ac_status); } >/dev/null; then |
| 28993 | if test -s conftest.err; then |
| 28994 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28995 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28996 | else |
| 28997 | ac_cpp_err= |
| 28998 | fi |
| 28999 | else |
| 29000 | ac_cpp_err=yes |
| 29001 | fi |
| 29002 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29003 | ac_header_preproc=yes |
| 29004 | else |
| 29005 | echo "$as_me: failed program was:" >&5 |
| 29006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29007 | |
| 29008 | ac_header_preproc=no |
| 29009 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29010 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29011 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29012 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29013 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29014 | |
| 29015 | # So? What about this header? |
| 29016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29017 | yes:no: ) |
| 29018 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29019 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29020 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29021 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29022 | ac_header_preproc=yes |
| 29023 | ;; |
| 29024 | no:yes:* ) |
| 29025 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29026 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29027 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29028 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29029 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29030 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29031 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29032 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29034 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29035 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29036 | 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] | 29037 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29038 | ## ----------------------------------- ## |
| 29039 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29040 | ## ----------------------------------- ## |
| 29041 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29042 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29043 | ;; |
| 29044 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29045 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29047 | 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] | 29048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29049 | else |
| 29050 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29051 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29052 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29053 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29054 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29055 | |
| 29056 | fi |
| 29057 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29058 | cat >>confdefs.h <<_ACEOF |
| 29059 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29060 | _ACEOF |
| 29061 | |
| 29062 | fi |
| 29063 | |
| 29064 | done |
| 29065 | |
| 29066 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29067 | for ac_header in windows.h |
| 29068 | do |
| 29069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29071 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29075 | fi |
| 29076 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29077 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29078 | echo "${ECHO_T}$ac_res" >&6; } |
| 29079 | else |
| 29080 | # Is the header compilable? |
| 29081 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29082 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 29083 | cat >conftest.$ac_ext <<_ACEOF |
| 29084 | /* confdefs.h. */ |
| 29085 | _ACEOF |
| 29086 | cat confdefs.h >>conftest.$ac_ext |
| 29087 | cat >>conftest.$ac_ext <<_ACEOF |
| 29088 | /* end confdefs.h. */ |
| 29089 | $ac_includes_default |
| 29090 | #include <$ac_header> |
| 29091 | _ACEOF |
| 29092 | rm -f conftest.$ac_objext |
| 29093 | if { (ac_try="$ac_compile" |
| 29094 | case "(($ac_try" in |
| 29095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29096 | *) ac_try_echo=$ac_try;; |
| 29097 | esac |
| 29098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29099 | (eval "$ac_compile") 2>conftest.er1 |
| 29100 | ac_status=$? |
| 29101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29102 | rm -f conftest.er1 |
| 29103 | cat conftest.err >&5 |
| 29104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 29105 | (exit $ac_status); } && |
| 29106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29107 | { (case "(($ac_try" in |
| 29108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29109 | *) ac_try_echo=$ac_try;; |
| 29110 | esac |
| 29111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29112 | (eval "$ac_try") 2>&5 |
| 29113 | ac_status=$? |
| 29114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29115 | (exit $ac_status); }; } && |
| 29116 | { ac_try='test -s conftest.$ac_objext' |
| 29117 | { (case "(($ac_try" in |
| 29118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29119 | *) ac_try_echo=$ac_try;; |
| 29120 | esac |
| 29121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29122 | (eval "$ac_try") 2>&5 |
| 29123 | ac_status=$? |
| 29124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29125 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29126 | ac_header_compiler=yes |
| 29127 | else |
| 29128 | echo "$as_me: failed program was:" >&5 |
| 29129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29130 | |
| 29131 | ac_header_compiler=no |
| 29132 | fi |
| 29133 | |
| 29134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29135 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29136 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 29137 | |
| 29138 | # Is the header present? |
| 29139 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29140 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 29141 | cat >conftest.$ac_ext <<_ACEOF |
| 29142 | /* confdefs.h. */ |
| 29143 | _ACEOF |
| 29144 | cat confdefs.h >>conftest.$ac_ext |
| 29145 | cat >>conftest.$ac_ext <<_ACEOF |
| 29146 | /* end confdefs.h. */ |
| 29147 | #include <$ac_header> |
| 29148 | _ACEOF |
| 29149 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29150 | case "(($ac_try" in |
| 29151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29152 | *) ac_try_echo=$ac_try;; |
| 29153 | esac |
| 29154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29155 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 29156 | ac_status=$? |
| 29157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29158 | rm -f conftest.er1 |
| 29159 | cat conftest.err >&5 |
| 29160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 29161 | (exit $ac_status); } >/dev/null; then |
| 29162 | if test -s conftest.err; then |
| 29163 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29164 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29165 | else |
| 29166 | ac_cpp_err= |
| 29167 | fi |
| 29168 | else |
| 29169 | ac_cpp_err=yes |
| 29170 | fi |
| 29171 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29172 | ac_header_preproc=yes |
| 29173 | else |
| 29174 | echo "$as_me: failed program was:" >&5 |
| 29175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29176 | |
| 29177 | ac_header_preproc=no |
| 29178 | fi |
| 29179 | |
| 29180 | rm -f conftest.err conftest.$ac_ext |
| 29181 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29182 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 29183 | |
| 29184 | # So? What about this header? |
| 29185 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29186 | yes:no: ) |
| 29187 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29188 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29189 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29190 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29191 | ac_header_preproc=yes |
| 29192 | ;; |
| 29193 | no:yes:* ) |
| 29194 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29195 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29196 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29197 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29198 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29199 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29200 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29201 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29202 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29203 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29204 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29205 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 29206 | ( cat <<\_ASBOX |
| 29207 | ## ----------------------------------- ## |
| 29208 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29209 | ## ----------------------------------- ## |
| 29210 | _ASBOX |
| 29211 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29212 | ;; |
| 29213 | esac |
| 29214 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29215 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29216 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29218 | else |
| 29219 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29220 | fi |
| 29221 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29222 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29223 | echo "${ECHO_T}$ac_res" >&6; } |
| 29224 | |
| 29225 | fi |
| 29226 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29227 | cat >>confdefs.h <<_ACEOF |
| 29228 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29229 | _ACEOF |
| 29230 | |
| 29231 | fi |
| 29232 | |
| 29233 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29234 | |
| 29235 | |
| 29236 | |
| 29237 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29238 | |
| 29239 | 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] | 29240 | do |
| 29241 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29242 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29243 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29244 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29245 | 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] | 29246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29247 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29248 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29249 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29250 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29251 | else |
| 29252 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29253 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29254 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29255 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29256 | /* confdefs.h. */ |
| 29257 | _ACEOF |
| 29258 | cat confdefs.h >>conftest.$ac_ext |
| 29259 | cat >>conftest.$ac_ext <<_ACEOF |
| 29260 | /* end confdefs.h. */ |
| 29261 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29262 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29263 | _ACEOF |
| 29264 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29265 | if { (ac_try="$ac_compile" |
| 29266 | case "(($ac_try" in |
| 29267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29268 | *) ac_try_echo=$ac_try;; |
| 29269 | esac |
| 29270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29271 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29272 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29274 | rm -f conftest.er1 |
| 29275 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 29277 | (exit $ac_status); } && |
| 29278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29279 | { (case "(($ac_try" in |
| 29280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29281 | *) ac_try_echo=$ac_try;; |
| 29282 | esac |
| 29283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29284 | (eval "$ac_try") 2>&5 |
| 29285 | ac_status=$? |
| 29286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29287 | (exit $ac_status); }; } && |
| 29288 | { ac_try='test -s conftest.$ac_objext' |
| 29289 | { (case "(($ac_try" in |
| 29290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29291 | *) ac_try_echo=$ac_try;; |
| 29292 | esac |
| 29293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29294 | (eval "$ac_try") 2>&5 |
| 29295 | ac_status=$? |
| 29296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29297 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29298 | ac_header_compiler=yes |
| 29299 | else |
| 29300 | echo "$as_me: failed program was:" >&5 |
| 29301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29302 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29303 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29304 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29305 | |
| 29306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29307 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29308 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29309 | |
| 29310 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29311 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29312 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29313 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29314 | /* confdefs.h. */ |
| 29315 | _ACEOF |
| 29316 | cat confdefs.h >>conftest.$ac_ext |
| 29317 | cat >>conftest.$ac_ext <<_ACEOF |
| 29318 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29319 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29320 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29321 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29322 | case "(($ac_try" in |
| 29323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29324 | *) ac_try_echo=$ac_try;; |
| 29325 | esac |
| 29326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29327 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29328 | ac_status=$? |
| 29329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29330 | rm -f conftest.er1 |
| 29331 | cat conftest.err >&5 |
| 29332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 29333 | (exit $ac_status); } >/dev/null; then |
| 29334 | if test -s conftest.err; then |
| 29335 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29336 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29337 | else |
| 29338 | ac_cpp_err= |
| 29339 | fi |
| 29340 | else |
| 29341 | ac_cpp_err=yes |
| 29342 | fi |
| 29343 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29344 | ac_header_preproc=yes |
| 29345 | else |
| 29346 | echo "$as_me: failed program was:" >&5 |
| 29347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29348 | |
| 29349 | ac_header_preproc=no |
| 29350 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29351 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29352 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29353 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29354 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29355 | |
| 29356 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29357 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29358 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29359 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29360 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29361 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29362 | 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] | 29363 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29364 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29365 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29366 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29367 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29368 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29369 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29370 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29371 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29372 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29373 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29374 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29375 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29376 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29377 | 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] | 29378 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29379 | ## ----------------------------------- ## |
| 29380 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29381 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29382 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29383 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29384 | ;; |
| 29385 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29386 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29387 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29388 | 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] | 29389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29390 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29391 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29392 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29393 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29394 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29395 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29396 | |
| 29397 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29398 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29399 | cat >>confdefs.h <<_ACEOF |
| 29400 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29401 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29402 | |
| 29403 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29404 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29405 | done |
| 29406 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29407 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29408 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 29409 | |
| 29410 | 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] | 29411 | do |
| 29412 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29413 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29414 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29416 | 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] | 29417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29418 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29419 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29420 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29421 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29422 | else |
| 29423 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29424 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29425 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29426 | cat >conftest.$ac_ext <<_ACEOF |
| 29427 | /* confdefs.h. */ |
| 29428 | _ACEOF |
| 29429 | cat confdefs.h >>conftest.$ac_ext |
| 29430 | cat >>conftest.$ac_ext <<_ACEOF |
| 29431 | /* end confdefs.h. */ |
| 29432 | $ac_includes_default |
| 29433 | #include <$ac_header> |
| 29434 | _ACEOF |
| 29435 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29436 | if { (ac_try="$ac_compile" |
| 29437 | case "(($ac_try" in |
| 29438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29439 | *) ac_try_echo=$ac_try;; |
| 29440 | esac |
| 29441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29442 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29443 | ac_status=$? |
| 29444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29445 | rm -f conftest.er1 |
| 29446 | cat conftest.err >&5 |
| 29447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 29448 | (exit $ac_status); } && |
| 29449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29450 | { (case "(($ac_try" in |
| 29451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29452 | *) ac_try_echo=$ac_try;; |
| 29453 | esac |
| 29454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29455 | (eval "$ac_try") 2>&5 |
| 29456 | ac_status=$? |
| 29457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29458 | (exit $ac_status); }; } && |
| 29459 | { ac_try='test -s conftest.$ac_objext' |
| 29460 | { (case "(($ac_try" in |
| 29461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29462 | *) ac_try_echo=$ac_try;; |
| 29463 | esac |
| 29464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29465 | (eval "$ac_try") 2>&5 |
| 29466 | ac_status=$? |
| 29467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29468 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29469 | ac_header_compiler=yes |
| 29470 | else |
| 29471 | echo "$as_me: failed program was:" >&5 |
| 29472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29474 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29475 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29476 | |
| 29477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29478 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29479 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29480 | |
| 29481 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29482 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29483 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29484 | cat >conftest.$ac_ext <<_ACEOF |
| 29485 | /* confdefs.h. */ |
| 29486 | _ACEOF |
| 29487 | cat confdefs.h >>conftest.$ac_ext |
| 29488 | cat >>conftest.$ac_ext <<_ACEOF |
| 29489 | /* end confdefs.h. */ |
| 29490 | #include <$ac_header> |
| 29491 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29492 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29493 | case "(($ac_try" in |
| 29494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29495 | *) ac_try_echo=$ac_try;; |
| 29496 | esac |
| 29497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29498 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29499 | ac_status=$? |
| 29500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29501 | rm -f conftest.er1 |
| 29502 | cat conftest.err >&5 |
| 29503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 29504 | (exit $ac_status); } >/dev/null; then |
| 29505 | if test -s conftest.err; then |
| 29506 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29507 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29508 | else |
| 29509 | ac_cpp_err= |
| 29510 | fi |
| 29511 | else |
| 29512 | ac_cpp_err=yes |
| 29513 | fi |
| 29514 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29515 | ac_header_preproc=yes |
| 29516 | else |
| 29517 | echo "$as_me: failed program was:" >&5 |
| 29518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29519 | |
| 29520 | ac_header_preproc=no |
| 29521 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29522 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29523 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29524 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29525 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29526 | |
| 29527 | # So? What about this header? |
| 29528 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29529 | yes:no: ) |
| 29530 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29531 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29532 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29533 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29534 | ac_header_preproc=yes |
| 29535 | ;; |
| 29536 | no:yes:* ) |
| 29537 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29538 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29539 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29540 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29541 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29542 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29543 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29544 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29545 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29546 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29547 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29548 | 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] | 29549 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29550 | ## ----------------------------------- ## |
| 29551 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29552 | ## ----------------------------------- ## |
| 29553 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29554 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29555 | ;; |
| 29556 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29557 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29558 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29559 | 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] | 29560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29561 | else |
| 29562 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29563 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29564 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29565 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29566 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29567 | |
| 29568 | fi |
| 29569 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29570 | cat >>confdefs.h <<_ACEOF |
| 29571 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29572 | _ACEOF |
| 29573 | |
| 29574 | fi |
| 29575 | |
| 29576 | done |
| 29577 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29578 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29579 | |
| 29580 | for ac_header in pthread.h |
| 29581 | do |
| 29582 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29583 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29584 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29586 | 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] | 29587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29588 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29589 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29590 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29591 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29592 | else |
| 29593 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29594 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29595 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29596 | cat >conftest.$ac_ext <<_ACEOF |
| 29597 | /* confdefs.h. */ |
| 29598 | _ACEOF |
| 29599 | cat confdefs.h >>conftest.$ac_ext |
| 29600 | cat >>conftest.$ac_ext <<_ACEOF |
| 29601 | /* end confdefs.h. */ |
| 29602 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29603 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29604 | _ACEOF |
| 29605 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29606 | if { (ac_try="$ac_compile" |
| 29607 | case "(($ac_try" in |
| 29608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29609 | *) ac_try_echo=$ac_try;; |
| 29610 | esac |
| 29611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29612 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29613 | ac_status=$? |
| 29614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29615 | rm -f conftest.er1 |
| 29616 | cat conftest.err >&5 |
| 29617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 29618 | (exit $ac_status); } && |
| 29619 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29620 | { (case "(($ac_try" in |
| 29621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29622 | *) ac_try_echo=$ac_try;; |
| 29623 | esac |
| 29624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29625 | (eval "$ac_try") 2>&5 |
| 29626 | ac_status=$? |
| 29627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29628 | (exit $ac_status); }; } && |
| 29629 | { ac_try='test -s conftest.$ac_objext' |
| 29630 | { (case "(($ac_try" in |
| 29631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29632 | *) ac_try_echo=$ac_try;; |
| 29633 | esac |
| 29634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29635 | (eval "$ac_try") 2>&5 |
| 29636 | ac_status=$? |
| 29637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29638 | (exit $ac_status); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29639 | ac_header_compiler=yes |
| 29640 | else |
| 29641 | echo "$as_me: failed program was:" >&5 |
| 29642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29643 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29644 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29645 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29646 | |
| 29647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29648 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29649 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29650 | |
| 29651 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29652 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29653 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29654 | cat >conftest.$ac_ext <<_ACEOF |
| 29655 | /* confdefs.h. */ |
| 29656 | _ACEOF |
| 29657 | cat confdefs.h >>conftest.$ac_ext |
| 29658 | cat >>conftest.$ac_ext <<_ACEOF |
| 29659 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29660 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29661 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29662 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29663 | case "(($ac_try" in |
| 29664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29665 | *) ac_try_echo=$ac_try;; |
| 29666 | esac |
| 29667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29669 | ac_status=$? |
| 29670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29671 | rm -f conftest.er1 |
| 29672 | cat conftest.err >&5 |
| 29673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 29674 | (exit $ac_status); } >/dev/null; then |
| 29675 | if test -s conftest.err; then |
| 29676 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29677 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29678 | else |
| 29679 | ac_cpp_err= |
| 29680 | fi |
| 29681 | else |
| 29682 | ac_cpp_err=yes |
| 29683 | fi |
| 29684 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29685 | ac_header_preproc=yes |
| 29686 | else |
| 29687 | echo "$as_me: failed program was:" >&5 |
| 29688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29689 | |
| 29690 | ac_header_preproc=no |
| 29691 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29692 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29693 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29694 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29695 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29696 | |
| 29697 | # So? What about this header? |
| 29698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29699 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29700 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29701 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29702 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29703 | 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] | 29704 | ac_header_preproc=yes |
| 29705 | ;; |
| 29706 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29707 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29708 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29709 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29710 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29711 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29712 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29713 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29714 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29716 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29717 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29718 | 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] | 29719 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29720 | ## ----------------------------------- ## |
| 29721 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29722 | ## ----------------------------------- ## |
| 29723 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29724 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29725 | ;; |
| 29726 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29727 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29729 | 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] | 29730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29731 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29732 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29733 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29734 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29735 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29736 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29737 | |
| 29738 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29739 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29740 | cat >>confdefs.h <<_ACEOF |
| 29741 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29742 | _ACEOF |
| 29743 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29744 | |
| 29745 | else |
| 29746 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29747 | |
| 29748 | fi |
| 29749 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29750 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29751 | |
| 29752 | else |
| 29753 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29754 | |
| 29755 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29756 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 29757 | if test -n "$have_libffi" ; then |
| 29758 | |
| 29759 | |
| 29760 | for ac_header in ffi.h ffi/ffi.h |
| 29761 | do |
| 29762 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29764 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29765 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29768 | fi |
| 29769 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29770 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29771 | echo "${ECHO_T}$ac_res" >&6; } |
| 29772 | else |
| 29773 | # Is the header compilable? |
| 29774 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29775 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 29776 | cat >conftest.$ac_ext <<_ACEOF |
| 29777 | /* confdefs.h. */ |
| 29778 | _ACEOF |
| 29779 | cat confdefs.h >>conftest.$ac_ext |
| 29780 | cat >>conftest.$ac_ext <<_ACEOF |
| 29781 | /* end confdefs.h. */ |
| 29782 | $ac_includes_default |
| 29783 | #include <$ac_header> |
| 29784 | _ACEOF |
| 29785 | rm -f conftest.$ac_objext |
| 29786 | if { (ac_try="$ac_compile" |
| 29787 | case "(($ac_try" in |
| 29788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29789 | *) ac_try_echo=$ac_try;; |
| 29790 | esac |
| 29791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29792 | (eval "$ac_compile") 2>conftest.er1 |
| 29793 | ac_status=$? |
| 29794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29795 | rm -f conftest.er1 |
| 29796 | cat conftest.err >&5 |
| 29797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29798 | (exit $ac_status); } && |
| 29799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29800 | { (case "(($ac_try" in |
| 29801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29802 | *) ac_try_echo=$ac_try;; |
| 29803 | esac |
| 29804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29805 | (eval "$ac_try") 2>&5 |
| 29806 | ac_status=$? |
| 29807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29808 | (exit $ac_status); }; } && |
| 29809 | { ac_try='test -s conftest.$ac_objext' |
| 29810 | { (case "(($ac_try" in |
| 29811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29812 | *) ac_try_echo=$ac_try;; |
| 29813 | esac |
| 29814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29815 | (eval "$ac_try") 2>&5 |
| 29816 | ac_status=$? |
| 29817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29818 | (exit $ac_status); }; }; then |
| 29819 | ac_header_compiler=yes |
| 29820 | else |
| 29821 | echo "$as_me: failed program was:" >&5 |
| 29822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29823 | |
| 29824 | ac_header_compiler=no |
| 29825 | fi |
| 29826 | |
| 29827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29828 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29829 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 29830 | |
| 29831 | # Is the header present? |
| 29832 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29833 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 29834 | cat >conftest.$ac_ext <<_ACEOF |
| 29835 | /* confdefs.h. */ |
| 29836 | _ACEOF |
| 29837 | cat confdefs.h >>conftest.$ac_ext |
| 29838 | cat >>conftest.$ac_ext <<_ACEOF |
| 29839 | /* end confdefs.h. */ |
| 29840 | #include <$ac_header> |
| 29841 | _ACEOF |
| 29842 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29843 | case "(($ac_try" in |
| 29844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29845 | *) ac_try_echo=$ac_try;; |
| 29846 | esac |
| 29847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 29849 | ac_status=$? |
| 29850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29851 | rm -f conftest.er1 |
| 29852 | cat conftest.err >&5 |
| 29853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29854 | (exit $ac_status); } >/dev/null; then |
| 29855 | if test -s conftest.err; then |
| 29856 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29857 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29858 | else |
| 29859 | ac_cpp_err= |
| 29860 | fi |
| 29861 | else |
| 29862 | ac_cpp_err=yes |
| 29863 | fi |
| 29864 | if test -z "$ac_cpp_err"; then |
| 29865 | ac_header_preproc=yes |
| 29866 | else |
| 29867 | echo "$as_me: failed program was:" >&5 |
| 29868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29869 | |
| 29870 | ac_header_preproc=no |
| 29871 | fi |
| 29872 | |
| 29873 | rm -f conftest.err conftest.$ac_ext |
| 29874 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29875 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 29876 | |
| 29877 | # So? What about this header? |
| 29878 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29879 | yes:no: ) |
| 29880 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29881 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29882 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29883 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29884 | ac_header_preproc=yes |
| 29885 | ;; |
| 29886 | no:yes:* ) |
| 29887 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29888 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29889 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29890 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29891 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29892 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29893 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29894 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29896 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29897 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29898 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 29899 | ( cat <<\_ASBOX |
| 29900 | ## ----------------------------------- ## |
| 29901 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29902 | ## ----------------------------------- ## |
| 29903 | _ASBOX |
| 29904 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29905 | ;; |
| 29906 | esac |
| 29907 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29911 | else |
| 29912 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29913 | fi |
| 29914 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29915 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29916 | echo "${ECHO_T}$ac_res" >&6; } |
| 29917 | |
| 29918 | fi |
| 29919 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29920 | cat >>confdefs.h <<_ACEOF |
| 29921 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29922 | _ACEOF |
| 29923 | HAVE_FFI=1 |
| 29924 | |
| 29925 | fi |
| 29926 | |
| 29927 | done |
| 29928 | |
| 29929 | fi |
| 29930 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 29931 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29932 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29933 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 29934 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 29935 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 29936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29937 | else |
| 29938 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29939 | ac_ext=cpp |
| 29940 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29941 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29942 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29943 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29944 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29945 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29946 | if test "$cross_compiling" = yes; then |
| 29947 | ac_cv_huge_val_sanity=yes |
| 29948 | else |
| 29949 | cat >conftest.$ac_ext <<_ACEOF |
| 29950 | /* confdefs.h. */ |
| 29951 | _ACEOF |
| 29952 | cat confdefs.h >>conftest.$ac_ext |
| 29953 | cat >>conftest.$ac_ext <<_ACEOF |
| 29954 | /* end confdefs.h. */ |
| 29955 | #include <math.h> |
| 29956 | int |
| 29957 | main () |
| 29958 | { |
| 29959 | double x = HUGE_VAL; return x != x; |
| 29960 | ; |
| 29961 | return 0; |
| 29962 | } |
| 29963 | _ACEOF |
| 29964 | rm -f conftest$ac_exeext |
| 29965 | if { (ac_try="$ac_link" |
| 29966 | case "(($ac_try" in |
| 29967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29968 | *) ac_try_echo=$ac_try;; |
| 29969 | esac |
| 29970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29971 | (eval "$ac_link") 2>&5 |
| 29972 | ac_status=$? |
| 29973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29974 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29975 | { (case "(($ac_try" in |
| 29976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29977 | *) ac_try_echo=$ac_try;; |
| 29978 | esac |
| 29979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29980 | (eval "$ac_try") 2>&5 |
| 29981 | ac_status=$? |
| 29982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29983 | (exit $ac_status); }; }; then |
| 29984 | ac_cv_huge_val_sanity=yes |
| 29985 | else |
| 29986 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29987 | echo "$as_me: failed program was:" >&5 |
| 29988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29989 | |
| 29990 | ( exit $ac_status ) |
| 29991 | ac_cv_huge_val_sanity=no |
| 29992 | fi |
| 29993 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29994 | fi |
| 29995 | |
| 29996 | |
| 29997 | ac_ext=c |
| 29998 | ac_cpp='$CPP $CPPFLAGS' |
| 29999 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30000 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30001 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30002 | |
| 30003 | |
| 30004 | fi |
| 30005 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 30006 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 30007 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 30008 | |
| 30009 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30010 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 30011 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30012 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 30013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30014 | else |
| 30015 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30016 | /* confdefs.h. */ |
| 30017 | _ACEOF |
| 30018 | cat confdefs.h >>conftest.$ac_ext |
| 30019 | cat >>conftest.$ac_ext <<_ACEOF |
| 30020 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30021 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30022 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30023 | int |
| 30024 | main () |
| 30025 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30026 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30027 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30028 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30029 | return 0; |
| 30030 | ; |
| 30031 | return 0; |
| 30032 | } |
| 30033 | _ACEOF |
| 30034 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30035 | if { (ac_try="$ac_compile" |
| 30036 | case "(($ac_try" in |
| 30037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30038 | *) ac_try_echo=$ac_try;; |
| 30039 | esac |
| 30040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30041 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30042 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30044 | rm -f conftest.er1 |
| 30045 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30047 | (exit $ac_status); } && |
| 30048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30049 | { (case "(($ac_try" in |
| 30050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30051 | *) ac_try_echo=$ac_try;; |
| 30052 | esac |
| 30053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30054 | (eval "$ac_try") 2>&5 |
| 30055 | ac_status=$? |
| 30056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30057 | (exit $ac_status); }; } && |
| 30058 | { ac_try='test -s conftest.$ac_objext' |
| 30059 | { (case "(($ac_try" in |
| 30060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30061 | *) ac_try_echo=$ac_try;; |
| 30062 | esac |
| 30063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30064 | (eval "$ac_try") 2>&5 |
| 30065 | ac_status=$? |
| 30066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30067 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30068 | ac_cv_type_pid_t=yes |
| 30069 | else |
| 30070 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30073 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30074 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30075 | |
| 30076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30077 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30078 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 30079 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30080 | if test $ac_cv_type_pid_t = yes; then |
| 30081 | : |
| 30082 | else |
| 30083 | |
| 30084 | cat >>confdefs.h <<_ACEOF |
| 30085 | #define pid_t int |
| 30086 | _ACEOF |
| 30087 | |
| 30088 | fi |
| 30089 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30090 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 30091 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30092 | if test "${ac_cv_type_size_t+set}" = set; then |
| 30093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30094 | else |
| 30095 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30096 | /* confdefs.h. */ |
| 30097 | _ACEOF |
| 30098 | cat confdefs.h >>conftest.$ac_ext |
| 30099 | cat >>conftest.$ac_ext <<_ACEOF |
| 30100 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30101 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30102 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30103 | int |
| 30104 | main () |
| 30105 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30106 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30107 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30108 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30109 | return 0; |
| 30110 | ; |
| 30111 | return 0; |
| 30112 | } |
| 30113 | _ACEOF |
| 30114 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30115 | if { (ac_try="$ac_compile" |
| 30116 | case "(($ac_try" in |
| 30117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30118 | *) ac_try_echo=$ac_try;; |
| 30119 | esac |
| 30120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30121 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30122 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30124 | rm -f conftest.er1 |
| 30125 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30127 | (exit $ac_status); } && |
| 30128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30129 | { (case "(($ac_try" in |
| 30130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30131 | *) ac_try_echo=$ac_try;; |
| 30132 | esac |
| 30133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30134 | (eval "$ac_try") 2>&5 |
| 30135 | ac_status=$? |
| 30136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30137 | (exit $ac_status); }; } && |
| 30138 | { ac_try='test -s conftest.$ac_objext' |
| 30139 | { (case "(($ac_try" in |
| 30140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30141 | *) ac_try_echo=$ac_try;; |
| 30142 | esac |
| 30143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30144 | (eval "$ac_try") 2>&5 |
| 30145 | ac_status=$? |
| 30146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30147 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30148 | ac_cv_type_size_t=yes |
| 30149 | else |
| 30150 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30153 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30154 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30155 | |
| 30156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30157 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30158 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 30159 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30160 | if test $ac_cv_type_size_t = yes; then |
| 30161 | : |
| 30162 | else |
| 30163 | |
| 30164 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30165 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30166 | _ACEOF |
| 30167 | |
| 30168 | fi |
| 30169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30170 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 30171 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30172 | if test "${ac_cv_type_signal+set}" = set; then |
| 30173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30174 | else |
| 30175 | cat >conftest.$ac_ext <<_ACEOF |
| 30176 | /* confdefs.h. */ |
| 30177 | _ACEOF |
| 30178 | cat confdefs.h >>conftest.$ac_ext |
| 30179 | cat >>conftest.$ac_ext <<_ACEOF |
| 30180 | /* end confdefs.h. */ |
| 30181 | #include <sys/types.h> |
| 30182 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30183 | |
| 30184 | int |
| 30185 | main () |
| 30186 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30187 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30188 | ; |
| 30189 | return 0; |
| 30190 | } |
| 30191 | _ACEOF |
| 30192 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30193 | if { (ac_try="$ac_compile" |
| 30194 | case "(($ac_try" in |
| 30195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30196 | *) ac_try_echo=$ac_try;; |
| 30197 | esac |
| 30198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30199 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30200 | ac_status=$? |
| 30201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30202 | rm -f conftest.er1 |
| 30203 | cat conftest.err >&5 |
| 30204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30205 | (exit $ac_status); } && |
| 30206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30207 | { (case "(($ac_try" in |
| 30208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30209 | *) ac_try_echo=$ac_try;; |
| 30210 | esac |
| 30211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30212 | (eval "$ac_try") 2>&5 |
| 30213 | ac_status=$? |
| 30214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30215 | (exit $ac_status); }; } && |
| 30216 | { ac_try='test -s conftest.$ac_objext' |
| 30217 | { (case "(($ac_try" in |
| 30218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30219 | *) ac_try_echo=$ac_try;; |
| 30220 | esac |
| 30221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30222 | (eval "$ac_try") 2>&5 |
| 30223 | ac_status=$? |
| 30224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30225 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30226 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30227 | else |
| 30228 | echo "$as_me: failed program was:" >&5 |
| 30229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30230 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30231 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30232 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30233 | |
| 30234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30235 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30236 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 30237 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30238 | |
| 30239 | cat >>confdefs.h <<_ACEOF |
| 30240 | #define RETSIGTYPE $ac_cv_type_signal |
| 30241 | _ACEOF |
| 30242 | |
| 30243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30244 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 30245 | 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] | 30246 | if test "${ac_cv_struct_tm+set}" = set; then |
| 30247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30248 | else |
| 30249 | cat >conftest.$ac_ext <<_ACEOF |
| 30250 | /* confdefs.h. */ |
| 30251 | _ACEOF |
| 30252 | cat confdefs.h >>conftest.$ac_ext |
| 30253 | cat >>conftest.$ac_ext <<_ACEOF |
| 30254 | /* end confdefs.h. */ |
| 30255 | #include <sys/types.h> |
| 30256 | #include <time.h> |
| 30257 | |
| 30258 | int |
| 30259 | main () |
| 30260 | { |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30261 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30262 | ; |
| 30263 | return 0; |
| 30264 | } |
| 30265 | _ACEOF |
| 30266 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30267 | if { (ac_try="$ac_compile" |
| 30268 | case "(($ac_try" in |
| 30269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30270 | *) ac_try_echo=$ac_try;; |
| 30271 | esac |
| 30272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30273 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30274 | ac_status=$? |
| 30275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30276 | rm -f conftest.er1 |
| 30277 | cat conftest.err >&5 |
| 30278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30279 | (exit $ac_status); } && |
| 30280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30281 | { (case "(($ac_try" in |
| 30282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30283 | *) ac_try_echo=$ac_try;; |
| 30284 | esac |
| 30285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30286 | (eval "$ac_try") 2>&5 |
| 30287 | ac_status=$? |
| 30288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30289 | (exit $ac_status); }; } && |
| 30290 | { ac_try='test -s conftest.$ac_objext' |
| 30291 | { (case "(($ac_try" in |
| 30292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30293 | *) ac_try_echo=$ac_try;; |
| 30294 | esac |
| 30295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30296 | (eval "$ac_try") 2>&5 |
| 30297 | ac_status=$? |
| 30298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30299 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30300 | ac_cv_struct_tm=time.h |
| 30301 | else |
| 30302 | echo "$as_me: failed program was:" >&5 |
| 30303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30304 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30305 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30306 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30307 | |
| 30308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30309 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30310 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 30311 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30312 | if test $ac_cv_struct_tm = sys/time.h; then |
| 30313 | |
| 30314 | cat >>confdefs.h <<\_ACEOF |
| 30315 | #define TM_IN_SYS_TIME 1 |
| 30316 | _ACEOF |
| 30317 | |
| 30318 | fi |
| 30319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30320 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 30321 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30322 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 30323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30324 | else |
| 30325 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30326 | /* confdefs.h. */ |
| 30327 | _ACEOF |
| 30328 | cat confdefs.h >>conftest.$ac_ext |
| 30329 | cat >>conftest.$ac_ext <<_ACEOF |
| 30330 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30331 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30332 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30333 | int |
| 30334 | main () |
| 30335 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30336 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30337 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30338 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30339 | return 0; |
| 30340 | ; |
| 30341 | return 0; |
| 30342 | } |
| 30343 | _ACEOF |
| 30344 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30345 | if { (ac_try="$ac_compile" |
| 30346 | case "(($ac_try" in |
| 30347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30348 | *) ac_try_echo=$ac_try;; |
| 30349 | esac |
| 30350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30351 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30352 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30354 | rm -f conftest.er1 |
| 30355 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30357 | (exit $ac_status); } && |
| 30358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30359 | { (case "(($ac_try" in |
| 30360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30361 | *) ac_try_echo=$ac_try;; |
| 30362 | esac |
| 30363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30364 | (eval "$ac_try") 2>&5 |
| 30365 | ac_status=$? |
| 30366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30367 | (exit $ac_status); }; } && |
| 30368 | { ac_try='test -s conftest.$ac_objext' |
| 30369 | { (case "(($ac_try" in |
| 30370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30371 | *) ac_try_echo=$ac_try;; |
| 30372 | esac |
| 30373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30374 | (eval "$ac_try") 2>&5 |
| 30375 | ac_status=$? |
| 30376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30377 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30378 | ac_cv_type_int64_t=yes |
| 30379 | else |
| 30380 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30383 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30384 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30385 | |
| 30386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30387 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30388 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 30389 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30390 | if test $ac_cv_type_int64_t = yes; then |
| 30391 | |
| 30392 | cat >>confdefs.h <<_ACEOF |
| 30393 | #define HAVE_INT64_T 1 |
| 30394 | _ACEOF |
| 30395 | |
| 30396 | |
| 30397 | else |
| 30398 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 30399 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 30400 | { (exit 1); exit 1; }; } |
| 30401 | fi |
| 30402 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30403 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 30404 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30405 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 30406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30407 | else |
| 30408 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30409 | /* confdefs.h. */ |
| 30410 | _ACEOF |
| 30411 | cat confdefs.h >>conftest.$ac_ext |
| 30412 | cat >>conftest.$ac_ext <<_ACEOF |
| 30413 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30414 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30415 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30416 | int |
| 30417 | main () |
| 30418 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30419 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30420 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30421 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30422 | return 0; |
| 30423 | ; |
| 30424 | return 0; |
| 30425 | } |
| 30426 | _ACEOF |
| 30427 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30428 | if { (ac_try="$ac_compile" |
| 30429 | case "(($ac_try" in |
| 30430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30431 | *) ac_try_echo=$ac_try;; |
| 30432 | esac |
| 30433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30434 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30435 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30437 | rm -f conftest.er1 |
| 30438 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30440 | (exit $ac_status); } && |
| 30441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30442 | { (case "(($ac_try" in |
| 30443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30444 | *) ac_try_echo=$ac_try;; |
| 30445 | esac |
| 30446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30447 | (eval "$ac_try") 2>&5 |
| 30448 | ac_status=$? |
| 30449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30450 | (exit $ac_status); }; } && |
| 30451 | { ac_try='test -s conftest.$ac_objext' |
| 30452 | { (case "(($ac_try" in |
| 30453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30454 | *) ac_try_echo=$ac_try;; |
| 30455 | esac |
| 30456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30457 | (eval "$ac_try") 2>&5 |
| 30458 | ac_status=$? |
| 30459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30460 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30461 | ac_cv_type_uint64_t=yes |
| 30462 | else |
| 30463 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30466 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30467 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30468 | |
| 30469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30471 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 30472 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30473 | if test $ac_cv_type_uint64_t = yes; then |
| 30474 | |
| 30475 | cat >>confdefs.h <<_ACEOF |
| 30476 | #define HAVE_UINT64_T 1 |
| 30477 | _ACEOF |
| 30478 | |
| 30479 | |
| 30480 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30481 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 30482 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30483 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 30484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30485 | else |
| 30486 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30487 | /* confdefs.h. */ |
| 30488 | _ACEOF |
| 30489 | cat confdefs.h >>conftest.$ac_ext |
| 30490 | cat >>conftest.$ac_ext <<_ACEOF |
| 30491 | /* end confdefs.h. */ |
| 30492 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30493 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30494 | int |
| 30495 | main () |
| 30496 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30497 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30498 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30499 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30500 | return 0; |
| 30501 | ; |
| 30502 | return 0; |
| 30503 | } |
| 30504 | _ACEOF |
| 30505 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30506 | if { (ac_try="$ac_compile" |
| 30507 | case "(($ac_try" in |
| 30508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30509 | *) ac_try_echo=$ac_try;; |
| 30510 | esac |
| 30511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30512 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30513 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30515 | rm -f conftest.er1 |
| 30516 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30518 | (exit $ac_status); } && |
| 30519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30520 | { (case "(($ac_try" in |
| 30521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30522 | *) ac_try_echo=$ac_try;; |
| 30523 | esac |
| 30524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30525 | (eval "$ac_try") 2>&5 |
| 30526 | ac_status=$? |
| 30527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30528 | (exit $ac_status); }; } && |
| 30529 | { ac_try='test -s conftest.$ac_objext' |
| 30530 | { (case "(($ac_try" in |
| 30531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30532 | *) ac_try_echo=$ac_try;; |
| 30533 | esac |
| 30534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30535 | (eval "$ac_try") 2>&5 |
| 30536 | ac_status=$? |
| 30537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30538 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30539 | ac_cv_type_u_int64_t=yes |
| 30540 | else |
| 30541 | echo "$as_me: failed program was:" >&5 |
| 30542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30544 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30545 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30546 | |
| 30547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30548 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30549 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 30550 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30551 | if test $ac_cv_type_u_int64_t = yes; then |
| 30552 | |
| 30553 | cat >>confdefs.h <<_ACEOF |
| 30554 | #define HAVE_U_INT64_T 1 |
| 30555 | _ACEOF |
| 30556 | |
| 30557 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 30558 | else |
| 30559 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 30560 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 30561 | { (exit 1); exit 1; }; } |
| 30562 | fi |
| 30563 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30564 | fi |
| 30565 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30566 | |
| 30567 | |
| 30568 | |
| 30569 | |
| 30570 | |
| 30571 | |
| 30572 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 30573 | |
| 30574 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30575 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30576 | do |
| 30577 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30578 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30579 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30580 | 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] | 30581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30582 | else |
| 30583 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30584 | /* confdefs.h. */ |
| 30585 | _ACEOF |
| 30586 | cat confdefs.h >>conftest.$ac_ext |
| 30587 | cat >>conftest.$ac_ext <<_ACEOF |
| 30588 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30589 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30590 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30591 | #define $ac_func innocuous_$ac_func |
| 30592 | |
| 30593 | /* System header to define __stub macros and hopefully few prototypes, |
| 30594 | which can conflict with char $ac_func (); below. |
| 30595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30596 | <limits.h> exists even on freestanding compilers. */ |
| 30597 | |
| 30598 | #ifdef __STDC__ |
| 30599 | # include <limits.h> |
| 30600 | #else |
| 30601 | # include <assert.h> |
| 30602 | #endif |
| 30603 | |
| 30604 | #undef $ac_func |
| 30605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30606 | /* Override any GCC internal prototype to avoid an error. |
| 30607 | Use char because int might match the return type of a GCC |
| 30608 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30609 | #ifdef __cplusplus |
| 30610 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30611 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30612 | char $ac_func (); |
| 30613 | /* The GNU C library defines this for functions which it implements |
| 30614 | to always fail with ENOSYS. Some functions are actually named |
| 30615 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30616 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30617 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30618 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30619 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30620 | int |
| 30621 | main () |
| 30622 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30623 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30624 | ; |
| 30625 | return 0; |
| 30626 | } |
| 30627 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30628 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30629 | if { (ac_try="$ac_link" |
| 30630 | case "(($ac_try" in |
| 30631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30632 | *) ac_try_echo=$ac_try;; |
| 30633 | esac |
| 30634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30635 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30636 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30638 | rm -f conftest.er1 |
| 30639 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30641 | (exit $ac_status); } && |
| 30642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30643 | { (case "(($ac_try" in |
| 30644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30645 | *) ac_try_echo=$ac_try;; |
| 30646 | esac |
| 30647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30648 | (eval "$ac_try") 2>&5 |
| 30649 | ac_status=$? |
| 30650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30651 | (exit $ac_status); }; } && |
| 30652 | { ac_try='test -s conftest$ac_exeext' |
| 30653 | { (case "(($ac_try" in |
| 30654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30655 | *) ac_try_echo=$ac_try;; |
| 30656 | esac |
| 30657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30658 | (eval "$ac_try") 2>&5 |
| 30659 | ac_status=$? |
| 30660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30661 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30662 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30663 | else |
| 30664 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30667 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30668 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30669 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30670 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30671 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30672 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30673 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30674 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30675 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30676 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30677 | cat >>confdefs.h <<_ACEOF |
| 30678 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30679 | _ACEOF |
| 30680 | |
| 30681 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30682 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30683 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30684 | |
| 30685 | |
| 30686 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30687 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30688 | for ac_func in powf fmodf strtof round |
| 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 |
| 30705 | |
| 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 | f9eb2d8 | 2009-01-22 05:17:59 +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 | 96cf587 | 2007-07-13 10:05:30 +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 | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30783 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +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 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30801 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30802 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 30803 | do |
| 30804 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30805 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30806 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30807 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30809 | else |
| 30810 | cat >conftest.$ac_ext <<_ACEOF |
| 30811 | /* confdefs.h. */ |
| 30812 | _ACEOF |
| 30813 | cat confdefs.h >>conftest.$ac_ext |
| 30814 | cat >>conftest.$ac_ext <<_ACEOF |
| 30815 | /* end confdefs.h. */ |
| 30816 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30817 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30818 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30819 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30820 | /* System header to define __stub macros and hopefully few prototypes, |
| 30821 | which can conflict with char $ac_func (); below. |
| 30822 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30823 | <limits.h> exists even on freestanding compilers. */ |
| 30824 | |
| 30825 | #ifdef __STDC__ |
| 30826 | # include <limits.h> |
| 30827 | #else |
| 30828 | # include <assert.h> |
| 30829 | #endif |
| 30830 | |
| 30831 | #undef $ac_func |
| 30832 | |
| 30833 | /* Override any GCC internal prototype to avoid an error. |
| 30834 | Use char because int might match the return type of a GCC |
| 30835 | builtin and then its argument prototype would still apply. */ |
| 30836 | #ifdef __cplusplus |
| 30837 | extern "C" |
| 30838 | #endif |
| 30839 | char $ac_func (); |
| 30840 | /* The GNU C library defines this for functions which it implements |
| 30841 | to always fail with ENOSYS. Some functions are actually named |
| 30842 | something starting with __ and the normal name is an alias. */ |
| 30843 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30844 | choke me |
| 30845 | #endif |
| 30846 | |
| 30847 | int |
| 30848 | main () |
| 30849 | { |
| 30850 | return $ac_func (); |
| 30851 | ; |
| 30852 | return 0; |
| 30853 | } |
| 30854 | _ACEOF |
| 30855 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30856 | if { (ac_try="$ac_link" |
| 30857 | case "(($ac_try" in |
| 30858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30859 | *) ac_try_echo=$ac_try;; |
| 30860 | esac |
| 30861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30862 | (eval "$ac_link") 2>conftest.er1 |
| 30863 | ac_status=$? |
| 30864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30865 | rm -f conftest.er1 |
| 30866 | cat conftest.err >&5 |
| 30867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30868 | (exit $ac_status); } && |
| 30869 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30870 | { (case "(($ac_try" in |
| 30871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30872 | *) ac_try_echo=$ac_try;; |
| 30873 | esac |
| 30874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30875 | (eval "$ac_try") 2>&5 |
| 30876 | ac_status=$? |
| 30877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30878 | (exit $ac_status); }; } && |
| 30879 | { ac_try='test -s conftest$ac_exeext' |
| 30880 | { (case "(($ac_try" in |
| 30881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30882 | *) ac_try_echo=$ac_try;; |
| 30883 | esac |
| 30884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30885 | (eval "$ac_try") 2>&5 |
| 30886 | ac_status=$? |
| 30887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30888 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30889 | eval "$as_ac_var=yes" |
| 30890 | else |
| 30891 | echo "$as_me: failed program was:" >&5 |
| 30892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30893 | |
| 30894 | eval "$as_ac_var=no" |
| 30895 | fi |
| 30896 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30897 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30898 | conftest$ac_exeext conftest.$ac_ext |
| 30899 | fi |
| 30900 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30901 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30902 | echo "${ECHO_T}$ac_res" >&6; } |
| 30903 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30904 | cat >>confdefs.h <<_ACEOF |
| 30905 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30906 | _ACEOF |
| 30907 | |
| 30908 | fi |
| 30909 | done |
| 30910 | |
| 30911 | |
| 30912 | |
| 30913 | |
| 30914 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30915 | do |
| 30916 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30917 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30918 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30919 | 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] | 30920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30921 | else |
| 30922 | cat >conftest.$ac_ext <<_ACEOF |
| 30923 | /* confdefs.h. */ |
| 30924 | _ACEOF |
| 30925 | cat confdefs.h >>conftest.$ac_ext |
| 30926 | cat >>conftest.$ac_ext <<_ACEOF |
| 30927 | /* end confdefs.h. */ |
| 30928 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30929 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30930 | #define $ac_func innocuous_$ac_func |
| 30931 | |
| 30932 | /* System header to define __stub macros and hopefully few prototypes, |
| 30933 | which can conflict with char $ac_func (); below. |
| 30934 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30935 | <limits.h> exists even on freestanding compilers. */ |
| 30936 | |
| 30937 | #ifdef __STDC__ |
| 30938 | # include <limits.h> |
| 30939 | #else |
| 30940 | # include <assert.h> |
| 30941 | #endif |
| 30942 | |
| 30943 | #undef $ac_func |
| 30944 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30945 | /* Override any GCC internal prototype to avoid an error. |
| 30946 | Use char because int might match the return type of a GCC |
| 30947 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30948 | #ifdef __cplusplus |
| 30949 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30950 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30951 | char $ac_func (); |
| 30952 | /* The GNU C library defines this for functions which it implements |
| 30953 | to always fail with ENOSYS. Some functions are actually named |
| 30954 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30955 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30956 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30957 | #endif |
| 30958 | |
| 30959 | int |
| 30960 | main () |
| 30961 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30962 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30963 | ; |
| 30964 | return 0; |
| 30965 | } |
| 30966 | _ACEOF |
| 30967 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30968 | if { (ac_try="$ac_link" |
| 30969 | case "(($ac_try" in |
| 30970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30971 | *) ac_try_echo=$ac_try;; |
| 30972 | esac |
| 30973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30974 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30975 | ac_status=$? |
| 30976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30977 | rm -f conftest.er1 |
| 30978 | cat conftest.err >&5 |
| 30979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 30980 | (exit $ac_status); } && |
| 30981 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30982 | { (case "(($ac_try" in |
| 30983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30984 | *) ac_try_echo=$ac_try;; |
| 30985 | esac |
| 30986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30987 | (eval "$ac_try") 2>&5 |
| 30988 | ac_status=$? |
| 30989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30990 | (exit $ac_status); }; } && |
| 30991 | { ac_try='test -s conftest$ac_exeext' |
| 30992 | { (case "(($ac_try" in |
| 30993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30994 | *) ac_try_echo=$ac_try;; |
| 30995 | esac |
| 30996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30997 | (eval "$ac_try") 2>&5 |
| 30998 | ac_status=$? |
| 30999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31000 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31001 | eval "$as_ac_var=yes" |
| 31002 | else |
| 31003 | echo "$as_me: failed program was:" >&5 |
| 31004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31006 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31007 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31008 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31009 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31010 | conftest$ac_exeext conftest.$ac_ext |
| 31011 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31012 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31013 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31014 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31015 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31016 | cat >>confdefs.h <<_ACEOF |
| 31017 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31018 | _ACEOF |
| 31019 | |
| 31020 | fi |
| 31021 | done |
| 31022 | |
| 31023 | |
| 31024 | |
| 31025 | |
| 31026 | |
| 31027 | |
| 31028 | |
| 31029 | |
| 31030 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31031 | do |
| 31032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31033 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31035 | 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] | 31036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31037 | else |
| 31038 | cat >conftest.$ac_ext <<_ACEOF |
| 31039 | /* confdefs.h. */ |
| 31040 | _ACEOF |
| 31041 | cat confdefs.h >>conftest.$ac_ext |
| 31042 | cat >>conftest.$ac_ext <<_ACEOF |
| 31043 | /* end confdefs.h. */ |
| 31044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31046 | #define $ac_func innocuous_$ac_func |
| 31047 | |
| 31048 | /* System header to define __stub macros and hopefully few prototypes, |
| 31049 | which can conflict with char $ac_func (); below. |
| 31050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31051 | <limits.h> exists even on freestanding compilers. */ |
| 31052 | |
| 31053 | #ifdef __STDC__ |
| 31054 | # include <limits.h> |
| 31055 | #else |
| 31056 | # include <assert.h> |
| 31057 | #endif |
| 31058 | |
| 31059 | #undef $ac_func |
| 31060 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31061 | /* Override any GCC internal prototype to avoid an error. |
| 31062 | Use char because int might match the return type of a GCC |
| 31063 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31064 | #ifdef __cplusplus |
| 31065 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31066 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31067 | char $ac_func (); |
| 31068 | /* The GNU C library defines this for functions which it implements |
| 31069 | to always fail with ENOSYS. Some functions are actually named |
| 31070 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31071 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31072 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31073 | #endif |
| 31074 | |
| 31075 | int |
| 31076 | main () |
| 31077 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31078 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31079 | ; |
| 31080 | return 0; |
| 31081 | } |
| 31082 | _ACEOF |
| 31083 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31084 | if { (ac_try="$ac_link" |
| 31085 | case "(($ac_try" in |
| 31086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31087 | *) ac_try_echo=$ac_try;; |
| 31088 | esac |
| 31089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31090 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31091 | ac_status=$? |
| 31092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31093 | rm -f conftest.er1 |
| 31094 | cat conftest.err >&5 |
| 31095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31096 | (exit $ac_status); } && |
| 31097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31098 | { (case "(($ac_try" in |
| 31099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31100 | *) ac_try_echo=$ac_try;; |
| 31101 | esac |
| 31102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31103 | (eval "$ac_try") 2>&5 |
| 31104 | ac_status=$? |
| 31105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31106 | (exit $ac_status); }; } && |
| 31107 | { ac_try='test -s conftest$ac_exeext' |
| 31108 | { (case "(($ac_try" in |
| 31109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31110 | *) ac_try_echo=$ac_try;; |
| 31111 | esac |
| 31112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31113 | (eval "$ac_try") 2>&5 |
| 31114 | ac_status=$? |
| 31115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31116 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31117 | eval "$as_ac_var=yes" |
| 31118 | else |
| 31119 | echo "$as_me: failed program was:" >&5 |
| 31120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31122 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31123 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31124 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31125 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31126 | conftest$ac_exeext conftest.$ac_ext |
| 31127 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31128 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31129 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31130 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31131 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31132 | cat >>confdefs.h <<_ACEOF |
| 31133 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31134 | _ACEOF |
| 31135 | |
| 31136 | fi |
| 31137 | done |
| 31138 | |
| 31139 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 31140 | |
| 31141 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 31142 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 31143 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31144 | do |
| 31145 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31146 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31147 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31148 | 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] | 31149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31150 | else |
| 31151 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31152 | /* confdefs.h. */ |
| 31153 | _ACEOF |
| 31154 | cat confdefs.h >>conftest.$ac_ext |
| 31155 | cat >>conftest.$ac_ext <<_ACEOF |
| 31156 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31157 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31158 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31159 | #define $ac_func innocuous_$ac_func |
| 31160 | |
| 31161 | /* System header to define __stub macros and hopefully few prototypes, |
| 31162 | which can conflict with char $ac_func (); below. |
| 31163 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31164 | <limits.h> exists even on freestanding compilers. */ |
| 31165 | |
| 31166 | #ifdef __STDC__ |
| 31167 | # include <limits.h> |
| 31168 | #else |
| 31169 | # include <assert.h> |
| 31170 | #endif |
| 31171 | |
| 31172 | #undef $ac_func |
| 31173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31174 | /* Override any GCC internal prototype to avoid an error. |
| 31175 | Use char because int might match the return type of a GCC |
| 31176 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31177 | #ifdef __cplusplus |
| 31178 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31179 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31180 | char $ac_func (); |
| 31181 | /* The GNU C library defines this for functions which it implements |
| 31182 | to always fail with ENOSYS. Some functions are actually named |
| 31183 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31184 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31185 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31186 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31187 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31188 | int |
| 31189 | main () |
| 31190 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31191 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31192 | ; |
| 31193 | return 0; |
| 31194 | } |
| 31195 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31196 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31197 | if { (ac_try="$ac_link" |
| 31198 | case "(($ac_try" in |
| 31199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31200 | *) ac_try_echo=$ac_try;; |
| 31201 | esac |
| 31202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31203 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31204 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31206 | rm -f conftest.er1 |
| 31207 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31209 | (exit $ac_status); } && |
| 31210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31211 | { (case "(($ac_try" in |
| 31212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31213 | *) ac_try_echo=$ac_try;; |
| 31214 | esac |
| 31215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31216 | (eval "$ac_try") 2>&5 |
| 31217 | ac_status=$? |
| 31218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31219 | (exit $ac_status); }; } && |
| 31220 | { ac_try='test -s conftest$ac_exeext' |
| 31221 | { (case "(($ac_try" in |
| 31222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31223 | *) ac_try_echo=$ac_try;; |
| 31224 | esac |
| 31225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31226 | (eval "$ac_try") 2>&5 |
| 31227 | ac_status=$? |
| 31228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31229 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31230 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31231 | else |
| 31232 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31235 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31236 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31237 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31238 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31239 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31240 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31241 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31242 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31243 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31244 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31245 | cat >>confdefs.h <<_ACEOF |
| 31246 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31247 | _ACEOF |
| 31248 | |
| 31249 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31250 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31251 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31252 | |
| 31253 | |
| 31254 | |
| 31255 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 31256 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31257 | do |
| 31258 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31259 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31260 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31261 | 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] | 31262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31263 | else |
| 31264 | cat >conftest.$ac_ext <<_ACEOF |
| 31265 | /* confdefs.h. */ |
| 31266 | _ACEOF |
| 31267 | cat confdefs.h >>conftest.$ac_ext |
| 31268 | cat >>conftest.$ac_ext <<_ACEOF |
| 31269 | /* end confdefs.h. */ |
| 31270 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31272 | #define $ac_func innocuous_$ac_func |
| 31273 | |
| 31274 | /* System header to define __stub macros and hopefully few prototypes, |
| 31275 | which can conflict with char $ac_func (); below. |
| 31276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31277 | <limits.h> exists even on freestanding compilers. */ |
| 31278 | |
| 31279 | #ifdef __STDC__ |
| 31280 | # include <limits.h> |
| 31281 | #else |
| 31282 | # include <assert.h> |
| 31283 | #endif |
| 31284 | |
| 31285 | #undef $ac_func |
| 31286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31287 | /* Override any GCC internal prototype to avoid an error. |
| 31288 | Use char because int might match the return type of a GCC |
| 31289 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31290 | #ifdef __cplusplus |
| 31291 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31292 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31293 | char $ac_func (); |
| 31294 | /* The GNU C library defines this for functions which it implements |
| 31295 | to always fail with ENOSYS. Some functions are actually named |
| 31296 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31297 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31298 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31299 | #endif |
| 31300 | |
| 31301 | int |
| 31302 | main () |
| 31303 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31304 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31305 | ; |
| 31306 | return 0; |
| 31307 | } |
| 31308 | _ACEOF |
| 31309 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31310 | if { (ac_try="$ac_link" |
| 31311 | case "(($ac_try" in |
| 31312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31313 | *) ac_try_echo=$ac_try;; |
| 31314 | esac |
| 31315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31316 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31317 | ac_status=$? |
| 31318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31319 | rm -f conftest.er1 |
| 31320 | cat conftest.err >&5 |
| 31321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31322 | (exit $ac_status); } && |
| 31323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31324 | { (case "(($ac_try" in |
| 31325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31326 | *) ac_try_echo=$ac_try;; |
| 31327 | esac |
| 31328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31329 | (eval "$ac_try") 2>&5 |
| 31330 | ac_status=$? |
| 31331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31332 | (exit $ac_status); }; } && |
| 31333 | { ac_try='test -s conftest$ac_exeext' |
| 31334 | { (case "(($ac_try" in |
| 31335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31336 | *) ac_try_echo=$ac_try;; |
| 31337 | esac |
| 31338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31339 | (eval "$ac_try") 2>&5 |
| 31340 | ac_status=$? |
| 31341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31342 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31343 | eval "$as_ac_var=yes" |
| 31344 | else |
| 31345 | echo "$as_me: failed program was:" >&5 |
| 31346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31347 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31348 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31349 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31350 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31351 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31352 | conftest$ac_exeext conftest.$ac_ext |
| 31353 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31354 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31356 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31357 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31358 | cat >>confdefs.h <<_ACEOF |
| 31359 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31360 | _ACEOF |
| 31361 | |
| 31362 | fi |
| 31363 | done |
| 31364 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31365 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 31366 | 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] | 31367 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31369 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31370 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31371 | ac_cpp='$CPP $CPPFLAGS' |
| 31372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31375 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31376 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31377 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31378 | else |
| 31379 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31380 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31381 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31382 | _ACEOF |
| 31383 | cat confdefs.h >>conftest.$ac_ext |
| 31384 | cat >>conftest.$ac_ext <<_ACEOF |
| 31385 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31386 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31387 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31388 | #include <stdlib.h> |
| 31389 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31390 | int |
| 31391 | main () |
| 31392 | { |
| 31393 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31394 | volatile double A, B; |
| 31395 | char Buffer[100]; |
| 31396 | A = 1; |
| 31397 | A /= 10.0; |
| 31398 | sprintf(Buffer, "%a", A); |
| 31399 | B = atof(Buffer); |
| 31400 | if (A != B) |
| 31401 | return (1); |
| 31402 | if (A != 0x1.999999999999ap-4) |
| 31403 | return (1); |
| 31404 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31405 | ; |
| 31406 | return 0; |
| 31407 | } |
| 31408 | _ACEOF |
| 31409 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31410 | if { (ac_try="$ac_link" |
| 31411 | case "(($ac_try" in |
| 31412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31413 | *) ac_try_echo=$ac_try;; |
| 31414 | esac |
| 31415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31416 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31417 | ac_status=$? |
| 31418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31419 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31420 | { (case "(($ac_try" in |
| 31421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31422 | *) ac_try_echo=$ac_try;; |
| 31423 | esac |
| 31424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31425 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31426 | ac_status=$? |
| 31427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31428 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31429 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31430 | else |
| 31431 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31432 | echo "$as_me: failed program was:" >&5 |
| 31433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31434 | |
| 31435 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31436 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31437 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31438 | 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] | 31439 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31440 | |
| 31441 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31442 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31443 | ac_cpp='$CPP $CPPFLAGS' |
| 31444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31447 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31448 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31449 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 31450 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31451 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31452 | |
| 31453 | cat >>confdefs.h <<\_ACEOF |
| 31454 | #define HAVE_PRINTF_A 1 |
| 31455 | _ACEOF |
| 31456 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31457 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31458 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31459 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 31460 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31461 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 31462 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31463 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31465 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31466 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31467 | /* confdefs.h. */ |
| 31468 | _ACEOF |
| 31469 | cat confdefs.h >>conftest.$ac_ext |
| 31470 | cat >>conftest.$ac_ext <<_ACEOF |
| 31471 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31472 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31473 | int |
| 31474 | main () |
| 31475 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31476 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31477 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31478 | ; |
| 31479 | return 0; |
| 31480 | } |
| 31481 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31482 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31483 | if { (ac_try="$ac_link" |
| 31484 | case "(($ac_try" in |
| 31485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31486 | *) ac_try_echo=$ac_try;; |
| 31487 | esac |
| 31488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31489 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31490 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31492 | rm -f conftest.er1 |
| 31493 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31495 | (exit $ac_status); } && |
| 31496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31497 | { (case "(($ac_try" in |
| 31498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31499 | *) ac_try_echo=$ac_try;; |
| 31500 | esac |
| 31501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31502 | (eval "$ac_try") 2>&5 |
| 31503 | ac_status=$? |
| 31504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31505 | (exit $ac_status); }; } && |
| 31506 | { ac_try='test -s conftest$ac_exeext' |
| 31507 | { (case "(($ac_try" in |
| 31508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31509 | *) ac_try_echo=$ac_try;; |
| 31510 | esac |
| 31511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31512 | (eval "$ac_try") 2>&5 |
| 31513 | ac_status=$? |
| 31514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31515 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31516 | ac_cv_working_alloca_h=yes |
| 31517 | else |
| 31518 | echo "$as_me: failed program was:" >&5 |
| 31519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31520 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31521 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31522 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31523 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31524 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31525 | conftest$ac_exeext conftest.$ac_ext |
| 31526 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31527 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 31528 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31529 | if test $ac_cv_working_alloca_h = yes; then |
| 31530 | |
| 31531 | cat >>confdefs.h <<\_ACEOF |
| 31532 | #define HAVE_ALLOCA_H 1 |
| 31533 | _ACEOF |
| 31534 | |
| 31535 | fi |
| 31536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31537 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 31538 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31539 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 31540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31541 | else |
| 31542 | cat >conftest.$ac_ext <<_ACEOF |
| 31543 | /* confdefs.h. */ |
| 31544 | _ACEOF |
| 31545 | cat confdefs.h >>conftest.$ac_ext |
| 31546 | cat >>conftest.$ac_ext <<_ACEOF |
| 31547 | /* end confdefs.h. */ |
| 31548 | #ifdef __GNUC__ |
| 31549 | # define alloca __builtin_alloca |
| 31550 | #else |
| 31551 | # ifdef _MSC_VER |
| 31552 | # include <malloc.h> |
| 31553 | # define alloca _alloca |
| 31554 | # else |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31555 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31556 | # include <alloca.h> |
| 31557 | # else |
| 31558 | # ifdef _AIX |
| 31559 | #pragma alloca |
| 31560 | # else |
| 31561 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 31562 | char *alloca (); |
| 31563 | # endif |
| 31564 | # endif |
| 31565 | # endif |
| 31566 | # endif |
| 31567 | #endif |
| 31568 | |
| 31569 | int |
| 31570 | main () |
| 31571 | { |
| 31572 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31573 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31574 | ; |
| 31575 | return 0; |
| 31576 | } |
| 31577 | _ACEOF |
| 31578 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31579 | if { (ac_try="$ac_link" |
| 31580 | case "(($ac_try" in |
| 31581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31582 | *) ac_try_echo=$ac_try;; |
| 31583 | esac |
| 31584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31585 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31586 | ac_status=$? |
| 31587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31588 | rm -f conftest.er1 |
| 31589 | cat conftest.err >&5 |
| 31590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31591 | (exit $ac_status); } && |
| 31592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31593 | { (case "(($ac_try" in |
| 31594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31595 | *) ac_try_echo=$ac_try;; |
| 31596 | esac |
| 31597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31598 | (eval "$ac_try") 2>&5 |
| 31599 | ac_status=$? |
| 31600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31601 | (exit $ac_status); }; } && |
| 31602 | { ac_try='test -s conftest$ac_exeext' |
| 31603 | { (case "(($ac_try" in |
| 31604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31605 | *) ac_try_echo=$ac_try;; |
| 31606 | esac |
| 31607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31608 | (eval "$ac_try") 2>&5 |
| 31609 | ac_status=$? |
| 31610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31611 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31612 | ac_cv_func_alloca_works=yes |
| 31613 | else |
| 31614 | echo "$as_me: failed program was:" >&5 |
| 31615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31616 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31617 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31618 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31619 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31620 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31621 | conftest$ac_exeext conftest.$ac_ext |
| 31622 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31623 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 31624 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31625 | |
| 31626 | if test $ac_cv_func_alloca_works = yes; then |
| 31627 | |
| 31628 | cat >>confdefs.h <<\_ACEOF |
| 31629 | #define HAVE_ALLOCA 1 |
| 31630 | _ACEOF |
| 31631 | |
| 31632 | else |
| 31633 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 31634 | # that cause trouble. Some versions do not even contain alloca or |
| 31635 | # contain a buggy version. If you still want to use their alloca, |
| 31636 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 31637 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31638 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31639 | |
| 31640 | cat >>confdefs.h <<\_ACEOF |
| 31641 | #define C_ALLOCA 1 |
| 31642 | _ACEOF |
| 31643 | |
| 31644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31645 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 31646 | 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] | 31647 | if test "${ac_cv_os_cray+set}" = set; then |
| 31648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31649 | else |
| 31650 | cat >conftest.$ac_ext <<_ACEOF |
| 31651 | /* confdefs.h. */ |
| 31652 | _ACEOF |
| 31653 | cat confdefs.h >>conftest.$ac_ext |
| 31654 | cat >>conftest.$ac_ext <<_ACEOF |
| 31655 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31656 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31657 | webecray |
| 31658 | #else |
| 31659 | wenotbecray |
| 31660 | #endif |
| 31661 | |
| 31662 | _ACEOF |
| 31663 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31664 | $EGREP "webecray" >/dev/null 2>&1; then |
| 31665 | ac_cv_os_cray=yes |
| 31666 | else |
| 31667 | ac_cv_os_cray=no |
| 31668 | fi |
| 31669 | rm -f conftest* |
| 31670 | |
| 31671 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31672 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 31673 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31674 | if test $ac_cv_os_cray = yes; then |
| 31675 | for ac_func in _getb67 GETB67 getb67; do |
| 31676 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31677 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31678 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31679 | 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] | 31680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31681 | else |
| 31682 | cat >conftest.$ac_ext <<_ACEOF |
| 31683 | /* confdefs.h. */ |
| 31684 | _ACEOF |
| 31685 | cat confdefs.h >>conftest.$ac_ext |
| 31686 | cat >>conftest.$ac_ext <<_ACEOF |
| 31687 | /* end confdefs.h. */ |
| 31688 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31689 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31690 | #define $ac_func innocuous_$ac_func |
| 31691 | |
| 31692 | /* System header to define __stub macros and hopefully few prototypes, |
| 31693 | which can conflict with char $ac_func (); below. |
| 31694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31695 | <limits.h> exists even on freestanding compilers. */ |
| 31696 | |
| 31697 | #ifdef __STDC__ |
| 31698 | # include <limits.h> |
| 31699 | #else |
| 31700 | # include <assert.h> |
| 31701 | #endif |
| 31702 | |
| 31703 | #undef $ac_func |
| 31704 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31705 | /* Override any GCC internal prototype to avoid an error. |
| 31706 | Use char because int might match the return type of a GCC |
| 31707 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31708 | #ifdef __cplusplus |
| 31709 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31710 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31711 | char $ac_func (); |
| 31712 | /* The GNU C library defines this for functions which it implements |
| 31713 | to always fail with ENOSYS. Some functions are actually named |
| 31714 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31715 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31716 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31717 | #endif |
| 31718 | |
| 31719 | int |
| 31720 | main () |
| 31721 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31722 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31723 | ; |
| 31724 | return 0; |
| 31725 | } |
| 31726 | _ACEOF |
| 31727 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31728 | if { (ac_try="$ac_link" |
| 31729 | case "(($ac_try" in |
| 31730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31731 | *) ac_try_echo=$ac_try;; |
| 31732 | esac |
| 31733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31734 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31735 | ac_status=$? |
| 31736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31737 | rm -f conftest.er1 |
| 31738 | cat conftest.err >&5 |
| 31739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31740 | (exit $ac_status); } && |
| 31741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31742 | { (case "(($ac_try" in |
| 31743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31744 | *) ac_try_echo=$ac_try;; |
| 31745 | esac |
| 31746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31747 | (eval "$ac_try") 2>&5 |
| 31748 | ac_status=$? |
| 31749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31750 | (exit $ac_status); }; } && |
| 31751 | { ac_try='test -s conftest$ac_exeext' |
| 31752 | { (case "(($ac_try" in |
| 31753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31754 | *) ac_try_echo=$ac_try;; |
| 31755 | esac |
| 31756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31757 | (eval "$ac_try") 2>&5 |
| 31758 | ac_status=$? |
| 31759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31760 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31761 | eval "$as_ac_var=yes" |
| 31762 | else |
| 31763 | echo "$as_me: failed program was:" >&5 |
| 31764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31765 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31766 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31767 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31768 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31769 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31770 | conftest$ac_exeext conftest.$ac_ext |
| 31771 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31772 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31773 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31774 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31775 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31776 | |
| 31777 | cat >>confdefs.h <<_ACEOF |
| 31778 | #define CRAY_STACKSEG_END $ac_func |
| 31779 | _ACEOF |
| 31780 | |
| 31781 | break |
| 31782 | fi |
| 31783 | |
| 31784 | done |
| 31785 | fi |
| 31786 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31787 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 31788 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31789 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 31790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31791 | else |
| 31792 | if test "$cross_compiling" = yes; then |
| 31793 | ac_cv_c_stack_direction=0 |
| 31794 | else |
| 31795 | cat >conftest.$ac_ext <<_ACEOF |
| 31796 | /* confdefs.h. */ |
| 31797 | _ACEOF |
| 31798 | cat confdefs.h >>conftest.$ac_ext |
| 31799 | cat >>conftest.$ac_ext <<_ACEOF |
| 31800 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31801 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31802 | int |
| 31803 | find_stack_direction () |
| 31804 | { |
| 31805 | static char *addr = 0; |
| 31806 | auto char dummy; |
| 31807 | if (addr == 0) |
| 31808 | { |
| 31809 | addr = &dummy; |
| 31810 | return find_stack_direction (); |
| 31811 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31812 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31813 | return (&dummy > addr) ? 1 : -1; |
| 31814 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31815 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31816 | int |
| 31817 | main () |
| 31818 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31819 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31820 | } |
| 31821 | _ACEOF |
| 31822 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31823 | if { (ac_try="$ac_link" |
| 31824 | case "(($ac_try" in |
| 31825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31826 | *) ac_try_echo=$ac_try;; |
| 31827 | esac |
| 31828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31829 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31830 | ac_status=$? |
| 31831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31832 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31833 | { (case "(($ac_try" in |
| 31834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31835 | *) ac_try_echo=$ac_try;; |
| 31836 | esac |
| 31837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31838 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31839 | ac_status=$? |
| 31840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31841 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31842 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31843 | else |
| 31844 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31845 | echo "$as_me: failed program was:" >&5 |
| 31846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31847 | |
| 31848 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31849 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31850 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31851 | 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] | 31852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31853 | |
| 31854 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31855 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31856 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 31857 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31858 | |
| 31859 | cat >>confdefs.h <<_ACEOF |
| 31860 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 31861 | _ACEOF |
| 31862 | |
| 31863 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31864 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31865 | |
| 31866 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31867 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 31868 | 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] | 31869 | if test "${ac_cv_func_rand48+set}" = set; then |
| 31870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31871 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31872 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31873 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31874 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31875 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31876 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31877 | |
| 31878 | cat >conftest.$ac_ext <<_ACEOF |
| 31879 | /* confdefs.h. */ |
| 31880 | _ACEOF |
| 31881 | cat confdefs.h >>conftest.$ac_ext |
| 31882 | cat >>conftest.$ac_ext <<_ACEOF |
| 31883 | /* end confdefs.h. */ |
| 31884 | #include <stdlib.h> |
| 31885 | int |
| 31886 | main () |
| 31887 | { |
| 31888 | srand48(0);lrand48();drand48(); |
| 31889 | ; |
| 31890 | return 0; |
| 31891 | } |
| 31892 | _ACEOF |
| 31893 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31894 | if { (ac_try="$ac_compile" |
| 31895 | case "(($ac_try" in |
| 31896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31897 | *) ac_try_echo=$ac_try;; |
| 31898 | esac |
| 31899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31900 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31901 | ac_status=$? |
| 31902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31903 | rm -f conftest.er1 |
| 31904 | cat conftest.err >&5 |
| 31905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31906 | (exit $ac_status); } && |
| 31907 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31908 | { (case "(($ac_try" in |
| 31909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31910 | *) ac_try_echo=$ac_try;; |
| 31911 | esac |
| 31912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31913 | (eval "$ac_try") 2>&5 |
| 31914 | ac_status=$? |
| 31915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31916 | (exit $ac_status); }; } && |
| 31917 | { ac_try='test -s conftest.$ac_objext' |
| 31918 | { (case "(($ac_try" in |
| 31919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31920 | *) ac_try_echo=$ac_try;; |
| 31921 | esac |
| 31922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31923 | (eval "$ac_try") 2>&5 |
| 31924 | ac_status=$? |
| 31925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31926 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31927 | ac_cv_func_rand48=yes |
| 31928 | else |
| 31929 | echo "$as_me: failed program was:" >&5 |
| 31930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31931 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31932 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31933 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31934 | |
| 31935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31936 | ac_ext=c |
| 31937 | ac_cpp='$CPP $CPPFLAGS' |
| 31938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31941 | |
| 31942 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31943 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 31944 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31945 | |
| 31946 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 31947 | |
| 31948 | cat >>confdefs.h <<\_ACEOF |
| 31949 | #define HAVE_RAND48 1 |
| 31950 | _ACEOF |
| 31951 | |
| 31952 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31953 | |
| 31954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31955 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 31956 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31957 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 31958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31959 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31960 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31961 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31962 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31963 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31964 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31965 | |
| 31966 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31967 | /* confdefs.h. */ |
| 31968 | _ACEOF |
| 31969 | cat confdefs.h >>conftest.$ac_ext |
| 31970 | cat >>conftest.$ac_ext <<_ACEOF |
| 31971 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31972 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31973 | int |
| 31974 | main () |
| 31975 | { |
| 31976 | using namespace Outer::Inner; return i; |
| 31977 | ; |
| 31978 | return 0; |
| 31979 | } |
| 31980 | _ACEOF |
| 31981 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31982 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31989 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31991 | rm -f conftest.er1 |
| 31992 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 31994 | (exit $ac_status); } && |
| 31995 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31996 | { (case "(($ac_try" in |
| 31997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31998 | *) ac_try_echo=$ac_try;; |
| 31999 | esac |
| 32000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32001 | (eval "$ac_try") 2>&5 |
| 32002 | ac_status=$? |
| 32003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32004 | (exit $ac_status); }; } && |
| 32005 | { ac_try='test -s conftest.$ac_objext' |
| 32006 | { (case "(($ac_try" in |
| 32007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32008 | *) ac_try_echo=$ac_try;; |
| 32009 | esac |
| 32010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32011 | (eval "$ac_try") 2>&5 |
| 32012 | ac_status=$? |
| 32013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32014 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32015 | ac_cv_cxx_namespaces=yes |
| 32016 | else |
| 32017 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32019 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32020 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32021 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32022 | |
| 32023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32024 | ac_ext=c |
| 32025 | ac_cpp='$CPP $CPPFLAGS' |
| 32026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32029 | |
| 32030 | |
| 32031 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32032 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 32033 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32034 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 32035 | |
| 32036 | cat >>confdefs.h <<\_ACEOF |
| 32037 | #define HAVE_NAMESPACES |
| 32038 | _ACEOF |
| 32039 | |
| 32040 | fi |
| 32041 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32042 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 32043 | 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] | 32044 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 32045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32046 | else |
| 32047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32048 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32049 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32050 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32051 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32052 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32053 | |
| 32054 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32055 | /* confdefs.h. */ |
| 32056 | _ACEOF |
| 32057 | cat confdefs.h >>conftest.$ac_ext |
| 32058 | cat >>conftest.$ac_ext <<_ACEOF |
| 32059 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32060 | #include <iterator> |
| 32061 | #ifdef HAVE_NAMESPACES |
| 32062 | using namespace std; |
| 32063 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32064 | int |
| 32065 | main () |
| 32066 | { |
| 32067 | iterator<int,int,int> t; return 0; |
| 32068 | ; |
| 32069 | return 0; |
| 32070 | } |
| 32071 | _ACEOF |
| 32072 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32073 | if { (ac_try="$ac_compile" |
| 32074 | case "(($ac_try" in |
| 32075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32076 | *) ac_try_echo=$ac_try;; |
| 32077 | esac |
| 32078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32079 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32080 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32082 | rm -f conftest.er1 |
| 32083 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32085 | (exit $ac_status); } && |
| 32086 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32087 | { (case "(($ac_try" in |
| 32088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32089 | *) ac_try_echo=$ac_try;; |
| 32090 | esac |
| 32091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32092 | (eval "$ac_try") 2>&5 |
| 32093 | ac_status=$? |
| 32094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32095 | (exit $ac_status); }; } && |
| 32096 | { ac_try='test -s conftest.$ac_objext' |
| 32097 | { (case "(($ac_try" in |
| 32098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32099 | *) ac_try_echo=$ac_try;; |
| 32100 | esac |
| 32101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32102 | (eval "$ac_try") 2>&5 |
| 32103 | ac_status=$? |
| 32104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32105 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32106 | ac_cv_cxx_have_std_iterator=yes |
| 32107 | else |
| 32108 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32110 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32111 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32113 | |
| 32114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32115 | ac_ext=c |
| 32116 | ac_cpp='$CPP $CPPFLAGS' |
| 32117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32120 | |
| 32121 | |
| 32122 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32123 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 32124 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32125 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 32126 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32127 | |
| 32128 | cat >>confdefs.h <<\_ACEOF |
| 32129 | #define HAVE_STD_ITERATOR 1 |
| 32130 | _ACEOF |
| 32131 | |
| 32132 | else |
| 32133 | |
| 32134 | cat >>confdefs.h <<\_ACEOF |
| 32135 | #define HAVE_STD_ITERATOR 0 |
| 32136 | _ACEOF |
| 32137 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32138 | fi |
| 32139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32140 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 32141 | 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] | 32142 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 32143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32144 | else |
| 32145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32146 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32147 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32148 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32149 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32150 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32151 | |
| 32152 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32153 | /* confdefs.h. */ |
| 32154 | _ACEOF |
| 32155 | cat confdefs.h >>conftest.$ac_ext |
| 32156 | cat >>conftest.$ac_ext <<_ACEOF |
| 32157 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32158 | #include <iterator> |
| 32159 | #ifdef HAVE_NAMESPACES |
| 32160 | using namespace std; |
| 32161 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32162 | int |
| 32163 | main () |
| 32164 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32165 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32166 | ; |
| 32167 | return 0; |
| 32168 | } |
| 32169 | _ACEOF |
| 32170 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32171 | if { (ac_try="$ac_compile" |
| 32172 | case "(($ac_try" in |
| 32173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32174 | *) ac_try_echo=$ac_try;; |
| 32175 | esac |
| 32176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32177 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32178 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32180 | rm -f conftest.er1 |
| 32181 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32183 | (exit $ac_status); } && |
| 32184 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32185 | { (case "(($ac_try" in |
| 32186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32187 | *) ac_try_echo=$ac_try;; |
| 32188 | esac |
| 32189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32190 | (eval "$ac_try") 2>&5 |
| 32191 | ac_status=$? |
| 32192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32193 | (exit $ac_status); }; } && |
| 32194 | { ac_try='test -s conftest.$ac_objext' |
| 32195 | { (case "(($ac_try" in |
| 32196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32197 | *) ac_try_echo=$ac_try;; |
| 32198 | esac |
| 32199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32200 | (eval "$ac_try") 2>&5 |
| 32201 | ac_status=$? |
| 32202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32203 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32204 | ac_cv_cxx_have_bi_iterator=yes |
| 32205 | else |
| 32206 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32208 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32209 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32210 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32211 | |
| 32212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32213 | ac_ext=c |
| 32214 | ac_cpp='$CPP $CPPFLAGS' |
| 32215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32218 | |
| 32219 | |
| 32220 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32221 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 32222 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32223 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 32224 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32225 | |
| 32226 | cat >>confdefs.h <<\_ACEOF |
| 32227 | #define HAVE_BI_ITERATOR 1 |
| 32228 | _ACEOF |
| 32229 | |
| 32230 | else |
| 32231 | |
| 32232 | cat >>confdefs.h <<\_ACEOF |
| 32233 | #define HAVE_BI_ITERATOR 0 |
| 32234 | _ACEOF |
| 32235 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32236 | fi |
| 32237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32238 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 32239 | 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] | 32240 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 32241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32242 | else |
| 32243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32244 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32245 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32246 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32247 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32248 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32249 | |
| 32250 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32251 | /* confdefs.h. */ |
| 32252 | _ACEOF |
| 32253 | cat confdefs.h >>conftest.$ac_ext |
| 32254 | cat >>conftest.$ac_ext <<_ACEOF |
| 32255 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32256 | #include <iterator> |
| 32257 | #ifdef HAVE_NAMESPACES |
| 32258 | using namespace std; |
| 32259 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32260 | int |
| 32261 | main () |
| 32262 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32263 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32264 | ; |
| 32265 | return 0; |
| 32266 | } |
| 32267 | _ACEOF |
| 32268 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32269 | if { (ac_try="$ac_compile" |
| 32270 | case "(($ac_try" in |
| 32271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32272 | *) ac_try_echo=$ac_try;; |
| 32273 | esac |
| 32274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32275 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32276 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32278 | rm -f conftest.er1 |
| 32279 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32281 | (exit $ac_status); } && |
| 32282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32283 | { (case "(($ac_try" in |
| 32284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32285 | *) ac_try_echo=$ac_try;; |
| 32286 | esac |
| 32287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32288 | (eval "$ac_try") 2>&5 |
| 32289 | ac_status=$? |
| 32290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32291 | (exit $ac_status); }; } && |
| 32292 | { ac_try='test -s conftest.$ac_objext' |
| 32293 | { (case "(($ac_try" in |
| 32294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32295 | *) ac_try_echo=$ac_try;; |
| 32296 | esac |
| 32297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32298 | (eval "$ac_try") 2>&5 |
| 32299 | ac_status=$? |
| 32300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32301 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32302 | ac_cv_cxx_have_fwd_iterator=yes |
| 32303 | else |
| 32304 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32306 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32307 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32308 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32309 | |
| 32310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32311 | ac_ext=c |
| 32312 | ac_cpp='$CPP $CPPFLAGS' |
| 32313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32316 | |
| 32317 | |
| 32318 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32319 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 32320 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32321 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 32322 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32323 | |
| 32324 | cat >>confdefs.h <<\_ACEOF |
| 32325 | #define HAVE_FWD_ITERATOR 1 |
| 32326 | _ACEOF |
| 32327 | |
| 32328 | else |
| 32329 | |
| 32330 | cat >>confdefs.h <<\_ACEOF |
| 32331 | #define HAVE_FWD_ITERATOR 0 |
| 32332 | _ACEOF |
| 32333 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32334 | fi |
| 32335 | |
| 32336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32337 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 32338 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32339 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 32340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32341 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32342 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32343 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32344 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32345 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32346 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32347 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32348 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32349 | /* confdefs.h. */ |
| 32350 | _ACEOF |
| 32351 | cat confdefs.h >>conftest.$ac_ext |
| 32352 | cat >>conftest.$ac_ext <<_ACEOF |
| 32353 | /* end confdefs.h. */ |
| 32354 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32355 | int |
| 32356 | main () |
| 32357 | { |
| 32358 | float f; isnan(f); |
| 32359 | ; |
| 32360 | return 0; |
| 32361 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32362 | _ACEOF |
| 32363 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32364 | if { (ac_try="$ac_compile" |
| 32365 | case "(($ac_try" in |
| 32366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32367 | *) ac_try_echo=$ac_try;; |
| 32368 | esac |
| 32369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32370 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32371 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32373 | rm -f conftest.er1 |
| 32374 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32376 | (exit $ac_status); } && |
| 32377 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32378 | { (case "(($ac_try" in |
| 32379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32380 | *) ac_try_echo=$ac_try;; |
| 32381 | esac |
| 32382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32383 | (eval "$ac_try") 2>&5 |
| 32384 | ac_status=$? |
| 32385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32386 | (exit $ac_status); }; } && |
| 32387 | { ac_try='test -s conftest.$ac_objext' |
| 32388 | { (case "(($ac_try" in |
| 32389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32390 | *) ac_try_echo=$ac_try;; |
| 32391 | esac |
| 32392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32393 | (eval "$ac_try") 2>&5 |
| 32394 | ac_status=$? |
| 32395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32396 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32397 | ac_cv_func_isnan_in_math_h=yes |
| 32398 | else |
| 32399 | echo "$as_me: failed program was:" >&5 |
| 32400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32401 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32402 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32403 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32404 | |
| 32405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32406 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32407 | ac_cpp='$CPP $CPPFLAGS' |
| 32408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32411 | |
| 32412 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32413 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 32414 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32415 | |
| 32416 | |
| 32417 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32418 | |
| 32419 | cat >>confdefs.h <<\_ACEOF |
| 32420 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 32421 | _ACEOF |
| 32422 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32423 | fi |
| 32424 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32425 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 32426 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32427 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 32428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32429 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32430 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32431 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32432 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32433 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32434 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32435 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32436 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32437 | /* confdefs.h. */ |
| 32438 | _ACEOF |
| 32439 | cat confdefs.h >>conftest.$ac_ext |
| 32440 | cat >>conftest.$ac_ext <<_ACEOF |
| 32441 | /* end confdefs.h. */ |
| 32442 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32443 | int |
| 32444 | main () |
| 32445 | { |
| 32446 | float f; isnan(f); |
| 32447 | ; |
| 32448 | return 0; |
| 32449 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32450 | _ACEOF |
| 32451 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32452 | if { (ac_try="$ac_compile" |
| 32453 | case "(($ac_try" in |
| 32454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32455 | *) ac_try_echo=$ac_try;; |
| 32456 | esac |
| 32457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32458 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32459 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32461 | rm -f conftest.er1 |
| 32462 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32464 | (exit $ac_status); } && |
| 32465 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32466 | { (case "(($ac_try" in |
| 32467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32468 | *) ac_try_echo=$ac_try;; |
| 32469 | esac |
| 32470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32471 | (eval "$ac_try") 2>&5 |
| 32472 | ac_status=$? |
| 32473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32474 | (exit $ac_status); }; } && |
| 32475 | { ac_try='test -s conftest.$ac_objext' |
| 32476 | { (case "(($ac_try" in |
| 32477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32478 | *) ac_try_echo=$ac_try;; |
| 32479 | esac |
| 32480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32481 | (eval "$ac_try") 2>&5 |
| 32482 | ac_status=$? |
| 32483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32484 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32485 | ac_cv_func_isnan_in_cmath=yes |
| 32486 | else |
| 32487 | echo "$as_me: failed program was:" >&5 |
| 32488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32490 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32491 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32492 | |
| 32493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32494 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32495 | ac_cpp='$CPP $CPPFLAGS' |
| 32496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32499 | |
| 32500 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32501 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 32502 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32503 | |
| 32504 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32505 | |
| 32506 | cat >>confdefs.h <<\_ACEOF |
| 32507 | #define HAVE_ISNAN_IN_CMATH 1 |
| 32508 | _ACEOF |
| 32509 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32510 | fi |
| 32511 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32512 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 32513 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32514 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 32515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32516 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32517 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32518 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32519 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32520 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32521 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32522 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32523 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32524 | /* confdefs.h. */ |
| 32525 | _ACEOF |
| 32526 | cat confdefs.h >>conftest.$ac_ext |
| 32527 | cat >>conftest.$ac_ext <<_ACEOF |
| 32528 | /* end confdefs.h. */ |
| 32529 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32530 | int |
| 32531 | main () |
| 32532 | { |
| 32533 | float f; std::isnan(f); |
| 32534 | ; |
| 32535 | return 0; |
| 32536 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32537 | _ACEOF |
| 32538 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32539 | if { (ac_try="$ac_compile" |
| 32540 | case "(($ac_try" in |
| 32541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32542 | *) ac_try_echo=$ac_try;; |
| 32543 | esac |
| 32544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32545 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32546 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32548 | rm -f conftest.er1 |
| 32549 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32551 | (exit $ac_status); } && |
| 32552 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32553 | { (case "(($ac_try" in |
| 32554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32555 | *) ac_try_echo=$ac_try;; |
| 32556 | esac |
| 32557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32558 | (eval "$ac_try") 2>&5 |
| 32559 | ac_status=$? |
| 32560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32561 | (exit $ac_status); }; } && |
| 32562 | { ac_try='test -s conftest.$ac_objext' |
| 32563 | { (case "(($ac_try" in |
| 32564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32565 | *) ac_try_echo=$ac_try;; |
| 32566 | esac |
| 32567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32568 | (eval "$ac_try") 2>&5 |
| 32569 | ac_status=$? |
| 32570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32571 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32572 | ac_cv_func_std_isnan_in_cmath=yes |
| 32573 | else |
| 32574 | echo "$as_me: failed program was:" >&5 |
| 32575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32576 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32577 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32578 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32579 | |
| 32580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32581 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32582 | ac_cpp='$CPP $CPPFLAGS' |
| 32583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32586 | |
| 32587 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32588 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 32589 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32590 | |
| 32591 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32592 | |
| 32593 | cat >>confdefs.h <<\_ACEOF |
| 32594 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 32595 | _ACEOF |
| 32596 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32597 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32598 | |
| 32599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32600 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 32601 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32602 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 32603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32604 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32605 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32606 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32607 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32608 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32609 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32610 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32611 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32612 | /* confdefs.h. */ |
| 32613 | _ACEOF |
| 32614 | cat confdefs.h >>conftest.$ac_ext |
| 32615 | cat >>conftest.$ac_ext <<_ACEOF |
| 32616 | /* end confdefs.h. */ |
| 32617 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32618 | int |
| 32619 | main () |
| 32620 | { |
| 32621 | float f; isinf(f); |
| 32622 | ; |
| 32623 | return 0; |
| 32624 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32625 | _ACEOF |
| 32626 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32627 | if { (ac_try="$ac_compile" |
| 32628 | case "(($ac_try" in |
| 32629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32630 | *) ac_try_echo=$ac_try;; |
| 32631 | esac |
| 32632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32633 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32634 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32636 | rm -f conftest.er1 |
| 32637 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32639 | (exit $ac_status); } && |
| 32640 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32641 | { (case "(($ac_try" in |
| 32642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32643 | *) ac_try_echo=$ac_try;; |
| 32644 | esac |
| 32645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32646 | (eval "$ac_try") 2>&5 |
| 32647 | ac_status=$? |
| 32648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32649 | (exit $ac_status); }; } && |
| 32650 | { ac_try='test -s conftest.$ac_objext' |
| 32651 | { (case "(($ac_try" in |
| 32652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32653 | *) ac_try_echo=$ac_try;; |
| 32654 | esac |
| 32655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32656 | (eval "$ac_try") 2>&5 |
| 32657 | ac_status=$? |
| 32658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32659 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32660 | ac_cv_func_isinf_in_math_h=yes |
| 32661 | else |
| 32662 | echo "$as_me: failed program was:" >&5 |
| 32663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32665 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32666 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32667 | |
| 32668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32669 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32670 | ac_cpp='$CPP $CPPFLAGS' |
| 32671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32674 | |
| 32675 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32676 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 32677 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32678 | |
| 32679 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32680 | |
| 32681 | cat >>confdefs.h <<\_ACEOF |
| 32682 | #define HAVE_ISINF_IN_MATH_H 1 |
| 32683 | _ACEOF |
| 32684 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32685 | fi |
| 32686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32687 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 32688 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32689 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 32690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32691 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32692 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32693 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32694 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32695 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32696 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32697 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32698 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32699 | /* confdefs.h. */ |
| 32700 | _ACEOF |
| 32701 | cat confdefs.h >>conftest.$ac_ext |
| 32702 | cat >>conftest.$ac_ext <<_ACEOF |
| 32703 | /* end confdefs.h. */ |
| 32704 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32705 | int |
| 32706 | main () |
| 32707 | { |
| 32708 | float f; isinf(f); |
| 32709 | ; |
| 32710 | return 0; |
| 32711 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32712 | _ACEOF |
| 32713 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32714 | if { (ac_try="$ac_compile" |
| 32715 | case "(($ac_try" in |
| 32716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32717 | *) ac_try_echo=$ac_try;; |
| 32718 | esac |
| 32719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32720 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32721 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32723 | rm -f conftest.er1 |
| 32724 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32726 | (exit $ac_status); } && |
| 32727 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32728 | { (case "(($ac_try" in |
| 32729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32730 | *) ac_try_echo=$ac_try;; |
| 32731 | esac |
| 32732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32733 | (eval "$ac_try") 2>&5 |
| 32734 | ac_status=$? |
| 32735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32736 | (exit $ac_status); }; } && |
| 32737 | { ac_try='test -s conftest.$ac_objext' |
| 32738 | { (case "(($ac_try" in |
| 32739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32740 | *) ac_try_echo=$ac_try;; |
| 32741 | esac |
| 32742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32743 | (eval "$ac_try") 2>&5 |
| 32744 | ac_status=$? |
| 32745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32746 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32747 | ac_cv_func_isinf_in_cmath=yes |
| 32748 | else |
| 32749 | echo "$as_me: failed program was:" >&5 |
| 32750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32751 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32752 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32753 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32754 | |
| 32755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32756 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32757 | ac_cpp='$CPP $CPPFLAGS' |
| 32758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32761 | |
| 32762 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32763 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 32764 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32765 | |
| 32766 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32767 | |
| 32768 | cat >>confdefs.h <<\_ACEOF |
| 32769 | #define HAVE_ISINF_IN_CMATH 1 |
| 32770 | _ACEOF |
| 32771 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32772 | fi |
| 32773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32774 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 32775 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32776 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 32777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32778 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32779 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32780 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32781 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32782 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32783 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32784 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32785 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32786 | /* confdefs.h. */ |
| 32787 | _ACEOF |
| 32788 | cat confdefs.h >>conftest.$ac_ext |
| 32789 | cat >>conftest.$ac_ext <<_ACEOF |
| 32790 | /* end confdefs.h. */ |
| 32791 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32792 | int |
| 32793 | main () |
| 32794 | { |
| 32795 | float f; std::isinf(f)} |
| 32796 | ; |
| 32797 | return 0; |
| 32798 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32799 | _ACEOF |
| 32800 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32801 | if { (ac_try="$ac_compile" |
| 32802 | case "(($ac_try" in |
| 32803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32804 | *) ac_try_echo=$ac_try;; |
| 32805 | esac |
| 32806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32807 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32808 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32810 | rm -f conftest.er1 |
| 32811 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32813 | (exit $ac_status); } && |
| 32814 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32815 | { (case "(($ac_try" in |
| 32816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32817 | *) ac_try_echo=$ac_try;; |
| 32818 | esac |
| 32819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32820 | (eval "$ac_try") 2>&5 |
| 32821 | ac_status=$? |
| 32822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32823 | (exit $ac_status); }; } && |
| 32824 | { ac_try='test -s conftest.$ac_objext' |
| 32825 | { (case "(($ac_try" in |
| 32826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32827 | *) ac_try_echo=$ac_try;; |
| 32828 | esac |
| 32829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32830 | (eval "$ac_try") 2>&5 |
| 32831 | ac_status=$? |
| 32832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32833 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32834 | ac_cv_func_std_isinf_in_cmath=yes |
| 32835 | else |
| 32836 | echo "$as_me: failed program was:" >&5 |
| 32837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32839 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32840 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32841 | |
| 32842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32843 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32844 | ac_cpp='$CPP $CPPFLAGS' |
| 32845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32848 | |
| 32849 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32850 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 32851 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32852 | |
| 32853 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32854 | |
| 32855 | cat >>confdefs.h <<\_ACEOF |
| 32856 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 32857 | _ACEOF |
| 32858 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32859 | fi |
| 32860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32861 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 32862 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32863 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 32864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32865 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32866 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32867 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32868 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32869 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32870 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32871 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32872 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32873 | /* confdefs.h. */ |
| 32874 | _ACEOF |
| 32875 | cat confdefs.h >>conftest.$ac_ext |
| 32876 | cat >>conftest.$ac_ext <<_ACEOF |
| 32877 | /* end confdefs.h. */ |
| 32878 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32879 | int |
| 32880 | main () |
| 32881 | { |
| 32882 | float f; finite(f); |
| 32883 | ; |
| 32884 | return 0; |
| 32885 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32886 | _ACEOF |
| 32887 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32888 | if { (ac_try="$ac_compile" |
| 32889 | case "(($ac_try" in |
| 32890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32891 | *) ac_try_echo=$ac_try;; |
| 32892 | esac |
| 32893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32894 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32895 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32897 | rm -f conftest.er1 |
| 32898 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32900 | (exit $ac_status); } && |
| 32901 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32902 | { (case "(($ac_try" in |
| 32903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32904 | *) ac_try_echo=$ac_try;; |
| 32905 | esac |
| 32906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32907 | (eval "$ac_try") 2>&5 |
| 32908 | ac_status=$? |
| 32909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32910 | (exit $ac_status); }; } && |
| 32911 | { ac_try='test -s conftest.$ac_objext' |
| 32912 | { (case "(($ac_try" in |
| 32913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32914 | *) ac_try_echo=$ac_try;; |
| 32915 | esac |
| 32916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32917 | (eval "$ac_try") 2>&5 |
| 32918 | ac_status=$? |
| 32919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32920 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32921 | ac_cv_func_finite_in_ieeefp_h=yes |
| 32922 | else |
| 32923 | echo "$as_me: failed program was:" >&5 |
| 32924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32926 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32928 | |
| 32929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32930 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32931 | ac_cpp='$CPP $CPPFLAGS' |
| 32932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32935 | |
| 32936 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32937 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 32938 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32939 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32940 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32941 | |
| 32942 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32943 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32944 | _ACEOF |
| 32945 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32946 | fi |
| 32947 | |
| 32948 | |
| 32949 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 32950 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32951 | |
| 32952 | |
| 32953 | for ac_header in stdlib.h unistd.h |
| 32954 | do |
| 32955 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32956 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32957 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32958 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32959 | 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] | 32960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32961 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32962 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32963 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32964 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32965 | else |
| 32966 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32967 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 32968 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32969 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32970 | /* confdefs.h. */ |
| 32971 | _ACEOF |
| 32972 | cat confdefs.h >>conftest.$ac_ext |
| 32973 | cat >>conftest.$ac_ext <<_ACEOF |
| 32974 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32975 | $ac_includes_default |
| 32976 | #include <$ac_header> |
| 32977 | _ACEOF |
| 32978 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32979 | if { (ac_try="$ac_compile" |
| 32980 | case "(($ac_try" in |
| 32981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32982 | *) ac_try_echo=$ac_try;; |
| 32983 | esac |
| 32984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32985 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32986 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32988 | rm -f conftest.er1 |
| 32989 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 32991 | (exit $ac_status); } && |
| 32992 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32993 | { (case "(($ac_try" in |
| 32994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32995 | *) ac_try_echo=$ac_try;; |
| 32996 | esac |
| 32997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32998 | (eval "$ac_try") 2>&5 |
| 32999 | ac_status=$? |
| 33000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33001 | (exit $ac_status); }; } && |
| 33002 | { ac_try='test -s conftest.$ac_objext' |
| 33003 | { (case "(($ac_try" in |
| 33004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33005 | *) ac_try_echo=$ac_try;; |
| 33006 | esac |
| 33007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33008 | (eval "$ac_try") 2>&5 |
| 33009 | ac_status=$? |
| 33010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33011 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33012 | ac_header_compiler=yes |
| 33013 | else |
| 33014 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33017 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33019 | |
| 33020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33021 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 33022 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33023 | |
| 33024 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33025 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 33026 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33027 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33028 | /* confdefs.h. */ |
| 33029 | _ACEOF |
| 33030 | cat confdefs.h >>conftest.$ac_ext |
| 33031 | cat >>conftest.$ac_ext <<_ACEOF |
| 33032 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33033 | #include <$ac_header> |
| 33034 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33035 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 33036 | case "(($ac_try" in |
| 33037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33038 | *) ac_try_echo=$ac_try;; |
| 33039 | esac |
| 33040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33041 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33042 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33043 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33044 | rm -f conftest.er1 |
| 33045 | cat conftest.err >&5 |
| 33046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33047 | (exit $ac_status); } >/dev/null; then |
| 33048 | if test -s conftest.err; then |
| 33049 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 33050 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 33051 | else |
| 33052 | ac_cpp_err= |
| 33053 | fi |
| 33054 | else |
| 33055 | ac_cpp_err=yes |
| 33056 | fi |
| 33057 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33058 | ac_header_preproc=yes |
| 33059 | else |
| 33060 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33062 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33063 | ac_header_preproc=no |
| 33064 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33065 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33066 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33067 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 33068 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33069 | |
| 33070 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33071 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 33072 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33073 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 33074 | 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] | 33075 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 33076 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 33077 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33078 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33079 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33080 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 33081 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33082 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 33083 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 33084 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 33085 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 33086 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 33087 | 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] | 33088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 33089 | 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] | 33090 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 33091 | 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] | 33092 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33093 | ## ----------------------------------- ## |
| 33094 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 33095 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33096 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33097 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33098 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33099 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33100 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 33101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 33102 | 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] | 33103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33104 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33105 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33106 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33107 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 33108 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33109 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33110 | |
| 33111 | fi |
| 33112 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 33113 | cat >>confdefs.h <<_ACEOF |
| 33114 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 33115 | _ACEOF |
| 33116 | |
| 33117 | fi |
| 33118 | |
| 33119 | done |
| 33120 | |
| 33121 | |
| 33122 | for ac_func in getpagesize |
| 33123 | do |
| 33124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33125 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 33126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 33127 | 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] | 33128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33129 | else |
| 33130 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33131 | /* confdefs.h. */ |
| 33132 | _ACEOF |
| 33133 | cat confdefs.h >>conftest.$ac_ext |
| 33134 | cat >>conftest.$ac_ext <<_ACEOF |
| 33135 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33136 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 33137 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33138 | #define $ac_func innocuous_$ac_func |
| 33139 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33140 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33141 | which can conflict with char $ac_func (); below. |
| 33142 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33143 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33144 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33145 | #ifdef __STDC__ |
| 33146 | # include <limits.h> |
| 33147 | #else |
| 33148 | # include <assert.h> |
| 33149 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33150 | |
| 33151 | #undef $ac_func |
| 33152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33153 | /* Override any GCC internal prototype to avoid an error. |
| 33154 | Use char because int might match the return type of a GCC |
| 33155 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33156 | #ifdef __cplusplus |
| 33157 | extern "C" |
| 33158 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33159 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33160 | /* The GNU C library defines this for functions which it implements |
| 33161 | to always fail with ENOSYS. Some functions are actually named |
| 33162 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33163 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33164 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33165 | #endif |
| 33166 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33167 | int |
| 33168 | main () |
| 33169 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33170 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33171 | ; |
| 33172 | return 0; |
| 33173 | } |
| 33174 | _ACEOF |
| 33175 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33176 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33188 | (exit $ac_status); } && |
| 33189 | { ac_try='test -z "$ac_c_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_exeext' |
| 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33209 | eval "$as_ac_var=yes" |
| 33210 | else |
| 33211 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33214 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33215 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33216 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33217 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33218 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33219 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33220 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33221 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33222 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33223 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33224 | cat >>confdefs.h <<_ACEOF |
| 33225 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 33226 | _ACEOF |
| 33227 | |
| 33228 | fi |
| 33229 | done |
| 33230 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33231 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 33232 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33233 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 33234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33235 | else |
| 33236 | if test "$cross_compiling" = yes; then |
| 33237 | ac_cv_func_mmap_fixed_mapped=no |
| 33238 | else |
| 33239 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33240 | /* confdefs.h. */ |
| 33241 | _ACEOF |
| 33242 | cat confdefs.h >>conftest.$ac_ext |
| 33243 | cat >>conftest.$ac_ext <<_ACEOF |
| 33244 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33245 | $ac_includes_default |
| 33246 | /* malloc might have been renamed as rpl_malloc. */ |
| 33247 | #undef malloc |
| 33248 | |
| 33249 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 33250 | Here is a matrix of mmap possibilities: |
| 33251 | mmap private not fixed |
| 33252 | mmap private fixed at somewhere currently unmapped |
| 33253 | mmap private fixed at somewhere already mapped |
| 33254 | mmap shared not fixed |
| 33255 | mmap shared fixed at somewhere currently unmapped |
| 33256 | mmap shared fixed at somewhere already mapped |
| 33257 | For private mappings, we should verify that changes cannot be read() |
| 33258 | back from the file, nor mmap's back from the file at a different |
| 33259 | address. (There have been systems where private was not correctly |
| 33260 | implemented like the infamous i386 svr4.0, and systems where the |
| 33261 | VM page cache was not coherent with the file system buffer cache |
| 33262 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 33263 | For shared mappings, we should conversely verify that changes get |
| 33264 | propagated back to all the places they're supposed to be. |
| 33265 | |
| 33266 | Grep wants private fixed already mapped. |
| 33267 | The main things grep needs to know about mmap are: |
| 33268 | * does it exist and is it safe to write into the mmap'd area |
| 33269 | * how to use it (BSD variants) */ |
| 33270 | |
| 33271 | #include <fcntl.h> |
| 33272 | #include <sys/mman.h> |
| 33273 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33274 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33275 | char *malloc (); |
| 33276 | #endif |
| 33277 | |
| 33278 | /* This mess was copied from the GNU getpagesize.h. */ |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33279 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33280 | /* Assume that all systems that can run configure have sys/param.h. */ |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33281 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33282 | # define HAVE_SYS_PARAM_H 1 |
| 33283 | # endif |
| 33284 | |
| 33285 | # ifdef _SC_PAGESIZE |
| 33286 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 33287 | # else /* no _SC_PAGESIZE */ |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33288 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33289 | # include <sys/param.h> |
| 33290 | # ifdef EXEC_PAGESIZE |
| 33291 | # define getpagesize() EXEC_PAGESIZE |
| 33292 | # else /* no EXEC_PAGESIZE */ |
| 33293 | # ifdef NBPG |
| 33294 | # define getpagesize() NBPG * CLSIZE |
| 33295 | # ifndef CLSIZE |
| 33296 | # define CLSIZE 1 |
| 33297 | # endif /* no CLSIZE */ |
| 33298 | # else /* no NBPG */ |
| 33299 | # ifdef NBPC |
| 33300 | # define getpagesize() NBPC |
| 33301 | # else /* no NBPC */ |
| 33302 | # ifdef PAGESIZE |
| 33303 | # define getpagesize() PAGESIZE |
| 33304 | # endif /* PAGESIZE */ |
| 33305 | # endif /* no NBPC */ |
| 33306 | # endif /* no NBPG */ |
| 33307 | # endif /* no EXEC_PAGESIZE */ |
| 33308 | # else /* no HAVE_SYS_PARAM_H */ |
| 33309 | # define getpagesize() 8192 /* punt totally */ |
| 33310 | # endif /* no HAVE_SYS_PARAM_H */ |
| 33311 | # endif /* no _SC_PAGESIZE */ |
| 33312 | |
| 33313 | #endif /* no HAVE_GETPAGESIZE */ |
| 33314 | |
| 33315 | int |
| 33316 | main () |
| 33317 | { |
| 33318 | char *data, *data2, *data3; |
| 33319 | int i, pagesize; |
| 33320 | int fd; |
| 33321 | |
| 33322 | pagesize = getpagesize (); |
| 33323 | |
| 33324 | /* First, make a file with some known garbage in it. */ |
| 33325 | data = (char *) malloc (pagesize); |
| 33326 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33327 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33328 | for (i = 0; i < pagesize; ++i) |
| 33329 | *(data + i) = rand (); |
| 33330 | umask (0); |
| 33331 | fd = creat ("conftest.mmap", 0600); |
| 33332 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33333 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33334 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33335 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33336 | close (fd); |
| 33337 | |
| 33338 | /* Next, try to mmap the file at a fixed address which already has |
| 33339 | something else allocated at it. If we can, also make sure that |
| 33340 | we see the same garbage. */ |
| 33341 | fd = open ("conftest.mmap", O_RDWR); |
| 33342 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33343 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33344 | data2 = (char *) malloc (2 * pagesize); |
| 33345 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33346 | return 1; |
| 33347 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33348 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33349 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33350 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33351 | for (i = 0; i < pagesize; ++i) |
| 33352 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33353 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33354 | |
| 33355 | /* Finally, make sure that changes to the mapped area do not |
| 33356 | percolate back to the file as seen by read(). (This is a bug on |
| 33357 | some variants of i386 svr4.0.) */ |
| 33358 | for (i = 0; i < pagesize; ++i) |
| 33359 | *(data2 + i) = *(data2 + i) + 1; |
| 33360 | data3 = (char *) malloc (pagesize); |
| 33361 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33362 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33363 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33364 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33365 | for (i = 0; i < pagesize; ++i) |
| 33366 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33367 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33368 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33369 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33370 | } |
| 33371 | _ACEOF |
| 33372 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33373 | if { (ac_try="$ac_link" |
| 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_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33380 | ac_status=$? |
| 33381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33383 | { (case "(($ac_try" in |
| 33384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33385 | *) ac_try_echo=$ac_try;; |
| 33386 | esac |
| 33387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33388 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33389 | ac_status=$? |
| 33390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33391 | (exit $ac_status); }; }; then |
| 33392 | ac_cv_func_mmap_fixed_mapped=yes |
| 33393 | else |
| 33394 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33395 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33398 | ( exit $ac_status ) |
| 33399 | ac_cv_func_mmap_fixed_mapped=no |
| 33400 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33401 | 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] | 33402 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33403 | |
| 33404 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33405 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33406 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 33407 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33408 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 33409 | |
| 33410 | cat >>confdefs.h <<\_ACEOF |
| 33411 | #define HAVE_MMAP 1 |
| 33412 | _ACEOF |
| 33413 | |
| 33414 | fi |
| 33415 | rm -f conftest.mmap |
| 33416 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33417 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33418 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33419 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 33420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33421 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33422 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33423 | ac_cpp='$CPP $CPPFLAGS' |
| 33424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33427 | |
| 33428 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33429 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33430 | else |
| 33431 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33432 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33433 | /* confdefs.h. */ |
| 33434 | _ACEOF |
| 33435 | cat confdefs.h >>conftest.$ac_ext |
| 33436 | cat >>conftest.$ac_ext <<_ACEOF |
| 33437 | /* end confdefs.h. */ |
| 33438 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33439 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33440 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33441 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33442 | |
| 33443 | int |
| 33444 | main () |
| 33445 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33446 | |
| 33447 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33448 | fd = creat ("foo",0777); |
| 33449 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 33450 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33451 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33452 | ; |
| 33453 | return 0; |
| 33454 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33455 | _ACEOF |
| 33456 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33457 | if { (ac_try="$ac_link" |
| 33458 | case "(($ac_try" in |
| 33459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33460 | *) ac_try_echo=$ac_try;; |
| 33461 | esac |
| 33462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33463 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33464 | ac_status=$? |
| 33465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33466 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33467 | { (case "(($ac_try" in |
| 33468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33469 | *) ac_try_echo=$ac_try;; |
| 33470 | esac |
| 33471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33472 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33473 | ac_status=$? |
| 33474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33475 | (exit $ac_status); }; }; then |
| 33476 | ac_cv_func_mmap_file=yes |
| 33477 | else |
| 33478 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33479 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33481 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33482 | ( exit $ac_status ) |
| 33483 | ac_cv_func_mmap_file=no |
| 33484 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33485 | 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] | 33486 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33487 | |
| 33488 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33489 | ac_ext=c |
| 33490 | ac_cpp='$CPP $CPPFLAGS' |
| 33491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33494 | |
| 33495 | |
| 33496 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33497 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 33498 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33499 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33500 | |
| 33501 | cat >>confdefs.h <<\_ACEOF |
| 33502 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33503 | _ACEOF |
| 33504 | |
| 33505 | MMAP_FILE=yes |
| 33506 | |
| 33507 | fi |
| 33508 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33509 | { 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] | 33510 | 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] | 33511 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 33512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33513 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33514 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33515 | ac_cv_need_dev_zero_for_mmap=yes |
| 33516 | else |
| 33517 | ac_cv_need_dev_zero_for_mmap=no |
| 33518 | fi |
| 33519 | |
| 33520 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33521 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 33522 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33523 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 33524 | |
| 33525 | cat >>confdefs.h <<\_ACEOF |
| 33526 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 33527 | _ACEOF |
| 33528 | |
| 33529 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33530 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33531 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 33532 | then |
| 33533 | { 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] | 33534 | 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] | 33535 | fi |
| 33536 | if test "$ac_cv_func_mmap_file" = "no" |
| 33537 | then |
| 33538 | { 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] | 33539 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33540 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33541 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33542 | |
| 33543 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 33544 | |
| 33545 | for ac_func in __dso_handle |
| 33546 | do |
| 33547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 33548 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 33549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 33550 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 33551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33552 | else |
| 33553 | cat >conftest.$ac_ext <<_ACEOF |
| 33554 | /* confdefs.h. */ |
| 33555 | _ACEOF |
| 33556 | cat confdefs.h >>conftest.$ac_ext |
| 33557 | cat >>conftest.$ac_ext <<_ACEOF |
| 33558 | /* end confdefs.h. */ |
| 33559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 33560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33561 | #define $ac_func innocuous_$ac_func |
| 33562 | |
| 33563 | /* System header to define __stub macros and hopefully few prototypes, |
| 33564 | which can conflict with char $ac_func (); below. |
| 33565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33566 | <limits.h> exists even on freestanding compilers. */ |
| 33567 | |
| 33568 | #ifdef __STDC__ |
| 33569 | # include <limits.h> |
| 33570 | #else |
| 33571 | # include <assert.h> |
| 33572 | #endif |
| 33573 | |
| 33574 | #undef $ac_func |
| 33575 | |
| 33576 | /* Override any GCC internal prototype to avoid an error. |
| 33577 | Use char because int might match the return type of a GCC |
| 33578 | builtin and then its argument prototype would still apply. */ |
| 33579 | #ifdef __cplusplus |
| 33580 | extern "C" |
| 33581 | #endif |
| 33582 | char $ac_func (); |
| 33583 | /* The GNU C library defines this for functions which it implements |
| 33584 | to always fail with ENOSYS. Some functions are actually named |
| 33585 | something starting with __ and the normal name is an alias. */ |
| 33586 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 33587 | choke me |
| 33588 | #endif |
| 33589 | |
| 33590 | int |
| 33591 | main () |
| 33592 | { |
| 33593 | return $ac_func (); |
| 33594 | ; |
| 33595 | return 0; |
| 33596 | } |
| 33597 | _ACEOF |
| 33598 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33599 | if { (ac_try="$ac_link" |
| 33600 | case "(($ac_try" in |
| 33601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33602 | *) ac_try_echo=$ac_try;; |
| 33603 | esac |
| 33604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33605 | (eval "$ac_link") 2>conftest.er1 |
| 33606 | ac_status=$? |
| 33607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33608 | rm -f conftest.er1 |
| 33609 | cat conftest.err >&5 |
| 33610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33611 | (exit $ac_status); } && |
| 33612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33613 | { (case "(($ac_try" in |
| 33614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33615 | *) ac_try_echo=$ac_try;; |
| 33616 | esac |
| 33617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33618 | (eval "$ac_try") 2>&5 |
| 33619 | ac_status=$? |
| 33620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33621 | (exit $ac_status); }; } && |
| 33622 | { ac_try='test -s conftest$ac_exeext' |
| 33623 | { (case "(($ac_try" in |
| 33624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33625 | *) ac_try_echo=$ac_try;; |
| 33626 | esac |
| 33627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33628 | (eval "$ac_try") 2>&5 |
| 33629 | ac_status=$? |
| 33630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33631 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 33632 | eval "$as_ac_var=yes" |
| 33633 | else |
| 33634 | echo "$as_me: failed program was:" >&5 |
| 33635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33636 | |
| 33637 | eval "$as_ac_var=no" |
| 33638 | fi |
| 33639 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33640 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 33641 | conftest$ac_exeext conftest.$ac_ext |
| 33642 | fi |
| 33643 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33644 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33645 | echo "${ECHO_T}$ac_res" >&6; } |
| 33646 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33647 | cat >>confdefs.h <<_ACEOF |
| 33648 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 33649 | _ACEOF |
| 33650 | |
| 33651 | fi |
| 33652 | done |
| 33653 | |
| 33654 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33655 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 33656 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33657 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 33658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33659 | else |
| 33660 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33661 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33662 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 33663 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 33664 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33665 | if test $? -eq 0 ; then |
| 33666 | llvm_cv_llvmgcc_sanity="yes" |
| 33667 | fi |
| 33668 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33669 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33670 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33671 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 33672 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33673 | |
| 33674 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 33675 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 33676 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33677 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33678 | LLVMCC1=$llvmcc1path |
| 33679 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33680 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33681 | LLVMCC1PLUS=$llvmcc1pluspath |
| 33682 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33683 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 33684 | LLVMGCCDIR=$llvmgccdir |
| 33685 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 33686 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 33687 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 33688 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 33689 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 33690 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 33691 | LLVMGCC_VERSION=$llvmgccversion |
| 33692 | |
| 33693 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 33694 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 33695 | llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 33696 | LLVMGCC_LANGS=$llvmgcclangs |
| 33697 | |
| 33698 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 33699 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33700 | fi |
| 33701 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33702 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 33703 | |
| 33704 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33705 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33706 | # information into substitutions that will end up in Makefile.config.in |
| 33707 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 33708 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 33709 | prefix="/usr/local" |
| 33710 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33711 | eval LLVM_PREFIX="${prefix}"; |
| 33712 | eval LLVM_BINDIR="${prefix}/bin"; |
| 33713 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33714 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 33715 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 33716 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33717 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 33718 | eval LLVM_INFODIR="${prefix}/info"; |
| 33719 | eval LLVM_MANDIR="${prefix}/man"; |
| 33720 | LLVM_CONFIGTIME=`date` |
| 33721 | |
| 33722 | |
| 33723 | |
| 33724 | |
| 33725 | |
| 33726 | |
| 33727 | |
| 33728 | |
| 33729 | |
| 33730 | |
| 33731 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33732 | # Place the various directores into the config.h file as #defines so that we |
| 33733 | # can know about the installation paths within LLVM. |
| 33734 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33735 | cat >>confdefs.h <<_ACEOF |
| 33736 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 33737 | _ACEOF |
| 33738 | |
| 33739 | |
| 33740 | cat >>confdefs.h <<_ACEOF |
| 33741 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 33742 | _ACEOF |
| 33743 | |
| 33744 | |
| 33745 | cat >>confdefs.h <<_ACEOF |
| 33746 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 33747 | _ACEOF |
| 33748 | |
| 33749 | |
| 33750 | cat >>confdefs.h <<_ACEOF |
| 33751 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 33752 | _ACEOF |
| 33753 | |
| 33754 | |
| 33755 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 33756 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33757 | _ACEOF |
| 33758 | |
| 33759 | |
| 33760 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 33761 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33762 | _ACEOF |
| 33763 | |
| 33764 | |
| 33765 | cat >>confdefs.h <<_ACEOF |
| 33766 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 33767 | _ACEOF |
| 33768 | |
| 33769 | |
| 33770 | cat >>confdefs.h <<_ACEOF |
| 33771 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 33772 | _ACEOF |
| 33773 | |
| 33774 | |
| 33775 | cat >>confdefs.h <<_ACEOF |
| 33776 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 33777 | _ACEOF |
| 33778 | |
| 33779 | |
| 33780 | cat >>confdefs.h <<_ACEOF |
| 33781 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 33782 | _ACEOF |
| 33783 | |
| 33784 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 33785 | cat >>confdefs.h <<_ACEOF |
| 33786 | #define LLVM_HOSTTRIPLE "$host" |
| 33787 | _ACEOF |
| 33788 | |
| 33789 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 33790 | # Determine which bindings to build. |
| 33791 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 33792 | BINDINGS_TO_BUILD="" |
| 33793 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 33794 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 33795 | fi |
| 33796 | fi |
| 33797 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 33798 | |
| 33799 | |
| 33800 | # This isn't really configurey, but it avoids having to repeat the list in |
| 33801 | # other files. |
| 33802 | ALL_BINDINGS=ocaml |
| 33803 | |
| 33804 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 33805 | # Do any work necessary to ensure that bindings have what they need. |
| 33806 | binding_prereqs_failed=0 |
| 33807 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 33808 | case "$a_binding" in |
| 33809 | ocaml) |
| 33810 | if test "x$OCAMLC" = x ; then |
| 33811 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 33812 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 33813 | binding_prereqs_failed=1 |
| 33814 | fi |
| 33815 | if test "x$OCAMLDEP" = x ; then |
| 33816 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 33817 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 33818 | binding_prereqs_failed=1 |
| 33819 | fi |
| 33820 | if test "x$OCAMLOPT" = x ; then |
| 33821 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 33822 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 33823 | fi |
| 33824 | if test "x$with_ocaml_libdir" != xauto ; then |
| 33825 | OCAML_LIBDIR=$with_ocaml_libdir |
| 33826 | |
| 33827 | else |
| 33828 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 33829 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 33830 | then |
| 33831 | # ocaml stdlib is beneath our prefix; use stdlib |
| 33832 | OCAML_LIBDIR=$ocaml_stdlib |
| 33833 | |
| 33834 | else |
| 33835 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 33836 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 33837 | |
| 33838 | fi |
| 33839 | fi |
| 33840 | ;; |
| 33841 | esac |
| 33842 | done |
| 33843 | if test "$binding_prereqs_failed" = 1 ; then |
| 33844 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 33845 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 33846 | { (exit 1); exit 1; }; } |
| 33847 | fi |
| 33848 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 33849 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 33850 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 33851 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 33852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33853 | else |
| 33854 | ac_ext=cpp |
| 33855 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33856 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33857 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33858 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33859 | |
| 33860 | oldcxxflags="$CXXFLAGS" |
| 33861 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 33862 | cat >conftest.$ac_ext <<_ACEOF |
| 33863 | /* confdefs.h. */ |
| 33864 | _ACEOF |
| 33865 | cat confdefs.h >>conftest.$ac_ext |
| 33866 | cat >>conftest.$ac_ext <<_ACEOF |
| 33867 | /* end confdefs.h. */ |
| 33868 | |
| 33869 | int |
| 33870 | main () |
| 33871 | { |
| 33872 | |
| 33873 | ; |
| 33874 | return 0; |
| 33875 | } |
| 33876 | _ACEOF |
| 33877 | rm -f conftest.$ac_objext |
| 33878 | if { (ac_try="$ac_compile" |
| 33879 | case "(($ac_try" in |
| 33880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33881 | *) ac_try_echo=$ac_try;; |
| 33882 | esac |
| 33883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33884 | (eval "$ac_compile") 2>conftest.er1 |
| 33885 | ac_status=$? |
| 33886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33887 | rm -f conftest.er1 |
| 33888 | cat conftest.err >&5 |
| 33889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 33890 | (exit $ac_status); } && |
| 33891 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33892 | { (case "(($ac_try" in |
| 33893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33894 | *) ac_try_echo=$ac_try;; |
| 33895 | esac |
| 33896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33897 | (eval "$ac_try") 2>&5 |
| 33898 | ac_status=$? |
| 33899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33900 | (exit $ac_status); }; } && |
| 33901 | { ac_try='test -s conftest.$ac_objext' |
| 33902 | { (case "(($ac_try" in |
| 33903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33904 | *) ac_try_echo=$ac_try;; |
| 33905 | esac |
| 33906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33907 | (eval "$ac_try") 2>&5 |
| 33908 | ac_status=$? |
| 33909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33910 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 33911 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 33912 | else |
| 33913 | echo "$as_me: failed program was:" >&5 |
| 33914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33915 | |
| 33916 | llvm_cv_cxx_visibility_inlines_hidden=no |
| 33917 | fi |
| 33918 | |
| 33919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33920 | CXXFLAGS="$oldcxxflags" |
| 33921 | ac_ext=c |
| 33922 | ac_cpp='$CPP $CPPFLAGS' |
| 33923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33926 | |
| 33927 | |
| 33928 | fi |
| 33929 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 33930 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
| 33931 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 33932 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 33933 | |
| 33934 | else |
| 33935 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 33936 | |
| 33937 | fi |
| 33938 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 33939 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 33940 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 33941 | RPATH="-Wl,-R" |
| 33942 | else |
| 33943 | RPATH="-Wl,-rpath" |
| 33944 | fi |
| 33945 | |
| 33946 | |
| 33947 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 33948 | RDYNAMIC="-Wl,-export-dynamic" |
| 33949 | else |
| 33950 | RDYNAMIC="" |
| 33951 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 33952 | |
| 33953 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33955 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33956 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33957 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33958 | |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 33959 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33960 | |
| 33961 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33962 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33963 | |
| 33964 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 33965 | ac_config_files="$ac_config_files llvm.spec" |
| 33966 | |
| 33967 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33968 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33969 | |
| 33970 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33971 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 33972 | |
| 33973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33974 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 33975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33976 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33977 | |
| 33978 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33979 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33980 | |
| 33981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33982 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33983 | |
| 33984 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33985 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33986 | |
| 33987 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 33988 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 33989 | |
| 33990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33991 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33992 | |
| 33993 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33994 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33995 | |
| 33996 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 33997 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 33998 | |
| 33999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34000 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34001 | |
| 34002 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34003 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34004 | |
| 34005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34006 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34007 | |
| 34008 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 34009 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 34010 | |
| 34011 | |
| 34012 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 34013 | |
| 34014 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34015 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34016 | cat >confcache <<\_ACEOF |
| 34017 | # This file is a shell script that caches the results of configure |
| 34018 | # tests run on this system so they can be shared between configure |
| 34019 | # scripts and configure runs, see configure's option --config-cache. |
| 34020 | # It is not useful on other systems. If it contains results you don't |
| 34021 | # want to keep, you may remove or edit it. |
| 34022 | # |
| 34023 | # config.status only pays attention to the cache file if you give it |
| 34024 | # the --recheck option to rerun configure. |
| 34025 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34026 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34027 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 34028 | # following values. |
| 34029 | |
| 34030 | _ACEOF |
| 34031 | |
| 34032 | # The following way of writing the cache mishandles newlines in values, |
| 34033 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34034 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34035 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 34036 | # 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] | 34037 | ( |
| 34038 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 34039 | eval ac_val=\$$ac_var |
| 34040 | case $ac_val in #( |
| 34041 | *${as_nl}*) |
| 34042 | case $ac_var in #( |
| 34043 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 34044 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 34045 | esac |
| 34046 | case $ac_var in #( |
| 34047 | _ | IFS | as_nl) ;; #( |
| 34048 | *) $as_unset $ac_var ;; |
| 34049 | esac ;; |
| 34050 | esac |
| 34051 | done |
| 34052 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34053 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34054 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 34055 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34056 | # `set' does not quote correctly, so add quotes (double-quote |
| 34057 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 34058 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34059 | "s/'/'\\\\''/g; |
| 34060 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34061 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34062 | *) |
| 34063 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34064 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34065 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34066 | esac | |
| 34067 | sort |
| 34068 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34069 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34070 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34071 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34072 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34073 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 34074 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34075 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 34076 | :end' >>confcache |
| 34077 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 34078 | if test -w "$cache_file"; then |
| 34079 | test "x$cache_file" != "x/dev/null" && |
| 34080 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 34081 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34082 | cat confcache >$cache_file |
| 34083 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34084 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 34085 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34086 | fi |
| 34087 | fi |
| 34088 | rm -f confcache |
| 34089 | |
| 34090 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 34091 | # Let make expand exec_prefix. |
| 34092 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 34093 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34094 | DEFS=-DHAVE_CONFIG_H |
| 34095 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34096 | ac_libobjs= |
| 34097 | ac_ltlibobjs= |
| 34098 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 34099 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34100 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 34101 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 34102 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 34103 | # will be set to the directory where LIBOBJS objects are built. |
| 34104 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 34105 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34106 | done |
| 34107 | LIBOBJS=$ac_libobjs |
| 34108 | |
| 34109 | LTLIBOBJS=$ac_ltlibobjs |
| 34110 | |
| 34111 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34112 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 34113 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34114 | Usually this means the macro was only invoked conditionally." >&5 |
| 34115 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34116 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34117 | { (exit 1); exit 1; }; } |
| 34118 | fi |
| 34119 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 34120 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34121 | Usually this means the macro was only invoked conditionally." >&5 |
| 34122 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34123 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34124 | { (exit 1); exit 1; }; } |
| 34125 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34126 | |
| 34127 | : ${CONFIG_STATUS=./config.status} |
| 34128 | ac_clean_files_save=$ac_clean_files |
| 34129 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 34130 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 34131 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 34132 | cat >$CONFIG_STATUS <<_ACEOF |
| 34133 | #! $SHELL |
| 34134 | # Generated by $as_me. |
| 34135 | # Run this file to recreate the current configuration. |
| 34136 | # Compiler output produced by configure, useful for debugging |
| 34137 | # configure, is in config.log if it exists. |
| 34138 | |
| 34139 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34140 | ac_cs_recheck=false |
| 34141 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34142 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 34143 | _ACEOF |
| 34144 | |
| 34145 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34146 | ## --------------------- ## |
| 34147 | ## M4sh Initialization. ## |
| 34148 | ## --------------------- ## |
| 34149 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 34150 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34151 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 34152 | emulate sh |
| 34153 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34154 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 34155 | # is contrary to our usage. Disable this feature. |
| 34156 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34157 | setopt NO_GLOB_SUBST |
| 34158 | else |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 34159 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34160 | fi |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 34161 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 34162 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34163 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34164 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34165 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34166 | # Avoid depending upon Character Ranges. |
| 34167 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 34168 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34169 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 34170 | as_cr_digits='0123456789' |
| 34171 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 34172 | |
| 34173 | # The user is always right. |
| 34174 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34175 | echo "#! /bin/sh" >conf$$.sh |
| 34176 | echo "exit 0" >>conf$$.sh |
| 34177 | chmod +x conf$$.sh |
| 34178 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34179 | PATH_SEPARATOR=';' |
| 34180 | else |
| 34181 | PATH_SEPARATOR=: |
| 34182 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34183 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34184 | fi |
| 34185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34186 | # Support unset when possible. |
| 34187 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 34188 | as_unset=unset |
| 34189 | else |
| 34190 | as_unset=false |
| 34191 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34193 | |
| 34194 | # IFS |
| 34195 | # We need space, tab and new line, in precisely that order. Quoting is |
| 34196 | # there to prevent editors from complaining about space-tab. |
| 34197 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 34198 | # splitting by setting IFS to empty value.) |
| 34199 | as_nl=' |
| 34200 | ' |
| 34201 | IFS=" "" $as_nl" |
| 34202 | |
| 34203 | # Find who we are. Look in the path if we contain no directory separator. |
| 34204 | case $0 in |
| 34205 | *[\\/]* ) as_myself=$0 ;; |
| 34206 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34207 | for as_dir in $PATH |
| 34208 | do |
| 34209 | IFS=$as_save_IFS |
| 34210 | test -z "$as_dir" && as_dir=. |
| 34211 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 34212 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34213 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34214 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34215 | ;; |
| 34216 | esac |
| 34217 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 34218 | # in which case we are not to be found in the path. |
| 34219 | if test "x$as_myself" = x; then |
| 34220 | as_myself=$0 |
| 34221 | fi |
| 34222 | if test ! -f "$as_myself"; then |
| 34223 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 34224 | { (exit 1); exit 1; } |
| 34225 | fi |
| 34226 | |
| 34227 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34228 | for as_var in ENV MAIL MAILPATH |
| 34229 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34230 | done |
| 34231 | PS1='$ ' |
| 34232 | PS2='> ' |
| 34233 | PS4='+ ' |
| 34234 | |
| 34235 | # NLS nuisances. |
| 34236 | for as_var in \ |
| 34237 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 34238 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 34239 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34240 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34241 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 34242 | eval $as_var=C; export $as_var |
| 34243 | else |
| 34244 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34245 | fi |
| 34246 | done |
| 34247 | |
| 34248 | # Required to use basename. |
| 34249 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34250 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 34251 | as_expr=expr |
| 34252 | else |
| 34253 | as_expr=false |
| 34254 | fi |
| 34255 | |
| 34256 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 34257 | as_basename=basename |
| 34258 | else |
| 34259 | as_basename=false |
| 34260 | fi |
| 34261 | |
| 34262 | |
| 34263 | # Name of the executable. |
| 34264 | as_me=`$as_basename -- "$0" || |
| 34265 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 34266 | X"$0" : 'X\(//\)$' \| \ |
| 34267 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 34268 | echo X/"$0" | |
| 34269 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 34270 | s//\1/ |
| 34271 | q |
| 34272 | } |
| 34273 | /^X\/\(\/\/\)$/{ |
| 34274 | s//\1/ |
| 34275 | q |
| 34276 | } |
| 34277 | /^X\/\(\/\).*/{ |
| 34278 | s//\1/ |
| 34279 | q |
| 34280 | } |
| 34281 | s/.*/./; q'` |
| 34282 | |
| 34283 | # CDPATH. |
| 34284 | $as_unset CDPATH |
| 34285 | |
| 34286 | |
| 34287 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34288 | as_lineno_1=$LINENO |
| 34289 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34290 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34291 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34292 | |
| 34293 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 34294 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34295 | # line-number line after each line using $LINENO; the second 'sed' |
| 34296 | # does the real work. The second script uses 'N' to pair each |
| 34297 | # line-number line with the line containing $LINENO, and appends |
| 34298 | # trailing '-' during substitution so that $LINENO is not a special |
| 34299 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34300 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34301 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 34302 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 34303 | sed -n ' |
| 34304 | p |
| 34305 | /[$]LINENO/= |
| 34306 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34307 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34308 | s/[$]LINENO.*/&-/ |
| 34309 | t lineno |
| 34310 | b |
| 34311 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34312 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34313 | :loop |
| 34314 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34315 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34316 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34317 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34318 | chmod +x "$as_me.lineno" || |
| 34319 | { 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] | 34320 | { (exit 1); exit 1; }; } |
| 34321 | |
| 34322 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 34323 | # (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] | 34324 | # original and so on. Autoconf is especially sensitive to this). |
| 34325 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34326 | # Exit status is that of the last command. |
| 34327 | exit |
| 34328 | } |
| 34329 | |
| 34330 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34331 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 34332 | as_dirname=dirname |
| 34333 | else |
| 34334 | as_dirname=false |
| 34335 | fi |
| 34336 | |
| 34337 | ECHO_C= ECHO_N= ECHO_T= |
| 34338 | case `echo -n x` in |
| 34339 | -n*) |
| 34340 | case `echo 'x\c'` in |
| 34341 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 34342 | *) ECHO_C='\c';; |
| 34343 | esac;; |
| 34344 | *) |
| 34345 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34346 | esac |
| 34347 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34348 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34349 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34350 | as_expr=expr |
| 34351 | else |
| 34352 | as_expr=false |
| 34353 | fi |
| 34354 | |
| 34355 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34356 | if test -d conf$$.dir; then |
| 34357 | rm -f conf$$.dir/conf$$.file |
| 34358 | else |
| 34359 | rm -f conf$$.dir |
| 34360 | mkdir conf$$.dir |
| 34361 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34362 | echo >conf$$.file |
| 34363 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34364 | as_ln_s='ln -s' |
| 34365 | # ... but there are two gotchas: |
| 34366 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 34367 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 34368 | # In both cases, we have to default to `cp -p'. |
| 34369 | 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] | 34370 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34371 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 34372 | as_ln_s=ln |
| 34373 | else |
| 34374 | as_ln_s='cp -p' |
| 34375 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34376 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 34377 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34378 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34379 | if mkdir -p . 2>/dev/null; then |
| 34380 | as_mkdir_p=: |
| 34381 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34382 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34383 | as_mkdir_p=false |
| 34384 | fi |
| 34385 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 34386 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 34387 | # systems may use methods other than mode bits to determine executability. |
| 34388 | cat >conf$$.file <<_ASEOF |
| 34389 | #! /bin/sh |
| 34390 | exit 0 |
| 34391 | _ASEOF |
| 34392 | chmod +x conf$$.file |
| 34393 | if test -x conf$$.file >/dev/null 2>&1; then |
| 34394 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34395 | else |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 34396 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34397 | fi |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 34398 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34399 | |
| 34400 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34401 | 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] | 34402 | |
| 34403 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34404 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34405 | |
| 34406 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34407 | exec 6>&1 |
| 34408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34409 | # 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] | 34410 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34411 | # values after options handling. |
| 34412 | ac_log=" |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 34413 | This file was extended by llvm $as_me 2.6svn, which was |
| 34414 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34415 | |
| 34416 | CONFIG_FILES = $CONFIG_FILES |
| 34417 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 34418 | CONFIG_LINKS = $CONFIG_LINKS |
| 34419 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 34420 | $ $0 $@ |
| 34421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34422 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 34423 | " |
| 34424 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34425 | _ACEOF |
| 34426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34427 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34428 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34429 | config_files="$ac_config_files" |
| 34430 | config_headers="$ac_config_headers" |
| 34431 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34432 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34433 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34434 | |
| 34435 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34436 | ac_cs_usage="\ |
| 34437 | \`$as_me' instantiates files from templates according to the |
| 34438 | current configuration. |
| 34439 | |
| 34440 | Usage: $0 [OPTIONS] [FILE]... |
| 34441 | |
| 34442 | -h, --help print this help, then exit |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 34443 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34444 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34445 | -d, --debug don't remove temporary files |
| 34446 | --recheck update $as_me by reconfiguring in the same conditions |
| 34447 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34448 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34449 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34450 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34451 | |
| 34452 | Configuration files: |
| 34453 | $config_files |
| 34454 | |
| 34455 | Configuration headers: |
| 34456 | $config_headers |
| 34457 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34458 | Configuration commands: |
| 34459 | $config_commands |
| 34460 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34461 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34462 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34463 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34464 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34465 | ac_cs_version="\\ |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 34466 | llvm config.status 2.6svn |
| 34467 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34468 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34470 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34471 | This config.status script is free software; the Free Software Foundation |
| 34472 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34473 | |
| 34474 | ac_pwd='$ac_pwd' |
| 34475 | srcdir='$srcdir' |
| 34476 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34477 | _ACEOF |
| 34478 | |
| 34479 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34480 | # If no file are specified by the user, then we need to provide default |
| 34481 | # value. By we need to know if files were specified by the user. |
| 34482 | ac_need_defaults=: |
| 34483 | while test $# != 0 |
| 34484 | do |
| 34485 | case $1 in |
| 34486 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34487 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 34488 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34489 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34490 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34491 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34492 | ac_option=$1 |
| 34493 | ac_optarg=$2 |
| 34494 | ac_shift=shift |
| 34495 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34496 | esac |
| 34497 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34498 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34499 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34500 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 34501 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34502 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 34503 | echo "$ac_cs_version"; exit ;; |
| 34504 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34505 | debug=: ;; |
| 34506 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34507 | $ac_shift |
| 34508 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34509 | ac_need_defaults=false;; |
| 34510 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34511 | $ac_shift |
| 34512 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34513 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34514 | --he | --h) |
| 34515 | # Conflict between --help and --header |
| 34516 | { echo "$as_me: error: ambiguous option: $1 |
| 34517 | Try \`$0 --help' for more information." >&2 |
| 34518 | { (exit 1); exit 1; }; };; |
| 34519 | --help | --hel | -h ) |
| 34520 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34521 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 34522 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 34523 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34524 | |
| 34525 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34526 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 34527 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34528 | { (exit 1); exit 1; }; } ;; |
| 34529 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34530 | *) ac_config_targets="$ac_config_targets $1" |
| 34531 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34532 | |
| 34533 | esac |
| 34534 | shift |
| 34535 | done |
| 34536 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34537 | ac_configure_extra_args= |
| 34538 | |
| 34539 | if $ac_cs_silent; then |
| 34540 | exec 6>/dev/null |
| 34541 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 34542 | fi |
| 34543 | |
| 34544 | _ACEOF |
| 34545 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34546 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34547 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 34548 | CONFIG_SHELL=$SHELL |
| 34549 | export CONFIG_SHELL |
| 34550 | 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] | 34551 | fi |
| 34552 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34553 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34554 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34555 | exec 5>>config.log |
| 34556 | { |
| 34557 | echo |
| 34558 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 34559 | ## Running $as_me. ## |
| 34560 | _ASBOX |
| 34561 | echo "$ac_log" |
| 34562 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34564 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34565 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34566 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34567 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34568 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34569 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34570 | |
| 34571 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34572 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34573 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34574 | |
| 34575 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34576 | for ac_config_target in $ac_config_targets |
| 34577 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34578 | case $ac_config_target in |
| 34579 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 34580 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 34581 | "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34582 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34583 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34584 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 34585 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 34586 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 34587 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 34588 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 34589 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 34590 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34591 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34592 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 34593 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 34594 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34595 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 34596 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 34597 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 34598 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 34599 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34600 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34601 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 34602 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 34603 | { (exit 1); exit 1; }; };; |
| 34604 | esac |
| 34605 | done |
| 34606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34607 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34608 | # If the user did not use the arguments to specify the items to instantiate, |
| 34609 | # then the envvar interface is used. Set only those that are not. |
| 34610 | # We use the long form for the default assignment because of an extremely |
| 34611 | # bizarre bug on SunOS 4.1.3. |
| 34612 | if $ac_need_defaults; then |
| 34613 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 34614 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34615 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34616 | fi |
| 34617 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34618 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34619 | # 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] | 34620 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34621 | # Hook for its removal unless debugging. |
| 34622 | # Note that there is a small window in which the directory will not be cleaned: |
| 34623 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34624 | $debug || |
| 34625 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34626 | tmp= |
| 34627 | trap 'exit_status=$? |
| 34628 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 34629 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34630 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 34631 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34632 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34633 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34634 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34635 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34636 | test -n "$tmp" && test -d "$tmp" |
| 34637 | } || |
| 34638 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34639 | tmp=./conf$$-$RANDOM |
| 34640 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34641 | } || |
| 34642 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34643 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34644 | { (exit 1); exit 1; } |
| 34645 | } |
| 34646 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34647 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34648 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34649 | # |
| 34650 | |
| 34651 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 34652 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34653 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34654 | |
| 34655 | _ACEOF |
| 34656 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34657 | |
| 34658 | |
| 34659 | ac_delim='%!_!# ' |
| 34660 | for ac_last_try in false false false false false :; do |
| 34661 | cat >conf$$subs.sed <<_ACEOF |
| 34662 | SHELL!$SHELL$ac_delim |
| 34663 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 34664 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 34665 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 34666 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 34667 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 34668 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 34669 | exec_prefix!$exec_prefix$ac_delim |
| 34670 | prefix!$prefix$ac_delim |
| 34671 | program_transform_name!$program_transform_name$ac_delim |
| 34672 | bindir!$bindir$ac_delim |
| 34673 | sbindir!$sbindir$ac_delim |
| 34674 | libexecdir!$libexecdir$ac_delim |
| 34675 | datarootdir!$datarootdir$ac_delim |
| 34676 | datadir!$datadir$ac_delim |
| 34677 | sysconfdir!$sysconfdir$ac_delim |
| 34678 | sharedstatedir!$sharedstatedir$ac_delim |
| 34679 | localstatedir!$localstatedir$ac_delim |
| 34680 | includedir!$includedir$ac_delim |
| 34681 | oldincludedir!$oldincludedir$ac_delim |
| 34682 | docdir!$docdir$ac_delim |
| 34683 | infodir!$infodir$ac_delim |
| 34684 | htmldir!$htmldir$ac_delim |
| 34685 | dvidir!$dvidir$ac_delim |
| 34686 | pdfdir!$pdfdir$ac_delim |
| 34687 | psdir!$psdir$ac_delim |
| 34688 | libdir!$libdir$ac_delim |
| 34689 | localedir!$localedir$ac_delim |
| 34690 | mandir!$mandir$ac_delim |
| 34691 | DEFS!$DEFS$ac_delim |
| 34692 | ECHO_C!$ECHO_C$ac_delim |
| 34693 | ECHO_N!$ECHO_N$ac_delim |
| 34694 | ECHO_T!$ECHO_T$ac_delim |
| 34695 | LIBS!$LIBS$ac_delim |
| 34696 | build_alias!$build_alias$ac_delim |
| 34697 | host_alias!$host_alias$ac_delim |
| 34698 | target_alias!$target_alias$ac_delim |
| 34699 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 34700 | subdirs!$subdirs$ac_delim |
| 34701 | build!$build$ac_delim |
| 34702 | build_cpu!$build_cpu$ac_delim |
| 34703 | build_vendor!$build_vendor$ac_delim |
| 34704 | build_os!$build_os$ac_delim |
| 34705 | host!$host$ac_delim |
| 34706 | host_cpu!$host_cpu$ac_delim |
| 34707 | host_vendor!$host_vendor$ac_delim |
| 34708 | host_os!$host_os$ac_delim |
| 34709 | target!$target$ac_delim |
| 34710 | target_cpu!$target_cpu$ac_delim |
| 34711 | target_vendor!$target_vendor$ac_delim |
| 34712 | target_os!$target_os$ac_delim |
| 34713 | OS!$OS$ac_delim |
| 34714 | LINKALL!$LINKALL$ac_delim |
| 34715 | NOLINKALL!$NOLINKALL$ac_delim |
| 34716 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 34717 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame^] | 34718 | ARCH!$ARCH$ac_delim |
| 34719 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34720 | CC!$CC$ac_delim |
| 34721 | CFLAGS!$CFLAGS$ac_delim |
| 34722 | LDFLAGS!$LDFLAGS$ac_delim |
| 34723 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 34724 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 34725 | EXEEXT!$EXEEXT$ac_delim |
| 34726 | OBJEXT!$OBJEXT$ac_delim |
| 34727 | CPP!$CPP$ac_delim |
| 34728 | GREP!$GREP$ac_delim |
| 34729 | EGREP!$EGREP$ac_delim |
| 34730 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 34731 | BUILD_CC!$BUILD_CC$ac_delim |
| 34732 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 34733 | BUILD_CXX!$BUILD_CXX$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34734 | CVSBUILD!$CVSBUILD$ac_delim |
| 34735 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 34736 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 34737 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 34738 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34739 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34740 | JIT!$JIT$ac_delim |
| 34741 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 34742 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 34743 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 34744 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34745 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 34746 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34747 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 34748 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34749 | CXX!$CXX$ac_delim |
| 34750 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 34751 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
Nick Lewycky | bdf0d7c | 2009-02-21 22:38:49 +0000 | [diff] [blame] | 34752 | NM!$NM$ac_delim |
| 34753 | ifGNUmake!$ifGNUmake$ac_delim |
| 34754 | LN_S!$LN_S$ac_delim |
| 34755 | CMP!$CMP$ac_delim |
| 34756 | CP!$CP$ac_delim |
| 34757 | DATE!$DATE$ac_delim |
| 34758 | FIND!$FIND$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34759 | _ACEOF |
| 34760 | |
| 34761 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 34762 | break |
| 34763 | elif $ac_last_try; then |
| 34764 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34765 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34766 | { (exit 1); exit 1; }; } |
| 34767 | else |
| 34768 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34769 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34770 | done |
| 34771 | |
| 34772 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34773 | if test -n "$ac_eof"; then |
| 34774 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34775 | ac_eof=`expr $ac_eof + 1` |
| 34776 | fi |
| 34777 | |
| 34778 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34779 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 34780 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 34781 | _ACEOF |
| 34782 | sed ' |
| 34783 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34784 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34785 | :n |
| 34786 | t n |
| 34787 | s/'"$ac_delim"'$/,g/; t |
| 34788 | s/$/\\/; p |
| 34789 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34790 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34791 | rm -f conf$$subs.sed |
| 34792 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34793 | CEOF$ac_eof |
| 34794 | _ACEOF |
| 34795 | |
| 34796 | |
| 34797 | ac_delim='%!_!# ' |
| 34798 | for ac_last_try in false false false false false :; do |
| 34799 | cat >conf$$subs.sed <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34800 | MKDIR!$MKDIR$ac_delim |
| 34801 | MV!$MV$ac_delim |
| 34802 | RANLIB!$RANLIB$ac_delim |
| 34803 | RM!$RM$ac_delim |
| 34804 | SED!$SED$ac_delim |
| 34805 | TAR!$TAR$ac_delim |
| 34806 | BINPWD!$BINPWD$ac_delim |
| 34807 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 34808 | DOT!$DOT$ac_delim |
| 34809 | GV!$GV$ac_delim |
| 34810 | DOTTY!$DOTTY$ac_delim |
| 34811 | PERL!$PERL$ac_delim |
| 34812 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 34813 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 34814 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 34815 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 34816 | BZIP2!$BZIP2$ac_delim |
| 34817 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34818 | GROFF!$GROFF$ac_delim |
| 34819 | GZIP!$GZIP$ac_delim |
| 34820 | POD2HTML!$POD2HTML$ac_delim |
| 34821 | POD2MAN!$POD2MAN$ac_delim |
| 34822 | RUNTEST!$RUNTEST$ac_delim |
| 34823 | TCLSH!$TCLSH$ac_delim |
| 34824 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 34825 | OCAMLC!$OCAMLC$ac_delim |
| 34826 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 34827 | OCAMLDEP!$OCAMLDEP$ac_delim |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 34828 | OCAMLDOC!$OCAMLDOC$ac_delim |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 34829 | GAS!$GAS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34830 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 34831 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 34832 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 34833 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 34834 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 34835 | ECHO!$ECHO$ac_delim |
| 34836 | AR!$AR$ac_delim |
| 34837 | STRIP!$STRIP$ac_delim |
| 34838 | CXXCPP!$CXXCPP$ac_delim |
| 34839 | F77!$F77$ac_delim |
| 34840 | FFLAGS!$FFLAGS$ac_delim |
| 34841 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 34842 | LIBTOOL!$LIBTOOL$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34843 | LLVMGCC!$LLVMGCC$ac_delim |
| 34844 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 34845 | USE_UDIS86!$USE_UDIS86$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 34846 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 34847 | HAVE_FFI!$HAVE_FFI$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 34848 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34849 | ALLOCA!$ALLOCA$ac_delim |
| 34850 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 34851 | LLVMCC1!$LLVMCC1$ac_delim |
| 34852 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 34853 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 34854 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34855 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 34856 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34857 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34858 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 34859 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 34860 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 34861 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 34862 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 34863 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 34864 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 34865 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 34866 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 34867 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 34868 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 34869 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 34870 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 34871 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 34872 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 34873 | RPATH!$RPATH$ac_delim |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 34874 | RDYNAMIC!$RDYNAMIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34875 | LIBOBJS!$LIBOBJS$ac_delim |
| 34876 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 34877 | _ACEOF |
| 34878 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 34879 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34880 | break |
| 34881 | elif $ac_last_try; then |
| 34882 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34883 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34884 | { (exit 1); exit 1; }; } |
| 34885 | else |
| 34886 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 34887 | fi |
| 34888 | done |
| 34889 | |
| 34890 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34891 | if test -n "$ac_eof"; then |
| 34892 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34893 | ac_eof=`expr $ac_eof + 1` |
| 34894 | fi |
| 34895 | |
| 34896 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34897 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 34898 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 34899 | _ACEOF |
| 34900 | sed ' |
| 34901 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34902 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34903 | :n |
| 34904 | t n |
| 34905 | s/'"$ac_delim"'$/,g/; t |
| 34906 | s/$/\\/; p |
| 34907 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34908 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34909 | rm -f conf$$subs.sed |
| 34910 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34911 | :end |
| 34912 | s/|#_!!_#|//g |
| 34913 | CEOF$ac_eof |
| 34914 | _ACEOF |
| 34915 | |
| 34916 | |
| 34917 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 34918 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 34919 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 34920 | # (actually we leave an empty line to preserve line numbers). |
| 34921 | if test "x$srcdir" = x.; then |
| 34922 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 34923 | s/:*\$(srcdir):*/:/ |
| 34924 | s/:*\${srcdir}:*/:/ |
| 34925 | s/:*@srcdir@:*/:/ |
| 34926 | s/^\([^=]*=[ ]*\):*/\1/ |
| 34927 | s/:*$// |
| 34928 | s/^[^=]*=[ ]*$// |
| 34929 | }' |
| 34930 | fi |
| 34931 | |
| 34932 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34933 | fi # test -n "$CONFIG_FILES" |
| 34934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34935 | |
| 34936 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 34937 | do |
| 34938 | case $ac_tag in |
| 34939 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 34940 | esac |
| 34941 | case $ac_mode$ac_tag in |
| 34942 | :[FHL]*:*);; |
| 34943 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 34944 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 34945 | { (exit 1); exit 1; }; };; |
| 34946 | :[FH]-) ac_tag=-:-;; |
| 34947 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 34948 | esac |
| 34949 | ac_save_IFS=$IFS |
| 34950 | IFS=: |
| 34951 | set x $ac_tag |
| 34952 | IFS=$ac_save_IFS |
| 34953 | shift |
| 34954 | ac_file=$1 |
| 34955 | shift |
| 34956 | |
| 34957 | case $ac_mode in |
| 34958 | :L) ac_source=$1;; |
| 34959 | :[FH]) |
| 34960 | ac_file_inputs= |
| 34961 | for ac_f |
| 34962 | do |
| 34963 | case $ac_f in |
| 34964 | -) ac_f="$tmp/stdin";; |
| 34965 | *) # Look for the file first in the build tree, then in the source tree |
| 34966 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 34967 | # because $ac_f cannot contain `:'. |
| 34968 | test -f "$ac_f" || |
| 34969 | case $ac_f in |
| 34970 | [\\/$]*) false;; |
| 34971 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 34972 | esac || |
| 34973 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 34974 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 34975 | { (exit 1); exit 1; }; };; |
| 34976 | esac |
| 34977 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 34978 | done |
| 34979 | |
| 34980 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 34981 | # use $as_me), people would be surprised to read: |
| 34982 | # /* config.h. Generated by config.status. */ |
| 34983 | configure_input="Generated from "`IFS=: |
| 34984 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 34985 | if test x"$ac_file" != x-; then |
| 34986 | configure_input="$ac_file. $configure_input" |
| 34987 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 34988 | echo "$as_me: creating $ac_file" >&6;} |
| 34989 | fi |
| 34990 | |
| 34991 | case $ac_tag in |
| 34992 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 34993 | esac |
| 34994 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34995 | esac |
| 34996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34997 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34998 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34999 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 35000 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35001 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35002 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35003 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35004 | s//\1/ |
| 35005 | q |
| 35006 | } |
| 35007 | /^X\(\/\/\)[^/].*/{ |
| 35008 | s//\1/ |
| 35009 | q |
| 35010 | } |
| 35011 | /^X\(\/\/\)$/{ |
| 35012 | s//\1/ |
| 35013 | q |
| 35014 | } |
| 35015 | /^X\(\/\).*/{ |
| 35016 | s//\1/ |
| 35017 | q |
| 35018 | } |
| 35019 | s/.*/./; q'` |
| 35020 | { as_dir="$ac_dir" |
| 35021 | case $as_dir in #( |
| 35022 | -*) as_dir=./$as_dir;; |
| 35023 | esac |
| 35024 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35025 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35026 | while :; do |
| 35027 | case $as_dir in #( |
| 35028 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 35029 | *) as_qdir=$as_dir;; |
| 35030 | esac |
| 35031 | as_dirs="'$as_qdir' $as_dirs" |
| 35032 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35033 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35034 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35035 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35036 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35037 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35038 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35039 | s//\1/ |
| 35040 | q |
| 35041 | } |
| 35042 | /^X\(\/\/\)[^/].*/{ |
| 35043 | s//\1/ |
| 35044 | q |
| 35045 | } |
| 35046 | /^X\(\/\/\)$/{ |
| 35047 | s//\1/ |
| 35048 | q |
| 35049 | } |
| 35050 | /^X\(\/\).*/{ |
| 35051 | s//\1/ |
| 35052 | q |
| 35053 | } |
| 35054 | s/.*/./; q'` |
| 35055 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35056 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35057 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35058 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35059 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35060 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35061 | ac_builddir=. |
| 35062 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35063 | case "$ac_dir" in |
| 35064 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35065 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35066 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35067 | # A ".." for each directory in $ac_dir_suffix. |
| 35068 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35069 | case $ac_top_builddir_sub in |
| 35070 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35071 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35072 | esac ;; |
| 35073 | esac |
| 35074 | ac_abs_top_builddir=$ac_pwd |
| 35075 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35076 | # for backward compatibility: |
| 35077 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35078 | |
| 35079 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35080 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35081 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35082 | ac_top_srcdir=$ac_top_builddir_sub |
| 35083 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35084 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35085 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35086 | ac_top_srcdir=$srcdir |
| 35087 | ac_abs_top_srcdir=$srcdir ;; |
| 35088 | *) # Relative name. |
| 35089 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35090 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35091 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35092 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35093 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35094 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35095 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35096 | case $ac_mode in |
| 35097 | :F) |
| 35098 | # |
| 35099 | # CONFIG_FILE |
| 35100 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35101 | |
| 35102 | case $INSTALL in |
| 35103 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35104 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35105 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35106 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35107 | |
| 35108 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35109 | # If the template does not know about datarootdir, expand it. |
| 35110 | # FIXME: This hack should be removed a few years after 2.60. |
| 35111 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 35112 | |
| 35113 | case `sed -n '/datarootdir/ { |
| 35114 | p |
| 35115 | q |
| 35116 | } |
| 35117 | /@datadir@/p |
| 35118 | /@docdir@/p |
| 35119 | /@infodir@/p |
| 35120 | /@localedir@/p |
| 35121 | /@mandir@/p |
| 35122 | ' $ac_file_inputs` in |
| 35123 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 35124 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 35125 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 35126 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 35127 | _ACEOF |
| 35128 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35129 | ac_datarootdir_hack=' |
| 35130 | s&@datadir@&$datadir&g |
| 35131 | s&@docdir@&$docdir&g |
| 35132 | s&@infodir@&$infodir&g |
| 35133 | s&@localedir@&$localedir&g |
| 35134 | s&@mandir@&$mandir&g |
| 35135 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 35136 | esac |
| 35137 | _ACEOF |
| 35138 | |
| 35139 | # Neutralize VPATH when `$srcdir' = `.'. |
| 35140 | # Shell code in configure.ac might set extrasub. |
| 35141 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35142 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35143 | sed "$ac_vpsub |
| 35144 | $extrasub |
| 35145 | _ACEOF |
| 35146 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35147 | :t |
| 35148 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35149 | s&@configure_input@&$configure_input&;t t |
| 35150 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 35151 | s&@srcdir@&$ac_srcdir&;t t |
| 35152 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 35153 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 35154 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 35155 | s&@builddir@&$ac_builddir&;t t |
| 35156 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 35157 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 35158 | s&@INSTALL@&$ac_INSTALL&;t t |
| 35159 | $ac_datarootdir_hack |
| 35160 | " $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] | 35161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35162 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 35163 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 35164 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 35165 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35166 | which seems to be undefined. Please make sure it is defined." >&5 |
| 35167 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35168 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35170 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35171 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35172 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 35173 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35174 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35175 | ;; |
| 35176 | :H) |
| 35177 | # |
| 35178 | # CONFIG_HEADER |
| 35179 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35180 | _ACEOF |
| 35181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35182 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 35183 | # substitutes the proper values into config.h.in to produce config.h. |
| 35184 | rm -f conftest.defines conftest.tail |
| 35185 | # First, append a space to every undef/define line, to ease matching. |
| 35186 | echo 's/$/ /' >conftest.defines |
| 35187 | # Then, protect against being on the right side of a sed subst, or in |
| 35188 | # an unquoted here document, in config.status. If some macros were |
| 35189 | # called several times there might be several #defines for the same |
| 35190 | # symbol, which is useless. But do not sort them, since the last |
| 35191 | # AC_DEFINE must be honored. |
| 35192 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 35193 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 35194 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 35195 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 35196 | # just an empty string. |
| 35197 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 35198 | ac_dB='\\)[ (].*,\\1define\\2' |
| 35199 | ac_dC=' ' |
| 35200 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35202 | uniq confdefs.h | |
| 35203 | sed -n ' |
| 35204 | t rset |
| 35205 | :rset |
| 35206 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 35207 | t ok |
| 35208 | d |
| 35209 | :ok |
| 35210 | s/[\\&,]/\\&/g |
| 35211 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 35212 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 35213 | ' >>conftest.defines |
| 35214 | |
| 35215 | # Remove the space that was appended to ease matching. |
| 35216 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35217 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 35218 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35219 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 35220 | echo 's/ $// |
| 35221 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35222 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35223 | # Break up conftest.defines: |
| 35224 | ac_max_sed_lines=50 |
| 35225 | |
| 35226 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 35227 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 35228 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 35229 | # et cetera. |
| 35230 | ac_in='$ac_file_inputs' |
| 35231 | ac_out='"$tmp/out1"' |
| 35232 | ac_nxt='"$tmp/out2"' |
| 35233 | |
| 35234 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35235 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35236 | # Write a here document: |
| 35237 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35238 | # First, check the format of the line: |
| 35239 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 35240 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 35241 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 35242 | b |
| 35243 | :def |
| 35244 | _ACEOF |
| 35245 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35246 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35247 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 35248 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 35249 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 35250 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35251 | rm -f conftest.defines |
| 35252 | mv conftest.tail conftest.defines |
| 35253 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35254 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35255 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35256 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35257 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35258 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35259 | echo "/* $configure_input */" >"$tmp/config.h" |
| 35260 | cat "$ac_result" >>"$tmp/config.h" |
| 35261 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35262 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 35263 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 35264 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35265 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35266 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35267 | fi |
| 35268 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35269 | echo "/* $configure_input */" |
| 35270 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35271 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35272 | rm -f "$tmp/out12" |
| 35273 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35275 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 35276 | echo "$as_me: executing $ac_file commands" >&6;} |
| 35277 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35278 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35279 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35280 | |
| 35281 | case $ac_file$ac_mode in |
| 35282 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 35283 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 35284 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 35285 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 35286 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 35287 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 35288 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 35289 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35290 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 35291 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35292 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 35293 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 35294 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 35295 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35296 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
| 35297 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35298 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 35299 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 35300 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 35301 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 35302 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 35303 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35304 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
| 35305 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
| 35306 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
| 35307 | ${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] | 35308 | |
| 35309 | esac |
| 35310 | done # for ac_tag |
| 35311 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35312 | |
| 35313 | { (exit 0); exit 0; } |
| 35314 | _ACEOF |
| 35315 | chmod +x $CONFIG_STATUS |
| 35316 | ac_clean_files=$ac_clean_files_save |
| 35317 | |
| 35318 | |
| 35319 | # configure is writing to config.log, and then calls config.status. |
| 35320 | # config.status does its own redirection, appending to config.log. |
| 35321 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 35322 | # by configure, so config.status won't be able to write to it; its |
| 35323 | # output is simply discarded. So we exec the FD to /dev/null, |
| 35324 | # effectively closing config.log, so it can be properly (re)opened and |
| 35325 | # appended to by config.status. When coming back to configure, we |
| 35326 | # need to make the FD available again. |
| 35327 | if test "$no_create" != yes; then |
| 35328 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35329 | ac_config_status_args= |
| 35330 | test "$silent" = yes && |
| 35331 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35332 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35333 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35334 | exec 5>>config.log |
| 35335 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 35336 | # would make configure fail if this is the last instruction. |
| 35337 | $ac_cs_success || { (exit 1); exit 1; } |
| 35338 | fi |
| 35339 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35340 | # |
| 35341 | # CONFIG_SUBDIRS section. |
| 35342 | # |
| 35343 | if test "$no_recursion" != yes; then |
| 35344 | |
| 35345 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 35346 | ac_sub_configure_args= |
| 35347 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35348 | eval "set x $ac_configure_args" |
| 35349 | shift |
| 35350 | for ac_arg |
| 35351 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35352 | if test -n "$ac_prev"; then |
| 35353 | ac_prev= |
| 35354 | continue |
| 35355 | fi |
| 35356 | case $ac_arg in |
| 35357 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 35358 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 35359 | ac_prev=cache_file ;; |
| 35360 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 35361 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 35362 | | --c=*) |
| 35363 | ;; |
| 35364 | --config-cache | -C) |
| 35365 | ;; |
| 35366 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 35367 | ac_prev=srcdir ;; |
| 35368 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 35369 | ;; |
| 35370 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 35371 | ac_prev=prefix ;; |
| 35372 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 35373 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35374 | *) |
| 35375 | case $ac_arg in |
| 35376 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35377 | esac |
| 35378 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35379 | esac |
| 35380 | done |
| 35381 | |
| 35382 | # Always prepend --prefix to ensure using the same prefix |
| 35383 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35384 | ac_arg="--prefix=$prefix" |
| 35385 | case $ac_arg in |
| 35386 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35387 | esac |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 35388 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35389 | |
| 35390 | ac_popdir=`pwd` |
| 35391 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 35392 | |
| 35393 | # Do not complain, so a configure script can configure whichever |
| 35394 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35395 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35397 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 35398 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 35399 | echo "$ac_msg" >&6 |
| 35400 | { as_dir="$ac_dir" |
| 35401 | case $as_dir in #( |
| 35402 | -*) as_dir=./$as_dir;; |
| 35403 | esac |
| 35404 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35405 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35406 | while :; do |
| 35407 | case $as_dir in #( |
| 35408 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 35409 | *) as_qdir=$as_dir;; |
| 35410 | esac |
| 35411 | as_dirs="'$as_qdir' $as_dirs" |
| 35412 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35413 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35414 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35415 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35416 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35417 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35418 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35419 | s//\1/ |
| 35420 | q |
| 35421 | } |
| 35422 | /^X\(\/\/\)[^/].*/{ |
| 35423 | s//\1/ |
| 35424 | q |
| 35425 | } |
| 35426 | /^X\(\/\/\)$/{ |
| 35427 | s//\1/ |
| 35428 | q |
| 35429 | } |
| 35430 | /^X\(\/\).*/{ |
| 35431 | s//\1/ |
| 35432 | q |
| 35433 | } |
| 35434 | s/.*/./; q'` |
| 35435 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35436 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35437 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35438 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35439 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35440 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35441 | ac_builddir=. |
| 35442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35443 | case "$ac_dir" in |
| 35444 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35445 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35446 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35447 | # A ".." for each directory in $ac_dir_suffix. |
| 35448 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35449 | case $ac_top_builddir_sub in |
| 35450 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35451 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35452 | esac ;; |
| 35453 | esac |
| 35454 | ac_abs_top_builddir=$ac_pwd |
| 35455 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35456 | # for backward compatibility: |
| 35457 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35458 | |
| 35459 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35460 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35461 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35462 | ac_top_srcdir=$ac_top_builddir_sub |
| 35463 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35464 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35465 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35466 | ac_top_srcdir=$srcdir |
| 35467 | ac_abs_top_srcdir=$srcdir ;; |
| 35468 | *) # Relative name. |
| 35469 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35470 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35471 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35472 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35473 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35474 | |
| 35475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35476 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35477 | |
| 35478 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35479 | if test -f "$ac_srcdir/configure.gnu"; then |
| 35480 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 35481 | elif test -f "$ac_srcdir/configure"; then |
| 35482 | ac_sub_configure=$ac_srcdir/configure |
| 35483 | elif test -f "$ac_srcdir/configure.in"; then |
| 35484 | # This should be Cygnus configure. |
| 35485 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35486 | else |
| 35487 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 35488 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 35489 | ac_sub_configure= |
| 35490 | fi |
| 35491 | |
| 35492 | # The recursion is here. |
| 35493 | if test -n "$ac_sub_configure"; then |
| 35494 | # Make the cache file name correct relative to the subdirectory. |
| 35495 | case $cache_file in |
| 35496 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35497 | *) # Relative name. |
| 35498 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35499 | esac |
| 35500 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35501 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 35502 | 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] | 35503 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35504 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 35505 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35506 | { { 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] | 35507 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 35508 | { (exit 1); exit 1; }; } |
| 35509 | fi |
| 35510 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35511 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35512 | done |
| 35513 | fi |
| 35514 | |