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 | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.4svn. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
| 16 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
| 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
| 25 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 29 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32 | # PATH needs CR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 226 | case $as_dir in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 227 | /*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 240 | # Be Bourne compatible |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 242 | emulate sh |
| 243 | NULLCMD=: |
| 244 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 245 | # is contrary to our usage. Disable this feature. |
| 246 | alias -g '${1+"$@"}'='"$@"' |
| 247 | setopt NO_GLOB_SUBST |
| 248 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 250 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 260 | # Be Bourne compatible |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 270 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 273 | |
| 274 | : |
| 275 | (as_func_return () { |
| 276 | (exit $1) |
| 277 | } |
| 278 | as_func_success () { |
| 279 | as_func_return 0 |
| 280 | } |
| 281 | as_func_failure () { |
| 282 | as_func_return 1 |
| 283 | } |
| 284 | as_func_ret_success () { |
| 285 | return 0 |
| 286 | } |
| 287 | as_func_ret_failure () { |
| 288 | return 1 |
| 289 | } |
| 290 | |
| 291 | exitcode=0 |
| 292 | if as_func_success; then |
| 293 | : |
| 294 | else |
| 295 | exitcode=1 |
| 296 | echo as_func_success failed. |
| 297 | fi |
| 298 | |
| 299 | if as_func_failure; then |
| 300 | exitcode=1 |
| 301 | echo as_func_failure succeeded. |
| 302 | fi |
| 303 | |
| 304 | if as_func_ret_success; then |
| 305 | : |
| 306 | else |
| 307 | exitcode=1 |
| 308 | echo as_func_ret_success failed. |
| 309 | fi |
| 310 | |
| 311 | if as_func_ret_failure; then |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_failure succeeded. |
| 314 | fi |
| 315 | |
| 316 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 317 | : |
| 318 | else |
| 319 | exitcode=1 |
| 320 | echo positional parameters were not saved. |
| 321 | fi |
| 322 | |
| 323 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 324 | |
| 325 | ( |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 326 | as_lineno_1=$LINENO |
| 327 | as_lineno_2=$LINENO |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 328 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 329 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 330 | |
| 331 | _ASEOF |
| 332 | }; then |
| 333 | break |
| 334 | fi |
| 335 | |
| 336 | fi |
| 337 | |
| 338 | done |
| 339 | |
| 340 | if test "x$CONFIG_SHELL" != x; then |
| 341 | for as_var in BASH_ENV ENV |
| 342 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 343 | done |
| 344 | export CONFIG_SHELL |
| 345 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 346 | fi |
| 347 | |
| 348 | |
| 349 | if test $as_have_required = no; then |
| 350 | echo This script requires a shell more modern than all the |
| 351 | echo shells that I found on your system. Please install a |
| 352 | echo modern shell, or manually run the script under such a |
| 353 | echo shell if you do have one. |
| 354 | { (exit 1); exit 1; } |
| 355 | fi |
| 356 | |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | |
| 364 | (eval "as_func_return () { |
| 365 | (exit \$1) |
| 366 | } |
| 367 | as_func_success () { |
| 368 | as_func_return 0 |
| 369 | } |
| 370 | as_func_failure () { |
| 371 | as_func_return 1 |
| 372 | } |
| 373 | as_func_ret_success () { |
| 374 | return 0 |
| 375 | } |
| 376 | as_func_ret_failure () { |
| 377 | return 1 |
| 378 | } |
| 379 | |
| 380 | exitcode=0 |
| 381 | if as_func_success; then |
| 382 | : |
| 383 | else |
| 384 | exitcode=1 |
| 385 | echo as_func_success failed. |
| 386 | fi |
| 387 | |
| 388 | if as_func_failure; then |
| 389 | exitcode=1 |
| 390 | echo as_func_failure succeeded. |
| 391 | fi |
| 392 | |
| 393 | if as_func_ret_success; then |
| 394 | : |
| 395 | else |
| 396 | exitcode=1 |
| 397 | echo as_func_ret_success failed. |
| 398 | fi |
| 399 | |
| 400 | if as_func_ret_failure; then |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_failure succeeded. |
| 403 | fi |
| 404 | |
| 405 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 406 | : |
| 407 | else |
| 408 | exitcode=1 |
| 409 | echo positional parameters were not saved. |
| 410 | fi |
| 411 | |
| 412 | test \$exitcode = 0") || { |
| 413 | echo No shell found that supports shell functions. |
| 414 | echo Please tell autoconf@gnu.org about your system, |
| 415 | echo including any error possibly output before this |
| 416 | echo message |
| 417 | } |
| 418 | |
| 419 | |
| 420 | |
| 421 | as_lineno_1=$LINENO |
| 422 | as_lineno_2=$LINENO |
| 423 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 424 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 425 | |
| 426 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 427 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 428 | # line-number line after each line using $LINENO; the second 'sed' |
| 429 | # does the real work. The second script uses 'N' to pair each |
| 430 | # line-number line with the line containing $LINENO, and appends |
| 431 | # trailing '-' during substitution so that $LINENO is not a special |
| 432 | # case at line end. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 434 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 435 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 436 | sed -n ' |
| 437 | p |
| 438 | /[$]LINENO/= |
| 439 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ |
| 442 | t lineno |
| 443 | b |
| 444 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop |
| 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 453 | { (exit 1); exit 1; }; } |
| 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
| 463 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 464 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 465 | as_dirname=dirname |
| 466 | else |
| 467 | as_dirname=false |
| 468 | fi |
| 469 | |
| 470 | ECHO_C= ECHO_N= ECHO_T= |
| 471 | case `echo -n x` in |
| 472 | -n*) |
| 473 | case `echo 'x\c'` in |
| 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 475 | *) ECHO_C='\c';; |
| 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 483 | as_expr=expr |
| 484 | else |
| 485 | as_expr=false |
| 486 | fi |
| 487 | |
| 488 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 489 | if test -d conf$$.dir; then |
| 490 | rm -f conf$$.dir/conf$$.file |
| 491 | else |
| 492 | rm -f conf$$.dir |
| 493 | mkdir conf$$.dir |
| 494 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 495 | echo >conf$$.file |
| 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 497 | as_ln_s='ln -s' |
| 498 | # ... but there are two gotchas: |
| 499 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 500 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 501 | # In both cases, we have to default to `cp -p'. |
| 502 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 505 | as_ln_s=ln |
| 506 | else |
| 507 | as_ln_s='cp -p' |
| 508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 510 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 | |
| 512 | if mkdir -p . 2>/dev/null; then |
| 513 | as_mkdir_p=: |
| 514 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false |
| 517 | fi |
| 518 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 519 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 520 | # systems may use methods other than mode bits to determine executability. |
| 521 | cat >conf$$.file <<_ASEOF |
| 522 | #! /bin/sh |
| 523 | exit 0 |
| 524 | _ASEOF |
| 525 | chmod +x conf$$.file |
| 526 | if test -x conf$$.file >/dev/null 2>&1; then |
| 527 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 531 | rm -f conf$$.file |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 | |
| 533 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 | |
| 536 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 | |
| 539 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 540 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 541 | |
| 542 | # Check that we are running under the correct shell. |
| 543 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 544 | |
| 545 | case X$ECHO in |
| 546 | X*--fallback-echo) |
| 547 | # Remove one level of quotation (which was required for Make). |
| 548 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 549 | ;; |
| 550 | esac |
| 551 | |
| 552 | echo=${ECHO-echo} |
| 553 | if test "X$1" = X--no-reexec; then |
| 554 | # Discard the --no-reexec flag, and continue. |
| 555 | shift |
| 556 | elif test "X$1" = X--fallback-echo; then |
| 557 | # Avoid inline document here, it may be left over |
| 558 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 559 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | # Yippee, $echo works! |
| 561 | : |
| 562 | else |
| 563 | # Restart under the correct shell. |
| 564 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 565 | fi |
| 566 | |
| 567 | if test "X$1" = X--fallback-echo; then |
| 568 | # used as fallback echo |
| 569 | shift |
| 570 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 571 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 572 | EOF |
| 573 | exit 0 |
| 574 | fi |
| 575 | |
| 576 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 577 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 578 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | |
| 580 | if test -z "$ECHO"; then |
| 581 | if test "X${echo_test_string+set}" != Xset; then |
| 582 | # find a string as large as possible, as long as the shell can cope with it |
| 583 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 584 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 585 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 586 | echo_test_string=`eval $cmd` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 587 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 588 | then |
| 589 | break |
| 590 | fi |
| 591 | done |
| 592 | fi |
| 593 | |
| 594 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 595 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 596 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 597 | : |
| 598 | else |
| 599 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 600 | # backslashes. This makes it impossible to quote backslashes using |
| 601 | # echo "$something" | sed 's/\\/\\\\/g' |
| 602 | # |
| 603 | # So, first we look for a working echo in the user's PATH. |
| 604 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 605 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 606 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 607 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 608 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 609 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 610 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 611 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 612 | echo="$dir/echo" |
| 613 | break |
| 614 | fi |
| 615 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 616 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 617 | |
| 618 | if test "X$echo" = Xecho; then |
| 619 | # We didn't find a better echo, so look for alternatives. |
| 620 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 621 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 622 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 623 | # This shell has a builtin print -r that does the trick. |
| 624 | echo='print -r' |
| 625 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 626 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 627 | # If we have ksh, try running configure again with it. |
| 628 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 629 | export ORIGINAL_CONFIG_SHELL |
| 630 | CONFIG_SHELL=/bin/ksh |
| 631 | export CONFIG_SHELL |
| 632 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 633 | else |
| 634 | # Try using printf. |
| 635 | echo='printf %s\n' |
| 636 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 637 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 638 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 639 | # Cool, printf works |
| 640 | : |
| 641 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 642 | test "X$echo_testing_string" = 'X\t' && |
| 643 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 644 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 645 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 646 | export CONFIG_SHELL |
| 647 | SHELL="$CONFIG_SHELL" |
| 648 | export SHELL |
| 649 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 650 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 651 | test "X$echo_testing_string" = 'X\t' && |
| 652 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 653 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 654 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 655 | else |
| 656 | # maybe with a smaller string... |
| 657 | prev=: |
| 658 | |
| 659 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 660 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 661 | then |
| 662 | break |
| 663 | fi |
| 664 | prev="$cmd" |
| 665 | done |
| 666 | |
| 667 | if test "$prev" != 'sed 50q "$0"'; then |
| 668 | echo_test_string=`eval $prev` |
| 669 | export echo_test_string |
| 670 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 671 | else |
| 672 | # Oops. We lost completely, so just stick with echo. |
| 673 | echo=echo |
| 674 | fi |
| 675 | fi |
| 676 | fi |
| 677 | fi |
| 678 | fi |
| 679 | fi |
| 680 | |
| 681 | # Copy echo and quote the copy suitably for passing to libtool from |
| 682 | # the Makefile, instead of quoting the original, which is used later. |
| 683 | ECHO=$echo |
| 684 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 685 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 686 | fi |
| 687 | |
| 688 | |
| 689 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 690 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 691 | tagnames=${tagnames+${tagnames},}CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 692 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 693 | tagnames=${tagnames+${tagnames},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 695 | exec 7<&0 </dev/null 6>&1 |
| 696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 697 | # Name of the host. |
| 698 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 699 | # so uname gets run too. |
| 700 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 701 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 702 | # |
| 703 | # Initializations. |
| 704 | # |
| 705 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 706 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 707 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 708 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 709 | cross_compiling=no |
| 710 | subdirs= |
| 711 | MFLAGS= |
| 712 | MAKEFLAGS= |
| 713 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 714 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 715 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 716 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 717 | PACKAGE_TARNAME='-llvm-' |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.4svn' |
| 719 | PACKAGE_STRING='llvm 2.4svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 720 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 721 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 722 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 723 | # Factoring default headers for most tests. |
| 724 | ac_includes_default="\ |
| 725 | #include <stdio.h> |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 726 | #if HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 727 | # include <sys/types.h> |
| 728 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 729 | #if HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 730 | # include <sys/stat.h> |
| 731 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 732 | #if STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 733 | # include <stdlib.h> |
| 734 | # include <stddef.h> |
| 735 | #else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 736 | # if HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 737 | # include <stdlib.h> |
| 738 | # endif |
| 739 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 740 | #if HAVE_STRING_H |
| 741 | # if !STDC_HEADERS && HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 742 | # include <memory.h> |
| 743 | # endif |
| 744 | # include <string.h> |
| 745 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 746 | #if HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 747 | # include <strings.h> |
| 748 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 749 | #if HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 750 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 751 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 752 | #if HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 753 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 754 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 755 | #if HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 756 | # include <unistd.h> |
| 757 | #endif" |
| 758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 759 | ac_subst_vars='SHELL |
| 760 | PATH_SEPARATOR |
| 761 | PACKAGE_NAME |
| 762 | PACKAGE_TARNAME |
| 763 | PACKAGE_VERSION |
| 764 | PACKAGE_STRING |
| 765 | PACKAGE_BUGREPORT |
| 766 | exec_prefix |
| 767 | prefix |
| 768 | program_transform_name |
| 769 | bindir |
| 770 | sbindir |
| 771 | libexecdir |
| 772 | datarootdir |
| 773 | datadir |
| 774 | sysconfdir |
| 775 | sharedstatedir |
| 776 | localstatedir |
| 777 | includedir |
| 778 | oldincludedir |
| 779 | docdir |
| 780 | infodir |
| 781 | htmldir |
| 782 | dvidir |
| 783 | pdfdir |
| 784 | psdir |
| 785 | libdir |
| 786 | localedir |
| 787 | mandir |
| 788 | DEFS |
| 789 | ECHO_C |
| 790 | ECHO_N |
| 791 | ECHO_T |
| 792 | LIBS |
| 793 | build_alias |
| 794 | host_alias |
| 795 | target_alias |
| 796 | LLVM_COPYRIGHT |
| 797 | subdirs |
| 798 | build |
| 799 | build_cpu |
| 800 | build_vendor |
| 801 | build_os |
| 802 | host |
| 803 | host_cpu |
| 804 | host_vendor |
| 805 | host_os |
| 806 | target |
| 807 | target_cpu |
| 808 | target_vendor |
| 809 | target_os |
| 810 | OS |
| 811 | LINKALL |
| 812 | NOLINKALL |
| 813 | LLVM_ON_UNIX |
| 814 | LLVM_ON_WIN32 |
| 815 | ARCH |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 816 | ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 817 | CC |
| 818 | CFLAGS |
| 819 | LDFLAGS |
| 820 | CPPFLAGS |
| 821 | ac_ct_CC |
| 822 | EXEEXT |
| 823 | OBJEXT |
| 824 | CPP |
| 825 | GREP |
| 826 | EGREP |
| 827 | LLVM_CROSS_COMPILING |
| 828 | BUILD_CC |
| 829 | BUILD_EXEEXT |
| 830 | CVSBUILD |
| 831 | ENABLE_OPTIMIZED |
| 832 | DISABLE_ASSERTIONS |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 833 | ENABLE_EXPENSIVE_CHECKS |
| 834 | EXPENSIVE_CHECKS |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 835 | DEBUG_RUNTIME |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 836 | JIT |
| 837 | TARGET_HAS_JIT |
| 838 | ENABLE_DOXYGEN |
| 839 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 840 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 841 | TARGETS_TO_BUILD |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 842 | ENABLE_CBE_PRINTF_A |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 843 | EXTRA_OPTIONS |
| 844 | CXX |
| 845 | CXXFLAGS |
| 846 | ac_ct_CXX |
| 847 | LEX |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 848 | LEXLIB |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 849 | LEX_OUTPUT_ROOT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | FLEX |
| 851 | YACC |
| 852 | YFLAGS |
| 853 | BISON |
| 854 | NM |
| 855 | ifGNUmake |
| 856 | LN_S |
| 857 | CMP |
| 858 | CP |
| 859 | DATE |
| 860 | FIND |
| 861 | MKDIR |
| 862 | MV |
| 863 | RANLIB |
| 864 | RM |
| 865 | SED |
| 866 | TAR |
| 867 | BINPWD |
| 868 | GRAPHVIZ |
| 869 | DOT |
| 870 | GV |
| 871 | DOTTY |
| 872 | PERL |
| 873 | HAVE_PERL |
| 874 | INSTALL_PROGRAM |
| 875 | INSTALL_SCRIPT |
| 876 | INSTALL_DATA |
| 877 | BZIP2 |
| 878 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 879 | GROFF |
| 880 | GZIP |
| 881 | POD2HTML |
| 882 | POD2MAN |
| 883 | RUNTEST |
| 884 | TCLSH |
| 885 | ZIP |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 886 | OCAMLC |
| 887 | OCAMLOPT |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 888 | OCAMLDEP |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 889 | OCAMLDOC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 890 | INSTALL_LTDL_TRUE |
| 891 | INSTALL_LTDL_FALSE |
| 892 | CONVENIENCE_LTDL_TRUE |
| 893 | CONVENIENCE_LTDL_FALSE |
| 894 | LIBADD_DL |
| 895 | ECHO |
| 896 | AR |
| 897 | STRIP |
| 898 | CXXCPP |
| 899 | F77 |
| 900 | FFLAGS |
| 901 | ac_ct_F77 |
| 902 | LIBTOOL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 903 | LLVMGCC |
| 904 | LLVMGXX |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 905 | USE_UDIS86 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 906 | HAVE_PTHREAD |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 907 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 908 | ALLOCA |
| 909 | MMAP_FILE |
| 910 | LLVMCC1 |
| 911 | LLVMCC1PLUS |
| 912 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 913 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 914 | LLVMGCC_VERSION |
| 915 | LLVMGCC_MAJVERS |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 916 | LLVMGCC_LANGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 917 | SHLIBEXT |
| 918 | LLVM_PREFIX |
| 919 | LLVM_BINDIR |
| 920 | LLVM_LIBDIR |
| 921 | LLVM_DATADIR |
| 922 | LLVM_DOCSDIR |
| 923 | LLVM_ETCDIR |
| 924 | LLVM_INCLUDEDIR |
| 925 | LLVM_INFODIR |
| 926 | LLVM_MANDIR |
| 927 | LLVM_CONFIGTIME |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 928 | BINDINGS_TO_BUILD |
| 929 | ALL_BINDINGS |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 930 | OCAML_LIBDIR |
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 |
| 945 | YACC |
| 946 | YFLAGS |
| 947 | CXXCPP |
| 948 | F77 |
| 949 | FFLAGS' |
| 950 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 951 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 952 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 953 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 954 | projects/test-suite |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 955 | projects/llvm-reopt |
| 956 | projects/llvm-gcc |
| 957 | projects/llvm-java |
| 958 | projects/llvm-tv |
| 959 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 960 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 961 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 962 | |
| 963 | # Initialize some variables set by options. |
| 964 | ac_init_help= |
| 965 | ac_init_version=false |
| 966 | # The variables have the same names as the options, with |
| 967 | # dashes changed to underlines. |
| 968 | cache_file=/dev/null |
| 969 | exec_prefix=NONE |
| 970 | no_create= |
| 971 | no_recursion= |
| 972 | prefix=NONE |
| 973 | program_prefix=NONE |
| 974 | program_suffix=NONE |
| 975 | program_transform_name=s,x,x, |
| 976 | silent= |
| 977 | site= |
| 978 | srcdir= |
| 979 | verbose= |
| 980 | x_includes=NONE |
| 981 | x_libraries=NONE |
| 982 | |
| 983 | # Installation directory options. |
| 984 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 985 | # and all the variables that are supposed to be based on exec_prefix |
| 986 | # by default will actually change. |
| 987 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 988 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 989 | bindir='${exec_prefix}/bin' |
| 990 | sbindir='${exec_prefix}/sbin' |
| 991 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 992 | datarootdir='${prefix}/share' |
| 993 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 | sysconfdir='${prefix}/etc' |
| 995 | sharedstatedir='${prefix}/com' |
| 996 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 997 | includedir='${prefix}/include' |
| 998 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 999 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1000 | infodir='${datarootdir}/info' |
| 1001 | htmldir='${docdir}' |
| 1002 | dvidir='${docdir}' |
| 1003 | pdfdir='${docdir}' |
| 1004 | psdir='${docdir}' |
| 1005 | libdir='${exec_prefix}/lib' |
| 1006 | localedir='${datarootdir}/locale' |
| 1007 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1008 | |
| 1009 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1010 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1011 | for ac_option |
| 1012 | do |
| 1013 | # If the previous option needs an argument, assign it. |
| 1014 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1015 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1016 | ac_prev= |
| 1017 | continue |
| 1018 | fi |
| 1019 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1020 | case $ac_option in |
| 1021 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1022 | *) ac_optarg=yes ;; |
| 1023 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1024 | |
| 1025 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1027 | case $ac_dashdash$ac_option in |
| 1028 | --) |
| 1029 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1030 | |
| 1031 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1032 | ac_prev=bindir ;; |
| 1033 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1034 | bindir=$ac_optarg ;; |
| 1035 | |
| 1036 | -build | --build | --buil | --bui | --bu) |
| 1037 | ac_prev=build_alias ;; |
| 1038 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1039 | build_alias=$ac_optarg ;; |
| 1040 | |
| 1041 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1042 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1043 | ac_prev=cache_file ;; |
| 1044 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1045 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1046 | cache_file=$ac_optarg ;; |
| 1047 | |
| 1048 | --config-cache | -C) |
| 1049 | cache_file=config.cache ;; |
| 1050 | |
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 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1053 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1054 | datadir=$ac_optarg ;; |
| 1055 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1056 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1057 | | --dataroo | --dataro | --datar) |
| 1058 | ac_prev=datarootdir ;; |
| 1059 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1060 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1061 | datarootdir=$ac_optarg ;; |
| 1062 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1063 | -disable-* | --disable-*) |
| 1064 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1065 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1066 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1067 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1068 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1069 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1070 | eval enable_$ac_feature=no ;; |
| 1071 | |
| 1072 | -docdir | --docdir | --docdi | --doc | --do) |
| 1073 | ac_prev=docdir ;; |
| 1074 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1075 | docdir=$ac_optarg ;; |
| 1076 | |
| 1077 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1078 | ac_prev=dvidir ;; |
| 1079 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1080 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1081 | |
| 1082 | -enable-* | --enable-*) |
| 1083 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1084 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1085 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1086 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1087 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1088 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1089 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1090 | |
| 1091 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1092 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1093 | | --exec | --exe | --ex) |
| 1094 | ac_prev=exec_prefix ;; |
| 1095 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1096 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1097 | | --exec=* | --exe=* | --ex=*) |
| 1098 | exec_prefix=$ac_optarg ;; |
| 1099 | |
| 1100 | -gas | --gas | --ga | --g) |
| 1101 | # Obsolete; use --with-gas. |
| 1102 | with_gas=yes ;; |
| 1103 | |
| 1104 | -help | --help | --hel | --he | -h) |
| 1105 | ac_init_help=long ;; |
| 1106 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1107 | ac_init_help=recursive ;; |
| 1108 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1109 | ac_init_help=short ;; |
| 1110 | |
| 1111 | -host | --host | --hos | --ho) |
| 1112 | ac_prev=host_alias ;; |
| 1113 | -host=* | --host=* | --hos=* | --ho=*) |
| 1114 | host_alias=$ac_optarg ;; |
| 1115 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1116 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1117 | ac_prev=htmldir ;; |
| 1118 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1119 | | --ht=*) |
| 1120 | htmldir=$ac_optarg ;; |
| 1121 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1122 | -includedir | --includedir | --includedi | --included | --include \ |
| 1123 | | --includ | --inclu | --incl | --inc) |
| 1124 | ac_prev=includedir ;; |
| 1125 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1126 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1127 | includedir=$ac_optarg ;; |
| 1128 | |
| 1129 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1130 | ac_prev=infodir ;; |
| 1131 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1132 | infodir=$ac_optarg ;; |
| 1133 | |
| 1134 | -libdir | --libdir | --libdi | --libd) |
| 1135 | ac_prev=libdir ;; |
| 1136 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1137 | libdir=$ac_optarg ;; |
| 1138 | |
| 1139 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1140 | | --libexe | --libex | --libe) |
| 1141 | ac_prev=libexecdir ;; |
| 1142 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1143 | | --libexe=* | --libex=* | --libe=*) |
| 1144 | libexecdir=$ac_optarg ;; |
| 1145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1146 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1147 | ac_prev=localedir ;; |
| 1148 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1149 | localedir=$ac_optarg ;; |
| 1150 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1151 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1152 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1153 | ac_prev=localstatedir ;; |
| 1154 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1155 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1156 | localstatedir=$ac_optarg ;; |
| 1157 | |
| 1158 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1159 | ac_prev=mandir ;; |
| 1160 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1161 | mandir=$ac_optarg ;; |
| 1162 | |
| 1163 | -nfp | --nfp | --nf) |
| 1164 | # Obsolete; use --without-fp. |
| 1165 | with_fp=no ;; |
| 1166 | |
| 1167 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1168 | | --no-cr | --no-c | -n) |
| 1169 | no_create=yes ;; |
| 1170 | |
| 1171 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1172 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1173 | no_recursion=yes ;; |
| 1174 | |
| 1175 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1176 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1177 | | --oldin | --oldi | --old | --ol | --o) |
| 1178 | ac_prev=oldincludedir ;; |
| 1179 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1180 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1181 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1182 | oldincludedir=$ac_optarg ;; |
| 1183 | |
| 1184 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1185 | ac_prev=prefix ;; |
| 1186 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1187 | prefix=$ac_optarg ;; |
| 1188 | |
| 1189 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1190 | | --program-pre | --program-pr | --program-p) |
| 1191 | ac_prev=program_prefix ;; |
| 1192 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1193 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1194 | program_prefix=$ac_optarg ;; |
| 1195 | |
| 1196 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1197 | | --program-suf | --program-su | --program-s) |
| 1198 | ac_prev=program_suffix ;; |
| 1199 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1200 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1201 | program_suffix=$ac_optarg ;; |
| 1202 | |
| 1203 | -program-transform-name | --program-transform-name \ |
| 1204 | | --program-transform-nam | --program-transform-na \ |
| 1205 | | --program-transform-n | --program-transform- \ |
| 1206 | | --program-transform | --program-transfor \ |
| 1207 | | --program-transfo | --program-transf \ |
| 1208 | | --program-trans | --program-tran \ |
| 1209 | | --progr-tra | --program-tr | --program-t) |
| 1210 | ac_prev=program_transform_name ;; |
| 1211 | -program-transform-name=* | --program-transform-name=* \ |
| 1212 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1213 | | --program-transform-n=* | --program-transform-=* \ |
| 1214 | | --program-transform=* | --program-transfor=* \ |
| 1215 | | --program-transfo=* | --program-transf=* \ |
| 1216 | | --program-trans=* | --program-tran=* \ |
| 1217 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1218 | program_transform_name=$ac_optarg ;; |
| 1219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1220 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1221 | ac_prev=pdfdir ;; |
| 1222 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1223 | pdfdir=$ac_optarg ;; |
| 1224 | |
| 1225 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1226 | ac_prev=psdir ;; |
| 1227 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1228 | psdir=$ac_optarg ;; |
| 1229 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1230 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1231 | | -silent | --silent | --silen | --sile | --sil) |
| 1232 | silent=yes ;; |
| 1233 | |
| 1234 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1235 | ac_prev=sbindir ;; |
| 1236 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1237 | | --sbi=* | --sb=*) |
| 1238 | sbindir=$ac_optarg ;; |
| 1239 | |
| 1240 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1241 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1242 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1243 | | --sha | --sh) |
| 1244 | ac_prev=sharedstatedir ;; |
| 1245 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1246 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1247 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1248 | | --sha=* | --sh=*) |
| 1249 | sharedstatedir=$ac_optarg ;; |
| 1250 | |
| 1251 | -site | --site | --sit) |
| 1252 | ac_prev=site ;; |
| 1253 | -site=* | --site=* | --sit=*) |
| 1254 | site=$ac_optarg ;; |
| 1255 | |
| 1256 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1257 | ac_prev=srcdir ;; |
| 1258 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1259 | srcdir=$ac_optarg ;; |
| 1260 | |
| 1261 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1262 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1263 | ac_prev=sysconfdir ;; |
| 1264 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1265 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1266 | sysconfdir=$ac_optarg ;; |
| 1267 | |
| 1268 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1269 | ac_prev=target_alias ;; |
| 1270 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1271 | target_alias=$ac_optarg ;; |
| 1272 | |
| 1273 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1274 | verbose=yes ;; |
| 1275 | |
| 1276 | -version | --version | --versio | --versi | --vers | -V) |
| 1277 | ac_init_version=: ;; |
| 1278 | |
| 1279 | -with-* | --with-*) |
| 1280 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1281 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1282 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1283 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1284 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1285 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1286 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1287 | |
| 1288 | -without-* | --without-*) |
| 1289 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1290 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1291 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1292 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1293 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1294 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1295 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1296 | |
| 1297 | --x) |
| 1298 | # Obsolete; use --with-x. |
| 1299 | with_x=yes ;; |
| 1300 | |
| 1301 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1302 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1303 | ac_prev=x_includes ;; |
| 1304 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1305 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1306 | x_includes=$ac_optarg ;; |
| 1307 | |
| 1308 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1309 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1310 | ac_prev=x_libraries ;; |
| 1311 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1312 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1313 | x_libraries=$ac_optarg ;; |
| 1314 | |
| 1315 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1316 | Try \`$0 --help' for more information." >&2 |
| 1317 | { (exit 1); exit 1; }; } |
| 1318 | ;; |
| 1319 | |
| 1320 | *=*) |
| 1321 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1322 | # Reject names that are not valid shell variable names. |
| 1323 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1324 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1325 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1326 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1327 | export $ac_envvar ;; |
| 1328 | |
| 1329 | *) |
| 1330 | # FIXME: should be removed in autoconf 3.0. |
| 1331 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1332 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1333 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1334 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1335 | ;; |
| 1336 | |
| 1337 | esac |
| 1338 | done |
| 1339 | |
| 1340 | if test -n "$ac_prev"; then |
| 1341 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1342 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1343 | { (exit 1); exit 1; }; } |
| 1344 | fi |
| 1345 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1346 | # Be sure to have absolute directory names. |
| 1347 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1348 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1349 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1350 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1351 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1352 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1353 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1354 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1355 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1356 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1357 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1358 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1359 | done |
| 1360 | |
| 1361 | # There might be people who depend on the old broken behavior: `$host' |
| 1362 | # used to hold the argument of --host etc. |
| 1363 | # FIXME: To remove some day. |
| 1364 | build=$build_alias |
| 1365 | host=$host_alias |
| 1366 | target=$target_alias |
| 1367 | |
| 1368 | # FIXME: To remove some day. |
| 1369 | if test "x$host_alias" != x; then |
| 1370 | if test "x$build_alias" = x; then |
| 1371 | cross_compiling=maybe |
| 1372 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1373 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1374 | elif test "x$build_alias" != "x$host_alias"; then |
| 1375 | cross_compiling=yes |
| 1376 | fi |
| 1377 | fi |
| 1378 | |
| 1379 | ac_tool_prefix= |
| 1380 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1381 | |
| 1382 | test "$silent" = yes && exec 6>/dev/null |
| 1383 | |
| 1384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1385 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1386 | ac_ls_di=`ls -di .` && |
| 1387 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1388 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1389 | { (exit 1); exit 1; }; } |
| 1390 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1391 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1392 | { (exit 1); exit 1; }; } |
| 1393 | |
| 1394 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1395 | # Find the source files, if location was not specified. |
| 1396 | if test -z "$srcdir"; then |
| 1397 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1398 | # Try the directory containing this script, then the parent directory. |
| 1399 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1400 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1401 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1402 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1404 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1406 | s//\1/ |
| 1407 | q |
| 1408 | } |
| 1409 | /^X\(\/\/\)[^/].*/{ |
| 1410 | s//\1/ |
| 1411 | q |
| 1412 | } |
| 1413 | /^X\(\/\/\)$/{ |
| 1414 | s//\1/ |
| 1415 | q |
| 1416 | } |
| 1417 | /^X\(\/\).*/{ |
| 1418 | s//\1/ |
| 1419 | q |
| 1420 | } |
| 1421 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1422 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1423 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1424 | srcdir=.. |
| 1425 | fi |
| 1426 | else |
| 1427 | ac_srcdir_defaulted=no |
| 1428 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1429 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1430 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1431 | { 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] | 1432 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1433 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1434 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1435 | ac_abs_confdir=`( |
| 1436 | 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] | 1437 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1438 | pwd)` |
| 1439 | # When building in place, set srcdir=. |
| 1440 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1441 | srcdir=. |
| 1442 | fi |
| 1443 | # Remove unnecessary trailing slashes from srcdir. |
| 1444 | # Double slashes in file names in object file debugging info |
| 1445 | # mess up M-x gdb in Emacs. |
| 1446 | case $srcdir in |
| 1447 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1448 | esac |
| 1449 | for ac_var in $ac_precious_vars; do |
| 1450 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1451 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1452 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1453 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1454 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1455 | |
| 1456 | # |
| 1457 | # Report the --help message. |
| 1458 | # |
| 1459 | if test "$ac_init_help" = "long"; then |
| 1460 | # Omit some internal or obsolete options to make the list less imposing. |
| 1461 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1462 | cat <<_ACEOF |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 1463 | \`configure' configures llvm 2.4svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1464 | |
| 1465 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1466 | |
| 1467 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1468 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1469 | |
| 1470 | Defaults for the options are specified in brackets. |
| 1471 | |
| 1472 | Configuration: |
| 1473 | -h, --help display this help and exit |
| 1474 | --help=short display options specific to this package |
| 1475 | --help=recursive display the short help of all the included packages |
| 1476 | -V, --version display version information and exit |
| 1477 | -q, --quiet, --silent do not print \`checking...' messages |
| 1478 | --cache-file=FILE cache test results in FILE [disabled] |
| 1479 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1480 | -n, --no-create do not create output files |
| 1481 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1482 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1483 | Installation directories: |
| 1484 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1485 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1486 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1487 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1488 | |
| 1489 | By default, \`make install' will install all the files in |
| 1490 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1491 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1492 | for instance \`--prefix=\$HOME'. |
| 1493 | |
| 1494 | For better control, use the options below. |
| 1495 | |
| 1496 | Fine tuning of the installation directories: |
| 1497 | --bindir=DIR user executables [EPREFIX/bin] |
| 1498 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1499 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1500 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1501 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1502 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1503 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1504 | --includedir=DIR C header files [PREFIX/include] |
| 1505 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1506 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1507 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1508 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1509 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1510 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1511 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1512 | --htmldir=DIR html documentation [DOCDIR] |
| 1513 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1514 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1515 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1516 | _ACEOF |
| 1517 | |
| 1518 | cat <<\_ACEOF |
| 1519 | |
| 1520 | System types: |
| 1521 | --build=BUILD configure for building on BUILD [guessed] |
| 1522 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1523 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1524 | _ACEOF |
| 1525 | fi |
| 1526 | |
| 1527 | if test -n "$ac_init_help"; then |
| 1528 | case $ac_init_help in |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 1529 | short | recursive ) echo "Configuration of llvm 2.4svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | esac |
| 1531 | cat <<\_ACEOF |
| 1532 | |
| 1533 | Optional Features: |
| 1534 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1535 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1536 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1537 | --enable-assertions |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1538 | --enable-expensive-checks |
| 1539 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 1540 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1541 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1542 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1543 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1544 | --enable-pic Build LLVM with Position Independent Code (default |
| 1545 | is NO) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1546 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1547 | all,host-only,{target-name} (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1548 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1549 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1550 | --enable-bindings Build specific language bindings: |
| 1551 | all,auto,none,{binding-name} (default=auto) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1552 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1553 | --enable-shared[=PKGS] build shared libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1554 | [default=yes] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1555 | --enable-static[=PKGS] build static libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1556 | [default=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1557 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1558 | optimize for fast installation |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1559 | [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1560 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1561 | |
| 1562 | Optional Packages: |
| 1563 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1564 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1565 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1566 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1567 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1568 | searches PATH) |
| 1569 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1570 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1571 | --with-extra-options Specify addtional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1572 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1573 | is stdlib) |
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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1591 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1592 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1593 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1594 | This script will default YFLAGS to the empty string to avoid a |
| 1595 | default value of `-d' given by some make applications. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1596 | CXXCPP C++ preprocessor |
| 1597 | F77 Fortran 77 compiler command |
| 1598 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1599 | |
| 1600 | Use these variables to override the choices made by `configure' or to help |
| 1601 | it to find libraries and programs with nonstandard names/locations. |
| 1602 | |
| 1603 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1604 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1605 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1606 | fi |
| 1607 | |
| 1608 | if test "$ac_init_help" = "recursive"; then |
| 1609 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | 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] | 1611 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1612 | ac_builddir=. |
| 1613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1614 | case "$ac_dir" in |
| 1615 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1616 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1617 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1618 | # A ".." for each directory in $ac_dir_suffix. |
| 1619 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1620 | case $ac_top_builddir_sub in |
| 1621 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1622 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1623 | esac ;; |
| 1624 | esac |
| 1625 | ac_abs_top_builddir=$ac_pwd |
| 1626 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1627 | # for backward compatibility: |
| 1628 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1629 | |
| 1630 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1631 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1632 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1633 | ac_top_srcdir=$ac_top_builddir_sub |
| 1634 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1635 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1636 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1637 | ac_top_srcdir=$srcdir |
| 1638 | ac_abs_top_srcdir=$srcdir ;; |
| 1639 | *) # Relative name. |
| 1640 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1641 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1642 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1643 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1644 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1646 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1647 | # Check for guested configure. |
| 1648 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1649 | echo && |
| 1650 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1651 | elif test -f "$ac_srcdir/configure"; then |
| 1652 | echo && |
| 1653 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1654 | else |
| 1655 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1656 | fi || ac_status=$? |
| 1657 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1658 | done |
| 1659 | fi |
| 1660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1661 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1662 | if $ac_init_version; then |
| 1663 | cat <<\_ACEOF |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 1664 | llvm configure 2.4svn |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1665 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1667 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1668 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1669 | This configure script is free software; the Free Software Foundation |
| 1670 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1671 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1672 | Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1673 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1674 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1675 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1676 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1677 | This file contains any messages produced by compilers while |
| 1678 | running configure, to aid debugging if configure makes a mistake. |
| 1679 | |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 1680 | It was created by llvm $as_me 2.4svn, which was |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1681 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1682 | |
| 1683 | $ $0 $@ |
| 1684 | |
| 1685 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1686 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1687 | { |
| 1688 | cat <<_ASUNAME |
| 1689 | ## --------- ## |
| 1690 | ## Platform. ## |
| 1691 | ## --------- ## |
| 1692 | |
| 1693 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1694 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1695 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1696 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1697 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1698 | |
| 1699 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1700 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1701 | |
| 1702 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1703 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1704 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1705 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1706 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1707 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1708 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1709 | |
| 1710 | _ASUNAME |
| 1711 | |
| 1712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1713 | for as_dir in $PATH |
| 1714 | do |
| 1715 | IFS=$as_save_IFS |
| 1716 | test -z "$as_dir" && as_dir=. |
| 1717 | echo "PATH: $as_dir" |
| 1718 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1719 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1720 | |
| 1721 | } >&5 |
| 1722 | |
| 1723 | cat >&5 <<_ACEOF |
| 1724 | |
| 1725 | |
| 1726 | ## ----------- ## |
| 1727 | ## Core tests. ## |
| 1728 | ## ----------- ## |
| 1729 | |
| 1730 | _ACEOF |
| 1731 | |
| 1732 | |
| 1733 | # Keep a trace of the command line. |
| 1734 | # 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] | 1735 | # 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] | 1736 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1737 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1738 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1739 | ac_configure_args0= |
| 1740 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1741 | ac_must_keep_next=false |
| 1742 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1743 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1744 | for ac_arg |
| 1745 | do |
| 1746 | case $ac_arg in |
| 1747 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1748 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1749 | | -silent | --silent | --silen | --sile | --sil) |
| 1750 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1751 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1752 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1753 | esac |
| 1754 | case $ac_pass in |
| 1755 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1756 | 2) |
| 1757 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1758 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1759 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1760 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1761 | case $ac_arg in |
| 1762 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1763 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1764 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1765 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1766 | case "$ac_configure_args0 " in |
| 1767 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1768 | esac |
| 1769 | ;; |
| 1770 | -* ) ac_must_keep_next=true ;; |
| 1771 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1772 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1773 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1774 | ;; |
| 1775 | esac |
| 1776 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1777 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1778 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1779 | $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] | 1780 | |
| 1781 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1782 | # config.log. We remove comments because anyway the quotes in there |
| 1783 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1784 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1785 | # 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] | 1786 | trap 'exit_status=$? |
| 1787 | # Save into config.log some information that might help in debugging. |
| 1788 | { |
| 1789 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1790 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1791 | cat <<\_ASBOX |
| 1792 | ## ---------------- ## |
| 1793 | ## Cache variables. ## |
| 1794 | ## ---------------- ## |
| 1795 | _ASBOX |
| 1796 | echo |
| 1797 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1798 | ( |
| 1799 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1800 | eval ac_val=\$$ac_var |
| 1801 | case $ac_val in #( |
| 1802 | *${as_nl}*) |
| 1803 | case $ac_var in #( |
| 1804 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1805 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1806 | esac |
| 1807 | case $ac_var in #( |
| 1808 | _ | IFS | as_nl) ;; #( |
| 1809 | *) $as_unset $ac_var ;; |
| 1810 | esac ;; |
| 1811 | esac |
| 1812 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1813 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1814 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1815 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1816 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1817 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1818 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1819 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1820 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1821 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1822 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1823 | esac | |
| 1824 | sort |
| 1825 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1826 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1827 | |
| 1828 | cat <<\_ASBOX |
| 1829 | ## ----------------- ## |
| 1830 | ## Output variables. ## |
| 1831 | ## ----------------- ## |
| 1832 | _ASBOX |
| 1833 | echo |
| 1834 | for ac_var in $ac_subst_vars |
| 1835 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1836 | eval ac_val=\$$ac_var |
| 1837 | case $ac_val in |
| 1838 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1839 | esac |
| 1840 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1841 | done | sort |
| 1842 | echo |
| 1843 | |
| 1844 | if test -n "$ac_subst_files"; then |
| 1845 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1846 | ## ------------------- ## |
| 1847 | ## File substitutions. ## |
| 1848 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1849 | _ASBOX |
| 1850 | echo |
| 1851 | for ac_var in $ac_subst_files |
| 1852 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1853 | eval ac_val=\$$ac_var |
| 1854 | case $ac_val in |
| 1855 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1856 | esac |
| 1857 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1858 | done | sort |
| 1859 | echo |
| 1860 | fi |
| 1861 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1862 | if test -s confdefs.h; then |
| 1863 | cat <<\_ASBOX |
| 1864 | ## ----------- ## |
| 1865 | ## confdefs.h. ## |
| 1866 | ## ----------- ## |
| 1867 | _ASBOX |
| 1868 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1869 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1870 | echo |
| 1871 | fi |
| 1872 | test "$ac_signal" != 0 && |
| 1873 | echo "$as_me: caught signal $ac_signal" |
| 1874 | echo "$as_me: exit $exit_status" |
| 1875 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1876 | rm -f core *.core core.conftest.* && |
| 1877 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1878 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1879 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1880 | for ac_signal in 1 2 13 15; do |
| 1881 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1882 | done |
| 1883 | ac_signal=0 |
| 1884 | |
| 1885 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1886 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1887 | |
| 1888 | # Predefined preprocessor variables. |
| 1889 | |
| 1890 | cat >>confdefs.h <<_ACEOF |
| 1891 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1892 | _ACEOF |
| 1893 | |
| 1894 | |
| 1895 | cat >>confdefs.h <<_ACEOF |
| 1896 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1897 | _ACEOF |
| 1898 | |
| 1899 | |
| 1900 | cat >>confdefs.h <<_ACEOF |
| 1901 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1902 | _ACEOF |
| 1903 | |
| 1904 | |
| 1905 | cat >>confdefs.h <<_ACEOF |
| 1906 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1907 | _ACEOF |
| 1908 | |
| 1909 | |
| 1910 | cat >>confdefs.h <<_ACEOF |
| 1911 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1912 | _ACEOF |
| 1913 | |
| 1914 | |
| 1915 | # Let the site file select an alternate cache file if it wants to. |
| 1916 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1917 | if test -n "$CONFIG_SITE"; then |
| 1918 | set x "$CONFIG_SITE" |
| 1919 | elif test "x$prefix" != xNONE; then |
| 1920 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1921 | else |
| 1922 | set x "$ac_default_prefix/share/config.site" \ |
| 1923 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1924 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1925 | shift |
| 1926 | for ac_site_file |
| 1927 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1928 | if test -r "$ac_site_file"; then |
| 1929 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1930 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1931 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1932 | . "$ac_site_file" |
| 1933 | fi |
| 1934 | done |
| 1935 | |
| 1936 | if test -r "$cache_file"; then |
| 1937 | # Some versions of bash will fail to source /dev/null (special |
| 1938 | # files actually), so we avoid doing that. |
| 1939 | if test -f "$cache_file"; then |
| 1940 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1941 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1942 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1943 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1944 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1945 | esac |
| 1946 | fi |
| 1947 | else |
| 1948 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1949 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1950 | >$cache_file |
| 1951 | fi |
| 1952 | |
| 1953 | # Check that the precious variables saved in the cache have kept the same |
| 1954 | # value. |
| 1955 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1956 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1957 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1958 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1959 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1960 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1961 | case $ac_old_set,$ac_new_set in |
| 1962 | set,) |
| 1963 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1964 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1965 | ac_cache_corrupted=: ;; |
| 1966 | ,set) |
| 1967 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1968 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1969 | ac_cache_corrupted=: ;; |
| 1970 | ,);; |
| 1971 | *) |
| 1972 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1973 | { 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] | 1974 | 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] | 1975 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1976 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1977 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1978 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1979 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1980 | fi;; |
| 1981 | esac |
| 1982 | # Pass precious variables to config.status. |
| 1983 | if test "$ac_new_set" = set; then |
| 1984 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1985 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1986 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1987 | esac |
| 1988 | case " $ac_configure_args " in |
| 1989 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1990 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1991 | esac |
| 1992 | fi |
| 1993 | done |
| 1994 | if $ac_cache_corrupted; then |
| 1995 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1996 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1997 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1998 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1999 | { (exit 1); exit 1; }; } |
| 2000 | fi |
| 2001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2002 | |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | |
| 2024 | |
| 2025 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2026 | ac_ext=c |
| 2027 | ac_cpp='$CPP $CPPFLAGS' |
| 2028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2031 | |
| 2032 | |
| 2033 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2034 | LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2042 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2043 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2044 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2045 | ac_aux_dir=$ac_dir |
| 2046 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2047 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2048 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2049 | ac_aux_dir=$ac_dir |
| 2050 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2051 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2052 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2053 | ac_aux_dir=$ac_dir |
| 2054 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2055 | break |
| 2056 | fi |
| 2057 | done |
| 2058 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2059 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2060 | 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] | 2061 | { (exit 1); exit 1; }; } |
| 2062 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2063 | |
| 2064 | # These three variables are undocumented and unsupported, |
| 2065 | # and are intended to be withdrawn in a future Autoconf release. |
| 2066 | # They can cause serious problems if a builder's source tree is in a directory |
| 2067 | # whose full name contains unusual characters. |
| 2068 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2069 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2070 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2071 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2072 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2073 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2074 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2075 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2076 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2077 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2078 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2079 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2080 | fi |
| 2081 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2082 | for i in `ls ${srcdir}/projects` |
| 2083 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2084 | if test -d ${srcdir}/projects/${i} ; then |
| 2085 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2086 | CVS) ;; |
| 2087 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2088 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2089 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2090 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2091 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2092 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 2093 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 2094 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2095 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2096 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 2097 | test-suite) subdirs="$subdirs projects/test-suite" |
| 2098 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2099 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2100 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2101 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2102 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2103 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2104 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2105 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2106 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2107 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2108 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2109 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2110 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2111 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2112 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2113 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2114 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2115 | 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] | 2116 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2117 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2118 | fi |
| 2119 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2120 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2121 | |
| 2122 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2123 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2124 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2125 | 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] | 2126 | { (exit 1); exit 1; }; } |
| 2127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2128 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2129 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2130 | if test "${ac_cv_build+set}" = set; then |
| 2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2132 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2133 | ac_build_alias=$build_alias |
| 2134 | test "x$ac_build_alias" = x && |
| 2135 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2136 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2137 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2138 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2139 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2140 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2141 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2142 | 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] | 2143 | { (exit 1); exit 1; }; } |
| 2144 | |
| 2145 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2146 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2147 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2148 | case $ac_cv_build in |
| 2149 | *-*-*) ;; |
| 2150 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2151 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2152 | { (exit 1); exit 1; }; };; |
| 2153 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2154 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2155 | ac_save_IFS=$IFS; IFS='-' |
| 2156 | set x $ac_cv_build |
| 2157 | shift |
| 2158 | build_cpu=$1 |
| 2159 | build_vendor=$2 |
| 2160 | shift; shift |
| 2161 | # Remember, the first character of IFS is used to create $*, |
| 2162 | # except with old shells: |
| 2163 | build_os=$* |
| 2164 | IFS=$ac_save_IFS |
| 2165 | 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] | 2166 | |
| 2167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2169 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2170 | if test "${ac_cv_host+set}" = set; then |
| 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2172 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2173 | if test "x$host_alias" = x; then |
| 2174 | ac_cv_host=$ac_cv_build |
| 2175 | else |
| 2176 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2177 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2178 | 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] | 2179 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2180 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2181 | |
| 2182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2183 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2184 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2185 | case $ac_cv_host in |
| 2186 | *-*-*) ;; |
| 2187 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2188 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2189 | { (exit 1); exit 1; }; };; |
| 2190 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2191 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2192 | ac_save_IFS=$IFS; IFS='-' |
| 2193 | set x $ac_cv_host |
| 2194 | shift |
| 2195 | host_cpu=$1 |
| 2196 | host_vendor=$2 |
| 2197 | shift; shift |
| 2198 | # Remember, the first character of IFS is used to create $*, |
| 2199 | # except with old shells: |
| 2200 | host_os=$* |
| 2201 | IFS=$ac_save_IFS |
| 2202 | 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] | 2203 | |
| 2204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2205 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2206 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2207 | if test "${ac_cv_target+set}" = set; then |
| 2208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2209 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2210 | if test "x$target_alias" = x; then |
| 2211 | ac_cv_target=$ac_cv_host |
| 2212 | else |
| 2213 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2214 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2215 | 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] | 2216 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2217 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2218 | |
| 2219 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2220 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2221 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2222 | case $ac_cv_target in |
| 2223 | *-*-*) ;; |
| 2224 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2225 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2226 | { (exit 1); exit 1; }; };; |
| 2227 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2228 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2229 | ac_save_IFS=$IFS; IFS='-' |
| 2230 | set x $ac_cv_target |
| 2231 | shift |
| 2232 | target_cpu=$1 |
| 2233 | target_vendor=$2 |
| 2234 | shift; shift |
| 2235 | # Remember, the first character of IFS is used to create $*, |
| 2236 | # except with old shells: |
| 2237 | target_os=$* |
| 2238 | IFS=$ac_save_IFS |
| 2239 | 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] | 2240 | |
| 2241 | |
| 2242 | # The aliases save the names the user supplied, while $host etc. |
| 2243 | # will get canonicalized. |
| 2244 | test -n "$target_alias" && |
| 2245 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2246 | NONENONEs,x,x, && |
| 2247 | program_prefix=${target_alias}- |
| 2248 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2249 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2250 | 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] | 2251 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2253 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2254 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2255 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2256 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2257 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2258 | llvm_cv_os_type="AIX" |
| 2259 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2260 | *-*-irix*) |
| 2261 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2262 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2263 | llvm_cv_os_type="IRIX" |
| 2264 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2265 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2266 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2267 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2268 | llvm_cv_os_type="Cygwin" |
| 2269 | llvm_cv_platform_type="Unix" ;; |
| 2270 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2271 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2272 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2273 | llvm_cv_os_type="Darwin" |
| 2274 | llvm_cv_platform_type="Unix" ;; |
| 2275 | *-*-freebsd*) |
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 | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2278 | llvm_cv_os_type="FreeBSD" |
| 2279 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2280 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2281 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2282 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2283 | llvm_cv_os_type="OpenBSD" |
| 2284 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2285 | *-*-netbsd*) |
| 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="NetBSD" |
| 2289 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2290 | *-*-dragonfly*) |
| 2291 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2292 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2293 | llvm_cv_os_type="DragonFly" |
| 2294 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2295 | *-*-hpux*) |
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" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2298 | llvm_cv_os_type="HP-UX" |
| 2299 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2300 | *-*-interix*) |
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="Interix" |
| 2304 | llvm_cv_platform_type="Unix" ;; |
| 2305 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2306 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2307 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2308 | llvm_cv_os_type="Linux" |
| 2309 | llvm_cv_platform_type="Unix" ;; |
| 2310 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2311 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2312 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2313 | llvm_cv_os_type="SunOS" |
| 2314 | llvm_cv_platform_type="Unix" ;; |
| 2315 | *-*-win32*) |
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="Win32" |
| 2319 | llvm_cv_platform_type="Win32" ;; |
| 2320 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2321 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2322 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2323 | llvm_cv_os_type="MingW" |
| 2324 | llvm_cv_platform_type="Win32" ;; |
| 2325 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2326 | llvm_cv_link_all_option="" |
| 2327 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2328 | llvm_cv_os_type="Unknown" |
| 2329 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2330 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2331 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2332 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2333 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2334 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2335 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2336 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2337 | 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] | 2338 | { (exit 1); exit 1; }; } |
| 2339 | fi |
| 2340 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2341 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2342 | |
| 2343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2344 | LINKALL=$llvm_cv_link_all_option |
| 2345 | |
| 2346 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2347 | |
| 2348 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2349 | case $llvm_cv_platform_type in |
| 2350 | Unix) |
| 2351 | |
| 2352 | cat >>confdefs.h <<\_ACEOF |
| 2353 | #define LLVM_ON_UNIX 1 |
| 2354 | _ACEOF |
| 2355 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2356 | LLVM_ON_UNIX=1 |
| 2357 | |
| 2358 | LLVM_ON_WIN32=0 |
| 2359 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2360 | ;; |
| 2361 | Win32) |
| 2362 | |
| 2363 | cat >>confdefs.h <<\_ACEOF |
| 2364 | #define LLVM_ON_WIN32 1 |
| 2365 | _ACEOF |
| 2366 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2367 | LLVM_ON_UNIX=0 |
| 2368 | |
| 2369 | LLVM_ON_WIN32=1 |
| 2370 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2371 | ;; |
| 2372 | esac |
| 2373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2374 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2375 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2376 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2378 | else |
| 2379 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2380 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2381 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2382 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2383 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2384 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2385 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 2386 | arm-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2387 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2388 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2389 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2390 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2391 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2392 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2393 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2394 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2395 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2396 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2397 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2398 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2399 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2400 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2401 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2402 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2403 | ac_ext=c |
| 2404 | ac_cpp='$CPP $CPPFLAGS' |
| 2405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2408 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2409 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2410 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2411 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2413 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2415 | else |
| 2416 | if test -n "$CC"; then |
| 2417 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2418 | else |
| 2419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2420 | for as_dir in $PATH |
| 2421 | do |
| 2422 | IFS=$as_save_IFS |
| 2423 | test -z "$as_dir" && as_dir=. |
| 2424 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2425 | 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] | 2426 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2428 | break 2 |
| 2429 | fi |
| 2430 | done |
| 2431 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2432 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2433 | |
| 2434 | fi |
| 2435 | fi |
| 2436 | CC=$ac_cv_prog_CC |
| 2437 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2438 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2439 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2440 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2441 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2442 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2443 | fi |
| 2444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2445 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2446 | fi |
| 2447 | if test -z "$ac_cv_prog_CC"; then |
| 2448 | ac_ct_CC=$CC |
| 2449 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2450 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2451 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2452 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2453 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2455 | else |
| 2456 | if test -n "$ac_ct_CC"; then |
| 2457 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2458 | else |
| 2459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2460 | for as_dir in $PATH |
| 2461 | do |
| 2462 | IFS=$as_save_IFS |
| 2463 | test -z "$as_dir" && as_dir=. |
| 2464 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2465 | 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] | 2466 | ac_cv_prog_ac_ct_CC="gcc" |
| 2467 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2468 | break 2 |
| 2469 | fi |
| 2470 | done |
| 2471 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2472 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2473 | |
| 2474 | fi |
| 2475 | fi |
| 2476 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2477 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2478 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2479 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2480 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2481 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2482 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2483 | fi |
| 2484 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2485 | if test "x$ac_ct_CC" = x; then |
| 2486 | CC="" |
| 2487 | else |
| 2488 | case $cross_compiling:$ac_tool_warned in |
| 2489 | yes:) |
| 2490 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2491 | whose name does not start with the host triplet. If you think this |
| 2492 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2493 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2494 | whose name does not start with the host triplet. If you think this |
| 2495 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2496 | ac_tool_warned=yes ;; |
| 2497 | esac |
| 2498 | CC=$ac_ct_CC |
| 2499 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2500 | else |
| 2501 | CC="$ac_cv_prog_CC" |
| 2502 | fi |
| 2503 | |
| 2504 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2505 | if test -n "$ac_tool_prefix"; then |
| 2506 | # 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] | 2507 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2508 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2510 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2512 | else |
| 2513 | if test -n "$CC"; then |
| 2514 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2515 | else |
| 2516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2517 | for as_dir in $PATH |
| 2518 | do |
| 2519 | IFS=$as_save_IFS |
| 2520 | test -z "$as_dir" && as_dir=. |
| 2521 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2522 | 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] | 2523 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2525 | break 2 |
| 2526 | fi |
| 2527 | done |
| 2528 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2529 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2530 | |
| 2531 | fi |
| 2532 | fi |
| 2533 | CC=$ac_cv_prog_CC |
| 2534 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2535 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2536 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2537 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2538 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2539 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2540 | fi |
| 2541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2542 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2543 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2544 | fi |
| 2545 | if test -z "$CC"; then |
| 2546 | # Extract the first word of "cc", so it can be a program name with args. |
| 2547 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2548 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2550 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2552 | else |
| 2553 | if test -n "$CC"; then |
| 2554 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2555 | else |
| 2556 | ac_prog_rejected=no |
| 2557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2558 | for as_dir in $PATH |
| 2559 | do |
| 2560 | IFS=$as_save_IFS |
| 2561 | test -z "$as_dir" && as_dir=. |
| 2562 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2563 | 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] | 2564 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2565 | ac_prog_rejected=yes |
| 2566 | continue |
| 2567 | fi |
| 2568 | ac_cv_prog_CC="cc" |
| 2569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2570 | break 2 |
| 2571 | fi |
| 2572 | done |
| 2573 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2574 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2575 | |
| 2576 | if test $ac_prog_rejected = yes; then |
| 2577 | # We found a bogon in the path, so make sure we never use it. |
| 2578 | set dummy $ac_cv_prog_CC |
| 2579 | shift |
| 2580 | if test $# != 0; then |
| 2581 | # We chose a different compiler from the bogus one. |
| 2582 | # However, it has the same basename, so the bogon will be chosen |
| 2583 | # first if we set CC to just the basename; use the full file name. |
| 2584 | shift |
| 2585 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2586 | fi |
| 2587 | fi |
| 2588 | fi |
| 2589 | fi |
| 2590 | CC=$ac_cv_prog_CC |
| 2591 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2592 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2593 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2594 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2595 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2596 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2597 | fi |
| 2598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2599 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2600 | fi |
| 2601 | if test -z "$CC"; then |
| 2602 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2603 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2604 | do |
| 2605 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2606 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2607 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2609 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2611 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2612 | if test -n "$CC"; then |
| 2613 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2614 | else |
| 2615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2616 | for as_dir in $PATH |
| 2617 | do |
| 2618 | IFS=$as_save_IFS |
| 2619 | test -z "$as_dir" && as_dir=. |
| 2620 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2621 | 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] | 2622 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2624 | break 2 |
| 2625 | fi |
| 2626 | done |
| 2627 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2628 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2629 | |
| 2630 | fi |
| 2631 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2632 | CC=$ac_cv_prog_CC |
| 2633 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2634 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2635 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2636 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2637 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2638 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2639 | fi |
| 2640 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2641 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2642 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2643 | done |
| 2644 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2645 | if test -z "$CC"; then |
| 2646 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2647 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2648 | do |
| 2649 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2650 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2651 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2653 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2655 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2656 | if test -n "$ac_ct_CC"; then |
| 2657 | 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] | 2658 | else |
| 2659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2660 | for as_dir in $PATH |
| 2661 | do |
| 2662 | IFS=$as_save_IFS |
| 2663 | test -z "$as_dir" && as_dir=. |
| 2664 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2665 | 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] | 2666 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2668 | break 2 |
| 2669 | fi |
| 2670 | done |
| 2671 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2672 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2673 | |
| 2674 | fi |
| 2675 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2676 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2677 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2678 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2679 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2680 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2681 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2682 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2683 | fi |
| 2684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2685 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2686 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2687 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2689 | if test "x$ac_ct_CC" = x; then |
| 2690 | CC="" |
| 2691 | else |
| 2692 | case $cross_compiling:$ac_tool_warned in |
| 2693 | yes:) |
| 2694 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2695 | whose name does not start with the host triplet. If you think this |
| 2696 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2697 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2698 | whose name does not start with the host triplet. If you think this |
| 2699 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2700 | ac_tool_warned=yes ;; |
| 2701 | esac |
| 2702 | CC=$ac_ct_CC |
| 2703 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2704 | fi |
| 2705 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2706 | fi |
| 2707 | |
| 2708 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2709 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2710 | See \`config.log' for more details." >&5 |
| 2711 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2712 | See \`config.log' for more details." >&2;} |
| 2713 | { (exit 1); exit 1; }; } |
| 2714 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2716 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2717 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2718 | { (ac_try="$ac_compiler --version >&5" |
| 2719 | case "(($ac_try" in |
| 2720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2721 | *) ac_try_echo=$ac_try;; |
| 2722 | esac |
| 2723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2724 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2725 | ac_status=$? |
| 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2727 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2728 | { (ac_try="$ac_compiler -v >&5" |
| 2729 | case "(($ac_try" in |
| 2730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2731 | *) ac_try_echo=$ac_try;; |
| 2732 | esac |
| 2733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2734 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2735 | ac_status=$? |
| 2736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2737 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2738 | { (ac_try="$ac_compiler -V >&5" |
| 2739 | case "(($ac_try" in |
| 2740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2741 | *) ac_try_echo=$ac_try;; |
| 2742 | esac |
| 2743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2744 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2745 | ac_status=$? |
| 2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2747 | (exit $ac_status); } |
| 2748 | |
| 2749 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2750 | /* confdefs.h. */ |
| 2751 | _ACEOF |
| 2752 | cat confdefs.h >>conftest.$ac_ext |
| 2753 | cat >>conftest.$ac_ext <<_ACEOF |
| 2754 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2755 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2756 | int |
| 2757 | main () |
| 2758 | { |
| 2759 | |
| 2760 | ; |
| 2761 | return 0; |
| 2762 | } |
| 2763 | _ACEOF |
| 2764 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2765 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2766 | # Try to create an executable without -o first, disregard a.out. |
| 2767 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2768 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2769 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2770 | 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] | 2771 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2772 | # |
| 2773 | # List of possible output files, starting from the most likely. |
| 2774 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2775 | # only as a last resort. b.out is created by i960 compilers. |
| 2776 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2777 | # |
| 2778 | # The IRIX 6 linker writes into existing files which may not be |
| 2779 | # executable, retaining their permissions. Remove them first so a |
| 2780 | # subsequent execution test works. |
| 2781 | ac_rmfiles= |
| 2782 | for ac_file in $ac_files |
| 2783 | do |
| 2784 | case $ac_file in |
| 2785 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2786 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2787 | esac |
| 2788 | done |
| 2789 | rm -f $ac_rmfiles |
| 2790 | |
| 2791 | if { (ac_try="$ac_link_default" |
| 2792 | case "(($ac_try" in |
| 2793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2794 | *) ac_try_echo=$ac_try;; |
| 2795 | esac |
| 2796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2797 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2798 | ac_status=$? |
| 2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2800 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2801 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2802 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2803 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2804 | # so that the user can short-circuit this test for compilers unknown to |
| 2805 | # Autoconf. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2806 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2807 | do |
| 2808 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2809 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2810 | *.$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] | 2811 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2812 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2813 | # We found the default executable, but exeext='' is most |
| 2814 | # certainly right. |
| 2815 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2816 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2817 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2818 | then :; else |
| 2819 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2820 | fi |
| 2821 | # We set ac_cv_exeext here because the later test for it is not |
| 2822 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2823 | # argument, so we may need to know it at that point already. |
| 2824 | # Even if this section looks crufty: it has the advantage of |
| 2825 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2826 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2827 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2828 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2829 | esac |
| 2830 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2831 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2832 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2833 | else |
| 2834 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2836 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2837 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2838 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2839 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2840 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2841 | { (exit 77); exit 77; }; } |
| 2842 | fi |
| 2843 | |
| 2844 | ac_exeext=$ac_cv_exeext |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2845 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2846 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2848 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2849 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2850 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2851 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2852 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2853 | # If not cross compiling, check that we can run a simple program. |
| 2854 | if test "$cross_compiling" != yes; then |
| 2855 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2856 | { (case "(($ac_try" in |
| 2857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2858 | *) ac_try_echo=$ac_try;; |
| 2859 | esac |
| 2860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2861 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2862 | ac_status=$? |
| 2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2864 | (exit $ac_status); }; }; then |
| 2865 | cross_compiling=no |
| 2866 | else |
| 2867 | if test "$cross_compiling" = maybe; then |
| 2868 | cross_compiling=yes |
| 2869 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2870 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2871 | If you meant to cross compile, use \`--host'. |
| 2872 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2873 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2874 | If you meant to cross compile, use \`--host'. |
| 2875 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2876 | { (exit 1); exit 1; }; } |
| 2877 | fi |
| 2878 | fi |
| 2879 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2880 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2881 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2882 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2883 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2884 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2885 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2886 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2887 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2888 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2889 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2890 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2892 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2893 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2894 | if { (ac_try="$ac_link" |
| 2895 | case "(($ac_try" in |
| 2896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2897 | *) ac_try_echo=$ac_try;; |
| 2898 | esac |
| 2899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2900 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2901 | ac_status=$? |
| 2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2903 | (exit $ac_status); }; then |
| 2904 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2905 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2906 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2907 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2908 | for ac_file in conftest.exe conftest conftest.*; do |
| 2909 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2911 | *.$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] | 2912 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2913 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2914 | * ) break;; |
| 2915 | esac |
| 2916 | done |
| 2917 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2918 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2919 | See \`config.log' for more details." >&5 |
| 2920 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2921 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2922 | { (exit 1); exit 1; }; } |
| 2923 | fi |
| 2924 | |
| 2925 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2926 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2927 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2928 | |
| 2929 | rm -f conftest.$ac_ext |
| 2930 | EXEEXT=$ac_cv_exeext |
| 2931 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2932 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2933 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2934 | if test "${ac_cv_objext+set}" = set; then |
| 2935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2936 | else |
| 2937 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2938 | /* confdefs.h. */ |
| 2939 | _ACEOF |
| 2940 | cat confdefs.h >>conftest.$ac_ext |
| 2941 | cat >>conftest.$ac_ext <<_ACEOF |
| 2942 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2943 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2944 | int |
| 2945 | main () |
| 2946 | { |
| 2947 | |
| 2948 | ; |
| 2949 | return 0; |
| 2950 | } |
| 2951 | _ACEOF |
| 2952 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2953 | if { (ac_try="$ac_compile" |
| 2954 | case "(($ac_try" in |
| 2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2956 | *) ac_try_echo=$ac_try;; |
| 2957 | esac |
| 2958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2959 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2960 | ac_status=$? |
| 2961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2962 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2963 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2964 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2965 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2966 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2967 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2968 | break;; |
| 2969 | esac |
| 2970 | done |
| 2971 | else |
| 2972 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2974 | |
| 2975 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2976 | See \`config.log' for more details." >&5 |
| 2977 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2978 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2979 | { (exit 1); exit 1; }; } |
| 2980 | fi |
| 2981 | |
| 2982 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2983 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2984 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2985 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2986 | OBJEXT=$ac_cv_objext |
| 2987 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2988 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2989 | 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] | 2990 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2992 | else |
| 2993 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2994 | /* confdefs.h. */ |
| 2995 | _ACEOF |
| 2996 | cat confdefs.h >>conftest.$ac_ext |
| 2997 | cat >>conftest.$ac_ext <<_ACEOF |
| 2998 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2999 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3000 | int |
| 3001 | main () |
| 3002 | { |
| 3003 | #ifndef __GNUC__ |
| 3004 | choke me |
| 3005 | #endif |
| 3006 | |
| 3007 | ; |
| 3008 | return 0; |
| 3009 | } |
| 3010 | _ACEOF |
| 3011 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3012 | if { (ac_try="$ac_compile" |
| 3013 | case "(($ac_try" in |
| 3014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3015 | *) ac_try_echo=$ac_try;; |
| 3016 | esac |
| 3017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3018 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3019 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3021 | rm -f conftest.er1 |
| 3022 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3024 | (exit $ac_status); } && |
| 3025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3026 | { (case "(($ac_try" in |
| 3027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3028 | *) ac_try_echo=$ac_try;; |
| 3029 | esac |
| 3030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3031 | (eval "$ac_try") 2>&5 |
| 3032 | ac_status=$? |
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3034 | (exit $ac_status); }; } && |
| 3035 | { ac_try='test -s conftest.$ac_objext' |
| 3036 | { (case "(($ac_try" in |
| 3037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3038 | *) ac_try_echo=$ac_try;; |
| 3039 | esac |
| 3040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3041 | (eval "$ac_try") 2>&5 |
| 3042 | ac_status=$? |
| 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3044 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3045 | ac_compiler_gnu=yes |
| 3046 | else |
| 3047 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3049 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3050 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3051 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3052 | |
| 3053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3054 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3055 | |
| 3056 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3057 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3058 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3059 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3060 | ac_test_CFLAGS=${CFLAGS+set} |
| 3061 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3062 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3063 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3064 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3066 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3067 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3068 | ac_c_werror_flag=yes |
| 3069 | ac_cv_prog_cc_g=no |
| 3070 | CFLAGS="-g" |
| 3071 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3072 | /* confdefs.h. */ |
| 3073 | _ACEOF |
| 3074 | cat confdefs.h >>conftest.$ac_ext |
| 3075 | cat >>conftest.$ac_ext <<_ACEOF |
| 3076 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3077 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3078 | int |
| 3079 | main () |
| 3080 | { |
| 3081 | |
| 3082 | ; |
| 3083 | return 0; |
| 3084 | } |
| 3085 | _ACEOF |
| 3086 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3087 | if { (ac_try="$ac_compile" |
| 3088 | case "(($ac_try" in |
| 3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3090 | *) ac_try_echo=$ac_try;; |
| 3091 | esac |
| 3092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3093 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3094 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3096 | rm -f conftest.er1 |
| 3097 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3099 | (exit $ac_status); } && |
| 3100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3101 | { (case "(($ac_try" in |
| 3102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3103 | *) ac_try_echo=$ac_try;; |
| 3104 | esac |
| 3105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3106 | (eval "$ac_try") 2>&5 |
| 3107 | ac_status=$? |
| 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3109 | (exit $ac_status); }; } && |
| 3110 | { ac_try='test -s conftest.$ac_objext' |
| 3111 | { (case "(($ac_try" in |
| 3112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3113 | *) ac_try_echo=$ac_try;; |
| 3114 | esac |
| 3115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3116 | (eval "$ac_try") 2>&5 |
| 3117 | ac_status=$? |
| 3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3119 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3120 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3121 | else |
| 3122 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3125 | CFLAGS="" |
| 3126 | cat >conftest.$ac_ext <<_ACEOF |
| 3127 | /* confdefs.h. */ |
| 3128 | _ACEOF |
| 3129 | cat confdefs.h >>conftest.$ac_ext |
| 3130 | cat >>conftest.$ac_ext <<_ACEOF |
| 3131 | /* end confdefs.h. */ |
| 3132 | |
| 3133 | int |
| 3134 | main () |
| 3135 | { |
| 3136 | |
| 3137 | ; |
| 3138 | return 0; |
| 3139 | } |
| 3140 | _ACEOF |
| 3141 | rm -f conftest.$ac_objext |
| 3142 | if { (ac_try="$ac_compile" |
| 3143 | case "(($ac_try" in |
| 3144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3145 | *) ac_try_echo=$ac_try;; |
| 3146 | esac |
| 3147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3148 | (eval "$ac_compile") 2>conftest.er1 |
| 3149 | ac_status=$? |
| 3150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3151 | rm -f conftest.er1 |
| 3152 | cat conftest.err >&5 |
| 3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3154 | (exit $ac_status); } && |
| 3155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3156 | { (case "(($ac_try" in |
| 3157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3158 | *) ac_try_echo=$ac_try;; |
| 3159 | esac |
| 3160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3161 | (eval "$ac_try") 2>&5 |
| 3162 | ac_status=$? |
| 3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3164 | (exit $ac_status); }; } && |
| 3165 | { ac_try='test -s conftest.$ac_objext' |
| 3166 | { (case "(($ac_try" in |
| 3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3168 | *) ac_try_echo=$ac_try;; |
| 3169 | esac |
| 3170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3171 | (eval "$ac_try") 2>&5 |
| 3172 | ac_status=$? |
| 3173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3174 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3175 | : |
| 3176 | else |
| 3177 | echo "$as_me: failed program was:" >&5 |
| 3178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3179 | |
| 3180 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3181 | CFLAGS="-g" |
| 3182 | cat >conftest.$ac_ext <<_ACEOF |
| 3183 | /* confdefs.h. */ |
| 3184 | _ACEOF |
| 3185 | cat confdefs.h >>conftest.$ac_ext |
| 3186 | cat >>conftest.$ac_ext <<_ACEOF |
| 3187 | /* end confdefs.h. */ |
| 3188 | |
| 3189 | int |
| 3190 | main () |
| 3191 | { |
| 3192 | |
| 3193 | ; |
| 3194 | return 0; |
| 3195 | } |
| 3196 | _ACEOF |
| 3197 | rm -f conftest.$ac_objext |
| 3198 | if { (ac_try="$ac_compile" |
| 3199 | case "(($ac_try" in |
| 3200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3201 | *) ac_try_echo=$ac_try;; |
| 3202 | esac |
| 3203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3204 | (eval "$ac_compile") 2>conftest.er1 |
| 3205 | ac_status=$? |
| 3206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3207 | rm -f conftest.er1 |
| 3208 | cat conftest.err >&5 |
| 3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3210 | (exit $ac_status); } && |
| 3211 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3212 | { (case "(($ac_try" in |
| 3213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3214 | *) ac_try_echo=$ac_try;; |
| 3215 | esac |
| 3216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3217 | (eval "$ac_try") 2>&5 |
| 3218 | ac_status=$? |
| 3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3220 | (exit $ac_status); }; } && |
| 3221 | { ac_try='test -s conftest.$ac_objext' |
| 3222 | { (case "(($ac_try" in |
| 3223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3224 | *) ac_try_echo=$ac_try;; |
| 3225 | esac |
| 3226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3227 | (eval "$ac_try") 2>&5 |
| 3228 | ac_status=$? |
| 3229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3230 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3231 | ac_cv_prog_cc_g=yes |
| 3232 | else |
| 3233 | echo "$as_me: failed program was:" >&5 |
| 3234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3235 | |
| 3236 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3237 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3238 | |
| 3239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3240 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3241 | |
| 3242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3243 | fi |
| 3244 | |
| 3245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3246 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3247 | fi |
| 3248 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3249 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3250 | if test "$ac_test_CFLAGS" = set; then |
| 3251 | CFLAGS=$ac_save_CFLAGS |
| 3252 | elif test $ac_cv_prog_cc_g = yes; then |
| 3253 | if test "$GCC" = yes; then |
| 3254 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3255 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3256 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3257 | fi |
| 3258 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3259 | if test "$GCC" = yes; then |
| 3260 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3261 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3262 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3263 | fi |
| 3264 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3265 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3266 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3267 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3269 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3270 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3271 | ac_save_CC=$CC |
| 3272 | cat >conftest.$ac_ext <<_ACEOF |
| 3273 | /* confdefs.h. */ |
| 3274 | _ACEOF |
| 3275 | cat confdefs.h >>conftest.$ac_ext |
| 3276 | cat >>conftest.$ac_ext <<_ACEOF |
| 3277 | /* end confdefs.h. */ |
| 3278 | #include <stdarg.h> |
| 3279 | #include <stdio.h> |
| 3280 | #include <sys/types.h> |
| 3281 | #include <sys/stat.h> |
| 3282 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3283 | struct buf { int x; }; |
| 3284 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3285 | static char *e (p, i) |
| 3286 | char **p; |
| 3287 | int i; |
| 3288 | { |
| 3289 | return p[i]; |
| 3290 | } |
| 3291 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3292 | { |
| 3293 | char *s; |
| 3294 | va_list v; |
| 3295 | va_start (v,p); |
| 3296 | s = g (p, va_arg (v,int)); |
| 3297 | va_end (v); |
| 3298 | return s; |
| 3299 | } |
| 3300 | |
| 3301 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3302 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3303 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3304 | 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] | 3305 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3306 | 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] | 3307 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3308 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3310 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3311 | inside strings and character constants. */ |
| 3312 | #define FOO(x) 'x' |
| 3313 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3314 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3315 | int test (int i, double x); |
| 3316 | struct s1 {int (*f) (int a);}; |
| 3317 | struct s2 {int (*f) (double a);}; |
| 3318 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3319 | int argc; |
| 3320 | char **argv; |
| 3321 | int |
| 3322 | main () |
| 3323 | { |
| 3324 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3325 | ; |
| 3326 | return 0; |
| 3327 | } |
| 3328 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3329 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3330 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3331 | do |
| 3332 | CC="$ac_save_CC $ac_arg" |
| 3333 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3334 | if { (ac_try="$ac_compile" |
| 3335 | case "(($ac_try" in |
| 3336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3337 | *) ac_try_echo=$ac_try;; |
| 3338 | esac |
| 3339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3340 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3341 | ac_status=$? |
| 3342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3343 | rm -f conftest.er1 |
| 3344 | cat conftest.err >&5 |
| 3345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3346 | (exit $ac_status); } && |
| 3347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3348 | { (case "(($ac_try" in |
| 3349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3350 | *) ac_try_echo=$ac_try;; |
| 3351 | esac |
| 3352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3353 | (eval "$ac_try") 2>&5 |
| 3354 | ac_status=$? |
| 3355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3356 | (exit $ac_status); }; } && |
| 3357 | { ac_try='test -s conftest.$ac_objext' |
| 3358 | { (case "(($ac_try" in |
| 3359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3360 | *) ac_try_echo=$ac_try;; |
| 3361 | esac |
| 3362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3363 | (eval "$ac_try") 2>&5 |
| 3364 | ac_status=$? |
| 3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3366 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3367 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3368 | else |
| 3369 | echo "$as_me: failed program was:" >&5 |
| 3370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3372 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3373 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3374 | |
| 3375 | rm -f core conftest.err conftest.$ac_objext |
| 3376 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3377 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3378 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3379 | CC=$ac_save_CC |
| 3380 | |
| 3381 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3382 | # AC_CACHE_VAL |
| 3383 | case "x$ac_cv_prog_cc_c89" in |
| 3384 | x) |
| 3385 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3386 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3387 | xno) |
| 3388 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3389 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3390 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3391 | CC="$CC $ac_cv_prog_cc_c89" |
| 3392 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3393 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3394 | esac |
| 3395 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3396 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3397 | ac_ext=c |
| 3398 | ac_cpp='$CPP $CPPFLAGS' |
| 3399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3402 | |
| 3403 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3404 | ac_ext=c |
| 3405 | ac_cpp='$CPP $CPPFLAGS' |
| 3406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3409 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3410 | 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] | 3411 | # On Suns, sometimes $CPP names a directory. |
| 3412 | if test -n "$CPP" && test -d "$CPP"; then |
| 3413 | CPP= |
| 3414 | fi |
| 3415 | if test -z "$CPP"; then |
| 3416 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3418 | else |
| 3419 | # Double quotes because CPP needs to be expanded |
| 3420 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3421 | do |
| 3422 | ac_preproc_ok=false |
| 3423 | for ac_c_preproc_warn_flag in '' yes |
| 3424 | do |
| 3425 | # Use a header file that comes with gcc, so configuring glibc |
| 3426 | # with a fresh cross-compiler works. |
| 3427 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3428 | # <limits.h> exists even on freestanding compilers. |
| 3429 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3430 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3431 | cat >conftest.$ac_ext <<_ACEOF |
| 3432 | /* confdefs.h. */ |
| 3433 | _ACEOF |
| 3434 | cat confdefs.h >>conftest.$ac_ext |
| 3435 | cat >>conftest.$ac_ext <<_ACEOF |
| 3436 | /* end confdefs.h. */ |
| 3437 | #ifdef __STDC__ |
| 3438 | # include <limits.h> |
| 3439 | #else |
| 3440 | # include <assert.h> |
| 3441 | #endif |
| 3442 | Syntax error |
| 3443 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3444 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3445 | case "(($ac_try" in |
| 3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3447 | *) ac_try_echo=$ac_try;; |
| 3448 | esac |
| 3449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3450 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3451 | ac_status=$? |
| 3452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3453 | rm -f conftest.er1 |
| 3454 | cat conftest.err >&5 |
| 3455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3456 | (exit $ac_status); } >/dev/null; then |
| 3457 | if test -s conftest.err; then |
| 3458 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3459 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3460 | else |
| 3461 | ac_cpp_err= |
| 3462 | fi |
| 3463 | else |
| 3464 | ac_cpp_err=yes |
| 3465 | fi |
| 3466 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3467 | : |
| 3468 | else |
| 3469 | echo "$as_me: failed program was:" >&5 |
| 3470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3471 | |
| 3472 | # Broken: fails on valid input. |
| 3473 | continue |
| 3474 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3475 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3476 | rm -f conftest.err conftest.$ac_ext |
| 3477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3478 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3479 | # can be detected and how. |
| 3480 | cat >conftest.$ac_ext <<_ACEOF |
| 3481 | /* confdefs.h. */ |
| 3482 | _ACEOF |
| 3483 | cat confdefs.h >>conftest.$ac_ext |
| 3484 | cat >>conftest.$ac_ext <<_ACEOF |
| 3485 | /* end confdefs.h. */ |
| 3486 | #include <ac_nonexistent.h> |
| 3487 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3488 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3489 | case "(($ac_try" in |
| 3490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3491 | *) ac_try_echo=$ac_try;; |
| 3492 | esac |
| 3493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3494 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3495 | ac_status=$? |
| 3496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3497 | rm -f conftest.er1 |
| 3498 | cat conftest.err >&5 |
| 3499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3500 | (exit $ac_status); } >/dev/null; then |
| 3501 | if test -s conftest.err; then |
| 3502 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3503 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3504 | else |
| 3505 | ac_cpp_err= |
| 3506 | fi |
| 3507 | else |
| 3508 | ac_cpp_err=yes |
| 3509 | fi |
| 3510 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3511 | # Broken: success on invalid input. |
| 3512 | continue |
| 3513 | else |
| 3514 | echo "$as_me: failed program was:" >&5 |
| 3515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3516 | |
| 3517 | # Passes both tests. |
| 3518 | ac_preproc_ok=: |
| 3519 | break |
| 3520 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3521 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3522 | rm -f conftest.err conftest.$ac_ext |
| 3523 | |
| 3524 | done |
| 3525 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3526 | rm -f conftest.err conftest.$ac_ext |
| 3527 | if $ac_preproc_ok; then |
| 3528 | break |
| 3529 | fi |
| 3530 | |
| 3531 | done |
| 3532 | ac_cv_prog_CPP=$CPP |
| 3533 | |
| 3534 | fi |
| 3535 | CPP=$ac_cv_prog_CPP |
| 3536 | else |
| 3537 | ac_cv_prog_CPP=$CPP |
| 3538 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3539 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3540 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3541 | ac_preproc_ok=false |
| 3542 | for ac_c_preproc_warn_flag in '' yes |
| 3543 | do |
| 3544 | # Use a header file that comes with gcc, so configuring glibc |
| 3545 | # with a fresh cross-compiler works. |
| 3546 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3547 | # <limits.h> exists even on freestanding compilers. |
| 3548 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3549 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3550 | cat >conftest.$ac_ext <<_ACEOF |
| 3551 | /* confdefs.h. */ |
| 3552 | _ACEOF |
| 3553 | cat confdefs.h >>conftest.$ac_ext |
| 3554 | cat >>conftest.$ac_ext <<_ACEOF |
| 3555 | /* end confdefs.h. */ |
| 3556 | #ifdef __STDC__ |
| 3557 | # include <limits.h> |
| 3558 | #else |
| 3559 | # include <assert.h> |
| 3560 | #endif |
| 3561 | Syntax error |
| 3562 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3563 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3564 | case "(($ac_try" in |
| 3565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3566 | *) ac_try_echo=$ac_try;; |
| 3567 | esac |
| 3568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3569 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3570 | ac_status=$? |
| 3571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3572 | rm -f conftest.er1 |
| 3573 | cat conftest.err >&5 |
| 3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3575 | (exit $ac_status); } >/dev/null; then |
| 3576 | if test -s conftest.err; then |
| 3577 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3578 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3579 | else |
| 3580 | ac_cpp_err= |
| 3581 | fi |
| 3582 | else |
| 3583 | ac_cpp_err=yes |
| 3584 | fi |
| 3585 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3586 | : |
| 3587 | else |
| 3588 | echo "$as_me: failed program was:" >&5 |
| 3589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3590 | |
| 3591 | # Broken: fails on valid input. |
| 3592 | continue |
| 3593 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3594 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3595 | rm -f conftest.err conftest.$ac_ext |
| 3596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3597 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3598 | # can be detected and how. |
| 3599 | cat >conftest.$ac_ext <<_ACEOF |
| 3600 | /* confdefs.h. */ |
| 3601 | _ACEOF |
| 3602 | cat confdefs.h >>conftest.$ac_ext |
| 3603 | cat >>conftest.$ac_ext <<_ACEOF |
| 3604 | /* end confdefs.h. */ |
| 3605 | #include <ac_nonexistent.h> |
| 3606 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3607 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3608 | case "(($ac_try" in |
| 3609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3610 | *) ac_try_echo=$ac_try;; |
| 3611 | esac |
| 3612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3613 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3614 | ac_status=$? |
| 3615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3616 | rm -f conftest.er1 |
| 3617 | cat conftest.err >&5 |
| 3618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3619 | (exit $ac_status); } >/dev/null; then |
| 3620 | if test -s conftest.err; then |
| 3621 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3622 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3623 | else |
| 3624 | ac_cpp_err= |
| 3625 | fi |
| 3626 | else |
| 3627 | ac_cpp_err=yes |
| 3628 | fi |
| 3629 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3630 | # Broken: success on invalid input. |
| 3631 | continue |
| 3632 | else |
| 3633 | echo "$as_me: failed program was:" >&5 |
| 3634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3635 | |
| 3636 | # Passes both tests. |
| 3637 | ac_preproc_ok=: |
| 3638 | break |
| 3639 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3640 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3641 | rm -f conftest.err conftest.$ac_ext |
| 3642 | |
| 3643 | done |
| 3644 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3645 | rm -f conftest.err conftest.$ac_ext |
| 3646 | if $ac_preproc_ok; then |
| 3647 | : |
| 3648 | else |
| 3649 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3650 | See \`config.log' for more details." >&5 |
| 3651 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3652 | See \`config.log' for more details." >&2;} |
| 3653 | { (exit 1); exit 1; }; } |
| 3654 | fi |
| 3655 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3656 | ac_ext=c |
| 3657 | ac_cpp='$CPP $CPPFLAGS' |
| 3658 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3659 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3660 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3661 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3663 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3664 | 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] | 3665 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3667 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3668 | # Extract the first word of "grep ggrep" to use in msg output |
| 3669 | if test -z "$GREP"; then |
| 3670 | set dummy grep ggrep; ac_prog_name=$2 |
| 3671 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3673 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3674 | ac_path_GREP_found=false |
| 3675 | # 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] | 3676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3677 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3678 | do |
| 3679 | IFS=$as_save_IFS |
| 3680 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3681 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3682 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3683 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3684 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3685 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3686 | # Check for GNU $ac_path_GREP |
| 3687 | case `"$ac_path_GREP" --version 2>&1` in |
| 3688 | *GNU*) |
| 3689 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3690 | *) |
| 3691 | ac_count=0 |
| 3692 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3693 | while : |
| 3694 | do |
| 3695 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3696 | mv "conftest.tmp" "conftest.in" |
| 3697 | cp "conftest.in" "conftest.nl" |
| 3698 | echo 'GREP' >> "conftest.nl" |
| 3699 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3700 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3701 | ac_count=`expr $ac_count + 1` |
| 3702 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3703 | # Best one so far, save it but keep looking for a better one |
| 3704 | ac_cv_path_GREP="$ac_path_GREP" |
| 3705 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3706 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3707 | # 10*(2^10) chars as input seems more than enough |
| 3708 | test $ac_count -gt 10 && break |
| 3709 | done |
| 3710 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3711 | esac |
| 3712 | |
| 3713 | |
| 3714 | $ac_path_GREP_found && break 3 |
| 3715 | done |
| 3716 | done |
| 3717 | |
| 3718 | done |
| 3719 | IFS=$as_save_IFS |
| 3720 | |
| 3721 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3722 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3723 | |
| 3724 | GREP="$ac_cv_path_GREP" |
| 3725 | if test -z "$GREP"; then |
| 3726 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3727 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3728 | { (exit 1); exit 1; }; } |
| 3729 | fi |
| 3730 | |
| 3731 | else |
| 3732 | ac_cv_path_GREP=$GREP |
| 3733 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3734 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3735 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3736 | fi |
| 3737 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3738 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3739 | GREP="$ac_cv_path_GREP" |
| 3740 | |
| 3741 | |
| 3742 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3743 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3744 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3746 | else |
| 3747 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3748 | then ac_cv_path_EGREP="$GREP -E" |
| 3749 | else |
| 3750 | # Extract the first word of "egrep" to use in msg output |
| 3751 | if test -z "$EGREP"; then |
| 3752 | set dummy egrep; ac_prog_name=$2 |
| 3753 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3755 | else |
| 3756 | ac_path_EGREP_found=false |
| 3757 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3759 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3760 | do |
| 3761 | IFS=$as_save_IFS |
| 3762 | test -z "$as_dir" && as_dir=. |
| 3763 | for ac_prog in egrep; do |
| 3764 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3765 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3766 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3767 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3768 | # Check for GNU $ac_path_EGREP |
| 3769 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3770 | *GNU*) |
| 3771 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3772 | *) |
| 3773 | ac_count=0 |
| 3774 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3775 | while : |
| 3776 | do |
| 3777 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3778 | mv "conftest.tmp" "conftest.in" |
| 3779 | cp "conftest.in" "conftest.nl" |
| 3780 | echo 'EGREP' >> "conftest.nl" |
| 3781 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3782 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3783 | ac_count=`expr $ac_count + 1` |
| 3784 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3785 | # Best one so far, save it but keep looking for a better one |
| 3786 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3787 | ac_path_EGREP_max=$ac_count |
| 3788 | fi |
| 3789 | # 10*(2^10) chars as input seems more than enough |
| 3790 | test $ac_count -gt 10 && break |
| 3791 | done |
| 3792 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3793 | esac |
| 3794 | |
| 3795 | |
| 3796 | $ac_path_EGREP_found && break 3 |
| 3797 | done |
| 3798 | done |
| 3799 | |
| 3800 | done |
| 3801 | IFS=$as_save_IFS |
| 3802 | |
| 3803 | |
| 3804 | fi |
| 3805 | |
| 3806 | EGREP="$ac_cv_path_EGREP" |
| 3807 | if test -z "$EGREP"; then |
| 3808 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3809 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3810 | { (exit 1); exit 1; }; } |
| 3811 | fi |
| 3812 | |
| 3813 | else |
| 3814 | ac_cv_path_EGREP=$EGREP |
| 3815 | fi |
| 3816 | |
| 3817 | |
| 3818 | fi |
| 3819 | fi |
| 3820 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3821 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3822 | EGREP="$ac_cv_path_EGREP" |
| 3823 | |
| 3824 | |
| 3825 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3826 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3827 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3829 | else |
| 3830 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3831 | /* confdefs.h. */ |
| 3832 | _ACEOF |
| 3833 | cat confdefs.h >>conftest.$ac_ext |
| 3834 | cat >>conftest.$ac_ext <<_ACEOF |
| 3835 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3836 | #include <stdlib.h> |
| 3837 | #include <stdarg.h> |
| 3838 | #include <string.h> |
| 3839 | #include <float.h> |
| 3840 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3841 | int |
| 3842 | main () |
| 3843 | { |
| 3844 | |
| 3845 | ; |
| 3846 | return 0; |
| 3847 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3848 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3849 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3850 | if { (ac_try="$ac_compile" |
| 3851 | case "(($ac_try" in |
| 3852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3853 | *) ac_try_echo=$ac_try;; |
| 3854 | esac |
| 3855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3856 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3857 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3859 | rm -f conftest.er1 |
| 3860 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3862 | (exit $ac_status); } && |
| 3863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3864 | { (case "(($ac_try" in |
| 3865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3866 | *) ac_try_echo=$ac_try;; |
| 3867 | esac |
| 3868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3869 | (eval "$ac_try") 2>&5 |
| 3870 | ac_status=$? |
| 3871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3872 | (exit $ac_status); }; } && |
| 3873 | { ac_try='test -s conftest.$ac_objext' |
| 3874 | { (case "(($ac_try" in |
| 3875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3876 | *) ac_try_echo=$ac_try;; |
| 3877 | esac |
| 3878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3879 | (eval "$ac_try") 2>&5 |
| 3880 | ac_status=$? |
| 3881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3882 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3883 | ac_cv_header_stdc=yes |
| 3884 | else |
| 3885 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3888 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3889 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3890 | |
| 3891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3892 | |
| 3893 | if test $ac_cv_header_stdc = yes; then |
| 3894 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3895 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3896 | /* confdefs.h. */ |
| 3897 | _ACEOF |
| 3898 | cat confdefs.h >>conftest.$ac_ext |
| 3899 | cat >>conftest.$ac_ext <<_ACEOF |
| 3900 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3901 | #include <string.h> |
| 3902 | |
| 3903 | _ACEOF |
| 3904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3905 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3906 | : |
| 3907 | else |
| 3908 | ac_cv_header_stdc=no |
| 3909 | fi |
| 3910 | rm -f conftest* |
| 3911 | |
| 3912 | fi |
| 3913 | |
| 3914 | if test $ac_cv_header_stdc = yes; then |
| 3915 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3916 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3917 | /* confdefs.h. */ |
| 3918 | _ACEOF |
| 3919 | cat confdefs.h >>conftest.$ac_ext |
| 3920 | cat >>conftest.$ac_ext <<_ACEOF |
| 3921 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3922 | #include <stdlib.h> |
| 3923 | |
| 3924 | _ACEOF |
| 3925 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3926 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3927 | : |
| 3928 | else |
| 3929 | ac_cv_header_stdc=no |
| 3930 | fi |
| 3931 | rm -f conftest* |
| 3932 | |
| 3933 | fi |
| 3934 | |
| 3935 | if test $ac_cv_header_stdc = yes; then |
| 3936 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3937 | if test "$cross_compiling" = yes; then |
| 3938 | : |
| 3939 | else |
| 3940 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3941 | /* confdefs.h. */ |
| 3942 | _ACEOF |
| 3943 | cat confdefs.h >>conftest.$ac_ext |
| 3944 | cat >>conftest.$ac_ext <<_ACEOF |
| 3945 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3946 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3947 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3948 | #if ((' ' & 0x0FF) == 0x020) |
| 3949 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3950 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3951 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3952 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3953 | (('a' <= (c) && (c) <= 'i') \ |
| 3954 | || ('j' <= (c) && (c) <= 'r') \ |
| 3955 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3956 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3957 | #endif |
| 3958 | |
| 3959 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3960 | int |
| 3961 | main () |
| 3962 | { |
| 3963 | int i; |
| 3964 | for (i = 0; i < 256; i++) |
| 3965 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3966 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3967 | return 2; |
| 3968 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3969 | } |
| 3970 | _ACEOF |
| 3971 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3972 | if { (ac_try="$ac_link" |
| 3973 | case "(($ac_try" in |
| 3974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3975 | *) ac_try_echo=$ac_try;; |
| 3976 | esac |
| 3977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3978 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3979 | ac_status=$? |
| 3980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3981 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3982 | { (case "(($ac_try" in |
| 3983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3984 | *) ac_try_echo=$ac_try;; |
| 3985 | esac |
| 3986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3987 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3988 | ac_status=$? |
| 3989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3990 | (exit $ac_status); }; }; then |
| 3991 | : |
| 3992 | else |
| 3993 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3994 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3996 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3997 | ( exit $ac_status ) |
| 3998 | ac_cv_header_stdc=no |
| 3999 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4000 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4001 | fi |
| 4002 | |
| 4003 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4004 | fi |
| 4005 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4006 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4007 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4008 | if test $ac_cv_header_stdc = yes; then |
| 4009 | |
| 4010 | cat >>confdefs.h <<\_ACEOF |
| 4011 | #define STDC_HEADERS 1 |
| 4012 | _ACEOF |
| 4013 | |
| 4014 | fi |
| 4015 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4016 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4017 | |
| 4018 | |
| 4019 | |
| 4020 | |
| 4021 | |
| 4022 | |
| 4023 | |
| 4024 | |
| 4025 | |
| 4026 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4027 | inttypes.h stdint.h unistd.h |
| 4028 | do |
| 4029 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4030 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4032 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4034 | else |
| 4035 | cat >conftest.$ac_ext <<_ACEOF |
| 4036 | /* confdefs.h. */ |
| 4037 | _ACEOF |
| 4038 | cat confdefs.h >>conftest.$ac_ext |
| 4039 | cat >>conftest.$ac_ext <<_ACEOF |
| 4040 | /* end confdefs.h. */ |
| 4041 | $ac_includes_default |
| 4042 | |
| 4043 | #include <$ac_header> |
| 4044 | _ACEOF |
| 4045 | rm -f conftest.$ac_objext |
| 4046 | if { (ac_try="$ac_compile" |
| 4047 | case "(($ac_try" in |
| 4048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4049 | *) ac_try_echo=$ac_try;; |
| 4050 | esac |
| 4051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4052 | (eval "$ac_compile") 2>conftest.er1 |
| 4053 | ac_status=$? |
| 4054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4055 | rm -f conftest.er1 |
| 4056 | cat conftest.err >&5 |
| 4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4058 | (exit $ac_status); } && |
| 4059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4060 | { (case "(($ac_try" in |
| 4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4062 | *) ac_try_echo=$ac_try;; |
| 4063 | esac |
| 4064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4065 | (eval "$ac_try") 2>&5 |
| 4066 | ac_status=$? |
| 4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4068 | (exit $ac_status); }; } && |
| 4069 | { ac_try='test -s conftest.$ac_objext' |
| 4070 | { (case "(($ac_try" in |
| 4071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4072 | *) ac_try_echo=$ac_try;; |
| 4073 | esac |
| 4074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4075 | (eval "$ac_try") 2>&5 |
| 4076 | ac_status=$? |
| 4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4078 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4079 | eval "$as_ac_Header=yes" |
| 4080 | else |
| 4081 | echo "$as_me: failed program was:" >&5 |
| 4082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4083 | |
| 4084 | eval "$as_ac_Header=no" |
| 4085 | fi |
| 4086 | |
| 4087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4088 | fi |
| 4089 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4090 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4091 | echo "${ECHO_T}$ac_res" >&6; } |
| 4092 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4093 | cat >>confdefs.h <<_ACEOF |
| 4094 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4095 | _ACEOF |
| 4096 | |
| 4097 | fi |
| 4098 | |
| 4099 | done |
| 4100 | |
| 4101 | |
| 4102 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4103 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4104 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4106 | else |
| 4107 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4108 | cat >conftest.$ac_ext <<_ACEOF |
| 4109 | /* confdefs.h. */ |
| 4110 | _ACEOF |
| 4111 | cat confdefs.h >>conftest.$ac_ext |
| 4112 | cat >>conftest.$ac_ext <<_ACEOF |
| 4113 | /* end confdefs.h. */ |
| 4114 | #include <sys/types.h> |
| 4115 | #include <sys/param.h> |
| 4116 | |
| 4117 | int |
| 4118 | main () |
| 4119 | { |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4120 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4121 | bogus endian macros |
| 4122 | #endif |
| 4123 | |
| 4124 | ; |
| 4125 | return 0; |
| 4126 | } |
| 4127 | _ACEOF |
| 4128 | rm -f conftest.$ac_objext |
| 4129 | if { (ac_try="$ac_compile" |
| 4130 | case "(($ac_try" in |
| 4131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4132 | *) ac_try_echo=$ac_try;; |
| 4133 | esac |
| 4134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4135 | (eval "$ac_compile") 2>conftest.er1 |
| 4136 | ac_status=$? |
| 4137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4138 | rm -f conftest.er1 |
| 4139 | cat conftest.err >&5 |
| 4140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4141 | (exit $ac_status); } && |
| 4142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4143 | { (case "(($ac_try" in |
| 4144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4145 | *) ac_try_echo=$ac_try;; |
| 4146 | esac |
| 4147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4148 | (eval "$ac_try") 2>&5 |
| 4149 | ac_status=$? |
| 4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4151 | (exit $ac_status); }; } && |
| 4152 | { ac_try='test -s conftest.$ac_objext' |
| 4153 | { (case "(($ac_try" in |
| 4154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4155 | *) ac_try_echo=$ac_try;; |
| 4156 | esac |
| 4157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4158 | (eval "$ac_try") 2>&5 |
| 4159 | ac_status=$? |
| 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4161 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4162 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4163 | cat >conftest.$ac_ext <<_ACEOF |
| 4164 | /* confdefs.h. */ |
| 4165 | _ACEOF |
| 4166 | cat confdefs.h >>conftest.$ac_ext |
| 4167 | cat >>conftest.$ac_ext <<_ACEOF |
| 4168 | /* end confdefs.h. */ |
| 4169 | #include <sys/types.h> |
| 4170 | #include <sys/param.h> |
| 4171 | |
| 4172 | int |
| 4173 | main () |
| 4174 | { |
| 4175 | #if BYTE_ORDER != BIG_ENDIAN |
| 4176 | not big endian |
| 4177 | #endif |
| 4178 | |
| 4179 | ; |
| 4180 | return 0; |
| 4181 | } |
| 4182 | _ACEOF |
| 4183 | rm -f conftest.$ac_objext |
| 4184 | if { (ac_try="$ac_compile" |
| 4185 | case "(($ac_try" in |
| 4186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4187 | *) ac_try_echo=$ac_try;; |
| 4188 | esac |
| 4189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4190 | (eval "$ac_compile") 2>conftest.er1 |
| 4191 | ac_status=$? |
| 4192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4193 | rm -f conftest.er1 |
| 4194 | cat conftest.err >&5 |
| 4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4196 | (exit $ac_status); } && |
| 4197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4198 | { (case "(($ac_try" in |
| 4199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4200 | *) ac_try_echo=$ac_try;; |
| 4201 | esac |
| 4202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4203 | (eval "$ac_try") 2>&5 |
| 4204 | ac_status=$? |
| 4205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4206 | (exit $ac_status); }; } && |
| 4207 | { ac_try='test -s conftest.$ac_objext' |
| 4208 | { (case "(($ac_try" in |
| 4209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4210 | *) ac_try_echo=$ac_try;; |
| 4211 | esac |
| 4212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4213 | (eval "$ac_try") 2>&5 |
| 4214 | ac_status=$? |
| 4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4216 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4217 | ac_cv_c_bigendian=yes |
| 4218 | else |
| 4219 | echo "$as_me: failed program was:" >&5 |
| 4220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4221 | |
| 4222 | ac_cv_c_bigendian=no |
| 4223 | fi |
| 4224 | |
| 4225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4226 | else |
| 4227 | echo "$as_me: failed program was:" >&5 |
| 4228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4229 | |
| 4230 | # It does not; compile a test program. |
| 4231 | if test "$cross_compiling" = yes; then |
| 4232 | # try to guess the endianness by grepping values into an object file |
| 4233 | ac_cv_c_bigendian=unknown |
| 4234 | cat >conftest.$ac_ext <<_ACEOF |
| 4235 | /* confdefs.h. */ |
| 4236 | _ACEOF |
| 4237 | cat confdefs.h >>conftest.$ac_ext |
| 4238 | cat >>conftest.$ac_ext <<_ACEOF |
| 4239 | /* end confdefs.h. */ |
| 4240 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4241 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4242 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4243 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4244 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4245 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4246 | int |
| 4247 | main () |
| 4248 | { |
| 4249 | _ascii (); _ebcdic (); |
| 4250 | ; |
| 4251 | return 0; |
| 4252 | } |
| 4253 | _ACEOF |
| 4254 | rm -f conftest.$ac_objext |
| 4255 | if { (ac_try="$ac_compile" |
| 4256 | case "(($ac_try" in |
| 4257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4258 | *) ac_try_echo=$ac_try;; |
| 4259 | esac |
| 4260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4261 | (eval "$ac_compile") 2>conftest.er1 |
| 4262 | ac_status=$? |
| 4263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4264 | rm -f conftest.er1 |
| 4265 | cat conftest.err >&5 |
| 4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4267 | (exit $ac_status); } && |
| 4268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4269 | { (case "(($ac_try" in |
| 4270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4271 | *) ac_try_echo=$ac_try;; |
| 4272 | esac |
| 4273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4274 | (eval "$ac_try") 2>&5 |
| 4275 | ac_status=$? |
| 4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4277 | (exit $ac_status); }; } && |
| 4278 | { ac_try='test -s conftest.$ac_objext' |
| 4279 | { (case "(($ac_try" in |
| 4280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4281 | *) ac_try_echo=$ac_try;; |
| 4282 | esac |
| 4283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4284 | (eval "$ac_try") 2>&5 |
| 4285 | ac_status=$? |
| 4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4287 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4288 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4289 | ac_cv_c_bigendian=yes |
| 4290 | fi |
| 4291 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4292 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4293 | ac_cv_c_bigendian=no |
| 4294 | else |
| 4295 | # finding both strings is unlikely to happen, but who knows? |
| 4296 | ac_cv_c_bigendian=unknown |
| 4297 | fi |
| 4298 | fi |
| 4299 | else |
| 4300 | echo "$as_me: failed program was:" >&5 |
| 4301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4302 | |
| 4303 | |
| 4304 | fi |
| 4305 | |
| 4306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4307 | else |
| 4308 | cat >conftest.$ac_ext <<_ACEOF |
| 4309 | /* confdefs.h. */ |
| 4310 | _ACEOF |
| 4311 | cat confdefs.h >>conftest.$ac_ext |
| 4312 | cat >>conftest.$ac_ext <<_ACEOF |
| 4313 | /* end confdefs.h. */ |
| 4314 | $ac_includes_default |
| 4315 | int |
| 4316 | main () |
| 4317 | { |
| 4318 | |
| 4319 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4320 | union |
| 4321 | { |
| 4322 | long int l; |
| 4323 | char c[sizeof (long int)]; |
| 4324 | } u; |
| 4325 | u.l = 1; |
| 4326 | return u.c[sizeof (long int) - 1] == 1; |
| 4327 | |
| 4328 | ; |
| 4329 | return 0; |
| 4330 | } |
| 4331 | _ACEOF |
| 4332 | rm -f conftest$ac_exeext |
| 4333 | if { (ac_try="$ac_link" |
| 4334 | case "(($ac_try" in |
| 4335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4336 | *) ac_try_echo=$ac_try;; |
| 4337 | esac |
| 4338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4339 | (eval "$ac_link") 2>&5 |
| 4340 | ac_status=$? |
| 4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4343 | { (case "(($ac_try" in |
| 4344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4345 | *) ac_try_echo=$ac_try;; |
| 4346 | esac |
| 4347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4348 | (eval "$ac_try") 2>&5 |
| 4349 | ac_status=$? |
| 4350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4351 | (exit $ac_status); }; }; then |
| 4352 | ac_cv_c_bigendian=no |
| 4353 | else |
| 4354 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4355 | echo "$as_me: failed program was:" >&5 |
| 4356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4357 | |
| 4358 | ( exit $ac_status ) |
| 4359 | ac_cv_c_bigendian=yes |
| 4360 | fi |
| 4361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4362 | fi |
| 4363 | |
| 4364 | |
| 4365 | fi |
| 4366 | |
| 4367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4368 | fi |
| 4369 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4370 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4371 | case $ac_cv_c_bigendian in |
| 4372 | yes) |
| 4373 | ENDIAN=big |
| 4374 | ;; |
| 4375 | no) |
| 4376 | ENDIAN=little |
| 4377 | ;; |
| 4378 | *) |
| 4379 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4380 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4381 | echo "$as_me: error: unknown endianness |
| 4382 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4383 | { (exit 1); exit 1; }; } ;; |
| 4384 | esac |
| 4385 | |
| 4386 | |
| 4387 | if test "$cross_compiling" = yes; then |
| 4388 | LLVM_CROSS_COMPILING=1 |
| 4389 | |
| 4390 | |
| 4391 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4392 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4393 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4395 | else |
| 4396 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4397 | ac_cv_build_exeext=.exe |
| 4398 | else |
| 4399 | ac_build_prefix=${build_alias}- |
| 4400 | |
| 4401 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4402 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4403 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4404 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4405 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4407 | else |
| 4408 | if test -n "$BUILD_CC"; then |
| 4409 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4410 | else |
| 4411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4412 | for as_dir in $PATH |
| 4413 | do |
| 4414 | IFS=$as_save_IFS |
| 4415 | test -z "$as_dir" && as_dir=. |
| 4416 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4417 | 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] | 4418 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4419 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4420 | break 2 |
| 4421 | fi |
| 4422 | done |
| 4423 | done |
| 4424 | IFS=$as_save_IFS |
| 4425 | |
| 4426 | fi |
| 4427 | fi |
| 4428 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4429 | if test -n "$BUILD_CC"; then |
| 4430 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4431 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4432 | else |
| 4433 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4434 | echo "${ECHO_T}no" >&6; } |
| 4435 | fi |
| 4436 | |
| 4437 | |
| 4438 | if test -z "$BUILD_CC"; then |
| 4439 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4440 | set dummy gcc; ac_word=$2 |
| 4441 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4443 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4445 | else |
| 4446 | if test -n "$BUILD_CC"; then |
| 4447 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4448 | else |
| 4449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4450 | for as_dir in $PATH |
| 4451 | do |
| 4452 | IFS=$as_save_IFS |
| 4453 | test -z "$as_dir" && as_dir=. |
| 4454 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4455 | 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] | 4456 | ac_cv_prog_BUILD_CC="gcc" |
| 4457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4458 | break 2 |
| 4459 | fi |
| 4460 | done |
| 4461 | done |
| 4462 | IFS=$as_save_IFS |
| 4463 | |
| 4464 | fi |
| 4465 | fi |
| 4466 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4467 | if test -n "$BUILD_CC"; then |
| 4468 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4469 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4470 | else |
| 4471 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4472 | echo "${ECHO_T}no" >&6; } |
| 4473 | fi |
| 4474 | |
| 4475 | |
| 4476 | if test -z "$BUILD_CC"; then |
| 4477 | # Extract the first word of "cc", so it can be a program name with args. |
| 4478 | set dummy cc; ac_word=$2 |
| 4479 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4481 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4483 | else |
| 4484 | if test -n "$BUILD_CC"; then |
| 4485 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4486 | else |
| 4487 | ac_prog_rejected=no |
| 4488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4489 | for as_dir in $PATH |
| 4490 | do |
| 4491 | IFS=$as_save_IFS |
| 4492 | test -z "$as_dir" && as_dir=. |
| 4493 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4494 | 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] | 4495 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4496 | ac_prog_rejected=yes |
| 4497 | continue |
| 4498 | fi |
| 4499 | ac_cv_prog_BUILD_CC="cc" |
| 4500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4501 | break 2 |
| 4502 | fi |
| 4503 | done |
| 4504 | done |
| 4505 | IFS=$as_save_IFS |
| 4506 | |
| 4507 | if test $ac_prog_rejected = yes; then |
| 4508 | # We found a bogon in the path, so make sure we never use it. |
| 4509 | set dummy $ac_cv_prog_BUILD_CC |
| 4510 | shift |
| 4511 | if test $# != 0; then |
| 4512 | # We chose a different compiler from the bogus one. |
| 4513 | # However, it has the same basename, so the bogon will be chosen |
| 4514 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4515 | shift |
| 4516 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4517 | fi |
| 4518 | fi |
| 4519 | fi |
| 4520 | fi |
| 4521 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4522 | if test -n "$BUILD_CC"; then |
| 4523 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4524 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4525 | else |
| 4526 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4527 | echo "${ECHO_T}no" >&6; } |
| 4528 | fi |
| 4529 | |
| 4530 | |
| 4531 | fi |
| 4532 | fi |
| 4533 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4534 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4535 | { (exit 1); exit 1; }; } |
| 4536 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4537 | rm -f conftest* |
| 4538 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4539 | ac_cv_build_exeext= |
| 4540 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4541 | (eval $ac_build_link) 2>&5 |
| 4542 | ac_status=$? |
| 4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4544 | (exit $ac_status); }; then |
| 4545 | for file in conftest.*; do |
| 4546 | case $file in |
| 4547 | *.c | *.o | *.obj) ;; |
| 4548 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4549 | esac |
| 4550 | done |
| 4551 | else |
| 4552 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4553 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4554 | { (exit 1); exit 1; }; } |
| 4555 | fi |
| 4556 | rm -f conftest* |
| 4557 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4558 | fi |
| 4559 | fi |
| 4560 | |
| 4561 | BUILD_EXEEXT="" |
| 4562 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4563 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4564 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4565 | ac_build_exeext=$BUILD_EXEEXT |
| 4566 | |
| 4567 | else |
| 4568 | LLVM_CROSS_COMPILING=0 |
| 4569 | |
| 4570 | fi |
| 4571 | |
Reid Spencer | 0b1e466 | 2007-04-02 15:41:39 +0000 | [diff] [blame] | 4572 | 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] | 4573 | cvsbuild="yes" |
| 4574 | optimize="no" |
| 4575 | CVSBUILD=CVSBUILD=1 |
| 4576 | |
| 4577 | else |
| 4578 | cvsbuild="no" |
| 4579 | optimize="yes" |
| 4580 | fi |
| 4581 | |
| 4582 | |
| 4583 | # Check whether --enable-optimized was given. |
| 4584 | if test "${enable_optimized+set}" = set; then |
| 4585 | enableval=$enable_optimized; |
| 4586 | else |
| 4587 | enableval=$optimize |
| 4588 | fi |
| 4589 | |
| 4590 | if test ${enableval} = "no" ; then |
| 4591 | ENABLE_OPTIMIZED= |
| 4592 | |
| 4593 | else |
| 4594 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4595 | |
| 4596 | fi |
| 4597 | |
| 4598 | # Check whether --enable-assertions was given. |
| 4599 | if test "${enable_assertions+set}" = set; then |
| 4600 | enableval=$enable_assertions; |
| 4601 | else |
| 4602 | enableval="yes" |
| 4603 | fi |
| 4604 | |
| 4605 | if test ${enableval} = "yes" ; then |
| 4606 | DISABLE_ASSERTIONS= |
| 4607 | |
| 4608 | else |
| 4609 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4610 | |
| 4611 | fi |
| 4612 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4613 | # Check whether --enable-expensive-checks was given. |
| 4614 | if test "${enable_expensive_checks+set}" = set; then |
| 4615 | enableval=$enable_expensive_checks; |
| 4616 | else |
| 4617 | enableval="no" |
| 4618 | fi |
| 4619 | |
| 4620 | if test ${enableval} = "yes" ; then |
| 4621 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4622 | |
| 4623 | EXPENSIVE_CHECKS=yes |
| 4624 | |
| 4625 | else |
| 4626 | ENABLE_EXPENSIVE_CHECKS= |
| 4627 | |
| 4628 | EXPENSIVE_CHECKS=no |
| 4629 | |
| 4630 | fi |
| 4631 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4632 | # Check whether --enable-debug-runtime was given. |
| 4633 | if test "${enable_debug_runtime+set}" = set; then |
| 4634 | enableval=$enable_debug_runtime; |
| 4635 | else |
| 4636 | enableval=no |
| 4637 | fi |
| 4638 | |
| 4639 | if test ${enableval} = "no" ; then |
| 4640 | DEBUG_RUNTIME= |
| 4641 | |
| 4642 | else |
| 4643 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4644 | |
| 4645 | fi |
| 4646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4647 | # Check whether --enable-jit was given. |
| 4648 | if test "${enable_jit+set}" = set; then |
| 4649 | enableval=$enable_jit; |
| 4650 | else |
| 4651 | enableval=default |
| 4652 | fi |
| 4653 | |
| 4654 | if test ${enableval} = "no" |
| 4655 | then |
| 4656 | JIT= |
| 4657 | |
| 4658 | else |
| 4659 | case "$llvm_cv_target_arch" in |
| 4660 | x86) TARGET_HAS_JIT=1 |
| 4661 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4662 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4663 | ;; |
| 4664 | PowerPC) TARGET_HAS_JIT=1 |
| 4665 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4666 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4667 | ;; |
| 4668 | Alpha) TARGET_HAS_JIT=1 |
| 4669 | ;; |
| 4670 | IA64) TARGET_HAS_JIT=0 |
| 4671 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4672 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4673 | ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4674 | Mips) TARGET_HAS_JIT=0 |
| 4675 | ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4676 | PIC16) TARGET_HAS_JIT=0 |
| 4677 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4678 | *) TARGET_HAS_JIT=0 |
| 4679 | ;; |
| 4680 | esac |
| 4681 | fi |
| 4682 | |
| 4683 | # Check whether --enable-doxygen was given. |
| 4684 | if test "${enable_doxygen+set}" = set; then |
| 4685 | enableval=$enable_doxygen; |
| 4686 | else |
| 4687 | enableval=default |
| 4688 | fi |
| 4689 | |
| 4690 | case "$enableval" in |
| 4691 | yes) ENABLE_DOXYGEN=1 |
| 4692 | ;; |
| 4693 | no) ENABLE_DOXYGEN=0 |
| 4694 | ;; |
| 4695 | default) ENABLE_DOXYGEN=0 |
| 4696 | ;; |
| 4697 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4698 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4699 | { (exit 1); exit 1; }; } ;; |
| 4700 | esac |
| 4701 | |
| 4702 | # Check whether --enable-threads was given. |
| 4703 | if test "${enable_threads+set}" = set; then |
| 4704 | enableval=$enable_threads; |
| 4705 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4706 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4707 | fi |
| 4708 | |
| 4709 | case "$enableval" in |
| 4710 | yes) ENABLE_THREADS=1 |
| 4711 | ;; |
| 4712 | no) ENABLE_THREADS=0 |
| 4713 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4714 | default) ENABLE_THREADS=1 |
| 4715 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4716 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4717 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4718 | { (exit 1); exit 1; }; } ;; |
| 4719 | esac |
| 4720 | |
| 4721 | cat >>confdefs.h <<_ACEOF |
| 4722 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4723 | _ACEOF |
| 4724 | |
| 4725 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4726 | # Check whether --enable-pic was given. |
| 4727 | if test "${enable_pic+set}" = set; then |
| 4728 | enableval=$enable_pic; |
| 4729 | else |
| 4730 | enableval=default |
| 4731 | fi |
| 4732 | |
| 4733 | case "$enableval" in |
| 4734 | yes) ENABLE_PIC=1 |
| 4735 | ;; |
| 4736 | no) ENABLE_PIC=0 |
| 4737 | ;; |
| 4738 | default) ENABLE_PIC=0 |
| 4739 | ;; |
| 4740 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4741 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4742 | { (exit 1); exit 1; }; } ;; |
| 4743 | esac |
| 4744 | |
| 4745 | cat >>confdefs.h <<_ACEOF |
| 4746 | #define ENABLE_PIC $ENABLE_PIC |
| 4747 | _ACEOF |
| 4748 | |
| 4749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4750 | TARGETS_TO_BUILD="" |
| 4751 | # Check whether --enable-targets was given. |
| 4752 | if test "${enable_targets+set}" = set; then |
| 4753 | enableval=$enable_targets; |
| 4754 | else |
| 4755 | enableval=all |
| 4756 | fi |
| 4757 | |
| 4758 | case "$enableval" in |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4759 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4760 | host-only) |
| 4761 | case "$llvm_cv_target_arch" in |
| 4762 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4763 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4764 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4765 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4766 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4767 | IA64) TARGETS_TO_BUILD="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4768 | ARM) TARGETS_TO_BUILD="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4769 | Mips) TARGETS_TO_BUILD="Mips" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4770 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4771 | PIC16) TARGETS_TO_BUILD="PIC16" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4772 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4773 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4774 | { (exit 1); exit 1; }; } ;; |
| 4775 | esac |
| 4776 | ;; |
| 4777 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4778 | case "$a_target" in |
| 4779 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4780 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4781 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4782 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4783 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4784 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4785 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4786 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4787 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4788 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame] | 4789 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4790 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 4791 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4792 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4793 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4794 | { (exit 1); exit 1; }; } ;; |
| 4795 | esac |
| 4796 | done |
| 4797 | ;; |
| 4798 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4799 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4800 | |
| 4801 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4802 | # Check whether --enable-cbe-printf-a was given. |
| 4803 | if test "${enable_cbe_printf_a+set}" = set; then |
| 4804 | enableval=$enable_cbe_printf_a; |
| 4805 | else |
| 4806 | enableval=default |
| 4807 | fi |
| 4808 | |
| 4809 | case "$enableval" in |
| 4810 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4811 | ;; |
| 4812 | no) ENABLE_CBE_PRINTF_A=0 |
| 4813 | ;; |
| 4814 | default) ENABLE_CBE_PRINTF_A=1 |
| 4815 | ;; |
| 4816 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4817 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4818 | { (exit 1); exit 1; }; } ;; |
| 4819 | esac |
| 4820 | |
| 4821 | cat >>confdefs.h <<_ACEOF |
| 4822 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4823 | _ACEOF |
| 4824 | |
| 4825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4826 | |
| 4827 | # Check whether --with-llvmgccdir was given. |
| 4828 | if test "${with_llvmgccdir+set}" = set; then |
| 4829 | withval=$with_llvmgccdir; |
| 4830 | else |
| 4831 | withval=default |
| 4832 | fi |
| 4833 | |
| 4834 | case "$withval" in |
| 4835 | default) WITH_LLVMGCCDIR=default ;; |
| 4836 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4837 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4838 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4839 | { (exit 1); exit 1; }; } ;; |
| 4840 | esac |
| 4841 | |
| 4842 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4843 | # Check whether --with-llvmgcc was given. |
| 4844 | if test "${with_llvmgcc+set}" = set; then |
| 4845 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 4846 | WITH_LLVMGCCDIR="" |
| 4847 | fi |
| 4848 | |
| 4849 | |
| 4850 | |
| 4851 | # Check whether --with-llvmgxx was given. |
| 4852 | if test "${with_llvmgxx+set}" = set; then |
| 4853 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 4854 | WITH_LLVMGCCDIR="" |
| 4855 | fi |
| 4856 | |
| 4857 | |
| 4858 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 4859 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 4860 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 4861 | { (exit 1); exit 1; }; }; |
| 4862 | fi |
| 4863 | |
| 4864 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 4865 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 4866 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 4867 | { (exit 1); exit 1; }; }; |
| 4868 | fi |
| 4869 | |
| 4870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4871 | # Check whether --with-extra-options was given. |
| 4872 | if test "${with_extra_options+set}" = set; then |
| 4873 | withval=$with_extra_options; |
| 4874 | else |
| 4875 | withval=default |
| 4876 | fi |
| 4877 | |
| 4878 | case "$withval" in |
| 4879 | default) EXTRA_OPTIONS= ;; |
| 4880 | *) EXTRA_OPTIONS=$withval ;; |
| 4881 | esac |
| 4882 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 4883 | |
| 4884 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 4885 | # Check whether --enable-bindings was given. |
| 4886 | if test "${enable_bindings+set}" = set; then |
| 4887 | enableval=$enable_bindings; |
| 4888 | else |
| 4889 | enableval=default |
| 4890 | fi |
| 4891 | |
| 4892 | BINDINGS_TO_BUILD="" |
| 4893 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 4894 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 4895 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 4896 | none | no) BINDINGS_TO_BUILD="" ;; |
| 4897 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4898 | case "$a_binding" in |
| 4899 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 4900 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 4901 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 4902 | { (exit 1); exit 1; }; } ;; |
| 4903 | esac |
| 4904 | done |
| 4905 | ;; |
| 4906 | esac |
| 4907 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4908 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 4909 | # Check whether --with-ocaml-libdir was given. |
| 4910 | if test "${with_ocaml_libdir+set}" = set; then |
| 4911 | withval=$with_ocaml_libdir; |
| 4912 | else |
| 4913 | withval=auto |
| 4914 | fi |
| 4915 | |
| 4916 | case "$withval" in |
| 4917 | auto) with_ocaml_libdir="$withval" ;; |
| 4918 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 4919 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 4920 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 4921 | { (exit 1); exit 1; }; } ;; |
| 4922 | esac |
| 4923 | |
| 4924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4925 | ac_ext=c |
| 4926 | ac_cpp='$CPP $CPPFLAGS' |
| 4927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4930 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4931 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 4932 | # On Suns, sometimes $CPP names a directory. |
| 4933 | if test -n "$CPP" && test -d "$CPP"; then |
| 4934 | CPP= |
| 4935 | fi |
| 4936 | if test -z "$CPP"; then |
| 4937 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4939 | else |
| 4940 | # Double quotes because CPP needs to be expanded |
| 4941 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4942 | do |
| 4943 | ac_preproc_ok=false |
| 4944 | for ac_c_preproc_warn_flag in '' yes |
| 4945 | do |
| 4946 | # Use a header file that comes with gcc, so configuring glibc |
| 4947 | # with a fresh cross-compiler works. |
| 4948 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4949 | # <limits.h> exists even on freestanding compilers. |
| 4950 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4951 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4952 | cat >conftest.$ac_ext <<_ACEOF |
| 4953 | /* confdefs.h. */ |
| 4954 | _ACEOF |
| 4955 | cat confdefs.h >>conftest.$ac_ext |
| 4956 | cat >>conftest.$ac_ext <<_ACEOF |
| 4957 | /* end confdefs.h. */ |
| 4958 | #ifdef __STDC__ |
| 4959 | # include <limits.h> |
| 4960 | #else |
| 4961 | # include <assert.h> |
| 4962 | #endif |
| 4963 | Syntax error |
| 4964 | _ACEOF |
| 4965 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4966 | case "(($ac_try" in |
| 4967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4968 | *) ac_try_echo=$ac_try;; |
| 4969 | esac |
| 4970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4971 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4972 | ac_status=$? |
| 4973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4974 | rm -f conftest.er1 |
| 4975 | cat conftest.err >&5 |
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4977 | (exit $ac_status); } >/dev/null; then |
| 4978 | if test -s conftest.err; then |
| 4979 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4980 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4981 | else |
| 4982 | ac_cpp_err= |
| 4983 | fi |
| 4984 | else |
| 4985 | ac_cpp_err=yes |
| 4986 | fi |
| 4987 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4988 | : |
| 4989 | else |
| 4990 | echo "$as_me: failed program was:" >&5 |
| 4991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4992 | |
| 4993 | # Broken: fails on valid input. |
| 4994 | continue |
| 4995 | fi |
| 4996 | |
| 4997 | rm -f conftest.err conftest.$ac_ext |
| 4998 | |
| 4999 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5000 | # can be detected and how. |
| 5001 | cat >conftest.$ac_ext <<_ACEOF |
| 5002 | /* confdefs.h. */ |
| 5003 | _ACEOF |
| 5004 | cat confdefs.h >>conftest.$ac_ext |
| 5005 | cat >>conftest.$ac_ext <<_ACEOF |
| 5006 | /* end confdefs.h. */ |
| 5007 | #include <ac_nonexistent.h> |
| 5008 | _ACEOF |
| 5009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5010 | case "(($ac_try" in |
| 5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5012 | *) ac_try_echo=$ac_try;; |
| 5013 | esac |
| 5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5016 | ac_status=$? |
| 5017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5018 | rm -f conftest.er1 |
| 5019 | cat conftest.err >&5 |
| 5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5021 | (exit $ac_status); } >/dev/null; then |
| 5022 | if test -s conftest.err; then |
| 5023 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5024 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5025 | else |
| 5026 | ac_cpp_err= |
| 5027 | fi |
| 5028 | else |
| 5029 | ac_cpp_err=yes |
| 5030 | fi |
| 5031 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5032 | # Broken: success on invalid input. |
| 5033 | continue |
| 5034 | else |
| 5035 | echo "$as_me: failed program was:" >&5 |
| 5036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5037 | |
| 5038 | # Passes both tests. |
| 5039 | ac_preproc_ok=: |
| 5040 | break |
| 5041 | fi |
| 5042 | |
| 5043 | rm -f conftest.err conftest.$ac_ext |
| 5044 | |
| 5045 | done |
| 5046 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5047 | rm -f conftest.err conftest.$ac_ext |
| 5048 | if $ac_preproc_ok; then |
| 5049 | break |
| 5050 | fi |
| 5051 | |
| 5052 | done |
| 5053 | ac_cv_prog_CPP=$CPP |
| 5054 | |
| 5055 | fi |
| 5056 | CPP=$ac_cv_prog_CPP |
| 5057 | else |
| 5058 | ac_cv_prog_CPP=$CPP |
| 5059 | fi |
| 5060 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5061 | echo "${ECHO_T}$CPP" >&6; } |
| 5062 | ac_preproc_ok=false |
| 5063 | for ac_c_preproc_warn_flag in '' yes |
| 5064 | do |
| 5065 | # Use a header file that comes with gcc, so configuring glibc |
| 5066 | # with a fresh cross-compiler works. |
| 5067 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5068 | # <limits.h> exists even on freestanding compilers. |
| 5069 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5070 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5071 | cat >conftest.$ac_ext <<_ACEOF |
| 5072 | /* confdefs.h. */ |
| 5073 | _ACEOF |
| 5074 | cat confdefs.h >>conftest.$ac_ext |
| 5075 | cat >>conftest.$ac_ext <<_ACEOF |
| 5076 | /* end confdefs.h. */ |
| 5077 | #ifdef __STDC__ |
| 5078 | # include <limits.h> |
| 5079 | #else |
| 5080 | # include <assert.h> |
| 5081 | #endif |
| 5082 | Syntax error |
| 5083 | _ACEOF |
| 5084 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5085 | case "(($ac_try" in |
| 5086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5087 | *) ac_try_echo=$ac_try;; |
| 5088 | esac |
| 5089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5090 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5091 | ac_status=$? |
| 5092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5093 | rm -f conftest.er1 |
| 5094 | cat conftest.err >&5 |
| 5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5096 | (exit $ac_status); } >/dev/null; then |
| 5097 | if test -s conftest.err; then |
| 5098 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5099 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5100 | else |
| 5101 | ac_cpp_err= |
| 5102 | fi |
| 5103 | else |
| 5104 | ac_cpp_err=yes |
| 5105 | fi |
| 5106 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5107 | : |
| 5108 | else |
| 5109 | echo "$as_me: failed program was:" >&5 |
| 5110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5111 | |
| 5112 | # Broken: fails on valid input. |
| 5113 | continue |
| 5114 | fi |
| 5115 | |
| 5116 | rm -f conftest.err conftest.$ac_ext |
| 5117 | |
| 5118 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5119 | # can be detected and how. |
| 5120 | cat >conftest.$ac_ext <<_ACEOF |
| 5121 | /* confdefs.h. */ |
| 5122 | _ACEOF |
| 5123 | cat confdefs.h >>conftest.$ac_ext |
| 5124 | cat >>conftest.$ac_ext <<_ACEOF |
| 5125 | /* end confdefs.h. */ |
| 5126 | #include <ac_nonexistent.h> |
| 5127 | _ACEOF |
| 5128 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5129 | case "(($ac_try" in |
| 5130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5131 | *) ac_try_echo=$ac_try;; |
| 5132 | esac |
| 5133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5134 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5135 | ac_status=$? |
| 5136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5137 | rm -f conftest.er1 |
| 5138 | cat conftest.err >&5 |
| 5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5140 | (exit $ac_status); } >/dev/null; then |
| 5141 | if test -s conftest.err; then |
| 5142 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5144 | else |
| 5145 | ac_cpp_err= |
| 5146 | fi |
| 5147 | else |
| 5148 | ac_cpp_err=yes |
| 5149 | fi |
| 5150 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5151 | # Broken: success on invalid input. |
| 5152 | continue |
| 5153 | else |
| 5154 | echo "$as_me: failed program was:" >&5 |
| 5155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5156 | |
| 5157 | # Passes both tests. |
| 5158 | ac_preproc_ok=: |
| 5159 | break |
| 5160 | fi |
| 5161 | |
| 5162 | rm -f conftest.err conftest.$ac_ext |
| 5163 | |
| 5164 | done |
| 5165 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5166 | rm -f conftest.err conftest.$ac_ext |
| 5167 | if $ac_preproc_ok; then |
| 5168 | : |
| 5169 | else |
| 5170 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5171 | See \`config.log' for more details." >&5 |
| 5172 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5173 | See \`config.log' for more details." >&2;} |
| 5174 | { (exit 1); exit 1; }; } |
| 5175 | fi |
| 5176 | |
| 5177 | ac_ext=c |
| 5178 | ac_cpp='$CPP $CPPFLAGS' |
| 5179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5182 | |
| 5183 | ac_ext=c |
| 5184 | ac_cpp='$CPP $CPPFLAGS' |
| 5185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5188 | if test -n "$ac_tool_prefix"; then |
| 5189 | for ac_prog in gcc |
| 5190 | do |
| 5191 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5192 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5195 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5197 | else |
| 5198 | if test -n "$CC"; then |
| 5199 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5200 | else |
| 5201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5202 | for as_dir in $PATH |
| 5203 | do |
| 5204 | IFS=$as_save_IFS |
| 5205 | test -z "$as_dir" && as_dir=. |
| 5206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5207 | 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] | 5208 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5210 | break 2 |
| 5211 | fi |
| 5212 | done |
| 5213 | done |
| 5214 | IFS=$as_save_IFS |
| 5215 | |
| 5216 | fi |
| 5217 | fi |
| 5218 | CC=$ac_cv_prog_CC |
| 5219 | if test -n "$CC"; then |
| 5220 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5221 | echo "${ECHO_T}$CC" >&6; } |
| 5222 | else |
| 5223 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5224 | echo "${ECHO_T}no" >&6; } |
| 5225 | fi |
| 5226 | |
| 5227 | |
| 5228 | test -n "$CC" && break |
| 5229 | done |
| 5230 | fi |
| 5231 | if test -z "$CC"; then |
| 5232 | ac_ct_CC=$CC |
| 5233 | for ac_prog in gcc |
| 5234 | do |
| 5235 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5236 | set dummy $ac_prog; ac_word=$2 |
| 5237 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5239 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5241 | else |
| 5242 | if test -n "$ac_ct_CC"; then |
| 5243 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5244 | else |
| 5245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5246 | for as_dir in $PATH |
| 5247 | do |
| 5248 | IFS=$as_save_IFS |
| 5249 | test -z "$as_dir" && as_dir=. |
| 5250 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5251 | 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] | 5252 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5254 | break 2 |
| 5255 | fi |
| 5256 | done |
| 5257 | done |
| 5258 | IFS=$as_save_IFS |
| 5259 | |
| 5260 | fi |
| 5261 | fi |
| 5262 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5263 | if test -n "$ac_ct_CC"; then |
| 5264 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5265 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5266 | else |
| 5267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5268 | echo "${ECHO_T}no" >&6; } |
| 5269 | fi |
| 5270 | |
| 5271 | |
| 5272 | test -n "$ac_ct_CC" && break |
| 5273 | done |
| 5274 | |
| 5275 | if test "x$ac_ct_CC" = x; then |
| 5276 | CC="" |
| 5277 | else |
| 5278 | case $cross_compiling:$ac_tool_warned in |
| 5279 | yes:) |
| 5280 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5281 | whose name does not start with the host triplet. If you think this |
| 5282 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5283 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5284 | whose name does not start with the host triplet. If you think this |
| 5285 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5286 | ac_tool_warned=yes ;; |
| 5287 | esac |
| 5288 | CC=$ac_ct_CC |
| 5289 | fi |
| 5290 | fi |
| 5291 | |
| 5292 | |
| 5293 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5294 | See \`config.log' for more details." >&5 |
| 5295 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5296 | See \`config.log' for more details." >&2;} |
| 5297 | { (exit 1); exit 1; }; } |
| 5298 | |
| 5299 | # Provide some information about the compiler. |
| 5300 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5301 | ac_compiler=`set X $ac_compile; echo $2` |
| 5302 | { (ac_try="$ac_compiler --version >&5" |
| 5303 | case "(($ac_try" in |
| 5304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5305 | *) ac_try_echo=$ac_try;; |
| 5306 | esac |
| 5307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5308 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5309 | ac_status=$? |
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5311 | (exit $ac_status); } |
| 5312 | { (ac_try="$ac_compiler -v >&5" |
| 5313 | case "(($ac_try" in |
| 5314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5315 | *) ac_try_echo=$ac_try;; |
| 5316 | esac |
| 5317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5318 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5319 | ac_status=$? |
| 5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5321 | (exit $ac_status); } |
| 5322 | { (ac_try="$ac_compiler -V >&5" |
| 5323 | case "(($ac_try" in |
| 5324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5325 | *) ac_try_echo=$ac_try;; |
| 5326 | esac |
| 5327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5328 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5329 | ac_status=$? |
| 5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5331 | (exit $ac_status); } |
| 5332 | |
| 5333 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5334 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5335 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5337 | else |
| 5338 | cat >conftest.$ac_ext <<_ACEOF |
| 5339 | /* confdefs.h. */ |
| 5340 | _ACEOF |
| 5341 | cat confdefs.h >>conftest.$ac_ext |
| 5342 | cat >>conftest.$ac_ext <<_ACEOF |
| 5343 | /* end confdefs.h. */ |
| 5344 | |
| 5345 | int |
| 5346 | main () |
| 5347 | { |
| 5348 | #ifndef __GNUC__ |
| 5349 | choke me |
| 5350 | #endif |
| 5351 | |
| 5352 | ; |
| 5353 | return 0; |
| 5354 | } |
| 5355 | _ACEOF |
| 5356 | rm -f conftest.$ac_objext |
| 5357 | if { (ac_try="$ac_compile" |
| 5358 | case "(($ac_try" in |
| 5359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5360 | *) ac_try_echo=$ac_try;; |
| 5361 | esac |
| 5362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5363 | (eval "$ac_compile") 2>conftest.er1 |
| 5364 | ac_status=$? |
| 5365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5366 | rm -f conftest.er1 |
| 5367 | cat conftest.err >&5 |
| 5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5369 | (exit $ac_status); } && |
| 5370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5371 | { (case "(($ac_try" in |
| 5372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5373 | *) ac_try_echo=$ac_try;; |
| 5374 | esac |
| 5375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5376 | (eval "$ac_try") 2>&5 |
| 5377 | ac_status=$? |
| 5378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5379 | (exit $ac_status); }; } && |
| 5380 | { ac_try='test -s conftest.$ac_objext' |
| 5381 | { (case "(($ac_try" in |
| 5382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5383 | *) ac_try_echo=$ac_try;; |
| 5384 | esac |
| 5385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5386 | (eval "$ac_try") 2>&5 |
| 5387 | ac_status=$? |
| 5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5389 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5390 | ac_compiler_gnu=yes |
| 5391 | else |
| 5392 | echo "$as_me: failed program was:" >&5 |
| 5393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5394 | |
| 5395 | ac_compiler_gnu=no |
| 5396 | fi |
| 5397 | |
| 5398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5399 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5400 | |
| 5401 | fi |
| 5402 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5403 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5404 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5405 | ac_test_CFLAGS=${CFLAGS+set} |
| 5406 | ac_save_CFLAGS=$CFLAGS |
| 5407 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5408 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5409 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5411 | else |
| 5412 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5413 | ac_c_werror_flag=yes |
| 5414 | ac_cv_prog_cc_g=no |
| 5415 | CFLAGS="-g" |
| 5416 | cat >conftest.$ac_ext <<_ACEOF |
| 5417 | /* confdefs.h. */ |
| 5418 | _ACEOF |
| 5419 | cat confdefs.h >>conftest.$ac_ext |
| 5420 | cat >>conftest.$ac_ext <<_ACEOF |
| 5421 | /* end confdefs.h. */ |
| 5422 | |
| 5423 | int |
| 5424 | main () |
| 5425 | { |
| 5426 | |
| 5427 | ; |
| 5428 | return 0; |
| 5429 | } |
| 5430 | _ACEOF |
| 5431 | rm -f conftest.$ac_objext |
| 5432 | if { (ac_try="$ac_compile" |
| 5433 | case "(($ac_try" in |
| 5434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5435 | *) ac_try_echo=$ac_try;; |
| 5436 | esac |
| 5437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5438 | (eval "$ac_compile") 2>conftest.er1 |
| 5439 | ac_status=$? |
| 5440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5441 | rm -f conftest.er1 |
| 5442 | cat conftest.err >&5 |
| 5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5444 | (exit $ac_status); } && |
| 5445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5446 | { (case "(($ac_try" in |
| 5447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5448 | *) ac_try_echo=$ac_try;; |
| 5449 | esac |
| 5450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5451 | (eval "$ac_try") 2>&5 |
| 5452 | ac_status=$? |
| 5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5454 | (exit $ac_status); }; } && |
| 5455 | { ac_try='test -s conftest.$ac_objext' |
| 5456 | { (case "(($ac_try" in |
| 5457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5458 | *) ac_try_echo=$ac_try;; |
| 5459 | esac |
| 5460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5461 | (eval "$ac_try") 2>&5 |
| 5462 | ac_status=$? |
| 5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5464 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5465 | ac_cv_prog_cc_g=yes |
| 5466 | else |
| 5467 | echo "$as_me: failed program was:" >&5 |
| 5468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5469 | |
| 5470 | CFLAGS="" |
| 5471 | cat >conftest.$ac_ext <<_ACEOF |
| 5472 | /* confdefs.h. */ |
| 5473 | _ACEOF |
| 5474 | cat confdefs.h >>conftest.$ac_ext |
| 5475 | cat >>conftest.$ac_ext <<_ACEOF |
| 5476 | /* end confdefs.h. */ |
| 5477 | |
| 5478 | int |
| 5479 | main () |
| 5480 | { |
| 5481 | |
| 5482 | ; |
| 5483 | return 0; |
| 5484 | } |
| 5485 | _ACEOF |
| 5486 | rm -f conftest.$ac_objext |
| 5487 | if { (ac_try="$ac_compile" |
| 5488 | case "(($ac_try" in |
| 5489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5490 | *) ac_try_echo=$ac_try;; |
| 5491 | esac |
| 5492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5493 | (eval "$ac_compile") 2>conftest.er1 |
| 5494 | ac_status=$? |
| 5495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5496 | rm -f conftest.er1 |
| 5497 | cat conftest.err >&5 |
| 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5499 | (exit $ac_status); } && |
| 5500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5501 | { (case "(($ac_try" in |
| 5502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5503 | *) ac_try_echo=$ac_try;; |
| 5504 | esac |
| 5505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5506 | (eval "$ac_try") 2>&5 |
| 5507 | ac_status=$? |
| 5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5509 | (exit $ac_status); }; } && |
| 5510 | { ac_try='test -s conftest.$ac_objext' |
| 5511 | { (case "(($ac_try" in |
| 5512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5513 | *) ac_try_echo=$ac_try;; |
| 5514 | esac |
| 5515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5516 | (eval "$ac_try") 2>&5 |
| 5517 | ac_status=$? |
| 5518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5519 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5520 | : |
| 5521 | else |
| 5522 | echo "$as_me: failed program was:" >&5 |
| 5523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5524 | |
| 5525 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5526 | CFLAGS="-g" |
| 5527 | cat >conftest.$ac_ext <<_ACEOF |
| 5528 | /* confdefs.h. */ |
| 5529 | _ACEOF |
| 5530 | cat confdefs.h >>conftest.$ac_ext |
| 5531 | cat >>conftest.$ac_ext <<_ACEOF |
| 5532 | /* end confdefs.h. */ |
| 5533 | |
| 5534 | int |
| 5535 | main () |
| 5536 | { |
| 5537 | |
| 5538 | ; |
| 5539 | return 0; |
| 5540 | } |
| 5541 | _ACEOF |
| 5542 | rm -f conftest.$ac_objext |
| 5543 | if { (ac_try="$ac_compile" |
| 5544 | case "(($ac_try" in |
| 5545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5546 | *) ac_try_echo=$ac_try;; |
| 5547 | esac |
| 5548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5549 | (eval "$ac_compile") 2>conftest.er1 |
| 5550 | ac_status=$? |
| 5551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5552 | rm -f conftest.er1 |
| 5553 | cat conftest.err >&5 |
| 5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5555 | (exit $ac_status); } && |
| 5556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5557 | { (case "(($ac_try" in |
| 5558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5559 | *) ac_try_echo=$ac_try;; |
| 5560 | esac |
| 5561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5562 | (eval "$ac_try") 2>&5 |
| 5563 | ac_status=$? |
| 5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5565 | (exit $ac_status); }; } && |
| 5566 | { ac_try='test -s conftest.$ac_objext' |
| 5567 | { (case "(($ac_try" in |
| 5568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5569 | *) ac_try_echo=$ac_try;; |
| 5570 | esac |
| 5571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5572 | (eval "$ac_try") 2>&5 |
| 5573 | ac_status=$? |
| 5574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5575 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5576 | ac_cv_prog_cc_g=yes |
| 5577 | else |
| 5578 | echo "$as_me: failed program was:" >&5 |
| 5579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5580 | |
| 5581 | |
| 5582 | fi |
| 5583 | |
| 5584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5585 | fi |
| 5586 | |
| 5587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5588 | fi |
| 5589 | |
| 5590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5591 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5592 | fi |
| 5593 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5594 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5595 | if test "$ac_test_CFLAGS" = set; then |
| 5596 | CFLAGS=$ac_save_CFLAGS |
| 5597 | elif test $ac_cv_prog_cc_g = yes; then |
| 5598 | if test "$GCC" = yes; then |
| 5599 | CFLAGS="-g -O2" |
| 5600 | else |
| 5601 | CFLAGS="-g" |
| 5602 | fi |
| 5603 | else |
| 5604 | if test "$GCC" = yes; then |
| 5605 | CFLAGS="-O2" |
| 5606 | else |
| 5607 | CFLAGS= |
| 5608 | fi |
| 5609 | fi |
| 5610 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5611 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5612 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5614 | else |
| 5615 | ac_cv_prog_cc_c89=no |
| 5616 | ac_save_CC=$CC |
| 5617 | cat >conftest.$ac_ext <<_ACEOF |
| 5618 | /* confdefs.h. */ |
| 5619 | _ACEOF |
| 5620 | cat confdefs.h >>conftest.$ac_ext |
| 5621 | cat >>conftest.$ac_ext <<_ACEOF |
| 5622 | /* end confdefs.h. */ |
| 5623 | #include <stdarg.h> |
| 5624 | #include <stdio.h> |
| 5625 | #include <sys/types.h> |
| 5626 | #include <sys/stat.h> |
| 5627 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5628 | struct buf { int x; }; |
| 5629 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5630 | static char *e (p, i) |
| 5631 | char **p; |
| 5632 | int i; |
| 5633 | { |
| 5634 | return p[i]; |
| 5635 | } |
| 5636 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5637 | { |
| 5638 | char *s; |
| 5639 | va_list v; |
| 5640 | va_start (v,p); |
| 5641 | s = g (p, va_arg (v,int)); |
| 5642 | va_end (v); |
| 5643 | return s; |
| 5644 | } |
| 5645 | |
| 5646 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5647 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5648 | These don't provoke an error unfortunately, instead are silently treated |
| 5649 | as 'x'. The following induces an error, until -std is added to get |
| 5650 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5651 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5652 | that's true only with -std. */ |
| 5653 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5654 | |
| 5655 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5656 | inside strings and character constants. */ |
| 5657 | #define FOO(x) 'x' |
| 5658 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5659 | |
| 5660 | int test (int i, double x); |
| 5661 | struct s1 {int (*f) (int a);}; |
| 5662 | struct s2 {int (*f) (double a);}; |
| 5663 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5664 | int argc; |
| 5665 | char **argv; |
| 5666 | int |
| 5667 | main () |
| 5668 | { |
| 5669 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5670 | ; |
| 5671 | return 0; |
| 5672 | } |
| 5673 | _ACEOF |
| 5674 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5675 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5676 | do |
| 5677 | CC="$ac_save_CC $ac_arg" |
| 5678 | rm -f conftest.$ac_objext |
| 5679 | if { (ac_try="$ac_compile" |
| 5680 | case "(($ac_try" in |
| 5681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5682 | *) ac_try_echo=$ac_try;; |
| 5683 | esac |
| 5684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5685 | (eval "$ac_compile") 2>conftest.er1 |
| 5686 | ac_status=$? |
| 5687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5688 | rm -f conftest.er1 |
| 5689 | cat conftest.err >&5 |
| 5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5691 | (exit $ac_status); } && |
| 5692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5693 | { (case "(($ac_try" in |
| 5694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5695 | *) ac_try_echo=$ac_try;; |
| 5696 | esac |
| 5697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5698 | (eval "$ac_try") 2>&5 |
| 5699 | ac_status=$? |
| 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5701 | (exit $ac_status); }; } && |
| 5702 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 5709 | ac_status=$? |
| 5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5711 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5712 | ac_cv_prog_cc_c89=$ac_arg |
| 5713 | else |
| 5714 | echo "$as_me: failed program was:" >&5 |
| 5715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5716 | |
| 5717 | |
| 5718 | fi |
| 5719 | |
| 5720 | rm -f core conftest.err conftest.$ac_objext |
| 5721 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5722 | done |
| 5723 | rm -f conftest.$ac_ext |
| 5724 | CC=$ac_save_CC |
| 5725 | |
| 5726 | fi |
| 5727 | # AC_CACHE_VAL |
| 5728 | case "x$ac_cv_prog_cc_c89" in |
| 5729 | x) |
| 5730 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5731 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5732 | xno) |
| 5733 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5734 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5735 | *) |
| 5736 | CC="$CC $ac_cv_prog_cc_c89" |
| 5737 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5738 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5739 | esac |
| 5740 | |
| 5741 | |
| 5742 | ac_ext=c |
| 5743 | ac_cpp='$CPP $CPPFLAGS' |
| 5744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5747 | |
| 5748 | ac_ext=cpp |
| 5749 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5750 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5751 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5752 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5753 | if test -z "$CXX"; then |
| 5754 | if test -n "$CCC"; then |
| 5755 | CXX=$CCC |
| 5756 | else |
| 5757 | if test -n "$ac_tool_prefix"; then |
| 5758 | for ac_prog in g++ |
| 5759 | do |
| 5760 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5761 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5762 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5764 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5766 | else |
| 5767 | if test -n "$CXX"; then |
| 5768 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5769 | else |
| 5770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5771 | for as_dir in $PATH |
| 5772 | do |
| 5773 | IFS=$as_save_IFS |
| 5774 | test -z "$as_dir" && as_dir=. |
| 5775 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5776 | 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] | 5777 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5779 | break 2 |
| 5780 | fi |
| 5781 | done |
| 5782 | done |
| 5783 | IFS=$as_save_IFS |
| 5784 | |
| 5785 | fi |
| 5786 | fi |
| 5787 | CXX=$ac_cv_prog_CXX |
| 5788 | if test -n "$CXX"; then |
| 5789 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5790 | echo "${ECHO_T}$CXX" >&6; } |
| 5791 | else |
| 5792 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5793 | echo "${ECHO_T}no" >&6; } |
| 5794 | fi |
| 5795 | |
| 5796 | |
| 5797 | test -n "$CXX" && break |
| 5798 | done |
| 5799 | fi |
| 5800 | if test -z "$CXX"; then |
| 5801 | ac_ct_CXX=$CXX |
| 5802 | for ac_prog in g++ |
| 5803 | do |
| 5804 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5805 | set dummy $ac_prog; ac_word=$2 |
| 5806 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5808 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5810 | else |
| 5811 | if test -n "$ac_ct_CXX"; then |
| 5812 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5813 | else |
| 5814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5815 | for as_dir in $PATH |
| 5816 | do |
| 5817 | IFS=$as_save_IFS |
| 5818 | test -z "$as_dir" && as_dir=. |
| 5819 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5820 | 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] | 5821 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5823 | break 2 |
| 5824 | fi |
| 5825 | done |
| 5826 | done |
| 5827 | IFS=$as_save_IFS |
| 5828 | |
| 5829 | fi |
| 5830 | fi |
| 5831 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5832 | if test -n "$ac_ct_CXX"; then |
| 5833 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5834 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5835 | else |
| 5836 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5837 | echo "${ECHO_T}no" >&6; } |
| 5838 | fi |
| 5839 | |
| 5840 | |
| 5841 | test -n "$ac_ct_CXX" && break |
| 5842 | done |
| 5843 | |
| 5844 | if test "x$ac_ct_CXX" = x; then |
| 5845 | CXX="g++" |
| 5846 | else |
| 5847 | case $cross_compiling:$ac_tool_warned in |
| 5848 | yes:) |
| 5849 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5850 | whose name does not start with the host triplet. If you think this |
| 5851 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5852 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5853 | whose name does not start with the host triplet. If you think this |
| 5854 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5855 | ac_tool_warned=yes ;; |
| 5856 | esac |
| 5857 | CXX=$ac_ct_CXX |
| 5858 | fi |
| 5859 | fi |
| 5860 | |
| 5861 | fi |
| 5862 | fi |
| 5863 | # Provide some information about the compiler. |
| 5864 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5865 | ac_compiler=`set X $ac_compile; echo $2` |
| 5866 | { (ac_try="$ac_compiler --version >&5" |
| 5867 | case "(($ac_try" in |
| 5868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5869 | *) ac_try_echo=$ac_try;; |
| 5870 | esac |
| 5871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5872 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5873 | ac_status=$? |
| 5874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5875 | (exit $ac_status); } |
| 5876 | { (ac_try="$ac_compiler -v >&5" |
| 5877 | case "(($ac_try" in |
| 5878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5879 | *) ac_try_echo=$ac_try;; |
| 5880 | esac |
| 5881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5882 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5883 | ac_status=$? |
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5885 | (exit $ac_status); } |
| 5886 | { (ac_try="$ac_compiler -V >&5" |
| 5887 | case "(($ac_try" in |
| 5888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5889 | *) ac_try_echo=$ac_try;; |
| 5890 | esac |
| 5891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5892 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5893 | ac_status=$? |
| 5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5895 | (exit $ac_status); } |
| 5896 | |
| 5897 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5898 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5899 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5901 | else |
| 5902 | cat >conftest.$ac_ext <<_ACEOF |
| 5903 | /* confdefs.h. */ |
| 5904 | _ACEOF |
| 5905 | cat confdefs.h >>conftest.$ac_ext |
| 5906 | cat >>conftest.$ac_ext <<_ACEOF |
| 5907 | /* end confdefs.h. */ |
| 5908 | |
| 5909 | int |
| 5910 | main () |
| 5911 | { |
| 5912 | #ifndef __GNUC__ |
| 5913 | choke me |
| 5914 | #endif |
| 5915 | |
| 5916 | ; |
| 5917 | return 0; |
| 5918 | } |
| 5919 | _ACEOF |
| 5920 | rm -f conftest.$ac_objext |
| 5921 | if { (ac_try="$ac_compile" |
| 5922 | case "(($ac_try" in |
| 5923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5924 | *) ac_try_echo=$ac_try;; |
| 5925 | esac |
| 5926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5927 | (eval "$ac_compile") 2>conftest.er1 |
| 5928 | ac_status=$? |
| 5929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5930 | rm -f conftest.er1 |
| 5931 | cat conftest.err >&5 |
| 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5933 | (exit $ac_status); } && |
| 5934 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5935 | { (case "(($ac_try" in |
| 5936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5937 | *) ac_try_echo=$ac_try;; |
| 5938 | esac |
| 5939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5940 | (eval "$ac_try") 2>&5 |
| 5941 | ac_status=$? |
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5943 | (exit $ac_status); }; } && |
| 5944 | { ac_try='test -s conftest.$ac_objext' |
| 5945 | { (case "(($ac_try" in |
| 5946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5947 | *) ac_try_echo=$ac_try;; |
| 5948 | esac |
| 5949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5950 | (eval "$ac_try") 2>&5 |
| 5951 | ac_status=$? |
| 5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5953 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5954 | ac_compiler_gnu=yes |
| 5955 | else |
| 5956 | echo "$as_me: failed program was:" >&5 |
| 5957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5958 | |
| 5959 | ac_compiler_gnu=no |
| 5960 | fi |
| 5961 | |
| 5962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5963 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5964 | |
| 5965 | fi |
| 5966 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5967 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5968 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5969 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5970 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5971 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5972 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5973 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5975 | else |
| 5976 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5977 | ac_cxx_werror_flag=yes |
| 5978 | ac_cv_prog_cxx_g=no |
| 5979 | CXXFLAGS="-g" |
| 5980 | cat >conftest.$ac_ext <<_ACEOF |
| 5981 | /* confdefs.h. */ |
| 5982 | _ACEOF |
| 5983 | cat confdefs.h >>conftest.$ac_ext |
| 5984 | cat >>conftest.$ac_ext <<_ACEOF |
| 5985 | /* end confdefs.h. */ |
| 5986 | |
| 5987 | int |
| 5988 | main () |
| 5989 | { |
| 5990 | |
| 5991 | ; |
| 5992 | return 0; |
| 5993 | } |
| 5994 | _ACEOF |
| 5995 | rm -f conftest.$ac_objext |
| 5996 | if { (ac_try="$ac_compile" |
| 5997 | case "(($ac_try" in |
| 5998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5999 | *) ac_try_echo=$ac_try;; |
| 6000 | esac |
| 6001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6002 | (eval "$ac_compile") 2>conftest.er1 |
| 6003 | ac_status=$? |
| 6004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6005 | rm -f conftest.er1 |
| 6006 | cat conftest.err >&5 |
| 6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6008 | (exit $ac_status); } && |
| 6009 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6010 | { (case "(($ac_try" in |
| 6011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6012 | *) ac_try_echo=$ac_try;; |
| 6013 | esac |
| 6014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6015 | (eval "$ac_try") 2>&5 |
| 6016 | ac_status=$? |
| 6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6018 | (exit $ac_status); }; } && |
| 6019 | { ac_try='test -s conftest.$ac_objext' |
| 6020 | { (case "(($ac_try" in |
| 6021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6022 | *) ac_try_echo=$ac_try;; |
| 6023 | esac |
| 6024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6025 | (eval "$ac_try") 2>&5 |
| 6026 | ac_status=$? |
| 6027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6028 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6029 | ac_cv_prog_cxx_g=yes |
| 6030 | else |
| 6031 | echo "$as_me: failed program was:" >&5 |
| 6032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6033 | |
| 6034 | CXXFLAGS="" |
| 6035 | cat >conftest.$ac_ext <<_ACEOF |
| 6036 | /* confdefs.h. */ |
| 6037 | _ACEOF |
| 6038 | cat confdefs.h >>conftest.$ac_ext |
| 6039 | cat >>conftest.$ac_ext <<_ACEOF |
| 6040 | /* end confdefs.h. */ |
| 6041 | |
| 6042 | int |
| 6043 | main () |
| 6044 | { |
| 6045 | |
| 6046 | ; |
| 6047 | return 0; |
| 6048 | } |
| 6049 | _ACEOF |
| 6050 | rm -f conftest.$ac_objext |
| 6051 | if { (ac_try="$ac_compile" |
| 6052 | case "(($ac_try" in |
| 6053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6054 | *) ac_try_echo=$ac_try;; |
| 6055 | esac |
| 6056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6057 | (eval "$ac_compile") 2>conftest.er1 |
| 6058 | ac_status=$? |
| 6059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6060 | rm -f conftest.er1 |
| 6061 | cat conftest.err >&5 |
| 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6063 | (exit $ac_status); } && |
| 6064 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6065 | { (case "(($ac_try" in |
| 6066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6067 | *) ac_try_echo=$ac_try;; |
| 6068 | esac |
| 6069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6070 | (eval "$ac_try") 2>&5 |
| 6071 | ac_status=$? |
| 6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6073 | (exit $ac_status); }; } && |
| 6074 | { ac_try='test -s conftest.$ac_objext' |
| 6075 | { (case "(($ac_try" in |
| 6076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6077 | *) ac_try_echo=$ac_try;; |
| 6078 | esac |
| 6079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6080 | (eval "$ac_try") 2>&5 |
| 6081 | ac_status=$? |
| 6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6083 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6084 | : |
| 6085 | else |
| 6086 | echo "$as_me: failed program was:" >&5 |
| 6087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6088 | |
| 6089 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6090 | CXXFLAGS="-g" |
| 6091 | cat >conftest.$ac_ext <<_ACEOF |
| 6092 | /* confdefs.h. */ |
| 6093 | _ACEOF |
| 6094 | cat confdefs.h >>conftest.$ac_ext |
| 6095 | cat >>conftest.$ac_ext <<_ACEOF |
| 6096 | /* end confdefs.h. */ |
| 6097 | |
| 6098 | int |
| 6099 | main () |
| 6100 | { |
| 6101 | |
| 6102 | ; |
| 6103 | return 0; |
| 6104 | } |
| 6105 | _ACEOF |
| 6106 | rm -f conftest.$ac_objext |
| 6107 | if { (ac_try="$ac_compile" |
| 6108 | case "(($ac_try" in |
| 6109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6110 | *) ac_try_echo=$ac_try;; |
| 6111 | esac |
| 6112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6113 | (eval "$ac_compile") 2>conftest.er1 |
| 6114 | ac_status=$? |
| 6115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6116 | rm -f conftest.er1 |
| 6117 | cat conftest.err >&5 |
| 6118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6119 | (exit $ac_status); } && |
| 6120 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6121 | { (case "(($ac_try" in |
| 6122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6123 | *) ac_try_echo=$ac_try;; |
| 6124 | esac |
| 6125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6126 | (eval "$ac_try") 2>&5 |
| 6127 | ac_status=$? |
| 6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6129 | (exit $ac_status); }; } && |
| 6130 | { ac_try='test -s conftest.$ac_objext' |
| 6131 | { (case "(($ac_try" in |
| 6132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6133 | *) ac_try_echo=$ac_try;; |
| 6134 | esac |
| 6135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6136 | (eval "$ac_try") 2>&5 |
| 6137 | ac_status=$? |
| 6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6139 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6140 | ac_cv_prog_cxx_g=yes |
| 6141 | else |
| 6142 | echo "$as_me: failed program was:" >&5 |
| 6143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6144 | |
| 6145 | |
| 6146 | fi |
| 6147 | |
| 6148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6149 | fi |
| 6150 | |
| 6151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6152 | fi |
| 6153 | |
| 6154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6155 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6156 | fi |
| 6157 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6158 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6159 | if test "$ac_test_CXXFLAGS" = set; then |
| 6160 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6161 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6162 | if test "$GXX" = yes; then |
| 6163 | CXXFLAGS="-g -O2" |
| 6164 | else |
| 6165 | CXXFLAGS="-g" |
| 6166 | fi |
| 6167 | else |
| 6168 | if test "$GXX" = yes; then |
| 6169 | CXXFLAGS="-O2" |
| 6170 | else |
| 6171 | CXXFLAGS= |
| 6172 | fi |
| 6173 | fi |
| 6174 | ac_ext=c |
| 6175 | ac_cpp='$CPP $CPPFLAGS' |
| 6176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6179 | |
| 6180 | { echo "$as_me:$LINENO: checking " >&5 |
| 6181 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6182 | if test "${ac_cv_has_flex+set}" = set; then |
| 6183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6184 | else |
| 6185 | for ac_prog in flex lex |
| 6186 | do |
| 6187 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6188 | set dummy $ac_prog; ac_word=$2 |
| 6189 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6191 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6193 | else |
| 6194 | if test -n "$LEX"; then |
| 6195 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 6196 | else |
| 6197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6198 | for as_dir in $PATH |
| 6199 | do |
| 6200 | IFS=$as_save_IFS |
| 6201 | test -z "$as_dir" && as_dir=. |
| 6202 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6203 | 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] | 6204 | ac_cv_prog_LEX="$ac_prog" |
| 6205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6206 | break 2 |
| 6207 | fi |
| 6208 | done |
| 6209 | done |
| 6210 | IFS=$as_save_IFS |
| 6211 | |
| 6212 | fi |
| 6213 | fi |
| 6214 | LEX=$ac_cv_prog_LEX |
| 6215 | if test -n "$LEX"; then |
| 6216 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 6217 | echo "${ECHO_T}$LEX" >&6; } |
| 6218 | else |
| 6219 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6220 | echo "${ECHO_T}no" >&6; } |
| 6221 | fi |
| 6222 | |
| 6223 | |
| 6224 | test -n "$LEX" && break |
| 6225 | done |
| 6226 | test -n "$LEX" || LEX=":" |
| 6227 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6228 | if test -z "$LEXLIB" |
| 6229 | then |
| 6230 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 6231 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
| 6232 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 6233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6234 | else |
| 6235 | ac_check_lib_save_LIBS=$LIBS |
| 6236 | LIBS="-lfl $LIBS" |
| 6237 | cat >conftest.$ac_ext <<_ACEOF |
| 6238 | /* confdefs.h. */ |
| 6239 | _ACEOF |
| 6240 | cat confdefs.h >>conftest.$ac_ext |
| 6241 | cat >>conftest.$ac_ext <<_ACEOF |
| 6242 | /* end confdefs.h. */ |
| 6243 | |
| 6244 | /* Override any GCC internal prototype to avoid an error. |
| 6245 | Use char because int might match the return type of a GCC |
| 6246 | builtin and then its argument prototype would still apply. */ |
| 6247 | #ifdef __cplusplus |
| 6248 | extern "C" |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6249 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6250 | char yywrap (); |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6251 | int |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6252 | main () |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6253 | { |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6254 | return yywrap (); |
| 6255 | ; |
| 6256 | return 0; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6257 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6258 | _ACEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6259 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6260 | if { (ac_try="$ac_link" |
| 6261 | case "(($ac_try" in |
| 6262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6263 | *) ac_try_echo=$ac_try;; |
| 6264 | esac |
| 6265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6266 | (eval "$ac_link") 2>conftest.er1 |
| 6267 | ac_status=$? |
| 6268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6269 | rm -f conftest.er1 |
| 6270 | cat conftest.err >&5 |
| 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6272 | (exit $ac_status); } && |
| 6273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6274 | { (case "(($ac_try" in |
| 6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6276 | *) ac_try_echo=$ac_try;; |
| 6277 | esac |
| 6278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6279 | (eval "$ac_try") 2>&5 |
| 6280 | ac_status=$? |
| 6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6282 | (exit $ac_status); }; } && |
| 6283 | { ac_try='test -s conftest$ac_exeext' |
| 6284 | { (case "(($ac_try" in |
| 6285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6286 | *) ac_try_echo=$ac_try;; |
| 6287 | esac |
| 6288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6289 | (eval "$ac_try") 2>&5 |
| 6290 | ac_status=$? |
| 6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6292 | (exit $ac_status); }; }; then |
| 6293 | ac_cv_lib_fl_yywrap=yes |
| 6294 | else |
| 6295 | echo "$as_me: failed program was:" >&5 |
| 6296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6297 | |
| 6298 | ac_cv_lib_fl_yywrap=no |
| 6299 | fi |
| 6300 | |
| 6301 | rm -f core conftest.err conftest.$ac_objext \ |
| 6302 | conftest$ac_exeext conftest.$ac_ext |
| 6303 | LIBS=$ac_check_lib_save_LIBS |
| 6304 | fi |
| 6305 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 6306 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
| 6307 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 6308 | LEXLIB="-lfl" |
| 6309 | else |
| 6310 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 6311 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
| 6312 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 6313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6314 | else |
| 6315 | ac_check_lib_save_LIBS=$LIBS |
| 6316 | LIBS="-ll $LIBS" |
| 6317 | cat >conftest.$ac_ext <<_ACEOF |
| 6318 | /* confdefs.h. */ |
| 6319 | _ACEOF |
| 6320 | cat confdefs.h >>conftest.$ac_ext |
| 6321 | cat >>conftest.$ac_ext <<_ACEOF |
| 6322 | /* end confdefs.h. */ |
| 6323 | |
| 6324 | /* Override any GCC internal prototype to avoid an error. |
| 6325 | Use char because int might match the return type of a GCC |
| 6326 | builtin and then its argument prototype would still apply. */ |
| 6327 | #ifdef __cplusplus |
| 6328 | extern "C" |
| 6329 | #endif |
| 6330 | char yywrap (); |
| 6331 | int |
| 6332 | main () |
| 6333 | { |
| 6334 | return yywrap (); |
| 6335 | ; |
| 6336 | return 0; |
| 6337 | } |
| 6338 | _ACEOF |
| 6339 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6340 | if { (ac_try="$ac_link" |
| 6341 | case "(($ac_try" in |
| 6342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6343 | *) ac_try_echo=$ac_try;; |
| 6344 | esac |
| 6345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6346 | (eval "$ac_link") 2>conftest.er1 |
| 6347 | ac_status=$? |
| 6348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6349 | rm -f conftest.er1 |
| 6350 | cat conftest.err >&5 |
| 6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6352 | (exit $ac_status); } && |
| 6353 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6354 | { (case "(($ac_try" in |
| 6355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6356 | *) ac_try_echo=$ac_try;; |
| 6357 | esac |
| 6358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6359 | (eval "$ac_try") 2>&5 |
| 6360 | ac_status=$? |
| 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6362 | (exit $ac_status); }; } && |
| 6363 | { ac_try='test -s conftest$ac_exeext' |
| 6364 | { (case "(($ac_try" in |
| 6365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6366 | *) ac_try_echo=$ac_try;; |
| 6367 | esac |
| 6368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6369 | (eval "$ac_try") 2>&5 |
| 6370 | ac_status=$? |
| 6371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6372 | (exit $ac_status); }; }; then |
| 6373 | ac_cv_lib_l_yywrap=yes |
| 6374 | else |
| 6375 | echo "$as_me: failed program was:" >&5 |
| 6376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6377 | |
| 6378 | ac_cv_lib_l_yywrap=no |
| 6379 | fi |
| 6380 | |
| 6381 | rm -f core conftest.err conftest.$ac_objext \ |
| 6382 | conftest$ac_exeext conftest.$ac_ext |
| 6383 | LIBS=$ac_check_lib_save_LIBS |
| 6384 | fi |
| 6385 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 6386 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
| 6387 | if test $ac_cv_lib_l_yywrap = yes; then |
| 6388 | LEXLIB="-ll" |
| 6389 | fi |
| 6390 | |
| 6391 | fi |
| 6392 | |
| 6393 | fi |
| 6394 | |
| 6395 | if test "x$LEX" != "x:"; then |
| 6396 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 6397 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 6398 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 6399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6400 | else |
| 6401 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 6402 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 6403 | cat >conftest.l <<_ACEOF |
| 6404 | %% |
| 6405 | %% |
| 6406 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6407 | { (ac_try="$LEX conftest.l" |
| 6408 | case "(($ac_try" in |
| 6409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6410 | *) ac_try_echo=$ac_try;; |
| 6411 | esac |
| 6412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6413 | (eval "$LEX conftest.l") 2>&5 |
| 6414 | ac_status=$? |
| 6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6416 | (exit $ac_status); } |
| 6417 | if test -f lex.yy.c; then |
| 6418 | ac_cv_prog_lex_root=lex.yy |
| 6419 | elif test -f lexyy.c; then |
| 6420 | ac_cv_prog_lex_root=lexyy |
| 6421 | else |
| 6422 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 6423 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 6424 | { (exit 1); exit 1; }; } |
| 6425 | fi |
| 6426 | fi |
| 6427 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 6428 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6429 | rm -f conftest.l |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6430 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 6431 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6432 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 6433 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 6434 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 6435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6436 | else |
| 6437 | # POSIX says lex can declare yytext either as a pointer or an array; the |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6438 | # default is implementation-dependent. Figure out which it is, since |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6439 | # not all implementations provide the %pointer and %array declarations. |
| 6440 | ac_cv_prog_lex_yytext_pointer=no |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6441 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6442 | ac_save_LIBS=$LIBS |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6443 | LIBS="$LIBS $LEXLIB" |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6444 | cat >conftest.$ac_ext <<_ACEOF |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6445 | `cat $LEX_OUTPUT_ROOT.c` |
| 6446 | _ACEOF |
| 6447 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6448 | if { (ac_try="$ac_link" |
| 6449 | case "(($ac_try" in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6451 | *) ac_try_echo=$ac_try;; |
| 6452 | esac |
| 6453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6454 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6455 | ac_status=$? |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6457 | rm -f conftest.er1 |
| 6458 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6460 | (exit $ac_status); } && |
| 6461 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6462 | { (case "(($ac_try" in |
| 6463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6464 | *) ac_try_echo=$ac_try;; |
| 6465 | esac |
| 6466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6467 | (eval "$ac_try") 2>&5 |
| 6468 | ac_status=$? |
| 6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6470 | (exit $ac_status); }; } && |
| 6471 | { ac_try='test -s conftest$ac_exeext' |
| 6472 | { (case "(($ac_try" in |
| 6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6474 | *) ac_try_echo=$ac_try;; |
| 6475 | esac |
| 6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6477 | (eval "$ac_try") 2>&5 |
| 6478 | ac_status=$? |
| 6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6480 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6481 | ac_cv_prog_lex_yytext_pointer=yes |
| 6482 | else |
| 6483 | echo "$as_me: failed program was:" >&5 |
| 6484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6485 | |
| 6486 | |
| 6487 | fi |
| 6488 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6489 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6490 | conftest$ac_exeext conftest.$ac_ext |
| 6491 | LIBS=$ac_save_LIBS |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6492 | rm -f "${LEX_OUTPUT_ROOT}.c" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6493 | |
| 6494 | fi |
| 6495 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6496 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6497 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6498 | |
| 6499 | cat >>confdefs.h <<\_ACEOF |
| 6500 | #define YYTEXT_POINTER 1 |
| 6501 | _ACEOF |
| 6502 | |
| 6503 | fi |
| 6504 | |
| 6505 | fi |
| 6506 | |
| 6507 | fi |
| 6508 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6509 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6510 | if test "$LEX" != "flex"; then |
| 6511 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6512 | echo "$as_me: error: flex not found but required" >&2;} |
| 6513 | { (exit 1); exit 1; }; } |
| 6514 | else |
| 6515 | FLEX=flex |
| 6516 | |
| 6517 | fi |
| 6518 | |
| 6519 | { echo "$as_me:$LINENO: checking " >&5 |
| 6520 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6521 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6523 | else |
| 6524 | for ac_prog in 'bison -y' byacc |
| 6525 | do |
| 6526 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6527 | set dummy $ac_prog; ac_word=$2 |
| 6528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6530 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 6531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6532 | else |
| 6533 | if test -n "$YACC"; then |
| 6534 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6535 | else |
| 6536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6537 | for as_dir in $PATH |
| 6538 | do |
| 6539 | IFS=$as_save_IFS |
| 6540 | test -z "$as_dir" && as_dir=. |
| 6541 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6542 | 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] | 6543 | ac_cv_prog_YACC="$ac_prog" |
| 6544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6545 | break 2 |
| 6546 | fi |
| 6547 | done |
| 6548 | done |
| 6549 | IFS=$as_save_IFS |
| 6550 | |
| 6551 | fi |
| 6552 | fi |
| 6553 | YACC=$ac_cv_prog_YACC |
| 6554 | if test -n "$YACC"; then |
| 6555 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6556 | echo "${ECHO_T}$YACC" >&6; } |
| 6557 | else |
| 6558 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6559 | echo "${ECHO_T}no" >&6; } |
| 6560 | fi |
| 6561 | |
| 6562 | |
| 6563 | test -n "$YACC" && break |
| 6564 | done |
| 6565 | test -n "$YACC" || YACC="yacc" |
| 6566 | |
| 6567 | fi |
| 6568 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6569 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6570 | if test "$YACC" != "bison -y"; then |
Reid Spencer | 4869d7f | 2006-08-24 22:41:20 +0000 | [diff] [blame] | 6571 | |
| 6572 | { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 |
| 6573 | echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6574 | else |
| 6575 | BISON=bison |
| 6576 | |
| 6577 | fi |
| 6578 | |
| 6579 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6580 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6581 | if test "${lt_cv_path_NM+set}" = set; then |
| 6582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6583 | else |
| 6584 | if test -n "$NM"; then |
| 6585 | # Let the user override the test. |
| 6586 | lt_cv_path_NM="$NM" |
| 6587 | else |
| 6588 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6589 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6590 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6591 | fi |
| 6592 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6593 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6594 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6595 | IFS="$lt_save_ifs" |
| 6596 | test -z "$ac_dir" && ac_dir=. |
| 6597 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6598 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6599 | # Check to see if the nm accepts a BSD-compat flag. |
| 6600 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6601 | # nm: unknown option "B" ignored |
| 6602 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6603 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6604 | */dev/null* | *'Invalid file or object type'*) |
| 6605 | lt_cv_path_NM="$tmp_nm -B" |
| 6606 | break |
| 6607 | ;; |
| 6608 | *) |
| 6609 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6610 | */dev/null*) |
| 6611 | lt_cv_path_NM="$tmp_nm -p" |
| 6612 | break |
| 6613 | ;; |
| 6614 | *) |
| 6615 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6616 | continue # so that we can try to find one that supports BSD flags |
| 6617 | ;; |
| 6618 | esac |
| 6619 | ;; |
| 6620 | esac |
| 6621 | fi |
| 6622 | done |
| 6623 | IFS="$lt_save_ifs" |
| 6624 | done |
| 6625 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6626 | fi |
| 6627 | fi |
| 6628 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6629 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6630 | NM="$lt_cv_path_NM" |
| 6631 | |
| 6632 | |
| 6633 | |
| 6634 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6635 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6636 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6638 | else |
| 6639 | llvm_cv_gnu_make_command='' |
| 6640 | for a in "$MAKE" make gmake gnumake ; do |
| 6641 | if test -z "$a" ; then continue ; fi ; |
| 6642 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6643 | then |
| 6644 | llvm_cv_gnu_make_command=$a ; |
| 6645 | break; |
| 6646 | fi |
| 6647 | done |
| 6648 | fi |
| 6649 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6650 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6651 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6652 | ifGNUmake='' ; |
| 6653 | else |
| 6654 | ifGNUmake='#' ; |
| 6655 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6656 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6657 | fi |
| 6658 | |
| 6659 | |
| 6660 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6661 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6662 | LN_S=$as_ln_s |
| 6663 | if test "$LN_S" = "ln -s"; then |
| 6664 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6665 | echo "${ECHO_T}yes" >&6; } |
| 6666 | else |
| 6667 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6668 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6669 | fi |
| 6670 | |
| 6671 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6672 | set dummy cmp; ac_word=$2 |
| 6673 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6675 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6677 | else |
| 6678 | case $CMP in |
| 6679 | [\\/]* | ?:[\\/]*) |
| 6680 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6681 | ;; |
| 6682 | *) |
| 6683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6684 | for as_dir in $PATH |
| 6685 | do |
| 6686 | IFS=$as_save_IFS |
| 6687 | test -z "$as_dir" && as_dir=. |
| 6688 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6689 | 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] | 6690 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6692 | break 2 |
| 6693 | fi |
| 6694 | done |
| 6695 | done |
| 6696 | IFS=$as_save_IFS |
| 6697 | |
| 6698 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6699 | ;; |
| 6700 | esac |
| 6701 | fi |
| 6702 | CMP=$ac_cv_path_CMP |
| 6703 | if test -n "$CMP"; then |
| 6704 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6705 | echo "${ECHO_T}$CMP" >&6; } |
| 6706 | else |
| 6707 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6708 | echo "${ECHO_T}no" >&6; } |
| 6709 | fi |
| 6710 | |
| 6711 | |
| 6712 | # Extract the first word of "cp", so it can be a program name with args. |
| 6713 | set dummy cp; ac_word=$2 |
| 6714 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6716 | if test "${ac_cv_path_CP+set}" = set; then |
| 6717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6718 | else |
| 6719 | case $CP in |
| 6720 | [\\/]* | ?:[\\/]*) |
| 6721 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6722 | ;; |
| 6723 | *) |
| 6724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6725 | for as_dir in $PATH |
| 6726 | do |
| 6727 | IFS=$as_save_IFS |
| 6728 | test -z "$as_dir" && as_dir=. |
| 6729 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6730 | 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] | 6731 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6733 | break 2 |
| 6734 | fi |
| 6735 | done |
| 6736 | done |
| 6737 | IFS=$as_save_IFS |
| 6738 | |
| 6739 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6740 | ;; |
| 6741 | esac |
| 6742 | fi |
| 6743 | CP=$ac_cv_path_CP |
| 6744 | if test -n "$CP"; then |
| 6745 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6746 | echo "${ECHO_T}$CP" >&6; } |
| 6747 | else |
| 6748 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6749 | echo "${ECHO_T}no" >&6; } |
| 6750 | fi |
| 6751 | |
| 6752 | |
| 6753 | # Extract the first word of "date", so it can be a program name with args. |
| 6754 | set dummy date; ac_word=$2 |
| 6755 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6757 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6759 | else |
| 6760 | case $DATE in |
| 6761 | [\\/]* | ?:[\\/]*) |
| 6762 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6763 | ;; |
| 6764 | *) |
| 6765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6766 | for as_dir in $PATH |
| 6767 | do |
| 6768 | IFS=$as_save_IFS |
| 6769 | test -z "$as_dir" && as_dir=. |
| 6770 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6771 | 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] | 6772 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6773 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6774 | break 2 |
| 6775 | fi |
| 6776 | done |
| 6777 | done |
| 6778 | IFS=$as_save_IFS |
| 6779 | |
| 6780 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6781 | ;; |
| 6782 | esac |
| 6783 | fi |
| 6784 | DATE=$ac_cv_path_DATE |
| 6785 | if test -n "$DATE"; then |
| 6786 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6787 | echo "${ECHO_T}$DATE" >&6; } |
| 6788 | else |
| 6789 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6790 | echo "${ECHO_T}no" >&6; } |
| 6791 | fi |
| 6792 | |
| 6793 | |
| 6794 | # Extract the first word of "find", so it can be a program name with args. |
| 6795 | set dummy find; ac_word=$2 |
| 6796 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6798 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6800 | else |
| 6801 | case $FIND in |
| 6802 | [\\/]* | ?:[\\/]*) |
| 6803 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6804 | ;; |
| 6805 | *) |
| 6806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6807 | for as_dir in $PATH |
| 6808 | do |
| 6809 | IFS=$as_save_IFS |
| 6810 | test -z "$as_dir" && as_dir=. |
| 6811 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6812 | 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] | 6813 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6815 | break 2 |
| 6816 | fi |
| 6817 | done |
| 6818 | done |
| 6819 | IFS=$as_save_IFS |
| 6820 | |
| 6821 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6822 | ;; |
| 6823 | esac |
| 6824 | fi |
| 6825 | FIND=$ac_cv_path_FIND |
| 6826 | if test -n "$FIND"; then |
| 6827 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6828 | echo "${ECHO_T}$FIND" >&6; } |
| 6829 | else |
| 6830 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6831 | echo "${ECHO_T}no" >&6; } |
| 6832 | fi |
| 6833 | |
| 6834 | |
| 6835 | # Extract the first word of "grep", so it can be a program name with args. |
| 6836 | set dummy grep; ac_word=$2 |
| 6837 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6839 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6841 | else |
| 6842 | case $GREP in |
| 6843 | [\\/]* | ?:[\\/]*) |
| 6844 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6845 | ;; |
| 6846 | *) |
| 6847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6848 | for as_dir in $PATH |
| 6849 | do |
| 6850 | IFS=$as_save_IFS |
| 6851 | test -z "$as_dir" && as_dir=. |
| 6852 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6853 | 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] | 6854 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6856 | break 2 |
| 6857 | fi |
| 6858 | done |
| 6859 | done |
| 6860 | IFS=$as_save_IFS |
| 6861 | |
| 6862 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6863 | ;; |
| 6864 | esac |
| 6865 | fi |
| 6866 | GREP=$ac_cv_path_GREP |
| 6867 | if test -n "$GREP"; then |
| 6868 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6869 | echo "${ECHO_T}$GREP" >&6; } |
| 6870 | else |
| 6871 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6872 | echo "${ECHO_T}no" >&6; } |
| 6873 | fi |
| 6874 | |
| 6875 | |
| 6876 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6877 | set dummy mkdir; ac_word=$2 |
| 6878 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6880 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6882 | else |
| 6883 | case $MKDIR in |
| 6884 | [\\/]* | ?:[\\/]*) |
| 6885 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6886 | ;; |
| 6887 | *) |
| 6888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6889 | for as_dir in $PATH |
| 6890 | do |
| 6891 | IFS=$as_save_IFS |
| 6892 | test -z "$as_dir" && as_dir=. |
| 6893 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6894 | 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] | 6895 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6897 | break 2 |
| 6898 | fi |
| 6899 | done |
| 6900 | done |
| 6901 | IFS=$as_save_IFS |
| 6902 | |
| 6903 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6904 | ;; |
| 6905 | esac |
| 6906 | fi |
| 6907 | MKDIR=$ac_cv_path_MKDIR |
| 6908 | if test -n "$MKDIR"; then |
| 6909 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6910 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6911 | else |
| 6912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6913 | echo "${ECHO_T}no" >&6; } |
| 6914 | fi |
| 6915 | |
| 6916 | |
| 6917 | # Extract the first word of "mv", so it can be a program name with args. |
| 6918 | set dummy mv; ac_word=$2 |
| 6919 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6921 | if test "${ac_cv_path_MV+set}" = set; then |
| 6922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6923 | else |
| 6924 | case $MV in |
| 6925 | [\\/]* | ?:[\\/]*) |
| 6926 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6927 | ;; |
| 6928 | *) |
| 6929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6930 | for as_dir in $PATH |
| 6931 | do |
| 6932 | IFS=$as_save_IFS |
| 6933 | test -z "$as_dir" && as_dir=. |
| 6934 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6935 | 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] | 6936 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6938 | break 2 |
| 6939 | fi |
| 6940 | done |
| 6941 | done |
| 6942 | IFS=$as_save_IFS |
| 6943 | |
| 6944 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6945 | ;; |
| 6946 | esac |
| 6947 | fi |
| 6948 | MV=$ac_cv_path_MV |
| 6949 | if test -n "$MV"; then |
| 6950 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6951 | echo "${ECHO_T}$MV" >&6; } |
| 6952 | else |
| 6953 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6954 | echo "${ECHO_T}no" >&6; } |
| 6955 | fi |
| 6956 | |
| 6957 | |
| 6958 | if test -n "$ac_tool_prefix"; then |
| 6959 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6960 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6961 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6963 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6965 | else |
| 6966 | if test -n "$RANLIB"; then |
| 6967 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6968 | else |
| 6969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6970 | for as_dir in $PATH |
| 6971 | do |
| 6972 | IFS=$as_save_IFS |
| 6973 | test -z "$as_dir" && as_dir=. |
| 6974 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6975 | 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] | 6976 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6978 | break 2 |
| 6979 | fi |
| 6980 | done |
| 6981 | done |
| 6982 | IFS=$as_save_IFS |
| 6983 | |
| 6984 | fi |
| 6985 | fi |
| 6986 | RANLIB=$ac_cv_prog_RANLIB |
| 6987 | if test -n "$RANLIB"; then |
| 6988 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6989 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6990 | else |
| 6991 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6992 | echo "${ECHO_T}no" >&6; } |
| 6993 | fi |
| 6994 | |
| 6995 | |
| 6996 | fi |
| 6997 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6998 | ac_ct_RANLIB=$RANLIB |
| 6999 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7000 | set dummy ranlib; ac_word=$2 |
| 7001 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7003 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7005 | else |
| 7006 | if test -n "$ac_ct_RANLIB"; then |
| 7007 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7008 | else |
| 7009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7010 | for as_dir in $PATH |
| 7011 | do |
| 7012 | IFS=$as_save_IFS |
| 7013 | test -z "$as_dir" && as_dir=. |
| 7014 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7015 | 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] | 7016 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7018 | break 2 |
| 7019 | fi |
| 7020 | done |
| 7021 | done |
| 7022 | IFS=$as_save_IFS |
| 7023 | |
| 7024 | fi |
| 7025 | fi |
| 7026 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7027 | if test -n "$ac_ct_RANLIB"; then |
| 7028 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7029 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 7030 | else |
| 7031 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7032 | echo "${ECHO_T}no" >&6; } |
| 7033 | fi |
| 7034 | |
| 7035 | if test "x$ac_ct_RANLIB" = x; then |
| 7036 | RANLIB=":" |
| 7037 | else |
| 7038 | case $cross_compiling:$ac_tool_warned in |
| 7039 | yes:) |
| 7040 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7041 | whose name does not start with the host triplet. If you think this |
| 7042 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7043 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7044 | whose name does not start with the host triplet. If you think this |
| 7045 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7046 | ac_tool_warned=yes ;; |
| 7047 | esac |
| 7048 | RANLIB=$ac_ct_RANLIB |
| 7049 | fi |
| 7050 | else |
| 7051 | RANLIB="$ac_cv_prog_RANLIB" |
| 7052 | fi |
| 7053 | |
| 7054 | # Extract the first word of "rm", so it can be a program name with args. |
| 7055 | set dummy rm; ac_word=$2 |
| 7056 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7058 | if test "${ac_cv_path_RM+set}" = set; then |
| 7059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7060 | else |
| 7061 | case $RM in |
| 7062 | [\\/]* | ?:[\\/]*) |
| 7063 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7064 | ;; |
| 7065 | *) |
| 7066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7067 | for as_dir in $PATH |
| 7068 | do |
| 7069 | IFS=$as_save_IFS |
| 7070 | test -z "$as_dir" && as_dir=. |
| 7071 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7072 | 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] | 7073 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 7074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7075 | break 2 |
| 7076 | fi |
| 7077 | done |
| 7078 | done |
| 7079 | IFS=$as_save_IFS |
| 7080 | |
| 7081 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7082 | ;; |
| 7083 | esac |
| 7084 | fi |
| 7085 | RM=$ac_cv_path_RM |
| 7086 | if test -n "$RM"; then |
| 7087 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7088 | echo "${ECHO_T}$RM" >&6; } |
| 7089 | else |
| 7090 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7091 | echo "${ECHO_T}no" >&6; } |
| 7092 | fi |
| 7093 | |
| 7094 | |
| 7095 | # Extract the first word of "sed", so it can be a program name with args. |
| 7096 | set dummy sed; ac_word=$2 |
| 7097 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7099 | if test "${ac_cv_path_SED+set}" = set; then |
| 7100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7101 | else |
| 7102 | case $SED in |
| 7103 | [\\/]* | ?:[\\/]*) |
| 7104 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7105 | ;; |
| 7106 | *) |
| 7107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7108 | for as_dir in $PATH |
| 7109 | do |
| 7110 | IFS=$as_save_IFS |
| 7111 | test -z "$as_dir" && as_dir=. |
| 7112 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7113 | 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] | 7114 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 7115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7116 | break 2 |
| 7117 | fi |
| 7118 | done |
| 7119 | done |
| 7120 | IFS=$as_save_IFS |
| 7121 | |
| 7122 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7123 | ;; |
| 7124 | esac |
| 7125 | fi |
| 7126 | SED=$ac_cv_path_SED |
| 7127 | if test -n "$SED"; then |
| 7128 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7129 | echo "${ECHO_T}$SED" >&6; } |
| 7130 | else |
| 7131 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7132 | echo "${ECHO_T}no" >&6; } |
| 7133 | fi |
| 7134 | |
| 7135 | |
| 7136 | # Extract the first word of "tar", so it can be a program name with args. |
| 7137 | set dummy tar; ac_word=$2 |
| 7138 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7139 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7140 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7142 | else |
| 7143 | case $TAR in |
| 7144 | [\\/]* | ?:[\\/]*) |
| 7145 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7146 | ;; |
| 7147 | *) |
| 7148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7149 | for as_dir in $PATH |
| 7150 | do |
| 7151 | IFS=$as_save_IFS |
| 7152 | test -z "$as_dir" && as_dir=. |
| 7153 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7154 | 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] | 7155 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7157 | break 2 |
| 7158 | fi |
| 7159 | done |
| 7160 | done |
| 7161 | IFS=$as_save_IFS |
| 7162 | |
| 7163 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7164 | ;; |
| 7165 | esac |
| 7166 | fi |
| 7167 | TAR=$ac_cv_path_TAR |
| 7168 | if test -n "$TAR"; then |
| 7169 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7170 | echo "${ECHO_T}$TAR" >&6; } |
| 7171 | else |
| 7172 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7173 | echo "${ECHO_T}no" >&6; } |
| 7174 | fi |
| 7175 | |
| 7176 | |
| 7177 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7178 | set dummy pwd; ac_word=$2 |
| 7179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7181 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7183 | else |
| 7184 | case $BINPWD in |
| 7185 | [\\/]* | ?:[\\/]*) |
| 7186 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7187 | ;; |
| 7188 | *) |
| 7189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7190 | for as_dir in $PATH |
| 7191 | do |
| 7192 | IFS=$as_save_IFS |
| 7193 | test -z "$as_dir" && as_dir=. |
| 7194 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7195 | 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] | 7196 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7198 | break 2 |
| 7199 | fi |
| 7200 | done |
| 7201 | done |
| 7202 | IFS=$as_save_IFS |
| 7203 | |
| 7204 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7205 | ;; |
| 7206 | esac |
| 7207 | fi |
| 7208 | BINPWD=$ac_cv_path_BINPWD |
| 7209 | if test -n "$BINPWD"; then |
| 7210 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7211 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7212 | else |
| 7213 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7214 | echo "${ECHO_T}no" >&6; } |
| 7215 | fi |
| 7216 | |
| 7217 | |
| 7218 | |
| 7219 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7220 | set dummy Graphviz; ac_word=$2 |
| 7221 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7223 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7225 | else |
| 7226 | case $GRAPHVIZ in |
| 7227 | [\\/]* | ?:[\\/]*) |
| 7228 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7229 | ;; |
| 7230 | *) |
| 7231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7232 | for as_dir in $PATH |
| 7233 | do |
| 7234 | IFS=$as_save_IFS |
| 7235 | test -z "$as_dir" && as_dir=. |
| 7236 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7237 | 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] | 7238 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7240 | break 2 |
| 7241 | fi |
| 7242 | done |
| 7243 | done |
| 7244 | IFS=$as_save_IFS |
| 7245 | |
| 7246 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7247 | ;; |
| 7248 | esac |
| 7249 | fi |
| 7250 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7251 | if test -n "$GRAPHVIZ"; then |
| 7252 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7253 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7254 | else |
| 7255 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7256 | echo "${ECHO_T}no" >&6; } |
| 7257 | fi |
| 7258 | |
| 7259 | |
| 7260 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7261 | |
| 7262 | cat >>confdefs.h <<\_ACEOF |
| 7263 | #define HAVE_GRAPHVIZ 1 |
| 7264 | _ACEOF |
| 7265 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7266 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7267 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7268 | fi |
| 7269 | |
| 7270 | cat >>confdefs.h <<_ACEOF |
| 7271 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7272 | _ACEOF |
| 7273 | |
| 7274 | fi |
| 7275 | # Extract the first word of "dot", so it can be a program name with args. |
| 7276 | set dummy dot; ac_word=$2 |
| 7277 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7279 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7281 | else |
| 7282 | case $DOT in |
| 7283 | [\\/]* | ?:[\\/]*) |
| 7284 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7285 | ;; |
| 7286 | *) |
| 7287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7288 | for as_dir in $PATH |
| 7289 | do |
| 7290 | IFS=$as_save_IFS |
| 7291 | test -z "$as_dir" && as_dir=. |
| 7292 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7293 | 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] | 7294 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7295 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7296 | break 2 |
| 7297 | fi |
| 7298 | done |
| 7299 | done |
| 7300 | IFS=$as_save_IFS |
| 7301 | |
| 7302 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7303 | ;; |
| 7304 | esac |
| 7305 | fi |
| 7306 | DOT=$ac_cv_path_DOT |
| 7307 | if test -n "$DOT"; then |
| 7308 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7309 | echo "${ECHO_T}$DOT" >&6; } |
| 7310 | else |
| 7311 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7312 | echo "${ECHO_T}no" >&6; } |
| 7313 | fi |
| 7314 | |
| 7315 | |
| 7316 | if test "$DOT" != "echo dot" ; then |
| 7317 | |
| 7318 | cat >>confdefs.h <<\_ACEOF |
| 7319 | #define HAVE_DOT 1 |
| 7320 | _ACEOF |
| 7321 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7322 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7323 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7324 | fi |
| 7325 | |
| 7326 | cat >>confdefs.h <<_ACEOF |
| 7327 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7328 | _ACEOF |
| 7329 | |
| 7330 | fi |
| 7331 | for ac_prog in gv gsview32 |
| 7332 | do |
| 7333 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7334 | set dummy $ac_prog; ac_word=$2 |
| 7335 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7337 | if test "${ac_cv_path_GV+set}" = set; then |
| 7338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7339 | else |
| 7340 | case $GV in |
| 7341 | [\\/]* | ?:[\\/]*) |
| 7342 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7343 | ;; |
| 7344 | *) |
| 7345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7346 | for as_dir in $PATH |
| 7347 | do |
| 7348 | IFS=$as_save_IFS |
| 7349 | test -z "$as_dir" && as_dir=. |
| 7350 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7351 | 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] | 7352 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7354 | break 2 |
| 7355 | fi |
| 7356 | done |
| 7357 | done |
| 7358 | IFS=$as_save_IFS |
| 7359 | |
| 7360 | ;; |
| 7361 | esac |
| 7362 | fi |
| 7363 | GV=$ac_cv_path_GV |
| 7364 | if test -n "$GV"; then |
| 7365 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7366 | echo "${ECHO_T}$GV" >&6; } |
| 7367 | else |
| 7368 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7369 | echo "${ECHO_T}no" >&6; } |
| 7370 | fi |
| 7371 | |
| 7372 | |
| 7373 | test -n "$GV" && break |
| 7374 | done |
| 7375 | test -n "$GV" || GV="echo gv" |
| 7376 | |
| 7377 | if test "$GV" != "echo gv" ; then |
| 7378 | |
| 7379 | cat >>confdefs.h <<\_ACEOF |
| 7380 | #define HAVE_GV 1 |
| 7381 | _ACEOF |
| 7382 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7383 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7384 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7385 | fi |
| 7386 | |
| 7387 | cat >>confdefs.h <<_ACEOF |
| 7388 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7389 | _ACEOF |
| 7390 | |
| 7391 | fi |
| 7392 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7393 | set dummy dotty; ac_word=$2 |
| 7394 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7396 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7398 | else |
| 7399 | case $DOTTY in |
| 7400 | [\\/]* | ?:[\\/]*) |
| 7401 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7402 | ;; |
| 7403 | *) |
| 7404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7405 | for as_dir in $PATH |
| 7406 | do |
| 7407 | IFS=$as_save_IFS |
| 7408 | test -z "$as_dir" && as_dir=. |
| 7409 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7410 | 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] | 7411 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7413 | break 2 |
| 7414 | fi |
| 7415 | done |
| 7416 | done |
| 7417 | IFS=$as_save_IFS |
| 7418 | |
| 7419 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7420 | ;; |
| 7421 | esac |
| 7422 | fi |
| 7423 | DOTTY=$ac_cv_path_DOTTY |
| 7424 | if test -n "$DOTTY"; then |
| 7425 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7426 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7427 | else |
| 7428 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7429 | echo "${ECHO_T}no" >&6; } |
| 7430 | fi |
| 7431 | |
| 7432 | |
| 7433 | if test "$DOTTY" != "echo dotty" ; then |
| 7434 | |
| 7435 | cat >>confdefs.h <<\_ACEOF |
| 7436 | #define HAVE_DOTTY 1 |
| 7437 | _ACEOF |
| 7438 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7439 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7440 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7441 | fi |
| 7442 | |
| 7443 | cat >>confdefs.h <<_ACEOF |
| 7444 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7445 | _ACEOF |
| 7446 | |
| 7447 | fi |
| 7448 | |
| 7449 | |
| 7450 | # Extract the first word of "perl", so it can be a program name with args. |
| 7451 | set dummy perl; ac_word=$2 |
| 7452 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7454 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7456 | else |
| 7457 | case $PERL in |
| 7458 | [\\/]* | ?:[\\/]*) |
| 7459 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7460 | ;; |
| 7461 | *) |
| 7462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7463 | for as_dir in $PATH |
| 7464 | do |
| 7465 | IFS=$as_save_IFS |
| 7466 | test -z "$as_dir" && as_dir=. |
| 7467 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7468 | 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] | 7469 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7471 | break 2 |
| 7472 | fi |
| 7473 | done |
| 7474 | done |
| 7475 | IFS=$as_save_IFS |
| 7476 | |
| 7477 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7478 | ;; |
| 7479 | esac |
| 7480 | fi |
| 7481 | PERL=$ac_cv_path_PERL |
| 7482 | if test -n "$PERL"; then |
| 7483 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7484 | echo "${ECHO_T}$PERL" >&6; } |
| 7485 | else |
| 7486 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7487 | echo "${ECHO_T}no" >&6; } |
| 7488 | fi |
| 7489 | |
| 7490 | |
| 7491 | if test "$PERL" != "none"; then |
| 7492 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7493 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7494 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7495 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7496 | echo "${ECHO_T}yes" >&6; } |
| 7497 | else |
| 7498 | PERL=none |
| 7499 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7500 | echo "${ECHO_T}not found" >&6; } |
| 7501 | fi |
| 7502 | fi |
| 7503 | |
| 7504 | |
| 7505 | if test x"$PERL" = xnone; then |
| 7506 | HAVE_PERL=0 |
| 7507 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7508 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7509 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7510 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7511 | else |
| 7512 | HAVE_PERL=1 |
| 7513 | |
| 7514 | fi |
| 7515 | |
| 7516 | # Find a good install program. We prefer a C program (faster), |
| 7517 | # so one script is as good as another. But avoid the broken or |
| 7518 | # incompatible versions: |
| 7519 | # SysV /etc/install, /usr/sbin/install |
| 7520 | # SunOS /usr/etc/install |
| 7521 | # IRIX /sbin/install |
| 7522 | # AIX /bin/install |
| 7523 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7524 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7525 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7526 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7527 | # OS/2's system install, which has a completely different semantic |
| 7528 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7529 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7530 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7531 | if test -z "$INSTALL"; then |
| 7532 | if test "${ac_cv_path_install+set}" = set; then |
| 7533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7534 | else |
| 7535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7536 | for as_dir in $PATH |
| 7537 | do |
| 7538 | IFS=$as_save_IFS |
| 7539 | test -z "$as_dir" && as_dir=. |
| 7540 | # Account for people who put trailing slashes in PATH elements. |
| 7541 | case $as_dir/ in |
| 7542 | ./ | .// | /cC/* | \ |
| 7543 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7544 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7545 | /usr/ucb/* ) ;; |
| 7546 | *) |
| 7547 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7548 | # Don't use installbsd from OSF since it installs stuff as root |
| 7549 | # by default. |
| 7550 | for ac_prog in ginstall scoinst install; do |
| 7551 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7552 | 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] | 7553 | if test $ac_prog = install && |
| 7554 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7555 | # AIX install. It has an incompatible calling convention. |
| 7556 | : |
| 7557 | elif test $ac_prog = install && |
| 7558 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7559 | # program-specific install script used by HP pwplus--don't use. |
| 7560 | : |
| 7561 | else |
| 7562 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7563 | break 3 |
| 7564 | fi |
| 7565 | fi |
| 7566 | done |
| 7567 | done |
| 7568 | ;; |
| 7569 | esac |
| 7570 | done |
| 7571 | IFS=$as_save_IFS |
| 7572 | |
| 7573 | |
| 7574 | fi |
| 7575 | if test "${ac_cv_path_install+set}" = set; then |
| 7576 | INSTALL=$ac_cv_path_install |
| 7577 | else |
| 7578 | # As a last resort, use the slow shell script. Don't cache a |
| 7579 | # value for INSTALL within a source directory, because that will |
| 7580 | # break other packages using the cache if that directory is |
| 7581 | # removed, or if the value is a relative name. |
| 7582 | INSTALL=$ac_install_sh |
| 7583 | fi |
| 7584 | fi |
| 7585 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7586 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7587 | |
| 7588 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7589 | # It thinks the first close brace ends the variable substitution. |
| 7590 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7591 | |
| 7592 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7593 | |
| 7594 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7595 | |
| 7596 | |
| 7597 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7598 | set dummy bzip2; ac_word=$2 |
| 7599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7601 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7603 | else |
| 7604 | case $BZIP2 in |
| 7605 | [\\/]* | ?:[\\/]*) |
| 7606 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7607 | ;; |
| 7608 | *) |
| 7609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7610 | for as_dir in $PATH |
| 7611 | do |
| 7612 | IFS=$as_save_IFS |
| 7613 | test -z "$as_dir" && as_dir=. |
| 7614 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7615 | 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] | 7616 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7618 | break 2 |
| 7619 | fi |
| 7620 | done |
| 7621 | done |
| 7622 | IFS=$as_save_IFS |
| 7623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7624 | ;; |
| 7625 | esac |
| 7626 | fi |
| 7627 | BZIP2=$ac_cv_path_BZIP2 |
| 7628 | if test -n "$BZIP2"; then |
| 7629 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7630 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7631 | else |
| 7632 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7633 | echo "${ECHO_T}no" >&6; } |
| 7634 | fi |
| 7635 | |
| 7636 | |
| 7637 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7638 | set dummy doxygen; ac_word=$2 |
| 7639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7641 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7643 | else |
| 7644 | case $DOXYGEN in |
| 7645 | [\\/]* | ?:[\\/]*) |
| 7646 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7647 | ;; |
| 7648 | *) |
| 7649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7650 | for as_dir in $PATH |
| 7651 | do |
| 7652 | IFS=$as_save_IFS |
| 7653 | test -z "$as_dir" && as_dir=. |
| 7654 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7655 | 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] | 7656 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7658 | break 2 |
| 7659 | fi |
| 7660 | done |
| 7661 | done |
| 7662 | IFS=$as_save_IFS |
| 7663 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7664 | ;; |
| 7665 | esac |
| 7666 | fi |
| 7667 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7668 | if test -n "$DOXYGEN"; then |
| 7669 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7670 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7671 | else |
| 7672 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7673 | echo "${ECHO_T}no" >&6; } |
| 7674 | fi |
| 7675 | |
| 7676 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7677 | # Extract the first word of "groff", so it can be a program name with args. |
| 7678 | set dummy groff; ac_word=$2 |
| 7679 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7681 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7683 | else |
| 7684 | case $GROFF in |
| 7685 | [\\/]* | ?:[\\/]*) |
| 7686 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7687 | ;; |
| 7688 | *) |
| 7689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7690 | for as_dir in $PATH |
| 7691 | do |
| 7692 | IFS=$as_save_IFS |
| 7693 | test -z "$as_dir" && as_dir=. |
| 7694 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7695 | 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] | 7696 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7698 | break 2 |
| 7699 | fi |
| 7700 | done |
| 7701 | done |
| 7702 | IFS=$as_save_IFS |
| 7703 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7704 | ;; |
| 7705 | esac |
| 7706 | fi |
| 7707 | GROFF=$ac_cv_path_GROFF |
| 7708 | if test -n "$GROFF"; then |
| 7709 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7710 | echo "${ECHO_T}$GROFF" >&6; } |
| 7711 | else |
| 7712 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7713 | echo "${ECHO_T}no" >&6; } |
| 7714 | fi |
| 7715 | |
| 7716 | |
| 7717 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7718 | set dummy gzip; ac_word=$2 |
| 7719 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7721 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7723 | else |
| 7724 | case $GZIP in |
| 7725 | [\\/]* | ?:[\\/]*) |
| 7726 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7727 | ;; |
| 7728 | *) |
| 7729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7730 | for as_dir in $PATH |
| 7731 | do |
| 7732 | IFS=$as_save_IFS |
| 7733 | test -z "$as_dir" && as_dir=. |
| 7734 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7735 | 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] | 7736 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7738 | break 2 |
| 7739 | fi |
| 7740 | done |
| 7741 | done |
| 7742 | IFS=$as_save_IFS |
| 7743 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7744 | ;; |
| 7745 | esac |
| 7746 | fi |
| 7747 | GZIP=$ac_cv_path_GZIP |
| 7748 | if test -n "$GZIP"; then |
| 7749 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7750 | echo "${ECHO_T}$GZIP" >&6; } |
| 7751 | else |
| 7752 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7753 | echo "${ECHO_T}no" >&6; } |
| 7754 | fi |
| 7755 | |
| 7756 | |
| 7757 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7758 | set dummy pod2html; ac_word=$2 |
| 7759 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7761 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7763 | else |
| 7764 | case $POD2HTML in |
| 7765 | [\\/]* | ?:[\\/]*) |
| 7766 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7767 | ;; |
| 7768 | *) |
| 7769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7770 | for as_dir in $PATH |
| 7771 | do |
| 7772 | IFS=$as_save_IFS |
| 7773 | test -z "$as_dir" && as_dir=. |
| 7774 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7775 | 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] | 7776 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7778 | break 2 |
| 7779 | fi |
| 7780 | done |
| 7781 | done |
| 7782 | IFS=$as_save_IFS |
| 7783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7784 | ;; |
| 7785 | esac |
| 7786 | fi |
| 7787 | POD2HTML=$ac_cv_path_POD2HTML |
| 7788 | if test -n "$POD2HTML"; then |
| 7789 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7790 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7791 | else |
| 7792 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7793 | echo "${ECHO_T}no" >&6; } |
| 7794 | fi |
| 7795 | |
| 7796 | |
| 7797 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7798 | set dummy pod2man; ac_word=$2 |
| 7799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7801 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7803 | else |
| 7804 | case $POD2MAN in |
| 7805 | [\\/]* | ?:[\\/]*) |
| 7806 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7807 | ;; |
| 7808 | *) |
| 7809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7810 | for as_dir in $PATH |
| 7811 | do |
| 7812 | IFS=$as_save_IFS |
| 7813 | test -z "$as_dir" && as_dir=. |
| 7814 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7815 | 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] | 7816 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7818 | break 2 |
| 7819 | fi |
| 7820 | done |
| 7821 | done |
| 7822 | IFS=$as_save_IFS |
| 7823 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7824 | ;; |
| 7825 | esac |
| 7826 | fi |
| 7827 | POD2MAN=$ac_cv_path_POD2MAN |
| 7828 | if test -n "$POD2MAN"; then |
| 7829 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7830 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7831 | else |
| 7832 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7833 | echo "${ECHO_T}no" >&6; } |
| 7834 | fi |
| 7835 | |
| 7836 | |
| 7837 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7838 | set dummy runtest; ac_word=$2 |
| 7839 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7841 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7843 | else |
| 7844 | case $RUNTEST in |
| 7845 | [\\/]* | ?:[\\/]*) |
| 7846 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7847 | ;; |
| 7848 | *) |
| 7849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7850 | for as_dir in $PATH |
| 7851 | do |
| 7852 | IFS=$as_save_IFS |
| 7853 | test -z "$as_dir" && as_dir=. |
| 7854 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7855 | 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] | 7856 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7858 | break 2 |
| 7859 | fi |
| 7860 | done |
| 7861 | done |
| 7862 | IFS=$as_save_IFS |
| 7863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7864 | ;; |
| 7865 | esac |
| 7866 | fi |
| 7867 | RUNTEST=$ac_cv_path_RUNTEST |
| 7868 | if test -n "$RUNTEST"; then |
| 7869 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7870 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7871 | else |
| 7872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7873 | echo "${ECHO_T}no" >&6; } |
| 7874 | fi |
| 7875 | |
| 7876 | |
| 7877 | |
| 7878 | no_itcl=true |
| 7879 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7880 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7881 | |
| 7882 | # Check whether --with-tclinclude was given. |
| 7883 | if test "${with_tclinclude+set}" = set; then |
| 7884 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7885 | else |
| 7886 | with_tclinclude='' |
| 7887 | fi |
| 7888 | |
| 7889 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7891 | else |
| 7892 | |
| 7893 | if test x"${with_tclinclude}" != x ; then |
| 7894 | if test -f ${with_tclinclude}/tclsh ; then |
| 7895 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7896 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7897 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7898 | else |
| 7899 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7900 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7901 | { (exit 1); exit 1; }; } |
| 7902 | fi |
| 7903 | fi |
| 7904 | |
| 7905 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7906 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7907 | echo "${ECHO_T}none" >&6; } |
| 7908 | 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 |
| 7909 | do |
| 7910 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7911 | set dummy $ac_prog; ac_word=$2 |
| 7912 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7914 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7916 | else |
| 7917 | case $TCLSH in |
| 7918 | [\\/]* | ?:[\\/]*) |
| 7919 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7920 | ;; |
| 7921 | *) |
| 7922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7923 | for as_dir in $PATH |
| 7924 | do |
| 7925 | IFS=$as_save_IFS |
| 7926 | test -z "$as_dir" && as_dir=. |
| 7927 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7928 | 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] | 7929 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7931 | break 2 |
| 7932 | fi |
| 7933 | done |
| 7934 | done |
| 7935 | IFS=$as_save_IFS |
| 7936 | |
| 7937 | ;; |
| 7938 | esac |
| 7939 | fi |
| 7940 | TCLSH=$ac_cv_path_TCLSH |
| 7941 | if test -n "$TCLSH"; then |
| 7942 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7943 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7944 | else |
| 7945 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7946 | echo "${ECHO_T}no" >&6; } |
| 7947 | fi |
| 7948 | |
| 7949 | |
| 7950 | test -n "$TCLSH" && break |
| 7951 | done |
| 7952 | |
| 7953 | if test x"${TCLSH}" = x ; then |
| 7954 | ac_cv_path_tclsh=''; |
| 7955 | else |
| 7956 | ac_cv_path_tclsh="${TCLSH}"; |
| 7957 | fi |
| 7958 | else |
| 7959 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7960 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7961 | TCLSH="${ac_cv_path_tclsh}" |
| 7962 | |
| 7963 | fi |
| 7964 | |
| 7965 | fi |
| 7966 | |
| 7967 | # Extract the first word of "zip", so it can be a program name with args. |
| 7968 | set dummy zip; ac_word=$2 |
| 7969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7971 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7973 | else |
| 7974 | case $ZIP in |
| 7975 | [\\/]* | ?:[\\/]*) |
| 7976 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7977 | ;; |
| 7978 | *) |
| 7979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7980 | for as_dir in $PATH |
| 7981 | do |
| 7982 | IFS=$as_save_IFS |
| 7983 | test -z "$as_dir" && as_dir=. |
| 7984 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7985 | 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] | 7986 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7987 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7988 | break 2 |
| 7989 | fi |
| 7990 | done |
| 7991 | done |
| 7992 | IFS=$as_save_IFS |
| 7993 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7994 | ;; |
| 7995 | esac |
| 7996 | fi |
| 7997 | ZIP=$ac_cv_path_ZIP |
| 7998 | if test -n "$ZIP"; then |
| 7999 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8000 | echo "${ECHO_T}$ZIP" >&6; } |
| 8001 | else |
| 8002 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8003 | echo "${ECHO_T}no" >&6; } |
| 8004 | fi |
| 8005 | |
| 8006 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8007 | for ac_prog in ocamlc.opt ocamlc |
| 8008 | do |
| 8009 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8010 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8011 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8013 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8015 | else |
| 8016 | case $OCAMLC in |
| 8017 | [\\/]* | ?:[\\/]*) |
| 8018 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8019 | ;; |
| 8020 | *) |
| 8021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8022 | for as_dir in $PATH |
| 8023 | do |
| 8024 | IFS=$as_save_IFS |
| 8025 | test -z "$as_dir" && as_dir=. |
| 8026 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8027 | 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] | 8028 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 8029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8030 | break 2 |
| 8031 | fi |
| 8032 | done |
| 8033 | done |
| 8034 | IFS=$as_save_IFS |
| 8035 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8036 | ;; |
| 8037 | esac |
| 8038 | fi |
| 8039 | OCAMLC=$ac_cv_path_OCAMLC |
| 8040 | if test -n "$OCAMLC"; then |
| 8041 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8042 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 8043 | else |
| 8044 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8045 | echo "${ECHO_T}no" >&6; } |
| 8046 | fi |
| 8047 | |
| 8048 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8049 | test -n "$OCAMLC" && break |
| 8050 | done |
| 8051 | |
| 8052 | for ac_prog in ocamlopt.opt ocamlopt |
| 8053 | do |
| 8054 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8055 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8056 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8058 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8060 | else |
| 8061 | case $OCAMLOPT in |
| 8062 | [\\/]* | ?:[\\/]*) |
| 8063 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8064 | ;; |
| 8065 | *) |
| 8066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8067 | for as_dir in $PATH |
| 8068 | do |
| 8069 | IFS=$as_save_IFS |
| 8070 | test -z "$as_dir" && as_dir=. |
| 8071 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8072 | 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] | 8073 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8075 | break 2 |
| 8076 | fi |
| 8077 | done |
| 8078 | done |
| 8079 | IFS=$as_save_IFS |
| 8080 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8081 | ;; |
| 8082 | esac |
| 8083 | fi |
| 8084 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8085 | if test -n "$OCAMLOPT"; then |
| 8086 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8087 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 8088 | else |
| 8089 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8090 | echo "${ECHO_T}no" >&6; } |
| 8091 | fi |
| 8092 | |
| 8093 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8094 | test -n "$OCAMLOPT" && break |
| 8095 | done |
| 8096 | |
| 8097 | for ac_prog in ocamldep.opt ocamldep |
| 8098 | do |
| 8099 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8100 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8101 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8103 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8105 | else |
| 8106 | case $OCAMLDEP in |
| 8107 | [\\/]* | ?:[\\/]*) |
| 8108 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8109 | ;; |
| 8110 | *) |
| 8111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8112 | for as_dir in $PATH |
| 8113 | do |
| 8114 | IFS=$as_save_IFS |
| 8115 | test -z "$as_dir" && as_dir=. |
| 8116 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8117 | 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] | 8118 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 8119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8120 | break 2 |
| 8121 | fi |
| 8122 | done |
| 8123 | done |
| 8124 | IFS=$as_save_IFS |
| 8125 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8126 | ;; |
| 8127 | esac |
| 8128 | fi |
| 8129 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8130 | if test -n "$OCAMLDEP"; then |
| 8131 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8132 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 8133 | else |
| 8134 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8135 | echo "${ECHO_T}no" >&6; } |
| 8136 | fi |
| 8137 | |
| 8138 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8139 | test -n "$OCAMLDEP" && break |
| 8140 | done |
| 8141 | |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8142 | for ac_prog in ocamldoc.opt ocamldoc |
| 8143 | do |
| 8144 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8145 | set dummy $ac_prog; ac_word=$2 |
| 8146 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8147 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8148 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8150 | else |
| 8151 | case $OCAMLDOC in |
| 8152 | [\\/]* | ?:[\\/]*) |
| 8153 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8154 | ;; |
| 8155 | *) |
| 8156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8157 | for as_dir in $PATH |
| 8158 | do |
| 8159 | IFS=$as_save_IFS |
| 8160 | test -z "$as_dir" && as_dir=. |
| 8161 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8162 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8163 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 8164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8165 | break 2 |
| 8166 | fi |
| 8167 | done |
| 8168 | done |
| 8169 | IFS=$as_save_IFS |
| 8170 | |
| 8171 | ;; |
| 8172 | esac |
| 8173 | fi |
| 8174 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8175 | if test -n "$OCAMLDOC"; then |
| 8176 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8177 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 8178 | else |
| 8179 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8180 | echo "${ECHO_T}no" >&6; } |
| 8181 | fi |
| 8182 | |
| 8183 | |
| 8184 | test -n "$OCAMLDOC" && break |
| 8185 | done |
| 8186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8187 | |
| 8188 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8189 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8190 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8192 | else |
| 8193 | ac_ext=c |
| 8194 | ac_cpp='$CPP $CPPFLAGS' |
| 8195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8198 | |
| 8199 | oldcflags="$CFLAGS" |
| 8200 | CFLAGS="$CFLAGS -Wl,-R." |
| 8201 | cat >conftest.$ac_ext <<_ACEOF |
| 8202 | /* confdefs.h. */ |
| 8203 | _ACEOF |
| 8204 | cat confdefs.h >>conftest.$ac_ext |
| 8205 | cat >>conftest.$ac_ext <<_ACEOF |
| 8206 | /* end confdefs.h. */ |
| 8207 | |
| 8208 | int |
| 8209 | main () |
| 8210 | { |
| 8211 | int main() { return 0; } |
| 8212 | ; |
| 8213 | return 0; |
| 8214 | } |
| 8215 | _ACEOF |
| 8216 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8217 | if { (ac_try="$ac_link" |
| 8218 | case "(($ac_try" in |
| 8219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8220 | *) ac_try_echo=$ac_try;; |
| 8221 | esac |
| 8222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8223 | (eval "$ac_link") 2>conftest.er1 |
| 8224 | ac_status=$? |
| 8225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8226 | rm -f conftest.er1 |
| 8227 | cat conftest.err >&5 |
| 8228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8229 | (exit $ac_status); } && |
| 8230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8231 | { (case "(($ac_try" in |
| 8232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8233 | *) ac_try_echo=$ac_try;; |
| 8234 | esac |
| 8235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8236 | (eval "$ac_try") 2>&5 |
| 8237 | ac_status=$? |
| 8238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8239 | (exit $ac_status); }; } && |
| 8240 | { ac_try='test -s conftest$ac_exeext' |
| 8241 | { (case "(($ac_try" in |
| 8242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8243 | *) ac_try_echo=$ac_try;; |
| 8244 | esac |
| 8245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8246 | (eval "$ac_try") 2>&5 |
| 8247 | ac_status=$? |
| 8248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8249 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8250 | llvm_cv_link_use_r=yes |
| 8251 | else |
| 8252 | echo "$as_me: failed program was:" >&5 |
| 8253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8254 | |
| 8255 | llvm_cv_link_use_r=no |
| 8256 | fi |
| 8257 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8258 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8259 | conftest$ac_exeext conftest.$ac_ext |
| 8260 | CFLAGS="$oldcflags" |
| 8261 | ac_ext=c |
| 8262 | ac_cpp='$CPP $CPPFLAGS' |
| 8263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8266 | |
| 8267 | |
| 8268 | fi |
| 8269 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8270 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8271 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8272 | |
| 8273 | cat >>confdefs.h <<\_ACEOF |
| 8274 | #define HAVE_LINK_R 1 |
| 8275 | _ACEOF |
| 8276 | |
| 8277 | fi |
| 8278 | |
| 8279 | |
| 8280 | |
| 8281 | |
| 8282 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8283 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8284 | if test "${ac_cv_c_const+set}" = set; then |
| 8285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8286 | else |
| 8287 | cat >conftest.$ac_ext <<_ACEOF |
| 8288 | /* confdefs.h. */ |
| 8289 | _ACEOF |
| 8290 | cat confdefs.h >>conftest.$ac_ext |
| 8291 | cat >>conftest.$ac_ext <<_ACEOF |
| 8292 | /* end confdefs.h. */ |
| 8293 | |
| 8294 | int |
| 8295 | main () |
| 8296 | { |
| 8297 | /* FIXME: Include the comments suggested by Paul. */ |
| 8298 | #ifndef __cplusplus |
| 8299 | /* Ultrix mips cc rejects this. */ |
| 8300 | typedef int charset[2]; |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8301 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8302 | /* SunOS 4.1.1 cc rejects this. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8303 | char const *const *ccp; |
| 8304 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8305 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8306 | struct point {int x, y;}; |
| 8307 | static struct point const zero = {0,0}; |
| 8308 | /* AIX XL C 1.02.0.0 rejects this. |
| 8309 | It does not let you subtract one const X* pointer from another in |
| 8310 | an arm of an if-expression whose if-part is not a constant |
| 8311 | expression */ |
| 8312 | const char *g = "string"; |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8313 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8314 | /* HPUX 7.0 cc rejects these. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8315 | ++ccp; |
| 8316 | p = (char**) ccp; |
| 8317 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8318 | { /* SCO 3.2v4 cc rejects this. */ |
| 8319 | char *t; |
| 8320 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8321 | |
| 8322 | *t++ = 0; |
| 8323 | if (s) return 0; |
| 8324 | } |
| 8325 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8326 | int x[] = {25, 17}; |
| 8327 | const int *foo = &x[0]; |
| 8328 | ++foo; |
| 8329 | } |
| 8330 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8331 | typedef const int *iptr; |
| 8332 | iptr p = 0; |
| 8333 | ++p; |
| 8334 | } |
| 8335 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8336 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8337 | struct s { int j; const int *ap[3]; }; |
| 8338 | struct s *b; b->j = 5; |
| 8339 | } |
| 8340 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8341 | const int foo = 10; |
| 8342 | if (!foo) return 0; |
| 8343 | } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8344 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8345 | #endif |
| 8346 | |
| 8347 | ; |
| 8348 | return 0; |
| 8349 | } |
| 8350 | _ACEOF |
| 8351 | rm -f conftest.$ac_objext |
| 8352 | if { (ac_try="$ac_compile" |
| 8353 | case "(($ac_try" in |
| 8354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8355 | *) ac_try_echo=$ac_try;; |
| 8356 | esac |
| 8357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8358 | (eval "$ac_compile") 2>conftest.er1 |
| 8359 | ac_status=$? |
| 8360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8361 | rm -f conftest.er1 |
| 8362 | cat conftest.err >&5 |
| 8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8364 | (exit $ac_status); } && |
| 8365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8366 | { (case "(($ac_try" in |
| 8367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8368 | *) ac_try_echo=$ac_try;; |
| 8369 | esac |
| 8370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8371 | (eval "$ac_try") 2>&5 |
| 8372 | ac_status=$? |
| 8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8374 | (exit $ac_status); }; } && |
| 8375 | { ac_try='test -s conftest.$ac_objext' |
| 8376 | { (case "(($ac_try" in |
| 8377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8378 | *) ac_try_echo=$ac_try;; |
| 8379 | esac |
| 8380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8381 | (eval "$ac_try") 2>&5 |
| 8382 | ac_status=$? |
| 8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8384 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8385 | ac_cv_c_const=yes |
| 8386 | else |
| 8387 | echo "$as_me: failed program was:" >&5 |
| 8388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8389 | |
| 8390 | ac_cv_c_const=no |
| 8391 | fi |
| 8392 | |
| 8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8394 | fi |
| 8395 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8396 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8397 | if test $ac_cv_c_const = no; then |
| 8398 | |
| 8399 | cat >>confdefs.h <<\_ACEOF |
| 8400 | #define const |
| 8401 | _ACEOF |
| 8402 | |
| 8403 | fi |
| 8404 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | ac_header_dirent=no |
| 8411 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8412 | 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] | 8413 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8414 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8415 | 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] | 8416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8417 | else |
| 8418 | cat >conftest.$ac_ext <<_ACEOF |
| 8419 | /* confdefs.h. */ |
| 8420 | _ACEOF |
| 8421 | cat confdefs.h >>conftest.$ac_ext |
| 8422 | cat >>conftest.$ac_ext <<_ACEOF |
| 8423 | /* end confdefs.h. */ |
| 8424 | #include <sys/types.h> |
| 8425 | #include <$ac_hdr> |
| 8426 | |
| 8427 | int |
| 8428 | main () |
| 8429 | { |
| 8430 | if ((DIR *) 0) |
| 8431 | return 0; |
| 8432 | ; |
| 8433 | return 0; |
| 8434 | } |
| 8435 | _ACEOF |
| 8436 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8437 | if { (ac_try="$ac_compile" |
| 8438 | case "(($ac_try" in |
| 8439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8440 | *) ac_try_echo=$ac_try;; |
| 8441 | esac |
| 8442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8443 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8444 | ac_status=$? |
| 8445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8446 | rm -f conftest.er1 |
| 8447 | cat conftest.err >&5 |
| 8448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8449 | (exit $ac_status); } && |
| 8450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8451 | { (case "(($ac_try" in |
| 8452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8453 | *) ac_try_echo=$ac_try;; |
| 8454 | esac |
| 8455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8456 | (eval "$ac_try") 2>&5 |
| 8457 | ac_status=$? |
| 8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8459 | (exit $ac_status); }; } && |
| 8460 | { ac_try='test -s conftest.$ac_objext' |
| 8461 | { (case "(($ac_try" in |
| 8462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8463 | *) ac_try_echo=$ac_try;; |
| 8464 | esac |
| 8465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8466 | (eval "$ac_try") 2>&5 |
| 8467 | ac_status=$? |
| 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8469 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8470 | eval "$as_ac_Header=yes" |
| 8471 | else |
| 8472 | echo "$as_me: failed program was:" >&5 |
| 8473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8474 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8475 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8476 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8477 | |
| 8478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8479 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8480 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8481 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8482 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8483 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8484 | cat >>confdefs.h <<_ACEOF |
| 8485 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8486 | _ACEOF |
| 8487 | |
| 8488 | ac_header_dirent=$ac_hdr; break |
| 8489 | fi |
| 8490 | |
| 8491 | done |
| 8492 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8493 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8494 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8495 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8496 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8498 | else |
| 8499 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8500 | cat >conftest.$ac_ext <<_ACEOF |
| 8501 | /* confdefs.h. */ |
| 8502 | _ACEOF |
| 8503 | cat confdefs.h >>conftest.$ac_ext |
| 8504 | cat >>conftest.$ac_ext <<_ACEOF |
| 8505 | /* end confdefs.h. */ |
| 8506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8507 | /* Override any GCC internal prototype to avoid an error. |
| 8508 | Use char because int might match the return type of a GCC |
| 8509 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8510 | #ifdef __cplusplus |
| 8511 | extern "C" |
| 8512 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8513 | char opendir (); |
| 8514 | int |
| 8515 | main () |
| 8516 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8517 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8518 | ; |
| 8519 | return 0; |
| 8520 | } |
| 8521 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8522 | for ac_lib in '' dir; do |
| 8523 | if test -z "$ac_lib"; then |
| 8524 | ac_res="none required" |
| 8525 | else |
| 8526 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8527 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8528 | fi |
| 8529 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8530 | if { (ac_try="$ac_link" |
| 8531 | case "(($ac_try" in |
| 8532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8533 | *) ac_try_echo=$ac_try;; |
| 8534 | esac |
| 8535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8536 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8537 | ac_status=$? |
| 8538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8539 | rm -f conftest.er1 |
| 8540 | cat conftest.err >&5 |
| 8541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8542 | (exit $ac_status); } && |
| 8543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8544 | { (case "(($ac_try" in |
| 8545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8546 | *) ac_try_echo=$ac_try;; |
| 8547 | esac |
| 8548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8549 | (eval "$ac_try") 2>&5 |
| 8550 | ac_status=$? |
| 8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8552 | (exit $ac_status); }; } && |
| 8553 | { ac_try='test -s conftest$ac_exeext' |
| 8554 | { (case "(($ac_try" in |
| 8555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8556 | *) ac_try_echo=$ac_try;; |
| 8557 | esac |
| 8558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8559 | (eval "$ac_try") 2>&5 |
| 8560 | ac_status=$? |
| 8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8562 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8563 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8564 | else |
| 8565 | echo "$as_me: failed program was:" >&5 |
| 8566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8567 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8568 | |
| 8569 | fi |
| 8570 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8571 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8572 | conftest$ac_exeext |
| 8573 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8574 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8575 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8576 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8577 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8578 | : |
| 8579 | else |
| 8580 | ac_cv_search_opendir=no |
| 8581 | fi |
| 8582 | rm conftest.$ac_ext |
| 8583 | LIBS=$ac_func_search_save_LIBS |
| 8584 | fi |
| 8585 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8586 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8587 | ac_res=$ac_cv_search_opendir |
| 8588 | if test "$ac_res" != no; then |
| 8589 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8591 | fi |
| 8592 | |
| 8593 | else |
| 8594 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8595 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8596 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8598 | else |
| 8599 | ac_func_search_save_LIBS=$LIBS |
| 8600 | cat >conftest.$ac_ext <<_ACEOF |
| 8601 | /* confdefs.h. */ |
| 8602 | _ACEOF |
| 8603 | cat confdefs.h >>conftest.$ac_ext |
| 8604 | cat >>conftest.$ac_ext <<_ACEOF |
| 8605 | /* end confdefs.h. */ |
| 8606 | |
| 8607 | /* Override any GCC internal prototype to avoid an error. |
| 8608 | Use char because int might match the return type of a GCC |
| 8609 | builtin and then its argument prototype would still apply. */ |
| 8610 | #ifdef __cplusplus |
| 8611 | extern "C" |
| 8612 | #endif |
| 8613 | char opendir (); |
| 8614 | int |
| 8615 | main () |
| 8616 | { |
| 8617 | return opendir (); |
| 8618 | ; |
| 8619 | return 0; |
| 8620 | } |
| 8621 | _ACEOF |
| 8622 | for ac_lib in '' x; do |
| 8623 | if test -z "$ac_lib"; then |
| 8624 | ac_res="none required" |
| 8625 | else |
| 8626 | ac_res=-l$ac_lib |
| 8627 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8628 | fi |
| 8629 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8630 | if { (ac_try="$ac_link" |
| 8631 | case "(($ac_try" in |
| 8632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8633 | *) ac_try_echo=$ac_try;; |
| 8634 | esac |
| 8635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8636 | (eval "$ac_link") 2>conftest.er1 |
| 8637 | ac_status=$? |
| 8638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8639 | rm -f conftest.er1 |
| 8640 | cat conftest.err >&5 |
| 8641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8642 | (exit $ac_status); } && |
| 8643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 8653 | { ac_try='test -s conftest$ac_exeext' |
| 8654 | { (case "(($ac_try" in |
| 8655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8656 | *) ac_try_echo=$ac_try;; |
| 8657 | esac |
| 8658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8659 | (eval "$ac_try") 2>&5 |
| 8660 | ac_status=$? |
| 8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8662 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8663 | ac_cv_search_opendir=$ac_res |
| 8664 | else |
| 8665 | echo "$as_me: failed program was:" >&5 |
| 8666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8667 | |
| 8668 | |
| 8669 | fi |
| 8670 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8671 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8672 | conftest$ac_exeext |
| 8673 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8674 | break |
| 8675 | fi |
| 8676 | done |
| 8677 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8678 | : |
| 8679 | else |
| 8680 | ac_cv_search_opendir=no |
| 8681 | fi |
| 8682 | rm conftest.$ac_ext |
| 8683 | LIBS=$ac_func_search_save_LIBS |
| 8684 | fi |
| 8685 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8686 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8687 | ac_res=$ac_cv_search_opendir |
| 8688 | if test "$ac_res" != no; then |
| 8689 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8690 | |
| 8691 | fi |
| 8692 | |
| 8693 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8694 | |
| 8695 | |
| 8696 | for ac_header in dlfcn.h |
| 8697 | do |
| 8698 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8699 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8700 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8702 | 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] | 8703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8704 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8705 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8706 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8707 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8708 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8709 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8710 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8711 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8712 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8713 | /* confdefs.h. */ |
| 8714 | _ACEOF |
| 8715 | cat confdefs.h >>conftest.$ac_ext |
| 8716 | cat >>conftest.$ac_ext <<_ACEOF |
| 8717 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8718 | $ac_includes_default |
| 8719 | #include <$ac_header> |
| 8720 | _ACEOF |
| 8721 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8722 | if { (ac_try="$ac_compile" |
| 8723 | case "(($ac_try" in |
| 8724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8725 | *) ac_try_echo=$ac_try;; |
| 8726 | esac |
| 8727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8728 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8729 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8731 | rm -f conftest.er1 |
| 8732 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8734 | (exit $ac_status); } && |
| 8735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8736 | { (case "(($ac_try" in |
| 8737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8738 | *) ac_try_echo=$ac_try;; |
| 8739 | esac |
| 8740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8741 | (eval "$ac_try") 2>&5 |
| 8742 | ac_status=$? |
| 8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8744 | (exit $ac_status); }; } && |
| 8745 | { ac_try='test -s conftest.$ac_objext' |
| 8746 | { (case "(($ac_try" in |
| 8747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8748 | *) ac_try_echo=$ac_try;; |
| 8749 | esac |
| 8750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8751 | (eval "$ac_try") 2>&5 |
| 8752 | ac_status=$? |
| 8753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8754 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8755 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8756 | else |
| 8757 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8759 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8760 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8761 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8762 | |
| 8763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8764 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8765 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8766 | |
| 8767 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8768 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8769 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8770 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8771 | /* confdefs.h. */ |
| 8772 | _ACEOF |
| 8773 | cat confdefs.h >>conftest.$ac_ext |
| 8774 | cat >>conftest.$ac_ext <<_ACEOF |
| 8775 | /* end confdefs.h. */ |
| 8776 | #include <$ac_header> |
| 8777 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8778 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8779 | case "(($ac_try" in |
| 8780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8781 | *) ac_try_echo=$ac_try;; |
| 8782 | esac |
| 8783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8784 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8785 | ac_status=$? |
| 8786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8787 | rm -f conftest.er1 |
| 8788 | cat conftest.err >&5 |
| 8789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8790 | (exit $ac_status); } >/dev/null; then |
| 8791 | if test -s conftest.err; then |
| 8792 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8793 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8794 | else |
| 8795 | ac_cpp_err= |
| 8796 | fi |
| 8797 | else |
| 8798 | ac_cpp_err=yes |
| 8799 | fi |
| 8800 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8801 | ac_header_preproc=yes |
| 8802 | else |
| 8803 | echo "$as_me: failed program was:" >&5 |
| 8804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8805 | |
| 8806 | ac_header_preproc=no |
| 8807 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8808 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8809 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8810 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8811 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8812 | |
| 8813 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8815 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8816 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8817 | 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] | 8818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8819 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8820 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8821 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8822 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8823 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8824 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8825 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8826 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8827 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8828 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8829 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8830 | 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] | 8831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8832 | 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] | 8833 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8834 | 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] | 8835 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8836 | ## ----------------------------------- ## |
| 8837 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8838 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8839 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8840 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8841 | ;; |
| 8842 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8843 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8844 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8845 | 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] | 8846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8847 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8848 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8849 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8850 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8851 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8852 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8853 | |
| 8854 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8855 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8856 | cat >>confdefs.h <<_ACEOF |
| 8857 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8858 | _ACEOF |
| 8859 | |
| 8860 | fi |
| 8861 | |
| 8862 | done |
| 8863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8864 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8865 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8866 | enableval=$enable_ltdl_install; |
| 8867 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8868 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8869 | |
Duncan Sands | 1eff704 | 2007-12-10 17:43:13 +0000 | [diff] [blame] | 8870 | |
| 8871 | |
| 8872 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8873 | INSTALL_LTDL_TRUE= |
| 8874 | INSTALL_LTDL_FALSE='#' |
| 8875 | else |
| 8876 | INSTALL_LTDL_TRUE='#' |
| 8877 | INSTALL_LTDL_FALSE= |
| 8878 | fi |
| 8879 | |
Duncan Sands | 1eff704 | 2007-12-10 17:43:13 +0000 | [diff] [blame] | 8880 | |
| 8881 | |
| 8882 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8883 | CONVENIENCE_LTDL_TRUE= |
| 8884 | CONVENIENCE_LTDL_FALSE='#' |
| 8885 | else |
| 8886 | CONVENIENCE_LTDL_TRUE='#' |
| 8887 | CONVENIENCE_LTDL_FALSE= |
| 8888 | fi |
| 8889 | |
| 8890 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8891 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8892 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8893 | library_names_spec= |
| 8894 | libname_spec='lib$name' |
| 8895 | soname_spec= |
| 8896 | shrext_cmds=".so" |
| 8897 | postinstall_cmds= |
| 8898 | postuninstall_cmds= |
| 8899 | finish_cmds= |
| 8900 | finish_eval= |
| 8901 | shlibpath_var= |
| 8902 | shlibpath_overrides_runpath=unknown |
| 8903 | version_type=none |
| 8904 | dynamic_linker="$host_os ld.so" |
| 8905 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8906 | if test "$GCC" = yes; then |
| 8907 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8908 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8909 | # if the path contains ";" then we assume it to be the separator |
| 8910 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8911 | # assumed that no part of a normal pathname contains ";" but that should |
| 8912 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8913 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8914 | else |
| 8915 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8916 | fi |
| 8917 | else |
| 8918 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8919 | fi |
| 8920 | need_lib_prefix=unknown |
| 8921 | hardcode_into_libs=no |
| 8922 | |
| 8923 | # when you set need_version to no, make sure it does not cause -set_version |
| 8924 | # flags to be left without arguments |
| 8925 | need_version=unknown |
| 8926 | |
| 8927 | case $host_os in |
| 8928 | aix3*) |
| 8929 | version_type=linux |
| 8930 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8931 | shlibpath_var=LIBPATH |
| 8932 | |
| 8933 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8934 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8935 | ;; |
| 8936 | |
| 8937 | aix4* | aix5*) |
| 8938 | version_type=linux |
| 8939 | need_lib_prefix=no |
| 8940 | need_version=no |
| 8941 | hardcode_into_libs=yes |
| 8942 | if test "$host_cpu" = ia64; then |
| 8943 | # AIX 5 supports IA64 |
| 8944 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8945 | shlibpath_var=LD_LIBRARY_PATH |
| 8946 | else |
| 8947 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8948 | # for dependence libraries. The import file would start with |
| 8949 | # the line `#! .'. This would cause the generated library to |
| 8950 | # depend on `.', always an invalid library. This was fixed in |
| 8951 | # development snapshots of GCC prior to 3.0. |
| 8952 | case $host_os in |
| 8953 | aix4 | aix4.[01] | aix4.[01].*) |
| 8954 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8955 | echo ' yes ' |
| 8956 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8957 | : |
| 8958 | else |
| 8959 | can_build_shared=no |
| 8960 | fi |
| 8961 | ;; |
| 8962 | esac |
| 8963 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8964 | # soname into executable. Probably we can add versioning support to |
| 8965 | # collect2, so additional links can be useful in future. |
| 8966 | if test "$aix_use_runtimelinking" = yes; then |
| 8967 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8968 | # instead of lib<name>.a to let people know that these are not |
| 8969 | # typical AIX shared libraries. |
| 8970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8971 | else |
| 8972 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8973 | # and later when we are not doing run time linking. |
| 8974 | library_names_spec='${libname}${release}.a $libname.a' |
| 8975 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8976 | fi |
| 8977 | shlibpath_var=LIBPATH |
| 8978 | fi |
| 8979 | ;; |
| 8980 | |
| 8981 | amigaos*) |
| 8982 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8983 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8984 | 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' |
| 8985 | ;; |
| 8986 | |
| 8987 | beos*) |
| 8988 | library_names_spec='${libname}${shared_ext}' |
| 8989 | dynamic_linker="$host_os ld.so" |
| 8990 | shlibpath_var=LIBRARY_PATH |
| 8991 | ;; |
| 8992 | |
| 8993 | bsdi[45]*) |
| 8994 | version_type=linux |
| 8995 | need_version=no |
| 8996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8997 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8998 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8999 | shlibpath_var=LD_LIBRARY_PATH |
| 9000 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9001 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9002 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9003 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9004 | # libtool to hard-code these into programs |
| 9005 | ;; |
| 9006 | |
| 9007 | cygwin* | mingw* | pw32*) |
| 9008 | version_type=windows |
| 9009 | shrext_cmds=".dll" |
| 9010 | need_version=no |
| 9011 | need_lib_prefix=no |
| 9012 | |
| 9013 | case $GCC,$host_os in |
| 9014 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9015 | library_names_spec='$libname.dll.a' |
| 9016 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9017 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9018 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9019 | dldir=$destdir/`dirname \$dlpath`~ |
| 9020 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9021 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9022 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9023 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9024 | dlpath=$dir/\$dldll~ |
| 9025 | $rm \$dlpath' |
| 9026 | shlibpath_overrides_runpath=yes |
| 9027 | |
| 9028 | case $host_os in |
| 9029 | cygwin*) |
| 9030 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9031 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9032 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9033 | ;; |
| 9034 | mingw*) |
| 9035 | # MinGW DLLs use traditional 'lib' prefix |
| 9036 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9037 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9038 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9039 | # It is most probably a Windows format PATH printed by |
| 9040 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9041 | # path with ; separators, and with drive letters. We can handle the |
| 9042 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9043 | # especially as we might pass files found there to a mingw objdump, |
| 9044 | # which wouldn't understand a cygwinified path. Ahh. |
| 9045 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9046 | else |
| 9047 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9048 | fi |
| 9049 | ;; |
| 9050 | pw32*) |
| 9051 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9052 | 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] | 9053 | ;; |
| 9054 | esac |
| 9055 | ;; |
| 9056 | |
| 9057 | *) |
| 9058 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9059 | ;; |
| 9060 | esac |
| 9061 | dynamic_linker='Win32 ld.exe' |
| 9062 | # FIXME: first we should search . and the directory the executable is in |
| 9063 | shlibpath_var=PATH |
| 9064 | ;; |
| 9065 | |
| 9066 | darwin* | rhapsody*) |
| 9067 | dynamic_linker="$host_os dyld" |
| 9068 | version_type=darwin |
| 9069 | need_lib_prefix=no |
| 9070 | need_version=no |
| 9071 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9072 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9073 | shlibpath_overrides_runpath=yes |
| 9074 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9075 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9076 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9077 | if test "$GCC" = yes; then |
| 9078 | 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"` |
| 9079 | else |
| 9080 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9081 | fi |
| 9082 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9083 | ;; |
| 9084 | |
| 9085 | dgux*) |
| 9086 | version_type=linux |
| 9087 | need_lib_prefix=no |
| 9088 | need_version=no |
| 9089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9090 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9091 | shlibpath_var=LD_LIBRARY_PATH |
| 9092 | ;; |
| 9093 | |
| 9094 | freebsd1*) |
| 9095 | dynamic_linker=no |
| 9096 | ;; |
| 9097 | |
| 9098 | kfreebsd*-gnu) |
| 9099 | version_type=linux |
| 9100 | need_lib_prefix=no |
| 9101 | need_version=no |
| 9102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9103 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9104 | shlibpath_var=LD_LIBRARY_PATH |
| 9105 | shlibpath_overrides_runpath=no |
| 9106 | hardcode_into_libs=yes |
| 9107 | dynamic_linker='GNU ld.so' |
| 9108 | ;; |
| 9109 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9110 | freebsd* | dragonfly*) |
| 9111 | # DragonFly does not have aout. When/if they implement a new |
| 9112 | # versioning mechanism, adjust this. |
| 9113 | if test -x /usr/bin/objformat; then |
| 9114 | objformat=`/usr/bin/objformat` |
| 9115 | else |
| 9116 | case $host_os in |
| 9117 | freebsd[123]*) objformat=aout ;; |
| 9118 | *) objformat=elf ;; |
| 9119 | esac |
| 9120 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9121 | version_type=freebsd-$objformat |
| 9122 | case $version_type in |
| 9123 | freebsd-elf*) |
| 9124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9125 | need_version=no |
| 9126 | need_lib_prefix=no |
| 9127 | ;; |
| 9128 | freebsd-*) |
| 9129 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9130 | need_version=yes |
| 9131 | ;; |
| 9132 | esac |
| 9133 | shlibpath_var=LD_LIBRARY_PATH |
| 9134 | case $host_os in |
| 9135 | freebsd2*) |
| 9136 | shlibpath_overrides_runpath=yes |
| 9137 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9138 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9139 | shlibpath_overrides_runpath=yes |
| 9140 | hardcode_into_libs=yes |
| 9141 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9142 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9143 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9144 | shlibpath_overrides_runpath=no |
| 9145 | hardcode_into_libs=yes |
| 9146 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9147 | freebsd*) # from 4.6 on |
| 9148 | shlibpath_overrides_runpath=yes |
| 9149 | hardcode_into_libs=yes |
| 9150 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9151 | esac |
| 9152 | ;; |
| 9153 | |
| 9154 | gnu*) |
| 9155 | version_type=linux |
| 9156 | need_lib_prefix=no |
| 9157 | need_version=no |
| 9158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9159 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9160 | shlibpath_var=LD_LIBRARY_PATH |
| 9161 | hardcode_into_libs=yes |
| 9162 | ;; |
| 9163 | |
| 9164 | hpux9* | hpux10* | hpux11*) |
| 9165 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9166 | # link against other versions. |
| 9167 | version_type=sunos |
| 9168 | need_lib_prefix=no |
| 9169 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9170 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9171 | ia64*) |
| 9172 | shrext_cmds='.so' |
| 9173 | hardcode_into_libs=yes |
| 9174 | dynamic_linker="$host_os dld.so" |
| 9175 | shlibpath_var=LD_LIBRARY_PATH |
| 9176 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9178 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9179 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9180 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9181 | else |
| 9182 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9183 | fi |
| 9184 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9185 | ;; |
| 9186 | hppa*64*) |
| 9187 | shrext_cmds='.sl' |
| 9188 | hardcode_into_libs=yes |
| 9189 | dynamic_linker="$host_os dld.sl" |
| 9190 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9191 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9193 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9194 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9195 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9196 | ;; |
| 9197 | *) |
| 9198 | shrext_cmds='.sl' |
| 9199 | dynamic_linker="$host_os dld.sl" |
| 9200 | shlibpath_var=SHLIB_PATH |
| 9201 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9203 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9204 | ;; |
| 9205 | esac |
| 9206 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9207 | postinstall_cmds='chmod 555 $lib' |
| 9208 | ;; |
| 9209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9210 | interix3*) |
| 9211 | version_type=linux |
| 9212 | need_lib_prefix=no |
| 9213 | need_version=no |
| 9214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9215 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9216 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9217 | shlibpath_var=LD_LIBRARY_PATH |
| 9218 | shlibpath_overrides_runpath=no |
| 9219 | hardcode_into_libs=yes |
| 9220 | ;; |
| 9221 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9222 | irix5* | irix6* | nonstopux*) |
| 9223 | case $host_os in |
| 9224 | nonstopux*) version_type=nonstopux ;; |
| 9225 | *) |
| 9226 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9227 | version_type=linux |
| 9228 | else |
| 9229 | version_type=irix |
| 9230 | fi ;; |
| 9231 | esac |
| 9232 | need_lib_prefix=no |
| 9233 | need_version=no |
| 9234 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9236 | case $host_os in |
| 9237 | irix5* | nonstopux*) |
| 9238 | libsuff= shlibsuff= |
| 9239 | ;; |
| 9240 | *) |
| 9241 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9242 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9243 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9244 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9245 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9246 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9247 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9248 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9249 | esac |
| 9250 | ;; |
| 9251 | esac |
| 9252 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9253 | shlibpath_overrides_runpath=no |
| 9254 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9255 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9256 | hardcode_into_libs=yes |
| 9257 | ;; |
| 9258 | |
| 9259 | # No shared lib support for Linux oldld, aout, or coff. |
| 9260 | linux*oldld* | linux*aout* | linux*coff*) |
| 9261 | dynamic_linker=no |
| 9262 | ;; |
| 9263 | |
| 9264 | # This must be Linux ELF. |
| 9265 | linux*) |
| 9266 | version_type=linux |
| 9267 | need_lib_prefix=no |
| 9268 | need_version=no |
| 9269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9270 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9271 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9272 | shlibpath_var=LD_LIBRARY_PATH |
| 9273 | shlibpath_overrides_runpath=no |
| 9274 | # This implies no fast_install, which is unacceptable. |
| 9275 | # Some rework will be needed to allow for fast_install |
| 9276 | # before this can be enabled. |
| 9277 | hardcode_into_libs=yes |
| 9278 | |
| 9279 | # Append ld.so.conf contents to the search path |
| 9280 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9281 | 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] | 9282 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9283 | fi |
| 9284 | |
| 9285 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9286 | # powerpc, because MkLinux only supported shared libraries with the |
| 9287 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9288 | # most powerpc-linux boxes support dynamic linking these days and |
| 9289 | # people can always --disable-shared, the test was removed, and we |
| 9290 | # assume the GNU/Linux dynamic linker is in use. |
| 9291 | dynamic_linker='GNU/Linux ld.so' |
| 9292 | ;; |
| 9293 | |
| 9294 | knetbsd*-gnu) |
| 9295 | version_type=linux |
| 9296 | need_lib_prefix=no |
| 9297 | need_version=no |
| 9298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9299 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9300 | shlibpath_var=LD_LIBRARY_PATH |
| 9301 | shlibpath_overrides_runpath=no |
| 9302 | hardcode_into_libs=yes |
| 9303 | dynamic_linker='GNU ld.so' |
| 9304 | ;; |
| 9305 | |
| 9306 | netbsd*) |
| 9307 | version_type=sunos |
| 9308 | need_lib_prefix=no |
| 9309 | need_version=no |
| 9310 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9312 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9313 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9314 | else |
| 9315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9316 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9317 | dynamic_linker='NetBSD ld.elf_so' |
| 9318 | fi |
| 9319 | shlibpath_var=LD_LIBRARY_PATH |
| 9320 | shlibpath_overrides_runpath=yes |
| 9321 | hardcode_into_libs=yes |
| 9322 | ;; |
| 9323 | |
| 9324 | newsos6) |
| 9325 | version_type=linux |
| 9326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9327 | shlibpath_var=LD_LIBRARY_PATH |
| 9328 | shlibpath_overrides_runpath=yes |
| 9329 | ;; |
| 9330 | |
| 9331 | nto-qnx*) |
| 9332 | version_type=linux |
| 9333 | need_lib_prefix=no |
| 9334 | need_version=no |
| 9335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9336 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9337 | shlibpath_var=LD_LIBRARY_PATH |
| 9338 | shlibpath_overrides_runpath=yes |
| 9339 | ;; |
| 9340 | |
| 9341 | openbsd*) |
| 9342 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9343 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9344 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9345 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9346 | case $host_os in |
| 9347 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9348 | *) need_version=no ;; |
| 9349 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9351 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9352 | shlibpath_var=LD_LIBRARY_PATH |
| 9353 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9354 | case $host_os in |
| 9355 | openbsd2.[89] | openbsd2.[89].*) |
| 9356 | shlibpath_overrides_runpath=no |
| 9357 | ;; |
| 9358 | *) |
| 9359 | shlibpath_overrides_runpath=yes |
| 9360 | ;; |
| 9361 | esac |
| 9362 | else |
| 9363 | shlibpath_overrides_runpath=yes |
| 9364 | fi |
| 9365 | ;; |
| 9366 | |
| 9367 | os2*) |
| 9368 | libname_spec='$name' |
| 9369 | shrext_cmds=".dll" |
| 9370 | need_lib_prefix=no |
| 9371 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9372 | dynamic_linker='OS/2 ld.exe' |
| 9373 | shlibpath_var=LIBPATH |
| 9374 | ;; |
| 9375 | |
| 9376 | osf3* | osf4* | osf5*) |
| 9377 | version_type=osf |
| 9378 | need_lib_prefix=no |
| 9379 | need_version=no |
| 9380 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9382 | shlibpath_var=LD_LIBRARY_PATH |
| 9383 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9384 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9385 | ;; |
| 9386 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9387 | solaris*) |
| 9388 | version_type=linux |
| 9389 | need_lib_prefix=no |
| 9390 | need_version=no |
| 9391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9393 | shlibpath_var=LD_LIBRARY_PATH |
| 9394 | shlibpath_overrides_runpath=yes |
| 9395 | hardcode_into_libs=yes |
| 9396 | # ldd complains unless libraries are executable |
| 9397 | postinstall_cmds='chmod +x $lib' |
| 9398 | ;; |
| 9399 | |
| 9400 | sunos4*) |
| 9401 | version_type=sunos |
| 9402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9403 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9404 | shlibpath_var=LD_LIBRARY_PATH |
| 9405 | shlibpath_overrides_runpath=yes |
| 9406 | if test "$with_gnu_ld" = yes; then |
| 9407 | need_lib_prefix=no |
| 9408 | fi |
| 9409 | need_version=yes |
| 9410 | ;; |
| 9411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9412 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9413 | version_type=linux |
| 9414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9415 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9416 | shlibpath_var=LD_LIBRARY_PATH |
| 9417 | case $host_vendor in |
| 9418 | sni) |
| 9419 | shlibpath_overrides_runpath=no |
| 9420 | need_lib_prefix=no |
| 9421 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9422 | runpath_var=LD_RUN_PATH |
| 9423 | ;; |
| 9424 | siemens) |
| 9425 | need_lib_prefix=no |
| 9426 | ;; |
| 9427 | motorola) |
| 9428 | need_lib_prefix=no |
| 9429 | need_version=no |
| 9430 | shlibpath_overrides_runpath=no |
| 9431 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9432 | ;; |
| 9433 | esac |
| 9434 | ;; |
| 9435 | |
| 9436 | sysv4*MP*) |
| 9437 | if test -d /usr/nec ;then |
| 9438 | version_type=linux |
| 9439 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9440 | soname_spec='$libname${shared_ext}.$major' |
| 9441 | shlibpath_var=LD_LIBRARY_PATH |
| 9442 | fi |
| 9443 | ;; |
| 9444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9445 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9446 | version_type=freebsd-elf |
| 9447 | need_lib_prefix=no |
| 9448 | need_version=no |
| 9449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9450 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9451 | shlibpath_var=LD_LIBRARY_PATH |
| 9452 | hardcode_into_libs=yes |
| 9453 | if test "$with_gnu_ld" = yes; then |
| 9454 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9455 | shlibpath_overrides_runpath=no |
| 9456 | else |
| 9457 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9458 | shlibpath_overrides_runpath=yes |
| 9459 | case $host_os in |
| 9460 | sco3.2v5*) |
| 9461 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9462 | ;; |
| 9463 | esac |
| 9464 | fi |
| 9465 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9466 | ;; |
| 9467 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9468 | uts4*) |
| 9469 | version_type=linux |
| 9470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9471 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9472 | shlibpath_var=LD_LIBRARY_PATH |
| 9473 | ;; |
| 9474 | |
| 9475 | *) |
| 9476 | dynamic_linker=no |
| 9477 | ;; |
| 9478 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9479 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9480 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9481 | test "$dynamic_linker" = no && can_build_shared=no |
| 9482 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9483 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9484 | if test "$GCC" = yes; then |
| 9485 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9486 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9488 | |
| 9489 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9490 | 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] | 9491 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9493 | else |
| 9494 | |
| 9495 | module=yes |
| 9496 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9497 | |
| 9498 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9499 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9500 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9501 | if test -n "$libltdl_cv_shlibext"; then |
| 9502 | |
| 9503 | cat >>confdefs.h <<_ACEOF |
| 9504 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9505 | _ACEOF |
| 9506 | |
| 9507 | fi |
| 9508 | |
| 9509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9510 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9511 | 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] | 9512 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9514 | else |
| 9515 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9516 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9517 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9518 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9519 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9520 | |
| 9521 | cat >>confdefs.h <<_ACEOF |
| 9522 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9523 | _ACEOF |
| 9524 | |
| 9525 | fi |
| 9526 | |
| 9527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9528 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9529 | 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] | 9530 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9532 | else |
| 9533 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9534 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9535 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9536 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9537 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9538 | sys_search_path= |
| 9539 | for dir in $libltdl_cv_sys_search_path; do |
| 9540 | if test -z "$sys_search_path"; then |
| 9541 | sys_search_path="$dir" |
| 9542 | else |
| 9543 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9544 | fi |
| 9545 | done |
| 9546 | |
| 9547 | cat >>confdefs.h <<_ACEOF |
| 9548 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9549 | _ACEOF |
| 9550 | |
| 9551 | fi |
| 9552 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9553 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9554 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9555 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9557 | else |
| 9558 | libltdl_cv_objdir="$objdir" |
| 9559 | if test -n "$objdir"; then |
| 9560 | : |
| 9561 | else |
| 9562 | rm -f .libs 2>/dev/null |
| 9563 | mkdir .libs 2>/dev/null |
| 9564 | if test -d .libs; then |
| 9565 | libltdl_cv_objdir=.libs |
| 9566 | else |
| 9567 | # MS-DOS does not allow filenames that begin with a dot. |
| 9568 | libltdl_cv_objdir=_libs |
| 9569 | fi |
| 9570 | rmdir .libs 2>/dev/null |
| 9571 | fi |
| 9572 | |
| 9573 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9574 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9575 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9576 | |
| 9577 | cat >>confdefs.h <<_ACEOF |
| 9578 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9579 | _ACEOF |
| 9580 | |
| 9581 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9582 | |
| 9583 | |
| 9584 | |
| 9585 | |
| 9586 | # 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] | 9587 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9588 | 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] | 9589 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9591 | else |
| 9592 | |
| 9593 | # These are sane defaults that work on at least a few old systems. |
| 9594 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9595 | |
| 9596 | # Character class describing NM global symbol codes. |
| 9597 | symcode='[BCDEGRST]' |
| 9598 | |
| 9599 | # Regexp to match symbols that can be accessed directly from C. |
| 9600 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9601 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9602 | # Transform an extracted symbol line into a proper C declaration |
| 9603 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9604 | |
| 9605 | # Transform an extracted symbol line into symbol name and symbol address |
| 9606 | 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'" |
| 9607 | |
| 9608 | # Define system-specific variables. |
| 9609 | case $host_os in |
| 9610 | aix*) |
| 9611 | symcode='[BCDT]' |
| 9612 | ;; |
| 9613 | cygwin* | mingw* | pw32*) |
| 9614 | symcode='[ABCDGISTW]' |
| 9615 | ;; |
| 9616 | hpux*) # Its linker distinguishes data from code symbols |
| 9617 | if test "$host_cpu" = ia64; then |
| 9618 | symcode='[ABCDEGRST]' |
| 9619 | fi |
| 9620 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9621 | 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'" |
| 9622 | ;; |
| 9623 | linux*) |
| 9624 | if test "$host_cpu" = ia64; then |
| 9625 | symcode='[ABCDGIRSTW]' |
| 9626 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9627 | 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'" |
| 9628 | fi |
| 9629 | ;; |
| 9630 | irix* | nonstopux*) |
| 9631 | symcode='[BCDEGRST]' |
| 9632 | ;; |
| 9633 | osf*) |
| 9634 | symcode='[BCDEGQRST]' |
| 9635 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9636 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9637 | symcode='[BDRT]' |
| 9638 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9639 | sco3.2v5*) |
| 9640 | symcode='[DT]' |
| 9641 | ;; |
| 9642 | sysv4.2uw2*) |
| 9643 | symcode='[DT]' |
| 9644 | ;; |
| 9645 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9646 | symcode='[ABDT]' |
| 9647 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9648 | sysv4) |
| 9649 | symcode='[DFNSTU]' |
| 9650 | ;; |
| 9651 | esac |
| 9652 | |
| 9653 | # Handle CRLF in mingw tool chain |
| 9654 | opt_cr= |
| 9655 | case $build_os in |
| 9656 | mingw*) |
| 9657 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9658 | ;; |
| 9659 | esac |
| 9660 | |
| 9661 | # If we're using GNU nm, then use its standard symbol codes. |
| 9662 | case `$NM -V 2>&1` in |
| 9663 | *GNU* | *'with BFD'*) |
| 9664 | symcode='[ABCDGIRSTW]' ;; |
| 9665 | esac |
| 9666 | |
| 9667 | # Try without a prefix undercore, then with it. |
| 9668 | for ac_symprfx in "" "_"; do |
| 9669 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9670 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9671 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9672 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9673 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9674 | 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] | 9675 | |
| 9676 | # Check to see that the pipe works correctly. |
| 9677 | pipe_works=no |
| 9678 | |
| 9679 | rm -f conftest* |
| 9680 | cat > conftest.$ac_ext <<EOF |
| 9681 | #ifdef __cplusplus |
| 9682 | extern "C" { |
| 9683 | #endif |
| 9684 | char nm_test_var; |
| 9685 | void nm_test_func(){} |
| 9686 | #ifdef __cplusplus |
| 9687 | } |
| 9688 | #endif |
| 9689 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9690 | EOF |
| 9691 | |
| 9692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9693 | (eval $ac_compile) 2>&5 |
| 9694 | ac_status=$? |
| 9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9696 | (exit $ac_status); }; then |
| 9697 | # Now try to grab the symbols. |
| 9698 | nlist=conftest.nm |
| 9699 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9700 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9701 | ac_status=$? |
| 9702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9703 | (exit $ac_status); } && test -s "$nlist"; then |
| 9704 | # Try sorting and uniquifying the output. |
| 9705 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9706 | mv -f "$nlist"T "$nlist" |
| 9707 | else |
| 9708 | rm -f "$nlist"T |
| 9709 | fi |
| 9710 | |
| 9711 | # Make sure that we snagged all the symbols we need. |
| 9712 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9713 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9714 | cat <<EOF > conftest.$ac_ext |
| 9715 | #ifdef __cplusplus |
| 9716 | extern "C" { |
| 9717 | #endif |
| 9718 | |
| 9719 | EOF |
| 9720 | # Now generate the symbol file. |
| 9721 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9722 | |
| 9723 | cat <<EOF >> conftest.$ac_ext |
| 9724 | #if defined (__STDC__) && __STDC__ |
| 9725 | # define lt_ptr_t void * |
| 9726 | #else |
| 9727 | # define lt_ptr_t char * |
| 9728 | # define const |
| 9729 | #endif |
| 9730 | |
| 9731 | /* The mapping between symbol names and symbols. */ |
| 9732 | const struct { |
| 9733 | const char *name; |
| 9734 | lt_ptr_t address; |
| 9735 | } |
| 9736 | lt_preloaded_symbols[] = |
| 9737 | { |
| 9738 | EOF |
| 9739 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9740 | cat <<\EOF >> conftest.$ac_ext |
| 9741 | {0, (lt_ptr_t) 0} |
| 9742 | }; |
| 9743 | |
| 9744 | #ifdef __cplusplus |
| 9745 | } |
| 9746 | #endif |
| 9747 | EOF |
| 9748 | # Now try linking the two files. |
| 9749 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9750 | lt_save_LIBS="$LIBS" |
| 9751 | lt_save_CFLAGS="$CFLAGS" |
| 9752 | LIBS="conftstm.$ac_objext" |
| 9753 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9755 | (eval $ac_link) 2>&5 |
| 9756 | ac_status=$? |
| 9757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9758 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9759 | pipe_works=yes |
| 9760 | fi |
| 9761 | LIBS="$lt_save_LIBS" |
| 9762 | CFLAGS="$lt_save_CFLAGS" |
| 9763 | else |
| 9764 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9765 | fi |
| 9766 | else |
| 9767 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9768 | fi |
| 9769 | else |
| 9770 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9771 | fi |
| 9772 | else |
| 9773 | echo "$progname: failed program was:" >&5 |
| 9774 | cat conftest.$ac_ext >&5 |
| 9775 | fi |
| 9776 | rm -f conftest* conftst* |
| 9777 | |
| 9778 | # Do not use the global_symbol_pipe unless it works. |
| 9779 | if test "$pipe_works" = yes; then |
| 9780 | break |
| 9781 | else |
| 9782 | lt_cv_sys_global_symbol_pipe= |
| 9783 | fi |
| 9784 | done |
| 9785 | |
| 9786 | fi |
| 9787 | |
| 9788 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9789 | lt_cv_sys_global_symbol_to_cdecl= |
| 9790 | fi |
| 9791 | 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] | 9792 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9793 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9794 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9795 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9796 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9797 | fi |
| 9798 | |
| 9799 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9800 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9801 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9802 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9804 | else |
| 9805 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9806 | libltdl_cv_preloaded_symbols=yes |
| 9807 | else |
| 9808 | libltdl_cv_preloaded_symbols=no |
| 9809 | fi |
| 9810 | |
| 9811 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9812 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9813 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9814 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9815 | |
| 9816 | cat >>confdefs.h <<\_ACEOF |
| 9817 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9818 | _ACEOF |
| 9819 | |
| 9820 | fi |
| 9821 | |
| 9822 | LIBADD_DL= |
| 9823 | |
| 9824 | ac_ext=c |
| 9825 | ac_cpp='$CPP $CPPFLAGS' |
| 9826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9829 | |
| 9830 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9831 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9832 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9833 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9835 | else |
| 9836 | cat >conftest.$ac_ext <<_ACEOF |
| 9837 | /* confdefs.h. */ |
| 9838 | _ACEOF |
| 9839 | cat confdefs.h >>conftest.$ac_ext |
| 9840 | cat >>conftest.$ac_ext <<_ACEOF |
| 9841 | /* end confdefs.h. */ |
| 9842 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9844 | #define shl_load innocuous_shl_load |
| 9845 | |
| 9846 | /* System header to define __stub macros and hopefully few prototypes, |
| 9847 | which can conflict with char shl_load (); below. |
| 9848 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9849 | <limits.h> exists even on freestanding compilers. */ |
| 9850 | |
| 9851 | #ifdef __STDC__ |
| 9852 | # include <limits.h> |
| 9853 | #else |
| 9854 | # include <assert.h> |
| 9855 | #endif |
| 9856 | |
| 9857 | #undef shl_load |
| 9858 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9859 | /* Override any GCC internal prototype to avoid an error. |
| 9860 | Use char because int might match the return type of a GCC |
| 9861 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9862 | #ifdef __cplusplus |
| 9863 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9864 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9865 | char shl_load (); |
| 9866 | /* The GNU C library defines this for functions which it implements |
| 9867 | to always fail with ENOSYS. Some functions are actually named |
| 9868 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9869 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9870 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9871 | #endif |
| 9872 | |
| 9873 | int |
| 9874 | main () |
| 9875 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9876 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9877 | ; |
| 9878 | return 0; |
| 9879 | } |
| 9880 | _ACEOF |
| 9881 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9882 | if { (ac_try="$ac_link" |
| 9883 | case "(($ac_try" in |
| 9884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9885 | *) ac_try_echo=$ac_try;; |
| 9886 | esac |
| 9887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9888 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9889 | ac_status=$? |
| 9890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9891 | rm -f conftest.er1 |
| 9892 | cat conftest.err >&5 |
| 9893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9894 | (exit $ac_status); } && |
| 9895 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9896 | { (case "(($ac_try" in |
| 9897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9898 | *) ac_try_echo=$ac_try;; |
| 9899 | esac |
| 9900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9901 | (eval "$ac_try") 2>&5 |
| 9902 | ac_status=$? |
| 9903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9904 | (exit $ac_status); }; } && |
| 9905 | { ac_try='test -s conftest$ac_exeext' |
| 9906 | { (case "(($ac_try" in |
| 9907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9908 | *) ac_try_echo=$ac_try;; |
| 9909 | esac |
| 9910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9911 | (eval "$ac_try") 2>&5 |
| 9912 | ac_status=$? |
| 9913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9914 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9915 | ac_cv_func_shl_load=yes |
| 9916 | else |
| 9917 | echo "$as_me: failed program was:" >&5 |
| 9918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9920 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9921 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9922 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9923 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9924 | conftest$ac_exeext conftest.$ac_ext |
| 9925 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9926 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9927 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9928 | if test $ac_cv_func_shl_load = yes; then |
| 9929 | |
| 9930 | cat >>confdefs.h <<\_ACEOF |
| 9931 | #define HAVE_SHL_LOAD 1 |
| 9932 | _ACEOF |
| 9933 | |
| 9934 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9935 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9936 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9937 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9939 | else |
| 9940 | ac_check_lib_save_LIBS=$LIBS |
| 9941 | LIBS="-ldld $LIBS" |
| 9942 | cat >conftest.$ac_ext <<_ACEOF |
| 9943 | /* confdefs.h. */ |
| 9944 | _ACEOF |
| 9945 | cat confdefs.h >>conftest.$ac_ext |
| 9946 | cat >>conftest.$ac_ext <<_ACEOF |
| 9947 | /* end confdefs.h. */ |
| 9948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9949 | /* Override any GCC internal prototype to avoid an error. |
| 9950 | Use char because int might match the return type of a GCC |
| 9951 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9952 | #ifdef __cplusplus |
| 9953 | extern "C" |
| 9954 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9955 | char shl_load (); |
| 9956 | int |
| 9957 | main () |
| 9958 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9959 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9960 | ; |
| 9961 | return 0; |
| 9962 | } |
| 9963 | _ACEOF |
| 9964 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9965 | if { (ac_try="$ac_link" |
| 9966 | case "(($ac_try" in |
| 9967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9968 | *) ac_try_echo=$ac_try;; |
| 9969 | esac |
| 9970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9971 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9972 | ac_status=$? |
| 9973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9974 | rm -f conftest.er1 |
| 9975 | cat conftest.err >&5 |
| 9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9977 | (exit $ac_status); } && |
| 9978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9979 | { (case "(($ac_try" in |
| 9980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9981 | *) ac_try_echo=$ac_try;; |
| 9982 | esac |
| 9983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9984 | (eval "$ac_try") 2>&5 |
| 9985 | ac_status=$? |
| 9986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9987 | (exit $ac_status); }; } && |
| 9988 | { ac_try='test -s conftest$ac_exeext' |
| 9989 | { (case "(($ac_try" in |
| 9990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9991 | *) ac_try_echo=$ac_try;; |
| 9992 | esac |
| 9993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9994 | (eval "$ac_try") 2>&5 |
| 9995 | ac_status=$? |
| 9996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9997 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9998 | ac_cv_lib_dld_shl_load=yes |
| 9999 | else |
| 10000 | echo "$as_me: failed program was:" >&5 |
| 10001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10002 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10003 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10004 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10005 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10006 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10007 | conftest$ac_exeext conftest.$ac_ext |
| 10008 | LIBS=$ac_check_lib_save_LIBS |
| 10009 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10010 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10011 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10012 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10013 | |
| 10014 | cat >>confdefs.h <<\_ACEOF |
| 10015 | #define HAVE_SHL_LOAD 1 |
| 10016 | _ACEOF |
| 10017 | |
| 10018 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10019 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10020 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10021 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10022 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10024 | else |
| 10025 | ac_check_lib_save_LIBS=$LIBS |
| 10026 | LIBS="-ldl $LIBS" |
| 10027 | cat >conftest.$ac_ext <<_ACEOF |
| 10028 | /* confdefs.h. */ |
| 10029 | _ACEOF |
| 10030 | cat confdefs.h >>conftest.$ac_ext |
| 10031 | cat >>conftest.$ac_ext <<_ACEOF |
| 10032 | /* end confdefs.h. */ |
| 10033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10034 | /* Override any GCC internal prototype to avoid an error. |
| 10035 | Use char because int might match the return type of a GCC |
| 10036 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10037 | #ifdef __cplusplus |
| 10038 | extern "C" |
| 10039 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10040 | char dlopen (); |
| 10041 | int |
| 10042 | main () |
| 10043 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10044 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10045 | ; |
| 10046 | return 0; |
| 10047 | } |
| 10048 | _ACEOF |
| 10049 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10050 | if { (ac_try="$ac_link" |
| 10051 | case "(($ac_try" in |
| 10052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10053 | *) ac_try_echo=$ac_try;; |
| 10054 | esac |
| 10055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10056 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10057 | ac_status=$? |
| 10058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10059 | rm -f conftest.er1 |
| 10060 | cat conftest.err >&5 |
| 10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10062 | (exit $ac_status); } && |
| 10063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10064 | { (case "(($ac_try" in |
| 10065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10066 | *) ac_try_echo=$ac_try;; |
| 10067 | esac |
| 10068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10069 | (eval "$ac_try") 2>&5 |
| 10070 | ac_status=$? |
| 10071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10072 | (exit $ac_status); }; } && |
| 10073 | { ac_try='test -s conftest$ac_exeext' |
| 10074 | { (case "(($ac_try" in |
| 10075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10076 | *) ac_try_echo=$ac_try;; |
| 10077 | esac |
| 10078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10079 | (eval "$ac_try") 2>&5 |
| 10080 | ac_status=$? |
| 10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10082 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10083 | ac_cv_lib_dl_dlopen=yes |
| 10084 | else |
| 10085 | echo "$as_me: failed program was:" >&5 |
| 10086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10088 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10089 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10090 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10091 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10092 | conftest$ac_exeext conftest.$ac_ext |
| 10093 | LIBS=$ac_check_lib_save_LIBS |
| 10094 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10095 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10096 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10097 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10098 | |
| 10099 | cat >>confdefs.h <<\_ACEOF |
| 10100 | #define HAVE_LIBDL 1 |
| 10101 | _ACEOF |
| 10102 | |
| 10103 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10104 | else |
| 10105 | cat >conftest.$ac_ext <<_ACEOF |
| 10106 | /* confdefs.h. */ |
| 10107 | _ACEOF |
| 10108 | cat confdefs.h >>conftest.$ac_ext |
| 10109 | cat >>conftest.$ac_ext <<_ACEOF |
| 10110 | /* end confdefs.h. */ |
| 10111 | #if HAVE_DLFCN_H |
| 10112 | # include <dlfcn.h> |
| 10113 | #endif |
| 10114 | |
| 10115 | int |
| 10116 | main () |
| 10117 | { |
| 10118 | dlopen(0, 0); |
| 10119 | ; |
| 10120 | return 0; |
| 10121 | } |
| 10122 | _ACEOF |
| 10123 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10124 | if { (ac_try="$ac_link" |
| 10125 | case "(($ac_try" in |
| 10126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10127 | *) ac_try_echo=$ac_try;; |
| 10128 | esac |
| 10129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10130 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10131 | ac_status=$? |
| 10132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10133 | rm -f conftest.er1 |
| 10134 | cat conftest.err >&5 |
| 10135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10136 | (exit $ac_status); } && |
| 10137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10138 | { (case "(($ac_try" in |
| 10139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10140 | *) ac_try_echo=$ac_try;; |
| 10141 | esac |
| 10142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10143 | (eval "$ac_try") 2>&5 |
| 10144 | ac_status=$? |
| 10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10146 | (exit $ac_status); }; } && |
| 10147 | { ac_try='test -s conftest$ac_exeext' |
| 10148 | { (case "(($ac_try" in |
| 10149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10150 | *) ac_try_echo=$ac_try;; |
| 10151 | esac |
| 10152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10153 | (eval "$ac_try") 2>&5 |
| 10154 | ac_status=$? |
| 10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10156 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10157 | |
| 10158 | cat >>confdefs.h <<\_ACEOF |
| 10159 | #define HAVE_LIBDL 1 |
| 10160 | _ACEOF |
| 10161 | libltdl_cv_func_dlopen="yes" |
| 10162 | else |
| 10163 | echo "$as_me: failed program was:" >&5 |
| 10164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10166 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10167 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10168 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10170 | else |
| 10171 | ac_check_lib_save_LIBS=$LIBS |
| 10172 | LIBS="-lsvld $LIBS" |
| 10173 | cat >conftest.$ac_ext <<_ACEOF |
| 10174 | /* confdefs.h. */ |
| 10175 | _ACEOF |
| 10176 | cat confdefs.h >>conftest.$ac_ext |
| 10177 | cat >>conftest.$ac_ext <<_ACEOF |
| 10178 | /* end confdefs.h. */ |
| 10179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10180 | /* Override any GCC internal prototype to avoid an error. |
| 10181 | Use char because int might match the return type of a GCC |
| 10182 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10183 | #ifdef __cplusplus |
| 10184 | extern "C" |
| 10185 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10186 | char dlopen (); |
| 10187 | int |
| 10188 | main () |
| 10189 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10190 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10191 | ; |
| 10192 | return 0; |
| 10193 | } |
| 10194 | _ACEOF |
| 10195 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10196 | if { (ac_try="$ac_link" |
| 10197 | case "(($ac_try" in |
| 10198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10199 | *) ac_try_echo=$ac_try;; |
| 10200 | esac |
| 10201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10202 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10203 | ac_status=$? |
| 10204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10205 | rm -f conftest.er1 |
| 10206 | cat conftest.err >&5 |
| 10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10208 | (exit $ac_status); } && |
| 10209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10210 | { (case "(($ac_try" in |
| 10211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10212 | *) ac_try_echo=$ac_try;; |
| 10213 | esac |
| 10214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10215 | (eval "$ac_try") 2>&5 |
| 10216 | ac_status=$? |
| 10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10218 | (exit $ac_status); }; } && |
| 10219 | { ac_try='test -s conftest$ac_exeext' |
| 10220 | { (case "(($ac_try" in |
| 10221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10222 | *) ac_try_echo=$ac_try;; |
| 10223 | esac |
| 10224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10225 | (eval "$ac_try") 2>&5 |
| 10226 | ac_status=$? |
| 10227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10228 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10229 | ac_cv_lib_svld_dlopen=yes |
| 10230 | else |
| 10231 | echo "$as_me: failed program was:" >&5 |
| 10232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10234 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10235 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10236 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10237 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10238 | conftest$ac_exeext conftest.$ac_ext |
| 10239 | LIBS=$ac_check_lib_save_LIBS |
| 10240 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10241 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10242 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10243 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10244 | |
| 10245 | cat >>confdefs.h <<\_ACEOF |
| 10246 | #define HAVE_LIBDL 1 |
| 10247 | _ACEOF |
| 10248 | |
| 10249 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10250 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10251 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10252 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10253 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10255 | else |
| 10256 | ac_check_lib_save_LIBS=$LIBS |
| 10257 | LIBS="-ldld $LIBS" |
| 10258 | cat >conftest.$ac_ext <<_ACEOF |
| 10259 | /* confdefs.h. */ |
| 10260 | _ACEOF |
| 10261 | cat confdefs.h >>conftest.$ac_ext |
| 10262 | cat >>conftest.$ac_ext <<_ACEOF |
| 10263 | /* end confdefs.h. */ |
| 10264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10265 | /* Override any GCC internal prototype to avoid an error. |
| 10266 | Use char because int might match the return type of a GCC |
| 10267 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10268 | #ifdef __cplusplus |
| 10269 | extern "C" |
| 10270 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10271 | char dld_link (); |
| 10272 | int |
| 10273 | main () |
| 10274 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10275 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10276 | ; |
| 10277 | return 0; |
| 10278 | } |
| 10279 | _ACEOF |
| 10280 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10281 | if { (ac_try="$ac_link" |
| 10282 | case "(($ac_try" in |
| 10283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10284 | *) ac_try_echo=$ac_try;; |
| 10285 | esac |
| 10286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10287 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10288 | ac_status=$? |
| 10289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10290 | rm -f conftest.er1 |
| 10291 | cat conftest.err >&5 |
| 10292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10293 | (exit $ac_status); } && |
| 10294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10295 | { (case "(($ac_try" in |
| 10296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10297 | *) ac_try_echo=$ac_try;; |
| 10298 | esac |
| 10299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10300 | (eval "$ac_try") 2>&5 |
| 10301 | ac_status=$? |
| 10302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10303 | (exit $ac_status); }; } && |
| 10304 | { ac_try='test -s conftest$ac_exeext' |
| 10305 | { (case "(($ac_try" in |
| 10306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10307 | *) ac_try_echo=$ac_try;; |
| 10308 | esac |
| 10309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10310 | (eval "$ac_try") 2>&5 |
| 10311 | ac_status=$? |
| 10312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10313 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10314 | ac_cv_lib_dld_dld_link=yes |
| 10315 | else |
| 10316 | echo "$as_me: failed program was:" >&5 |
| 10317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10319 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10320 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10321 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10322 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10323 | conftest$ac_exeext conftest.$ac_ext |
| 10324 | LIBS=$ac_check_lib_save_LIBS |
| 10325 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10326 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10327 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10328 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10329 | |
| 10330 | cat >>confdefs.h <<\_ACEOF |
| 10331 | #define HAVE_DLD 1 |
| 10332 | _ACEOF |
| 10333 | |
| 10334 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10335 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10336 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10337 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10338 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10340 | else |
| 10341 | cat >conftest.$ac_ext <<_ACEOF |
| 10342 | /* confdefs.h. */ |
| 10343 | _ACEOF |
| 10344 | cat confdefs.h >>conftest.$ac_ext |
| 10345 | cat >>conftest.$ac_ext <<_ACEOF |
| 10346 | /* end confdefs.h. */ |
| 10347 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10348 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10349 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10350 | |
| 10351 | /* System header to define __stub macros and hopefully few prototypes, |
| 10352 | which can conflict with char _dyld_func_lookup (); below. |
| 10353 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10354 | <limits.h> exists even on freestanding compilers. */ |
| 10355 | |
| 10356 | #ifdef __STDC__ |
| 10357 | # include <limits.h> |
| 10358 | #else |
| 10359 | # include <assert.h> |
| 10360 | #endif |
| 10361 | |
| 10362 | #undef _dyld_func_lookup |
| 10363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10364 | /* Override any GCC internal prototype to avoid an error. |
| 10365 | Use char because int might match the return type of a GCC |
| 10366 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10367 | #ifdef __cplusplus |
| 10368 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10369 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10370 | char _dyld_func_lookup (); |
| 10371 | /* The GNU C library defines this for functions which it implements |
| 10372 | to always fail with ENOSYS. Some functions are actually named |
| 10373 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10374 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10375 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10376 | #endif |
| 10377 | |
| 10378 | int |
| 10379 | main () |
| 10380 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10381 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10382 | ; |
| 10383 | return 0; |
| 10384 | } |
| 10385 | _ACEOF |
| 10386 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10387 | if { (ac_try="$ac_link" |
| 10388 | case "(($ac_try" in |
| 10389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10390 | *) ac_try_echo=$ac_try;; |
| 10391 | esac |
| 10392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10393 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10394 | ac_status=$? |
| 10395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10396 | rm -f conftest.er1 |
| 10397 | cat conftest.err >&5 |
| 10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10399 | (exit $ac_status); } && |
| 10400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10401 | { (case "(($ac_try" in |
| 10402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10403 | *) ac_try_echo=$ac_try;; |
| 10404 | esac |
| 10405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10406 | (eval "$ac_try") 2>&5 |
| 10407 | ac_status=$? |
| 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10409 | (exit $ac_status); }; } && |
| 10410 | { ac_try='test -s conftest$ac_exeext' |
| 10411 | { (case "(($ac_try" in |
| 10412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10413 | *) ac_try_echo=$ac_try;; |
| 10414 | esac |
| 10415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10416 | (eval "$ac_try") 2>&5 |
| 10417 | ac_status=$? |
| 10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10419 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10420 | ac_cv_func__dyld_func_lookup=yes |
| 10421 | else |
| 10422 | echo "$as_me: failed program was:" >&5 |
| 10423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10424 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10425 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10426 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10427 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10428 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10429 | conftest$ac_exeext conftest.$ac_ext |
| 10430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10431 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10432 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10433 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10434 | |
| 10435 | cat >>confdefs.h <<\_ACEOF |
| 10436 | #define HAVE_DYLD 1 |
| 10437 | _ACEOF |
| 10438 | |
| 10439 | fi |
| 10440 | |
| 10441 | |
| 10442 | fi |
| 10443 | |
| 10444 | |
| 10445 | fi |
| 10446 | |
| 10447 | |
| 10448 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10449 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10450 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10451 | conftest$ac_exeext conftest.$ac_ext |
| 10452 | |
| 10453 | fi |
| 10454 | |
| 10455 | |
| 10456 | fi |
| 10457 | |
| 10458 | |
| 10459 | fi |
| 10460 | |
| 10461 | |
| 10462 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10463 | then |
| 10464 | lt_save_LIBS="$LIBS" |
| 10465 | LIBS="$LIBS $LIBADD_DL" |
| 10466 | |
| 10467 | for ac_func in dlerror |
| 10468 | do |
| 10469 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10470 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10471 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10472 | 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] | 10473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10474 | else |
| 10475 | cat >conftest.$ac_ext <<_ACEOF |
| 10476 | /* confdefs.h. */ |
| 10477 | _ACEOF |
| 10478 | cat confdefs.h >>conftest.$ac_ext |
| 10479 | cat >>conftest.$ac_ext <<_ACEOF |
| 10480 | /* end confdefs.h. */ |
| 10481 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10482 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10483 | #define $ac_func innocuous_$ac_func |
| 10484 | |
| 10485 | /* System header to define __stub macros and hopefully few prototypes, |
| 10486 | which can conflict with char $ac_func (); below. |
| 10487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10488 | <limits.h> exists even on freestanding compilers. */ |
| 10489 | |
| 10490 | #ifdef __STDC__ |
| 10491 | # include <limits.h> |
| 10492 | #else |
| 10493 | # include <assert.h> |
| 10494 | #endif |
| 10495 | |
| 10496 | #undef $ac_func |
| 10497 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10498 | /* Override any GCC internal prototype to avoid an error. |
| 10499 | Use char because int might match the return type of a GCC |
| 10500 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10501 | #ifdef __cplusplus |
| 10502 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10503 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10504 | char $ac_func (); |
| 10505 | /* The GNU C library defines this for functions which it implements |
| 10506 | to always fail with ENOSYS. Some functions are actually named |
| 10507 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10508 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10510 | #endif |
| 10511 | |
| 10512 | int |
| 10513 | main () |
| 10514 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10515 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10516 | ; |
| 10517 | return 0; |
| 10518 | } |
| 10519 | _ACEOF |
| 10520 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10521 | if { (ac_try="$ac_link" |
| 10522 | case "(($ac_try" in |
| 10523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10524 | *) ac_try_echo=$ac_try;; |
| 10525 | esac |
| 10526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10527 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10528 | ac_status=$? |
| 10529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10530 | rm -f conftest.er1 |
| 10531 | cat conftest.err >&5 |
| 10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10533 | (exit $ac_status); } && |
| 10534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10535 | { (case "(($ac_try" in |
| 10536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10537 | *) ac_try_echo=$ac_try;; |
| 10538 | esac |
| 10539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10540 | (eval "$ac_try") 2>&5 |
| 10541 | ac_status=$? |
| 10542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10543 | (exit $ac_status); }; } && |
| 10544 | { ac_try='test -s conftest$ac_exeext' |
| 10545 | { (case "(($ac_try" in |
| 10546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10547 | *) ac_try_echo=$ac_try;; |
| 10548 | esac |
| 10549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10550 | (eval "$ac_try") 2>&5 |
| 10551 | ac_status=$? |
| 10552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10553 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10554 | eval "$as_ac_var=yes" |
| 10555 | else |
| 10556 | echo "$as_me: failed program was:" >&5 |
| 10557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10559 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10560 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10561 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10562 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10563 | conftest$ac_exeext conftest.$ac_ext |
| 10564 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10565 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10566 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10567 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10568 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10569 | cat >>confdefs.h <<_ACEOF |
| 10570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10571 | _ACEOF |
| 10572 | |
| 10573 | fi |
| 10574 | done |
| 10575 | |
| 10576 | LIBS="$lt_save_LIBS" |
| 10577 | fi |
| 10578 | ac_ext=c |
| 10579 | ac_cpp='$CPP $CPPFLAGS' |
| 10580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10583 | |
| 10584 | |
| 10585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10586 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10587 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10588 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10590 | else |
| 10591 | ac_cv_sys_symbol_underscore=no |
| 10592 | cat > conftest.$ac_ext <<EOF |
| 10593 | void nm_test_func(){} |
| 10594 | int main(){nm_test_func;return 0;} |
| 10595 | EOF |
| 10596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10597 | (eval $ac_compile) 2>&5 |
| 10598 | ac_status=$? |
| 10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10600 | (exit $ac_status); }; then |
| 10601 | # Now try to grab the symbols. |
| 10602 | ac_nlist=conftest.nm |
| 10603 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10604 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10605 | ac_status=$? |
| 10606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10607 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10608 | # See whether the symbols have a leading underscore. |
| 10609 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10610 | ac_cv_sys_symbol_underscore=yes |
| 10611 | else |
| 10612 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10613 | : |
| 10614 | else |
| 10615 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10616 | fi |
| 10617 | fi |
| 10618 | else |
| 10619 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10620 | fi |
| 10621 | else |
| 10622 | echo "configure: failed program was:" >&5 |
| 10623 | cat conftest.c >&5 |
| 10624 | fi |
| 10625 | rm -rf conftest* |
| 10626 | |
| 10627 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10628 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10629 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10630 | |
| 10631 | |
| 10632 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10633 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10634 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10635 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10636 | 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] | 10637 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10639 | else |
| 10640 | libltdl_cv_need_uscore=unknown |
| 10641 | save_LIBS="$LIBS" |
| 10642 | LIBS="$LIBS $LIBADD_DL" |
| 10643 | if test "$cross_compiling" = yes; then : |
| 10644 | libltdl_cv_need_uscore=cross |
| 10645 | else |
| 10646 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10647 | lt_status=$lt_dlunknown |
| 10648 | cat > conftest.$ac_ext <<EOF |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 10649 | #line 10649 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10650 | #include "confdefs.h" |
| 10651 | |
| 10652 | #if HAVE_DLFCN_H |
| 10653 | #include <dlfcn.h> |
| 10654 | #endif |
| 10655 | |
| 10656 | #include <stdio.h> |
| 10657 | |
| 10658 | #ifdef RTLD_GLOBAL |
| 10659 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10660 | #else |
| 10661 | # ifdef DL_GLOBAL |
| 10662 | # define LT_DLGLOBAL DL_GLOBAL |
| 10663 | # else |
| 10664 | # define LT_DLGLOBAL 0 |
| 10665 | # endif |
| 10666 | #endif |
| 10667 | |
| 10668 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10669 | find out it does not work in some platform. */ |
| 10670 | #ifndef LT_DLLAZY_OR_NOW |
| 10671 | # ifdef RTLD_LAZY |
| 10672 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10673 | # else |
| 10674 | # ifdef DL_LAZY |
| 10675 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10676 | # else |
| 10677 | # ifdef RTLD_NOW |
| 10678 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10679 | # else |
| 10680 | # ifdef DL_NOW |
| 10681 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10682 | # else |
| 10683 | # define LT_DLLAZY_OR_NOW 0 |
| 10684 | # endif |
| 10685 | # endif |
| 10686 | # endif |
| 10687 | # endif |
| 10688 | #endif |
| 10689 | |
| 10690 | #ifdef __cplusplus |
| 10691 | extern "C" void exit (int); |
| 10692 | #endif |
| 10693 | |
| 10694 | void fnord() { int i=42;} |
| 10695 | int main () |
| 10696 | { |
| 10697 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10698 | int status = $lt_dlunknown; |
| 10699 | |
| 10700 | if (self) |
| 10701 | { |
| 10702 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10703 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10704 | /* dlclose (self); */ |
| 10705 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10706 | else |
| 10707 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10708 | |
| 10709 | exit (status); |
| 10710 | } |
| 10711 | EOF |
| 10712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10713 | (eval $ac_link) 2>&5 |
| 10714 | ac_status=$? |
| 10715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10716 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10717 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10718 | lt_status=$? |
| 10719 | case x$lt_status in |
| 10720 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10721 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10722 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10723 | esac |
| 10724 | else : |
| 10725 | # compilation failed |
| 10726 | |
| 10727 | fi |
| 10728 | fi |
| 10729 | rm -fr conftest* |
| 10730 | |
| 10731 | LIBS="$save_LIBS" |
| 10732 | |
| 10733 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10734 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10735 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10736 | fi |
| 10737 | fi |
| 10738 | |
| 10739 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10740 | |
| 10741 | cat >>confdefs.h <<\_ACEOF |
| 10742 | #define NEED_USCORE 1 |
| 10743 | _ACEOF |
| 10744 | |
| 10745 | fi |
| 10746 | |
| 10747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10748 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10749 | 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] | 10750 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10752 | else |
| 10753 | # PORTME does your system automatically load deplibs for dlopen? |
| 10754 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10755 | # For now, we just catch OSes we know something about -- in the |
| 10756 | # future, we'll try test this programmatically. |
| 10757 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10758 | case "$host_os" in |
| 10759 | aix3*|aix4.1.*|aix4.2.*) |
| 10760 | # Unknown whether this is true for these versions of AIX, but |
| 10761 | # we want this `case' here to explicitly catch those versions. |
| 10762 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10763 | ;; |
| 10764 | aix[45]*) |
| 10765 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10766 | ;; |
| 10767 | darwin*) |
| 10768 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10769 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10770 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10771 | ;; |
| 10772 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10773 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10774 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10775 | ;; |
| 10776 | hpux10*|hpux11*) |
| 10777 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10778 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10779 | interix*) |
| 10780 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10781 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10782 | irix[12345]*|irix6.[01]*) |
| 10783 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10784 | # know how it worked for any of those versions. |
| 10785 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10786 | ;; |
| 10787 | irix*) |
| 10788 | # The case above catches anything before 6.2, and it's known that |
| 10789 | # at 6.2 and later dlopen does load deplibs. |
| 10790 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10791 | ;; |
| 10792 | netbsd*) |
| 10793 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10794 | ;; |
| 10795 | openbsd*) |
| 10796 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10797 | ;; |
| 10798 | osf[1234]*) |
| 10799 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10800 | # it did *not* use an RPATH in a shared library to find objects the |
| 10801 | # library depends on, so we explictly say `no'. |
| 10802 | libltdl_cv_sys_dlopen_deplibs=no |
| 10803 | ;; |
| 10804 | osf5.0|osf5.0a|osf5.1) |
| 10805 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10806 | # it even uses RPATH in a shared library to search for shared objects |
| 10807 | # that the library depends on, but there's no easy way to know if that |
| 10808 | # patch is installed. Since this is the case, all we can really |
| 10809 | # say is unknown -- it depends on the patch being installed. If |
| 10810 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10811 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10812 | ;; |
| 10813 | osf*) |
| 10814 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10815 | # the comments above for what we know about them. |
| 10816 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10817 | # is used to find them so we can finally say `yes'. |
| 10818 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10819 | ;; |
| 10820 | solaris*) |
| 10821 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10822 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10823 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10824 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10825 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10826 | esac |
| 10827 | |
| 10828 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10829 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10830 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10831 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10832 | |
| 10833 | cat >>confdefs.h <<\_ACEOF |
| 10834 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10835 | _ACEOF |
| 10836 | |
| 10837 | fi |
| 10838 | |
| 10839 | |
| 10840 | for ac_header in argz.h |
| 10841 | do |
| 10842 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10843 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10844 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10846 | 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] | 10847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10848 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10849 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10850 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10851 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10852 | else |
| 10853 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10854 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10855 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10856 | cat >conftest.$ac_ext <<_ACEOF |
| 10857 | /* confdefs.h. */ |
| 10858 | _ACEOF |
| 10859 | cat confdefs.h >>conftest.$ac_ext |
| 10860 | cat >>conftest.$ac_ext <<_ACEOF |
| 10861 | /* end confdefs.h. */ |
| 10862 | $ac_includes_default |
| 10863 | #include <$ac_header> |
| 10864 | _ACEOF |
| 10865 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10866 | if { (ac_try="$ac_compile" |
| 10867 | case "(($ac_try" in |
| 10868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10869 | *) ac_try_echo=$ac_try;; |
| 10870 | esac |
| 10871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10872 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10873 | ac_status=$? |
| 10874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10875 | rm -f conftest.er1 |
| 10876 | cat conftest.err >&5 |
| 10877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10878 | (exit $ac_status); } && |
| 10879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10880 | { (case "(($ac_try" in |
| 10881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10882 | *) ac_try_echo=$ac_try;; |
| 10883 | esac |
| 10884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10885 | (eval "$ac_try") 2>&5 |
| 10886 | ac_status=$? |
| 10887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10888 | (exit $ac_status); }; } && |
| 10889 | { ac_try='test -s conftest.$ac_objext' |
| 10890 | { (case "(($ac_try" in |
| 10891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10892 | *) ac_try_echo=$ac_try;; |
| 10893 | esac |
| 10894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10895 | (eval "$ac_try") 2>&5 |
| 10896 | ac_status=$? |
| 10897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10898 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10899 | ac_header_compiler=yes |
| 10900 | else |
| 10901 | echo "$as_me: failed program was:" >&5 |
| 10902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10903 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10904 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10905 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10906 | |
| 10907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10908 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10909 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10910 | |
| 10911 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10912 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10913 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10914 | cat >conftest.$ac_ext <<_ACEOF |
| 10915 | /* confdefs.h. */ |
| 10916 | _ACEOF |
| 10917 | cat confdefs.h >>conftest.$ac_ext |
| 10918 | cat >>conftest.$ac_ext <<_ACEOF |
| 10919 | /* end confdefs.h. */ |
| 10920 | #include <$ac_header> |
| 10921 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10922 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10923 | case "(($ac_try" in |
| 10924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10925 | *) ac_try_echo=$ac_try;; |
| 10926 | esac |
| 10927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10928 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10929 | ac_status=$? |
| 10930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10931 | rm -f conftest.er1 |
| 10932 | cat conftest.err >&5 |
| 10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10934 | (exit $ac_status); } >/dev/null; then |
| 10935 | if test -s conftest.err; then |
| 10936 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10937 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10938 | else |
| 10939 | ac_cpp_err= |
| 10940 | fi |
| 10941 | else |
| 10942 | ac_cpp_err=yes |
| 10943 | fi |
| 10944 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10945 | ac_header_preproc=yes |
| 10946 | else |
| 10947 | echo "$as_me: failed program was:" >&5 |
| 10948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10949 | |
| 10950 | ac_header_preproc=no |
| 10951 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10952 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10953 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10954 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10955 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10956 | |
| 10957 | # So? What about this header? |
| 10958 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10959 | yes:no: ) |
| 10960 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10961 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10963 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10964 | ac_header_preproc=yes |
| 10965 | ;; |
| 10966 | no:yes:* ) |
| 10967 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10968 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10969 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10970 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10971 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10972 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10973 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10974 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10976 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10977 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10978 | 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] | 10979 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10980 | ## ----------------------------------- ## |
| 10981 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10982 | ## ----------------------------------- ## |
| 10983 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10984 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10985 | ;; |
| 10986 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10987 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10988 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10989 | 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] | 10990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10991 | else |
| 10992 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10993 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10994 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10996 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10997 | |
| 10998 | fi |
| 10999 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11000 | cat >>confdefs.h <<_ACEOF |
| 11001 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11002 | _ACEOF |
| 11003 | |
| 11004 | fi |
| 11005 | |
| 11006 | done |
| 11007 | |
| 11008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11009 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11010 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11011 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11013 | else |
| 11014 | cat >conftest.$ac_ext <<_ACEOF |
| 11015 | /* confdefs.h. */ |
| 11016 | _ACEOF |
| 11017 | cat confdefs.h >>conftest.$ac_ext |
| 11018 | cat >>conftest.$ac_ext <<_ACEOF |
| 11019 | /* end confdefs.h. */ |
| 11020 | #if HAVE_ARGZ_H |
| 11021 | # include <argz.h> |
| 11022 | #endif |
| 11023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11024 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11025 | int |
| 11026 | main () |
| 11027 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11028 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11029 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11030 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11031 | return 0; |
| 11032 | ; |
| 11033 | return 0; |
| 11034 | } |
| 11035 | _ACEOF |
| 11036 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11037 | if { (ac_try="$ac_compile" |
| 11038 | case "(($ac_try" in |
| 11039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11040 | *) ac_try_echo=$ac_try;; |
| 11041 | esac |
| 11042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11043 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11044 | ac_status=$? |
| 11045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11046 | rm -f conftest.er1 |
| 11047 | cat conftest.err >&5 |
| 11048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11049 | (exit $ac_status); } && |
| 11050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11051 | { (case "(($ac_try" in |
| 11052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11053 | *) ac_try_echo=$ac_try;; |
| 11054 | esac |
| 11055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11056 | (eval "$ac_try") 2>&5 |
| 11057 | ac_status=$? |
| 11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11059 | (exit $ac_status); }; } && |
| 11060 | { ac_try='test -s conftest.$ac_objext' |
| 11061 | { (case "(($ac_try" in |
| 11062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11063 | *) ac_try_echo=$ac_try;; |
| 11064 | esac |
| 11065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11066 | (eval "$ac_try") 2>&5 |
| 11067 | ac_status=$? |
| 11068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11069 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11070 | ac_cv_type_error_t=yes |
| 11071 | else |
| 11072 | echo "$as_me: failed program was:" >&5 |
| 11073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11075 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11076 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11077 | |
| 11078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11080 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11081 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11082 | if test $ac_cv_type_error_t = yes; then |
| 11083 | |
| 11084 | cat >>confdefs.h <<_ACEOF |
| 11085 | #define HAVE_ERROR_T 1 |
| 11086 | _ACEOF |
| 11087 | |
| 11088 | |
| 11089 | else |
| 11090 | |
| 11091 | cat >>confdefs.h <<\_ACEOF |
| 11092 | #define error_t int |
| 11093 | _ACEOF |
| 11094 | |
| 11095 | fi |
| 11096 | |
| 11097 | |
| 11098 | |
| 11099 | |
| 11100 | |
| 11101 | |
| 11102 | |
| 11103 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11104 | do |
| 11105 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11106 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11107 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11108 | 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] | 11109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11110 | else |
| 11111 | cat >conftest.$ac_ext <<_ACEOF |
| 11112 | /* confdefs.h. */ |
| 11113 | _ACEOF |
| 11114 | cat confdefs.h >>conftest.$ac_ext |
| 11115 | cat >>conftest.$ac_ext <<_ACEOF |
| 11116 | /* end confdefs.h. */ |
| 11117 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11118 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11119 | #define $ac_func innocuous_$ac_func |
| 11120 | |
| 11121 | /* System header to define __stub macros and hopefully few prototypes, |
| 11122 | which can conflict with char $ac_func (); below. |
| 11123 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11124 | <limits.h> exists even on freestanding compilers. */ |
| 11125 | |
| 11126 | #ifdef __STDC__ |
| 11127 | # include <limits.h> |
| 11128 | #else |
| 11129 | # include <assert.h> |
| 11130 | #endif |
| 11131 | |
| 11132 | #undef $ac_func |
| 11133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11134 | /* Override any GCC internal prototype to avoid an error. |
| 11135 | Use char because int might match the return type of a GCC |
| 11136 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11137 | #ifdef __cplusplus |
| 11138 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11139 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11140 | char $ac_func (); |
| 11141 | /* The GNU C library defines this for functions which it implements |
| 11142 | to always fail with ENOSYS. Some functions are actually named |
| 11143 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11144 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11145 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11146 | #endif |
| 11147 | |
| 11148 | int |
| 11149 | main () |
| 11150 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11151 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11152 | ; |
| 11153 | return 0; |
| 11154 | } |
| 11155 | _ACEOF |
| 11156 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11157 | if { (ac_try="$ac_link" |
| 11158 | case "(($ac_try" in |
| 11159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11160 | *) ac_try_echo=$ac_try;; |
| 11161 | esac |
| 11162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11163 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11164 | ac_status=$? |
| 11165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11166 | rm -f conftest.er1 |
| 11167 | cat conftest.err >&5 |
| 11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11169 | (exit $ac_status); } && |
| 11170 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11171 | { (case "(($ac_try" in |
| 11172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11173 | *) ac_try_echo=$ac_try;; |
| 11174 | esac |
| 11175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11176 | (eval "$ac_try") 2>&5 |
| 11177 | ac_status=$? |
| 11178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11179 | (exit $ac_status); }; } && |
| 11180 | { ac_try='test -s conftest$ac_exeext' |
| 11181 | { (case "(($ac_try" in |
| 11182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11183 | *) ac_try_echo=$ac_try;; |
| 11184 | esac |
| 11185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11186 | (eval "$ac_try") 2>&5 |
| 11187 | ac_status=$? |
| 11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11189 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11190 | eval "$as_ac_var=yes" |
| 11191 | else |
| 11192 | echo "$as_me: failed program was:" >&5 |
| 11193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11195 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11196 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11197 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11198 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11199 | conftest$ac_exeext conftest.$ac_ext |
| 11200 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11201 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11202 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11203 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11204 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11205 | cat >>confdefs.h <<_ACEOF |
| 11206 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11207 | _ACEOF |
| 11208 | |
| 11209 | fi |
| 11210 | done |
| 11211 | |
| 11212 | |
| 11213 | |
| 11214 | |
| 11215 | |
| 11216 | |
| 11217 | |
| 11218 | |
| 11219 | |
| 11220 | |
| 11221 | |
| 11222 | |
| 11223 | |
| 11224 | |
| 11225 | |
| 11226 | |
| 11227 | |
| 11228 | |
| 11229 | |
| 11230 | |
| 11231 | |
| 11232 | |
| 11233 | |
| 11234 | |
| 11235 | |
| 11236 | |
| 11237 | |
| 11238 | |
| 11239 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11240 | stdio.h unistd.h |
| 11241 | do |
| 11242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11243 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11244 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11246 | 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] | 11247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11248 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11249 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11250 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11251 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11252 | else |
| 11253 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11254 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11255 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11256 | cat >conftest.$ac_ext <<_ACEOF |
| 11257 | /* confdefs.h. */ |
| 11258 | _ACEOF |
| 11259 | cat confdefs.h >>conftest.$ac_ext |
| 11260 | cat >>conftest.$ac_ext <<_ACEOF |
| 11261 | /* end confdefs.h. */ |
| 11262 | $ac_includes_default |
| 11263 | #include <$ac_header> |
| 11264 | _ACEOF |
| 11265 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11266 | if { (ac_try="$ac_compile" |
| 11267 | case "(($ac_try" in |
| 11268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11269 | *) ac_try_echo=$ac_try;; |
| 11270 | esac |
| 11271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11272 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11273 | ac_status=$? |
| 11274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11275 | rm -f conftest.er1 |
| 11276 | cat conftest.err >&5 |
| 11277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11278 | (exit $ac_status); } && |
| 11279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11280 | { (case "(($ac_try" in |
| 11281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11282 | *) ac_try_echo=$ac_try;; |
| 11283 | esac |
| 11284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11285 | (eval "$ac_try") 2>&5 |
| 11286 | ac_status=$? |
| 11287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11288 | (exit $ac_status); }; } && |
| 11289 | { ac_try='test -s conftest.$ac_objext' |
| 11290 | { (case "(($ac_try" in |
| 11291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11292 | *) ac_try_echo=$ac_try;; |
| 11293 | esac |
| 11294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11295 | (eval "$ac_try") 2>&5 |
| 11296 | ac_status=$? |
| 11297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11298 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11299 | ac_header_compiler=yes |
| 11300 | else |
| 11301 | echo "$as_me: failed program was:" >&5 |
| 11302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11304 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11305 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11306 | |
| 11307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11308 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11309 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11310 | |
| 11311 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11312 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11313 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11314 | cat >conftest.$ac_ext <<_ACEOF |
| 11315 | /* confdefs.h. */ |
| 11316 | _ACEOF |
| 11317 | cat confdefs.h >>conftest.$ac_ext |
| 11318 | cat >>conftest.$ac_ext <<_ACEOF |
| 11319 | /* end confdefs.h. */ |
| 11320 | #include <$ac_header> |
| 11321 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11322 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11323 | case "(($ac_try" in |
| 11324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11325 | *) ac_try_echo=$ac_try;; |
| 11326 | esac |
| 11327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11328 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11329 | ac_status=$? |
| 11330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11331 | rm -f conftest.er1 |
| 11332 | cat conftest.err >&5 |
| 11333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11334 | (exit $ac_status); } >/dev/null; then |
| 11335 | if test -s conftest.err; then |
| 11336 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11338 | else |
| 11339 | ac_cpp_err= |
| 11340 | fi |
| 11341 | else |
| 11342 | ac_cpp_err=yes |
| 11343 | fi |
| 11344 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11345 | ac_header_preproc=yes |
| 11346 | else |
| 11347 | echo "$as_me: failed program was:" >&5 |
| 11348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11349 | |
| 11350 | ac_header_preproc=no |
| 11351 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11352 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11353 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11354 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11355 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11356 | |
| 11357 | # So? What about this header? |
| 11358 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11359 | yes:no: ) |
| 11360 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11361 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11362 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11363 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11364 | ac_header_preproc=yes |
| 11365 | ;; |
| 11366 | no:yes:* ) |
| 11367 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11368 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11369 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11370 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11371 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11372 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11373 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11374 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11375 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11376 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11377 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11378 | 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] | 11379 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11380 | ## ----------------------------------- ## |
| 11381 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11382 | ## ----------------------------------- ## |
| 11383 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11384 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11385 | ;; |
| 11386 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11387 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11388 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11389 | 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] | 11390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11391 | else |
| 11392 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11393 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11394 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11395 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11396 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11397 | |
| 11398 | fi |
| 11399 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11400 | cat >>confdefs.h <<_ACEOF |
| 11401 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11402 | _ACEOF |
| 11403 | |
| 11404 | fi |
| 11405 | |
| 11406 | done |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11413 | do |
| 11414 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11415 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11416 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11418 | 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] | 11419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11420 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11421 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11422 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11423 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11424 | else |
| 11425 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11426 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11427 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11428 | cat >conftest.$ac_ext <<_ACEOF |
| 11429 | /* confdefs.h. */ |
| 11430 | _ACEOF |
| 11431 | cat confdefs.h >>conftest.$ac_ext |
| 11432 | cat >>conftest.$ac_ext <<_ACEOF |
| 11433 | /* end confdefs.h. */ |
| 11434 | $ac_includes_default |
| 11435 | #include <$ac_header> |
| 11436 | _ACEOF |
| 11437 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11438 | if { (ac_try="$ac_compile" |
| 11439 | case "(($ac_try" in |
| 11440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11441 | *) ac_try_echo=$ac_try;; |
| 11442 | esac |
| 11443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11444 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11445 | ac_status=$? |
| 11446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11447 | rm -f conftest.er1 |
| 11448 | cat conftest.err >&5 |
| 11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11450 | (exit $ac_status); } && |
| 11451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11452 | { (case "(($ac_try" in |
| 11453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11454 | *) ac_try_echo=$ac_try;; |
| 11455 | esac |
| 11456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11457 | (eval "$ac_try") 2>&5 |
| 11458 | ac_status=$? |
| 11459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11460 | (exit $ac_status); }; } && |
| 11461 | { ac_try='test -s conftest.$ac_objext' |
| 11462 | { (case "(($ac_try" in |
| 11463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11464 | *) ac_try_echo=$ac_try;; |
| 11465 | esac |
| 11466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11467 | (eval "$ac_try") 2>&5 |
| 11468 | ac_status=$? |
| 11469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11470 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11471 | ac_header_compiler=yes |
| 11472 | else |
| 11473 | echo "$as_me: failed program was:" >&5 |
| 11474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11476 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11477 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11478 | |
| 11479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11480 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11481 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11482 | |
| 11483 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11484 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11485 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11486 | cat >conftest.$ac_ext <<_ACEOF |
| 11487 | /* confdefs.h. */ |
| 11488 | _ACEOF |
| 11489 | cat confdefs.h >>conftest.$ac_ext |
| 11490 | cat >>conftest.$ac_ext <<_ACEOF |
| 11491 | /* end confdefs.h. */ |
| 11492 | #include <$ac_header> |
| 11493 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11494 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11495 | case "(($ac_try" in |
| 11496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11497 | *) ac_try_echo=$ac_try;; |
| 11498 | esac |
| 11499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11500 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11501 | ac_status=$? |
| 11502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11503 | rm -f conftest.er1 |
| 11504 | cat conftest.err >&5 |
| 11505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11506 | (exit $ac_status); } >/dev/null; then |
| 11507 | if test -s conftest.err; then |
| 11508 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11510 | else |
| 11511 | ac_cpp_err= |
| 11512 | fi |
| 11513 | else |
| 11514 | ac_cpp_err=yes |
| 11515 | fi |
| 11516 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11517 | ac_header_preproc=yes |
| 11518 | else |
| 11519 | echo "$as_me: failed program was:" >&5 |
| 11520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11521 | |
| 11522 | ac_header_preproc=no |
| 11523 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11524 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11525 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11526 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11527 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11528 | |
| 11529 | # So? What about this header? |
| 11530 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11531 | yes:no: ) |
| 11532 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11533 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11534 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11535 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11536 | ac_header_preproc=yes |
| 11537 | ;; |
| 11538 | no:yes:* ) |
| 11539 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11540 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11541 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11542 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11543 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11544 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11545 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11546 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11547 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11548 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11549 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11550 | 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] | 11551 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11552 | ## ----------------------------------- ## |
| 11553 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11554 | ## ----------------------------------- ## |
| 11555 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11556 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11557 | ;; |
| 11558 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11559 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11560 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11561 | 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] | 11562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11563 | else |
| 11564 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11565 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11566 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11567 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11568 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11569 | |
| 11570 | fi |
| 11571 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11572 | cat >>confdefs.h <<_ACEOF |
| 11573 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11574 | _ACEOF |
| 11575 | |
| 11576 | fi |
| 11577 | |
| 11578 | done |
| 11579 | |
| 11580 | |
| 11581 | |
| 11582 | for ac_header in string.h strings.h |
| 11583 | do |
| 11584 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11586 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11587 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11588 | 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] | 11589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11590 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11591 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11592 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11593 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11594 | else |
| 11595 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11596 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11597 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11598 | cat >conftest.$ac_ext <<_ACEOF |
| 11599 | /* confdefs.h. */ |
| 11600 | _ACEOF |
| 11601 | cat confdefs.h >>conftest.$ac_ext |
| 11602 | cat >>conftest.$ac_ext <<_ACEOF |
| 11603 | /* end confdefs.h. */ |
| 11604 | $ac_includes_default |
| 11605 | #include <$ac_header> |
| 11606 | _ACEOF |
| 11607 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11608 | if { (ac_try="$ac_compile" |
| 11609 | case "(($ac_try" in |
| 11610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11611 | *) ac_try_echo=$ac_try;; |
| 11612 | esac |
| 11613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11614 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11615 | ac_status=$? |
| 11616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11617 | rm -f conftest.er1 |
| 11618 | cat conftest.err >&5 |
| 11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11620 | (exit $ac_status); } && |
| 11621 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11622 | { (case "(($ac_try" in |
| 11623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11624 | *) ac_try_echo=$ac_try;; |
| 11625 | esac |
| 11626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11627 | (eval "$ac_try") 2>&5 |
| 11628 | ac_status=$? |
| 11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11630 | (exit $ac_status); }; } && |
| 11631 | { ac_try='test -s conftest.$ac_objext' |
| 11632 | { (case "(($ac_try" in |
| 11633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11634 | *) ac_try_echo=$ac_try;; |
| 11635 | esac |
| 11636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11637 | (eval "$ac_try") 2>&5 |
| 11638 | ac_status=$? |
| 11639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11640 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11641 | ac_header_compiler=yes |
| 11642 | else |
| 11643 | echo "$as_me: failed program was:" >&5 |
| 11644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11646 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11647 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11648 | |
| 11649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11650 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11651 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11652 | |
| 11653 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11654 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11655 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11656 | cat >conftest.$ac_ext <<_ACEOF |
| 11657 | /* confdefs.h. */ |
| 11658 | _ACEOF |
| 11659 | cat confdefs.h >>conftest.$ac_ext |
| 11660 | cat >>conftest.$ac_ext <<_ACEOF |
| 11661 | /* end confdefs.h. */ |
| 11662 | #include <$ac_header> |
| 11663 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11664 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11665 | case "(($ac_try" in |
| 11666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11667 | *) ac_try_echo=$ac_try;; |
| 11668 | esac |
| 11669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11670 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11671 | ac_status=$? |
| 11672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11673 | rm -f conftest.er1 |
| 11674 | cat conftest.err >&5 |
| 11675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11676 | (exit $ac_status); } >/dev/null; then |
| 11677 | if test -s conftest.err; then |
| 11678 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11679 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11680 | else |
| 11681 | ac_cpp_err= |
| 11682 | fi |
| 11683 | else |
| 11684 | ac_cpp_err=yes |
| 11685 | fi |
| 11686 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11687 | ac_header_preproc=yes |
| 11688 | else |
| 11689 | echo "$as_me: failed program was:" >&5 |
| 11690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11691 | |
| 11692 | ac_header_preproc=no |
| 11693 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11694 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11695 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11696 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11697 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11698 | |
| 11699 | # So? What about this header? |
| 11700 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11701 | yes:no: ) |
| 11702 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11703 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11704 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11705 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11706 | ac_header_preproc=yes |
| 11707 | ;; |
| 11708 | no:yes:* ) |
| 11709 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11710 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11711 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11712 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11713 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11714 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11715 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11716 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11717 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11718 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11719 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11720 | 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] | 11721 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11722 | ## ----------------------------------- ## |
| 11723 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11724 | ## ----------------------------------- ## |
| 11725 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11726 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11727 | ;; |
| 11728 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11729 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11731 | 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] | 11732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11733 | else |
| 11734 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11735 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11736 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11737 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11738 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11739 | |
| 11740 | fi |
| 11741 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11742 | cat >>confdefs.h <<_ACEOF |
| 11743 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11744 | _ACEOF |
| 11745 | break |
| 11746 | fi |
| 11747 | |
| 11748 | done |
| 11749 | |
| 11750 | |
| 11751 | |
| 11752 | |
| 11753 | for ac_func in strchr index |
| 11754 | do |
| 11755 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11756 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11757 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11758 | 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] | 11759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11760 | else |
| 11761 | cat >conftest.$ac_ext <<_ACEOF |
| 11762 | /* confdefs.h. */ |
| 11763 | _ACEOF |
| 11764 | cat confdefs.h >>conftest.$ac_ext |
| 11765 | cat >>conftest.$ac_ext <<_ACEOF |
| 11766 | /* end confdefs.h. */ |
| 11767 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11768 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11769 | #define $ac_func innocuous_$ac_func |
| 11770 | |
| 11771 | /* System header to define __stub macros and hopefully few prototypes, |
| 11772 | which can conflict with char $ac_func (); below. |
| 11773 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11774 | <limits.h> exists even on freestanding compilers. */ |
| 11775 | |
| 11776 | #ifdef __STDC__ |
| 11777 | # include <limits.h> |
| 11778 | #else |
| 11779 | # include <assert.h> |
| 11780 | #endif |
| 11781 | |
| 11782 | #undef $ac_func |
| 11783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11784 | /* Override any GCC internal prototype to avoid an error. |
| 11785 | Use char because int might match the return type of a GCC |
| 11786 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11787 | #ifdef __cplusplus |
| 11788 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11789 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11790 | char $ac_func (); |
| 11791 | /* The GNU C library defines this for functions which it implements |
| 11792 | to always fail with ENOSYS. Some functions are actually named |
| 11793 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11794 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11795 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11796 | #endif |
| 11797 | |
| 11798 | int |
| 11799 | main () |
| 11800 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11801 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11802 | ; |
| 11803 | return 0; |
| 11804 | } |
| 11805 | _ACEOF |
| 11806 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11807 | if { (ac_try="$ac_link" |
| 11808 | case "(($ac_try" in |
| 11809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11810 | *) ac_try_echo=$ac_try;; |
| 11811 | esac |
| 11812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11813 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11814 | ac_status=$? |
| 11815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11816 | rm -f conftest.er1 |
| 11817 | cat conftest.err >&5 |
| 11818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11819 | (exit $ac_status); } && |
| 11820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11821 | { (case "(($ac_try" in |
| 11822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11823 | *) ac_try_echo=$ac_try;; |
| 11824 | esac |
| 11825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11826 | (eval "$ac_try") 2>&5 |
| 11827 | ac_status=$? |
| 11828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11829 | (exit $ac_status); }; } && |
| 11830 | { ac_try='test -s conftest$ac_exeext' |
| 11831 | { (case "(($ac_try" in |
| 11832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11833 | *) ac_try_echo=$ac_try;; |
| 11834 | esac |
| 11835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11836 | (eval "$ac_try") 2>&5 |
| 11837 | ac_status=$? |
| 11838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11839 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11840 | eval "$as_ac_var=yes" |
| 11841 | else |
| 11842 | echo "$as_me: failed program was:" >&5 |
| 11843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11845 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11846 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11847 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11848 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11849 | conftest$ac_exeext conftest.$ac_ext |
| 11850 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11851 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11852 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11853 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11854 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11855 | cat >>confdefs.h <<_ACEOF |
| 11856 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11857 | _ACEOF |
| 11858 | break |
| 11859 | fi |
| 11860 | done |
| 11861 | |
| 11862 | |
| 11863 | |
| 11864 | for ac_func in strrchr rindex |
| 11865 | do |
| 11866 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11867 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11868 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11869 | 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] | 11870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11871 | else |
| 11872 | cat >conftest.$ac_ext <<_ACEOF |
| 11873 | /* confdefs.h. */ |
| 11874 | _ACEOF |
| 11875 | cat confdefs.h >>conftest.$ac_ext |
| 11876 | cat >>conftest.$ac_ext <<_ACEOF |
| 11877 | /* end confdefs.h. */ |
| 11878 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11880 | #define $ac_func innocuous_$ac_func |
| 11881 | |
| 11882 | /* System header to define __stub macros and hopefully few prototypes, |
| 11883 | which can conflict with char $ac_func (); below. |
| 11884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11885 | <limits.h> exists even on freestanding compilers. */ |
| 11886 | |
| 11887 | #ifdef __STDC__ |
| 11888 | # include <limits.h> |
| 11889 | #else |
| 11890 | # include <assert.h> |
| 11891 | #endif |
| 11892 | |
| 11893 | #undef $ac_func |
| 11894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11895 | /* Override any GCC internal prototype to avoid an error. |
| 11896 | Use char because int might match the return type of a GCC |
| 11897 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11898 | #ifdef __cplusplus |
| 11899 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11900 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11901 | char $ac_func (); |
| 11902 | /* The GNU C library defines this for functions which it implements |
| 11903 | to always fail with ENOSYS. Some functions are actually named |
| 11904 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11905 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11906 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11907 | #endif |
| 11908 | |
| 11909 | int |
| 11910 | main () |
| 11911 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11912 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11913 | ; |
| 11914 | return 0; |
| 11915 | } |
| 11916 | _ACEOF |
| 11917 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11918 | if { (ac_try="$ac_link" |
| 11919 | case "(($ac_try" in |
| 11920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11921 | *) ac_try_echo=$ac_try;; |
| 11922 | esac |
| 11923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11924 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11925 | ac_status=$? |
| 11926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11927 | rm -f conftest.er1 |
| 11928 | cat conftest.err >&5 |
| 11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11930 | (exit $ac_status); } && |
| 11931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11932 | { (case "(($ac_try" in |
| 11933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11934 | *) ac_try_echo=$ac_try;; |
| 11935 | esac |
| 11936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11937 | (eval "$ac_try") 2>&5 |
| 11938 | ac_status=$? |
| 11939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11940 | (exit $ac_status); }; } && |
| 11941 | { ac_try='test -s conftest$ac_exeext' |
| 11942 | { (case "(($ac_try" in |
| 11943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11944 | *) ac_try_echo=$ac_try;; |
| 11945 | esac |
| 11946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11947 | (eval "$ac_try") 2>&5 |
| 11948 | ac_status=$? |
| 11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11950 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11951 | eval "$as_ac_var=yes" |
| 11952 | else |
| 11953 | echo "$as_me: failed program was:" >&5 |
| 11954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11955 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11956 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11957 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11958 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11959 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11960 | conftest$ac_exeext conftest.$ac_ext |
| 11961 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11962 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11963 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11964 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11965 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11966 | cat >>confdefs.h <<_ACEOF |
| 11967 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11968 | _ACEOF |
| 11969 | break |
| 11970 | fi |
| 11971 | done |
| 11972 | |
| 11973 | |
| 11974 | |
| 11975 | for ac_func in memcpy bcopy |
| 11976 | do |
| 11977 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11978 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11979 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11980 | 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] | 11981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11982 | else |
| 11983 | cat >conftest.$ac_ext <<_ACEOF |
| 11984 | /* confdefs.h. */ |
| 11985 | _ACEOF |
| 11986 | cat confdefs.h >>conftest.$ac_ext |
| 11987 | cat >>conftest.$ac_ext <<_ACEOF |
| 11988 | /* end confdefs.h. */ |
| 11989 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11990 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11991 | #define $ac_func innocuous_$ac_func |
| 11992 | |
| 11993 | /* System header to define __stub macros and hopefully few prototypes, |
| 11994 | which can conflict with char $ac_func (); below. |
| 11995 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11996 | <limits.h> exists even on freestanding compilers. */ |
| 11997 | |
| 11998 | #ifdef __STDC__ |
| 11999 | # include <limits.h> |
| 12000 | #else |
| 12001 | # include <assert.h> |
| 12002 | #endif |
| 12003 | |
| 12004 | #undef $ac_func |
| 12005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12006 | /* Override any GCC internal prototype to avoid an error. |
| 12007 | Use char because int might match the return type of a GCC |
| 12008 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12009 | #ifdef __cplusplus |
| 12010 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12011 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12012 | char $ac_func (); |
| 12013 | /* The GNU C library defines this for functions which it implements |
| 12014 | to always fail with ENOSYS. Some functions are actually named |
| 12015 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12016 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12017 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12018 | #endif |
| 12019 | |
| 12020 | int |
| 12021 | main () |
| 12022 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12023 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12024 | ; |
| 12025 | return 0; |
| 12026 | } |
| 12027 | _ACEOF |
| 12028 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12029 | if { (ac_try="$ac_link" |
| 12030 | case "(($ac_try" in |
| 12031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12032 | *) ac_try_echo=$ac_try;; |
| 12033 | esac |
| 12034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12035 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12036 | ac_status=$? |
| 12037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12038 | rm -f conftest.er1 |
| 12039 | cat conftest.err >&5 |
| 12040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12041 | (exit $ac_status); } && |
| 12042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12043 | { (case "(($ac_try" in |
| 12044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12045 | *) ac_try_echo=$ac_try;; |
| 12046 | esac |
| 12047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12048 | (eval "$ac_try") 2>&5 |
| 12049 | ac_status=$? |
| 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12051 | (exit $ac_status); }; } && |
| 12052 | { ac_try='test -s conftest$ac_exeext' |
| 12053 | { (case "(($ac_try" in |
| 12054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12055 | *) ac_try_echo=$ac_try;; |
| 12056 | esac |
| 12057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12058 | (eval "$ac_try") 2>&5 |
| 12059 | ac_status=$? |
| 12060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12061 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12062 | eval "$as_ac_var=yes" |
| 12063 | else |
| 12064 | echo "$as_me: failed program was:" >&5 |
| 12065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12067 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12068 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12069 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12070 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12071 | conftest$ac_exeext conftest.$ac_ext |
| 12072 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12073 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12074 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12075 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12076 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12077 | cat >>confdefs.h <<_ACEOF |
| 12078 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12079 | _ACEOF |
| 12080 | break |
| 12081 | fi |
| 12082 | done |
| 12083 | |
| 12084 | |
| 12085 | |
| 12086 | for ac_func in memmove strcmp |
| 12087 | do |
| 12088 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12089 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12090 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12091 | 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] | 12092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12093 | else |
| 12094 | cat >conftest.$ac_ext <<_ACEOF |
| 12095 | /* confdefs.h. */ |
| 12096 | _ACEOF |
| 12097 | cat confdefs.h >>conftest.$ac_ext |
| 12098 | cat >>conftest.$ac_ext <<_ACEOF |
| 12099 | /* end confdefs.h. */ |
| 12100 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12102 | #define $ac_func innocuous_$ac_func |
| 12103 | |
| 12104 | /* System header to define __stub macros and hopefully few prototypes, |
| 12105 | which can conflict with char $ac_func (); below. |
| 12106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12107 | <limits.h> exists even on freestanding compilers. */ |
| 12108 | |
| 12109 | #ifdef __STDC__ |
| 12110 | # include <limits.h> |
| 12111 | #else |
| 12112 | # include <assert.h> |
| 12113 | #endif |
| 12114 | |
| 12115 | #undef $ac_func |
| 12116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12117 | /* Override any GCC internal prototype to avoid an error. |
| 12118 | Use char because int might match the return type of a GCC |
| 12119 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12120 | #ifdef __cplusplus |
| 12121 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12122 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12123 | char $ac_func (); |
| 12124 | /* The GNU C library defines this for functions which it implements |
| 12125 | to always fail with ENOSYS. Some functions are actually named |
| 12126 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12127 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12128 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12129 | #endif |
| 12130 | |
| 12131 | int |
| 12132 | main () |
| 12133 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12134 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12135 | ; |
| 12136 | return 0; |
| 12137 | } |
| 12138 | _ACEOF |
| 12139 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12140 | if { (ac_try="$ac_link" |
| 12141 | case "(($ac_try" in |
| 12142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12143 | *) ac_try_echo=$ac_try;; |
| 12144 | esac |
| 12145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12146 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12147 | ac_status=$? |
| 12148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12149 | rm -f conftest.er1 |
| 12150 | cat conftest.err >&5 |
| 12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12152 | (exit $ac_status); } && |
| 12153 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12154 | { (case "(($ac_try" in |
| 12155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12156 | *) ac_try_echo=$ac_try;; |
| 12157 | esac |
| 12158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12159 | (eval "$ac_try") 2>&5 |
| 12160 | ac_status=$? |
| 12161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12162 | (exit $ac_status); }; } && |
| 12163 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12173 | eval "$as_ac_var=yes" |
| 12174 | else |
| 12175 | echo "$as_me: failed program was:" >&5 |
| 12176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12178 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12179 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12180 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12181 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12182 | conftest$ac_exeext conftest.$ac_ext |
| 12183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12184 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12185 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12186 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12187 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12188 | cat >>confdefs.h <<_ACEOF |
| 12189 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12190 | _ACEOF |
| 12191 | |
| 12192 | fi |
| 12193 | done |
| 12194 | |
| 12195 | |
| 12196 | |
| 12197 | |
| 12198 | for ac_func in closedir opendir readdir |
| 12199 | do |
| 12200 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12201 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12202 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12203 | 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] | 12204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12205 | else |
| 12206 | cat >conftest.$ac_ext <<_ACEOF |
| 12207 | /* confdefs.h. */ |
| 12208 | _ACEOF |
| 12209 | cat confdefs.h >>conftest.$ac_ext |
| 12210 | cat >>conftest.$ac_ext <<_ACEOF |
| 12211 | /* end confdefs.h. */ |
| 12212 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12213 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12214 | #define $ac_func innocuous_$ac_func |
| 12215 | |
| 12216 | /* System header to define __stub macros and hopefully few prototypes, |
| 12217 | which can conflict with char $ac_func (); below. |
| 12218 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12219 | <limits.h> exists even on freestanding compilers. */ |
| 12220 | |
| 12221 | #ifdef __STDC__ |
| 12222 | # include <limits.h> |
| 12223 | #else |
| 12224 | # include <assert.h> |
| 12225 | #endif |
| 12226 | |
| 12227 | #undef $ac_func |
| 12228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12229 | /* Override any GCC internal prototype to avoid an error. |
| 12230 | Use char because int might match the return type of a GCC |
| 12231 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12232 | #ifdef __cplusplus |
| 12233 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12234 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12235 | char $ac_func (); |
| 12236 | /* The GNU C library defines this for functions which it implements |
| 12237 | to always fail with ENOSYS. Some functions are actually named |
| 12238 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12239 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12240 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12241 | #endif |
| 12242 | |
| 12243 | int |
| 12244 | main () |
| 12245 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12246 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12247 | ; |
| 12248 | return 0; |
| 12249 | } |
| 12250 | _ACEOF |
| 12251 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12252 | if { (ac_try="$ac_link" |
| 12253 | case "(($ac_try" in |
| 12254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12255 | *) ac_try_echo=$ac_try;; |
| 12256 | esac |
| 12257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12258 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12259 | ac_status=$? |
| 12260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12261 | rm -f conftest.er1 |
| 12262 | cat conftest.err >&5 |
| 12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12264 | (exit $ac_status); } && |
| 12265 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12266 | { (case "(($ac_try" in |
| 12267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12268 | *) ac_try_echo=$ac_try;; |
| 12269 | esac |
| 12270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12271 | (eval "$ac_try") 2>&5 |
| 12272 | ac_status=$? |
| 12273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12274 | (exit $ac_status); }; } && |
| 12275 | { ac_try='test -s conftest$ac_exeext' |
| 12276 | { (case "(($ac_try" in |
| 12277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12278 | *) ac_try_echo=$ac_try;; |
| 12279 | esac |
| 12280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12281 | (eval "$ac_try") 2>&5 |
| 12282 | ac_status=$? |
| 12283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12284 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12285 | eval "$as_ac_var=yes" |
| 12286 | else |
| 12287 | echo "$as_me: failed program was:" >&5 |
| 12288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12289 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12290 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12292 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12293 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12294 | conftest$ac_exeext conftest.$ac_ext |
| 12295 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12296 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12297 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12298 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12299 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12300 | cat >>confdefs.h <<_ACEOF |
| 12301 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12302 | _ACEOF |
| 12303 | |
| 12304 | fi |
| 12305 | done |
| 12306 | |
| 12307 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12308 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12309 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12310 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12311 | case $enableval in |
| 12312 | yes) enable_shared=yes ;; |
| 12313 | no) enable_shared=no ;; |
| 12314 | *) |
| 12315 | enable_shared=no |
| 12316 | # Look at the argument we got. We use all the common list separators. |
| 12317 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12318 | for pkg in $enableval; do |
| 12319 | IFS="$lt_save_ifs" |
| 12320 | if test "X$pkg" = "X$p"; then |
| 12321 | enable_shared=yes |
| 12322 | fi |
| 12323 | done |
| 12324 | IFS="$lt_save_ifs" |
| 12325 | ;; |
| 12326 | esac |
| 12327 | else |
| 12328 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12329 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12330 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12331 | |
| 12332 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12333 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12334 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12335 | case $enableval in |
| 12336 | yes) enable_static=yes ;; |
| 12337 | no) enable_static=no ;; |
| 12338 | *) |
| 12339 | enable_static=no |
| 12340 | # Look at the argument we got. We use all the common list separators. |
| 12341 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12342 | for pkg in $enableval; do |
| 12343 | IFS="$lt_save_ifs" |
| 12344 | if test "X$pkg" = "X$p"; then |
| 12345 | enable_static=yes |
| 12346 | fi |
| 12347 | done |
| 12348 | IFS="$lt_save_ifs" |
| 12349 | ;; |
| 12350 | esac |
| 12351 | else |
| 12352 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12353 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12355 | |
| 12356 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12357 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12358 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12359 | case $enableval in |
| 12360 | yes) enable_fast_install=yes ;; |
| 12361 | no) enable_fast_install=no ;; |
| 12362 | *) |
| 12363 | enable_fast_install=no |
| 12364 | # Look at the argument we got. We use all the common list separators. |
| 12365 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12366 | for pkg in $enableval; do |
| 12367 | IFS="$lt_save_ifs" |
| 12368 | if test "X$pkg" = "X$p"; then |
| 12369 | enable_fast_install=yes |
| 12370 | fi |
| 12371 | done |
| 12372 | IFS="$lt_save_ifs" |
| 12373 | ;; |
| 12374 | esac |
| 12375 | else |
| 12376 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12377 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12379 | |
| 12380 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12381 | 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] | 12382 | if test "${lt_cv_path_SED+set}" = set; then |
| 12383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12384 | else |
| 12385 | # Loop through the user's path and test for sed and gsed. |
| 12386 | # Then use that list of sed's as ones to test for truncation. |
| 12387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12388 | for as_dir in $PATH |
| 12389 | do |
| 12390 | IFS=$as_save_IFS |
| 12391 | test -z "$as_dir" && as_dir=. |
| 12392 | for lt_ac_prog in sed gsed; do |
| 12393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12394 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12395 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12396 | fi |
| 12397 | done |
| 12398 | done |
| 12399 | done |
| 12400 | lt_ac_max=0 |
| 12401 | lt_ac_count=0 |
| 12402 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12403 | # along with /bin/sed that truncates output. |
| 12404 | 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] | 12405 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12406 | cat /dev/null > conftest.in |
| 12407 | lt_ac_count=0 |
| 12408 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12409 | # Check for GNU sed and select it if it is found. |
| 12410 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12411 | lt_cv_path_SED=$lt_ac_sed |
| 12412 | break |
| 12413 | fi |
| 12414 | while true; do |
| 12415 | cat conftest.in conftest.in >conftest.tmp |
| 12416 | mv conftest.tmp conftest.in |
| 12417 | cp conftest.in conftest.nl |
| 12418 | echo >>conftest.nl |
| 12419 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12420 | cmp -s conftest.out conftest.nl || break |
| 12421 | # 10000 chars as input seems more than enough |
| 12422 | test $lt_ac_count -gt 10 && break |
| 12423 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12424 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12425 | lt_ac_max=$lt_ac_count |
| 12426 | lt_cv_path_SED=$lt_ac_sed |
| 12427 | fi |
| 12428 | done |
| 12429 | done |
| 12430 | |
| 12431 | fi |
| 12432 | |
| 12433 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12434 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12435 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12436 | |
| 12437 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12438 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12439 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12440 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12441 | else |
| 12442 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12443 | fi |
| 12444 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12445 | ac_prog=ld |
| 12446 | if test "$GCC" = yes; then |
| 12447 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12448 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12449 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12450 | case $host in |
| 12451 | *-*-mingw*) |
| 12452 | # gcc leaves a trailing carriage return which upsets mingw |
| 12453 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12454 | *) |
| 12455 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12456 | esac |
| 12457 | case $ac_prog in |
| 12458 | # Accept absolute paths. |
| 12459 | [\\/]* | ?:[\\/]*) |
| 12460 | re_direlt='/[^/][^/]*/\.\./' |
| 12461 | # Canonicalize the pathname of ld |
| 12462 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12463 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12464 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12465 | done |
| 12466 | test -z "$LD" && LD="$ac_prog" |
| 12467 | ;; |
| 12468 | "") |
| 12469 | # If it fails, then pretend we aren't using GCC. |
| 12470 | ac_prog=ld |
| 12471 | ;; |
| 12472 | *) |
| 12473 | # If it is relative, then search for the first ld in PATH. |
| 12474 | with_gnu_ld=unknown |
| 12475 | ;; |
| 12476 | esac |
| 12477 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12478 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12479 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12480 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12481 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12482 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12483 | fi |
| 12484 | if test "${lt_cv_path_LD+set}" = set; then |
| 12485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12486 | else |
| 12487 | if test -z "$LD"; then |
| 12488 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12489 | for ac_dir in $PATH; do |
| 12490 | IFS="$lt_save_ifs" |
| 12491 | test -z "$ac_dir" && ac_dir=. |
| 12492 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12493 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12494 | # 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] | 12495 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12496 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12497 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12498 | *GNU* | *'with BFD'*) |
| 12499 | test "$with_gnu_ld" != no && break |
| 12500 | ;; |
| 12501 | *) |
| 12502 | test "$with_gnu_ld" != yes && break |
| 12503 | ;; |
| 12504 | esac |
| 12505 | fi |
| 12506 | done |
| 12507 | IFS="$lt_save_ifs" |
| 12508 | else |
| 12509 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12510 | fi |
| 12511 | fi |
| 12512 | |
| 12513 | LD="$lt_cv_path_LD" |
| 12514 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12515 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12516 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12517 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12518 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12519 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12520 | fi |
| 12521 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12522 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12523 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12524 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12525 | 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] | 12526 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12528 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12529 | # 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] | 12530 | case `$LD -v 2>&1 </dev/null` in |
| 12531 | *GNU* | *'with BFD'*) |
| 12532 | lt_cv_prog_gnu_ld=yes |
| 12533 | ;; |
| 12534 | *) |
| 12535 | lt_cv_prog_gnu_ld=no |
| 12536 | ;; |
| 12537 | esac |
| 12538 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12539 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12540 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12541 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12542 | |
| 12543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12544 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12545 | 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] | 12546 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12548 | else |
| 12549 | lt_cv_ld_reload_flag='-r' |
| 12550 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12551 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12552 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12553 | reload_flag=$lt_cv_ld_reload_flag |
| 12554 | case $reload_flag in |
| 12555 | "" | " "*) ;; |
| 12556 | *) reload_flag=" $reload_flag" ;; |
| 12557 | esac |
| 12558 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12559 | case $host_os in |
| 12560 | darwin*) |
| 12561 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12562 | 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] | 12563 | else |
| 12564 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12565 | fi |
| 12566 | ;; |
| 12567 | esac |
| 12568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12569 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12570 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12571 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12573 | else |
| 12574 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12575 | lt_cv_file_magic_test_file= |
| 12576 | lt_cv_deplibs_check_method='unknown' |
| 12577 | # Need to set the preceding variable on all platforms that support |
| 12578 | # interlibrary dependencies. |
| 12579 | # 'none' -- dependencies not supported. |
| 12580 | # `unknown' -- same as none, but documents that we really don't know. |
| 12581 | # 'pass_all' -- all dependencies passed with no checks. |
| 12582 | # 'test_compile' -- check by making test program. |
| 12583 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12584 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12585 | # If you have `file' or equivalent on your system and you're not sure |
| 12586 | # whether `pass_all' will *always* work, you probably want this one. |
| 12587 | |
| 12588 | case $host_os in |
| 12589 | aix4* | aix5*) |
| 12590 | lt_cv_deplibs_check_method=pass_all |
| 12591 | ;; |
| 12592 | |
| 12593 | beos*) |
| 12594 | lt_cv_deplibs_check_method=pass_all |
| 12595 | ;; |
| 12596 | |
| 12597 | bsdi[45]*) |
| 12598 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12599 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12600 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12601 | ;; |
| 12602 | |
| 12603 | cygwin*) |
| 12604 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12605 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12606 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12607 | ;; |
| 12608 | |
| 12609 | mingw* | pw32*) |
| 12610 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12611 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12612 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12613 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12614 | ;; |
| 12615 | |
| 12616 | darwin* | rhapsody*) |
| 12617 | lt_cv_deplibs_check_method=pass_all |
| 12618 | ;; |
| 12619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12620 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12621 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12622 | case $host_cpu in |
| 12623 | i*86 ) |
| 12624 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12625 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12626 | 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] | 12627 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12628 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12629 | ;; |
| 12630 | esac |
| 12631 | else |
| 12632 | lt_cv_deplibs_check_method=pass_all |
| 12633 | fi |
| 12634 | ;; |
| 12635 | |
| 12636 | gnu*) |
| 12637 | lt_cv_deplibs_check_method=pass_all |
| 12638 | ;; |
| 12639 | |
| 12640 | hpux10.20* | hpux11*) |
| 12641 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12642 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12643 | ia64*) |
| 12644 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12645 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12646 | ;; |
| 12647 | hppa*64*) |
| 12648 | 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]' |
| 12649 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12650 | ;; |
| 12651 | *) |
| 12652 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12653 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12654 | ;; |
| 12655 | esac |
| 12656 | ;; |
| 12657 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12658 | interix3*) |
| 12659 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12660 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12661 | ;; |
| 12662 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12663 | irix5* | irix6* | nonstopux*) |
| 12664 | case $LD in |
| 12665 | *-32|*"-32 ") libmagic=32-bit;; |
| 12666 | *-n32|*"-n32 ") libmagic=N32;; |
| 12667 | *-64|*"-64 ") libmagic=64-bit;; |
| 12668 | *) libmagic=never-match;; |
| 12669 | esac |
| 12670 | lt_cv_deplibs_check_method=pass_all |
| 12671 | ;; |
| 12672 | |
| 12673 | # This must be Linux ELF. |
| 12674 | linux*) |
| 12675 | lt_cv_deplibs_check_method=pass_all |
| 12676 | ;; |
| 12677 | |
| 12678 | netbsd*) |
| 12679 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12680 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12681 | else |
| 12682 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12683 | fi |
| 12684 | ;; |
| 12685 | |
| 12686 | newos6*) |
| 12687 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12688 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12689 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12690 | ;; |
| 12691 | |
| 12692 | nto-qnx*) |
| 12693 | lt_cv_deplibs_check_method=unknown |
| 12694 | ;; |
| 12695 | |
| 12696 | openbsd*) |
| 12697 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12698 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12699 | else |
| 12700 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12701 | fi |
| 12702 | ;; |
| 12703 | |
| 12704 | osf3* | osf4* | osf5*) |
| 12705 | lt_cv_deplibs_check_method=pass_all |
| 12706 | ;; |
| 12707 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12708 | solaris*) |
| 12709 | lt_cv_deplibs_check_method=pass_all |
| 12710 | ;; |
| 12711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12712 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12713 | case $host_vendor in |
| 12714 | motorola) |
| 12715 | 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]' |
| 12716 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12717 | ;; |
| 12718 | ncr) |
| 12719 | lt_cv_deplibs_check_method=pass_all |
| 12720 | ;; |
| 12721 | sequent) |
| 12722 | lt_cv_file_magic_cmd='/bin/file' |
| 12723 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12724 | ;; |
| 12725 | sni) |
| 12726 | lt_cv_file_magic_cmd='/bin/file' |
| 12727 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12728 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12729 | ;; |
| 12730 | siemens) |
| 12731 | lt_cv_deplibs_check_method=pass_all |
| 12732 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12733 | pc) |
| 12734 | lt_cv_deplibs_check_method=pass_all |
| 12735 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12736 | esac |
| 12737 | ;; |
| 12738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12739 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12740 | lt_cv_deplibs_check_method=pass_all |
| 12741 | ;; |
| 12742 | esac |
| 12743 | |
| 12744 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12745 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12746 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12747 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12748 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12749 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12750 | |
| 12751 | |
| 12752 | |
| 12753 | # If no C compiler was specified, use CC. |
| 12754 | LTCC=${LTCC-"$CC"} |
| 12755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12756 | # If no C compiler flags were specified, use CFLAGS. |
| 12757 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12758 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12759 | # Allow CC to be a program name with arguments. |
| 12760 | compiler=$CC |
| 12761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12762 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12763 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12764 | enableval=$enable_libtool_lock; |
| 12765 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12766 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12767 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12768 | |
| 12769 | # Some flags need to be propagated to the compiler or linker for good |
| 12770 | # libtool support. |
| 12771 | case $host in |
| 12772 | ia64-*-hpux*) |
| 12773 | # Find out which ABI we are using. |
| 12774 | echo 'int i;' > conftest.$ac_ext |
| 12775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12776 | (eval $ac_compile) 2>&5 |
| 12777 | ac_status=$? |
| 12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12779 | (exit $ac_status); }; then |
| 12780 | case `/usr/bin/file conftest.$ac_objext` in |
| 12781 | *ELF-32*) |
| 12782 | HPUX_IA64_MODE="32" |
| 12783 | ;; |
| 12784 | *ELF-64*) |
| 12785 | HPUX_IA64_MODE="64" |
| 12786 | ;; |
| 12787 | esac |
| 12788 | fi |
| 12789 | rm -rf conftest* |
| 12790 | ;; |
| 12791 | *-*-irix6*) |
| 12792 | # Find out which ABI we are using. |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 12793 | echo '#line 12793 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12795 | (eval $ac_compile) 2>&5 |
| 12796 | ac_status=$? |
| 12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12798 | (exit $ac_status); }; then |
| 12799 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12800 | case `/usr/bin/file conftest.$ac_objext` in |
| 12801 | *32-bit*) |
| 12802 | LD="${LD-ld} -melf32bsmip" |
| 12803 | ;; |
| 12804 | *N32*) |
| 12805 | LD="${LD-ld} -melf32bmipn32" |
| 12806 | ;; |
| 12807 | *64-bit*) |
| 12808 | LD="${LD-ld} -melf64bmip" |
| 12809 | ;; |
| 12810 | esac |
| 12811 | else |
| 12812 | case `/usr/bin/file conftest.$ac_objext` in |
| 12813 | *32-bit*) |
| 12814 | LD="${LD-ld} -32" |
| 12815 | ;; |
| 12816 | *N32*) |
| 12817 | LD="${LD-ld} -n32" |
| 12818 | ;; |
| 12819 | *64-bit*) |
| 12820 | LD="${LD-ld} -64" |
| 12821 | ;; |
| 12822 | esac |
| 12823 | fi |
| 12824 | fi |
| 12825 | rm -rf conftest* |
| 12826 | ;; |
| 12827 | |
| 12828 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 12829 | # Find out which ABI we are using. |
| 12830 | echo 'int i;' > conftest.$ac_ext |
| 12831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12832 | (eval $ac_compile) 2>&5 |
| 12833 | ac_status=$? |
| 12834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12835 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12836 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12837 | *32-bit*) |
| 12838 | case $host in |
| 12839 | x86_64-*linux*) |
| 12840 | LD="${LD-ld} -m elf_i386" |
| 12841 | ;; |
| 12842 | ppc64-*linux*|powerpc64-*linux*) |
| 12843 | LD="${LD-ld} -m elf32ppclinux" |
| 12844 | ;; |
| 12845 | s390x-*linux*) |
| 12846 | LD="${LD-ld} -m elf_s390" |
| 12847 | ;; |
| 12848 | sparc64-*linux*) |
| 12849 | LD="${LD-ld} -m elf32_sparc" |
| 12850 | ;; |
| 12851 | esac |
| 12852 | ;; |
| 12853 | *64-bit*) |
| 12854 | case $host in |
| 12855 | x86_64-*linux*) |
| 12856 | LD="${LD-ld} -m elf_x86_64" |
| 12857 | ;; |
| 12858 | ppc*-*linux*|powerpc*-*linux*) |
| 12859 | LD="${LD-ld} -m elf64ppc" |
| 12860 | ;; |
| 12861 | s390*-*linux*) |
| 12862 | LD="${LD-ld} -m elf64_s390" |
| 12863 | ;; |
| 12864 | sparc*-*linux*) |
| 12865 | LD="${LD-ld} -m elf64_sparc" |
| 12866 | ;; |
| 12867 | esac |
| 12868 | ;; |
| 12869 | esac |
| 12870 | fi |
| 12871 | rm -rf conftest* |
| 12872 | ;; |
| 12873 | |
| 12874 | *-*-sco3.2v5*) |
| 12875 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12876 | SAVE_CFLAGS="$CFLAGS" |
| 12877 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12878 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 12879 | 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] | 12880 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 12881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12882 | else |
| 12883 | ac_ext=c |
| 12884 | ac_cpp='$CPP $CPPFLAGS' |
| 12885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12888 | |
| 12889 | cat >conftest.$ac_ext <<_ACEOF |
| 12890 | /* confdefs.h. */ |
| 12891 | _ACEOF |
| 12892 | cat confdefs.h >>conftest.$ac_ext |
| 12893 | cat >>conftest.$ac_ext <<_ACEOF |
| 12894 | /* end confdefs.h. */ |
| 12895 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12896 | int |
| 12897 | main () |
| 12898 | { |
| 12899 | |
| 12900 | ; |
| 12901 | return 0; |
| 12902 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12903 | _ACEOF |
| 12904 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12905 | if { (ac_try="$ac_link" |
| 12906 | case "(($ac_try" in |
| 12907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12908 | *) ac_try_echo=$ac_try;; |
| 12909 | esac |
| 12910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12911 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12912 | ac_status=$? |
| 12913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12914 | rm -f conftest.er1 |
| 12915 | cat conftest.err >&5 |
| 12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12917 | (exit $ac_status); } && |
| 12918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12919 | { (case "(($ac_try" in |
| 12920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12921 | *) ac_try_echo=$ac_try;; |
| 12922 | esac |
| 12923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12924 | (eval "$ac_try") 2>&5 |
| 12925 | ac_status=$? |
| 12926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12927 | (exit $ac_status); }; } && |
| 12928 | { ac_try='test -s conftest$ac_exeext' |
| 12929 | { (case "(($ac_try" in |
| 12930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12931 | *) ac_try_echo=$ac_try;; |
| 12932 | esac |
| 12933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12934 | (eval "$ac_try") 2>&5 |
| 12935 | ac_status=$? |
| 12936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12937 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12938 | lt_cv_cc_needs_belf=yes |
| 12939 | else |
| 12940 | echo "$as_me: failed program was:" >&5 |
| 12941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12942 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12943 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12945 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12946 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12947 | conftest$ac_exeext conftest.$ac_ext |
| 12948 | ac_ext=c |
| 12949 | ac_cpp='$CPP $CPPFLAGS' |
| 12950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12953 | |
| 12954 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12955 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 12956 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12957 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12958 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12959 | CFLAGS="$SAVE_CFLAGS" |
| 12960 | fi |
| 12961 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12962 | sparc*-*solaris*) |
| 12963 | # Find out which ABI we are using. |
| 12964 | echo 'int i;' > conftest.$ac_ext |
| 12965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12966 | (eval $ac_compile) 2>&5 |
| 12967 | ac_status=$? |
| 12968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12969 | (exit $ac_status); }; then |
| 12970 | case `/usr/bin/file conftest.o` in |
| 12971 | *64-bit*) |
| 12972 | case $lt_cv_prog_gnu_ld in |
| 12973 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 12974 | *) LD="${LD-ld} -64" ;; |
| 12975 | esac |
| 12976 | ;; |
| 12977 | esac |
| 12978 | fi |
| 12979 | rm -rf conftest* |
| 12980 | ;; |
| 12981 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12982 | |
| 12983 | esac |
| 12984 | |
| 12985 | need_locks="$enable_libtool_lock" |
| 12986 | |
| 12987 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12988 | |
| 12989 | |
| 12990 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12991 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12992 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12993 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12994 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12995 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12996 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12997 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12998 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12999 | 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] | 13000 | if test -z "$CXXCPP"; then |
| 13001 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13003 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13004 | # Double quotes because CXXCPP needs to be expanded |
| 13005 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 13006 | do |
| 13007 | ac_preproc_ok=false |
| 13008 | for ac_cxx_preproc_warn_flag in '' yes |
| 13009 | do |
| 13010 | # Use a header file that comes with gcc, so configuring glibc |
| 13011 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13012 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13013 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13014 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13015 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13016 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13017 | /* confdefs.h. */ |
| 13018 | _ACEOF |
| 13019 | cat confdefs.h >>conftest.$ac_ext |
| 13020 | cat >>conftest.$ac_ext <<_ACEOF |
| 13021 | /* end confdefs.h. */ |
| 13022 | #ifdef __STDC__ |
| 13023 | # include <limits.h> |
| 13024 | #else |
| 13025 | # include <assert.h> |
| 13026 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13027 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13028 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13029 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13030 | case "(($ac_try" in |
| 13031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13032 | *) ac_try_echo=$ac_try;; |
| 13033 | esac |
| 13034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13036 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13037 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13038 | rm -f conftest.er1 |
| 13039 | cat conftest.err >&5 |
| 13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13041 | (exit $ac_status); } >/dev/null; then |
| 13042 | if test -s conftest.err; then |
| 13043 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13044 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13045 | else |
| 13046 | ac_cpp_err= |
| 13047 | fi |
| 13048 | else |
| 13049 | ac_cpp_err=yes |
| 13050 | fi |
| 13051 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13052 | : |
| 13053 | else |
| 13054 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13056 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13057 | # Broken: fails on valid input. |
| 13058 | continue |
| 13059 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13060 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13061 | rm -f conftest.err conftest.$ac_ext |
| 13062 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13063 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13064 | # can be detected and how. |
| 13065 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13066 | /* confdefs.h. */ |
| 13067 | _ACEOF |
| 13068 | cat confdefs.h >>conftest.$ac_ext |
| 13069 | cat >>conftest.$ac_ext <<_ACEOF |
| 13070 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13071 | #include <ac_nonexistent.h> |
| 13072 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13073 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13074 | case "(($ac_try" in |
| 13075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13076 | *) ac_try_echo=$ac_try;; |
| 13077 | esac |
| 13078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13079 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13080 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13081 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13082 | rm -f conftest.er1 |
| 13083 | cat conftest.err >&5 |
| 13084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13085 | (exit $ac_status); } >/dev/null; then |
| 13086 | if test -s conftest.err; then |
| 13087 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13088 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13089 | else |
| 13090 | ac_cpp_err= |
| 13091 | fi |
| 13092 | else |
| 13093 | ac_cpp_err=yes |
| 13094 | fi |
| 13095 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13096 | # Broken: success on invalid input. |
| 13097 | continue |
| 13098 | else |
| 13099 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13101 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13102 | # Passes both tests. |
| 13103 | ac_preproc_ok=: |
| 13104 | break |
| 13105 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13106 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13107 | rm -f conftest.err conftest.$ac_ext |
| 13108 | |
| 13109 | done |
| 13110 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13111 | rm -f conftest.err conftest.$ac_ext |
| 13112 | if $ac_preproc_ok; then |
| 13113 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13114 | fi |
| 13115 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13116 | done |
| 13117 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13118 | |
| 13119 | fi |
| 13120 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13121 | else |
| 13122 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13123 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13124 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13125 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13126 | ac_preproc_ok=false |
| 13127 | for ac_cxx_preproc_warn_flag in '' yes |
| 13128 | do |
| 13129 | # Use a header file that comes with gcc, so configuring glibc |
| 13130 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13131 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13132 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13133 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13134 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13135 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13136 | /* confdefs.h. */ |
| 13137 | _ACEOF |
| 13138 | cat confdefs.h >>conftest.$ac_ext |
| 13139 | cat >>conftest.$ac_ext <<_ACEOF |
| 13140 | /* end confdefs.h. */ |
| 13141 | #ifdef __STDC__ |
| 13142 | # include <limits.h> |
| 13143 | #else |
| 13144 | # include <assert.h> |
| 13145 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13146 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13147 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13148 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13149 | case "(($ac_try" in |
| 13150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13151 | *) ac_try_echo=$ac_try;; |
| 13152 | esac |
| 13153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13154 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13155 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13156 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13157 | rm -f conftest.er1 |
| 13158 | cat conftest.err >&5 |
| 13159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13160 | (exit $ac_status); } >/dev/null; then |
| 13161 | if test -s conftest.err; then |
| 13162 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13163 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13164 | else |
| 13165 | ac_cpp_err= |
| 13166 | fi |
| 13167 | else |
| 13168 | ac_cpp_err=yes |
| 13169 | fi |
| 13170 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13171 | : |
| 13172 | else |
| 13173 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13175 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13176 | # Broken: fails on valid input. |
| 13177 | continue |
| 13178 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13179 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13180 | rm -f conftest.err conftest.$ac_ext |
| 13181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13182 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13183 | # can be detected and how. |
| 13184 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13185 | /* confdefs.h. */ |
| 13186 | _ACEOF |
| 13187 | cat confdefs.h >>conftest.$ac_ext |
| 13188 | cat >>conftest.$ac_ext <<_ACEOF |
| 13189 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13190 | #include <ac_nonexistent.h> |
| 13191 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13192 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13193 | case "(($ac_try" in |
| 13194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13195 | *) ac_try_echo=$ac_try;; |
| 13196 | esac |
| 13197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13198 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13199 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13200 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13201 | rm -f conftest.er1 |
| 13202 | cat conftest.err >&5 |
| 13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13204 | (exit $ac_status); } >/dev/null; then |
| 13205 | if test -s conftest.err; then |
| 13206 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13207 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13208 | else |
| 13209 | ac_cpp_err= |
| 13210 | fi |
| 13211 | else |
| 13212 | ac_cpp_err=yes |
| 13213 | fi |
| 13214 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13215 | # Broken: success on invalid input. |
| 13216 | continue |
| 13217 | else |
| 13218 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13220 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13221 | # Passes both tests. |
| 13222 | ac_preproc_ok=: |
| 13223 | break |
| 13224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13225 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13226 | rm -f conftest.err conftest.$ac_ext |
| 13227 | |
| 13228 | done |
| 13229 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13230 | rm -f conftest.err conftest.$ac_ext |
| 13231 | if $ac_preproc_ok; then |
| 13232 | : |
| 13233 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13234 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13235 | See \`config.log' for more details." >&5 |
| 13236 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13237 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13238 | { (exit 1); exit 1; }; } |
| 13239 | fi |
| 13240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13241 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13242 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13243 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13244 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13245 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13246 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13247 | fi |
| 13248 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13249 | |
| 13250 | ac_ext=f |
| 13251 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13252 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13253 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13254 | if test -n "$ac_tool_prefix"; then |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13255 | 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] | 13256 | do |
| 13257 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13258 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13259 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13261 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13263 | else |
| 13264 | if test -n "$F77"; then |
| 13265 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13266 | else |
| 13267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13268 | for as_dir in $PATH |
| 13269 | do |
| 13270 | IFS=$as_save_IFS |
| 13271 | test -z "$as_dir" && as_dir=. |
| 13272 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13273 | 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] | 13274 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13275 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13276 | break 2 |
| 13277 | fi |
| 13278 | done |
| 13279 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13280 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13281 | |
| 13282 | fi |
| 13283 | fi |
| 13284 | F77=$ac_cv_prog_F77 |
| 13285 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13286 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13287 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13288 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13289 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13290 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13291 | fi |
| 13292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13293 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13294 | test -n "$F77" && break |
| 13295 | done |
| 13296 | fi |
| 13297 | if test -z "$F77"; then |
| 13298 | ac_ct_F77=$F77 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13299 | 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] | 13300 | do |
| 13301 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13302 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13303 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13305 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13307 | else |
| 13308 | if test -n "$ac_ct_F77"; then |
| 13309 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13310 | else |
| 13311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13312 | for as_dir in $PATH |
| 13313 | do |
| 13314 | IFS=$as_save_IFS |
| 13315 | test -z "$as_dir" && as_dir=. |
| 13316 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13317 | 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] | 13318 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13320 | break 2 |
| 13321 | fi |
| 13322 | done |
| 13323 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13324 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13325 | |
| 13326 | fi |
| 13327 | fi |
| 13328 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13329 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13330 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13331 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13332 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13334 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13335 | fi |
| 13336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13337 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13338 | test -n "$ac_ct_F77" && break |
| 13339 | done |
| 13340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13341 | if test "x$ac_ct_F77" = x; then |
| 13342 | F77="" |
| 13343 | else |
| 13344 | case $cross_compiling:$ac_tool_warned in |
| 13345 | yes:) |
| 13346 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13347 | whose name does not start with the host triplet. If you think this |
| 13348 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13349 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13350 | whose name does not start with the host triplet. If you think this |
| 13351 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13352 | ac_tool_warned=yes ;; |
| 13353 | esac |
| 13354 | F77=$ac_ct_F77 |
| 13355 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13356 | fi |
| 13357 | |
| 13358 | |
| 13359 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13360 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13361 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13362 | { (ac_try="$ac_compiler --version >&5" |
| 13363 | case "(($ac_try" in |
| 13364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13365 | *) ac_try_echo=$ac_try;; |
| 13366 | esac |
| 13367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13368 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13369 | ac_status=$? |
| 13370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13371 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13372 | { (ac_try="$ac_compiler -v >&5" |
| 13373 | case "(($ac_try" in |
| 13374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13375 | *) ac_try_echo=$ac_try;; |
| 13376 | esac |
| 13377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13378 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13379 | ac_status=$? |
| 13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13381 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13382 | { (ac_try="$ac_compiler -V >&5" |
| 13383 | case "(($ac_try" in |
| 13384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13385 | *) ac_try_echo=$ac_try;; |
| 13386 | esac |
| 13387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13388 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13389 | ac_status=$? |
| 13390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13391 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13392 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13393 | |
| 13394 | # 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] | 13395 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13396 | ac_save_ext=$ac_ext |
| 13397 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13398 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13399 | 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] | 13400 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13402 | else |
| 13403 | cat >conftest.$ac_ext <<_ACEOF |
| 13404 | program main |
| 13405 | #ifndef __GNUC__ |
| 13406 | choke me |
| 13407 | #endif |
| 13408 | |
| 13409 | end |
| 13410 | _ACEOF |
| 13411 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13412 | if { (ac_try="$ac_compile" |
| 13413 | case "(($ac_try" in |
| 13414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13415 | *) ac_try_echo=$ac_try;; |
| 13416 | esac |
| 13417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13418 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13419 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13421 | rm -f conftest.er1 |
| 13422 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13424 | (exit $ac_status); } && |
| 13425 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13426 | { (case "(($ac_try" in |
| 13427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13428 | *) ac_try_echo=$ac_try;; |
| 13429 | esac |
| 13430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13431 | (eval "$ac_try") 2>&5 |
| 13432 | ac_status=$? |
| 13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13434 | (exit $ac_status); }; } && |
| 13435 | { ac_try='test -s conftest.$ac_objext' |
| 13436 | { (case "(($ac_try" in |
| 13437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13438 | *) ac_try_echo=$ac_try;; |
| 13439 | esac |
| 13440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13441 | (eval "$ac_try") 2>&5 |
| 13442 | ac_status=$? |
| 13443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13444 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13445 | ac_compiler_gnu=yes |
| 13446 | else |
| 13447 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13449 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13450 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13451 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13452 | |
| 13453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13454 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13455 | |
| 13456 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13457 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13458 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13459 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13460 | ac_test_FFLAGS=${FFLAGS+set} |
| 13461 | ac_save_FFLAGS=$FFLAGS |
| 13462 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13463 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13464 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13465 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13467 | else |
| 13468 | FFLAGS=-g |
| 13469 | cat >conftest.$ac_ext <<_ACEOF |
| 13470 | program main |
| 13471 | |
| 13472 | end |
| 13473 | _ACEOF |
| 13474 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13475 | if { (ac_try="$ac_compile" |
| 13476 | case "(($ac_try" in |
| 13477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13478 | *) ac_try_echo=$ac_try;; |
| 13479 | esac |
| 13480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13481 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13482 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13484 | rm -f conftest.er1 |
| 13485 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13487 | (exit $ac_status); } && |
| 13488 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13489 | { (case "(($ac_try" in |
| 13490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13491 | *) ac_try_echo=$ac_try;; |
| 13492 | esac |
| 13493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13494 | (eval "$ac_try") 2>&5 |
| 13495 | ac_status=$? |
| 13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13497 | (exit $ac_status); }; } && |
| 13498 | { ac_try='test -s conftest.$ac_objext' |
| 13499 | { (case "(($ac_try" in |
| 13500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13501 | *) ac_try_echo=$ac_try;; |
| 13502 | esac |
| 13503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13504 | (eval "$ac_try") 2>&5 |
| 13505 | ac_status=$? |
| 13506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13507 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13508 | ac_cv_prog_f77_g=yes |
| 13509 | else |
| 13510 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13513 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13514 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13515 | |
| 13516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13517 | |
| 13518 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13519 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13520 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13521 | if test "$ac_test_FFLAGS" = set; then |
| 13522 | FFLAGS=$ac_save_FFLAGS |
| 13523 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13524 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13525 | FFLAGS="-g -O2" |
| 13526 | else |
| 13527 | FFLAGS="-g" |
| 13528 | fi |
| 13529 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13530 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13531 | FFLAGS="-O2" |
| 13532 | else |
| 13533 | FFLAGS= |
| 13534 | fi |
| 13535 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13536 | |
| 13537 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13538 | ac_ext=c |
| 13539 | ac_cpp='$CPP $CPPFLAGS' |
| 13540 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13541 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13542 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13543 | |
| 13544 | |
| 13545 | |
| 13546 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13547 | |
| 13548 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13549 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13550 | 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] | 13551 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13553 | else |
| 13554 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13555 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13556 | |
| 13557 | case $build_os in |
| 13558 | msdosdjgpp*) |
| 13559 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13560 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13561 | # during glob expansion). Even if it were fixed, the result of this |
| 13562 | # check would be larger than it should be. |
| 13563 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13564 | ;; |
| 13565 | |
| 13566 | gnu*) |
| 13567 | # Under GNU Hurd, this test is not required because there is |
| 13568 | # no limit to the length of command line arguments. |
| 13569 | # Libtool will interpret -1 as no limit whatsoever |
| 13570 | lt_cv_sys_max_cmd_len=-1; |
| 13571 | ;; |
| 13572 | |
| 13573 | cygwin* | mingw*) |
| 13574 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13575 | # about 5 minutes as the teststring grows exponentially. |
| 13576 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13577 | # you end up with a "frozen" computer, even though with patience |
| 13578 | # the test eventually succeeds (with a max line length of 256k). |
| 13579 | # Instead, let's just punt: use the minimum linelength reported by |
| 13580 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13581 | lt_cv_sys_max_cmd_len=8192; |
| 13582 | ;; |
| 13583 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13584 | amigaos*) |
| 13585 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13586 | # So we just punt and use a minimum line length of 8192. |
| 13587 | lt_cv_sys_max_cmd_len=8192; |
| 13588 | ;; |
| 13589 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13590 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13591 | # This has been around since 386BSD, at least. Likely further. |
| 13592 | if test -x /sbin/sysctl; then |
| 13593 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13594 | elif test -x /usr/sbin/sysctl; then |
| 13595 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13596 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13597 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13598 | fi |
| 13599 | # And add a safety zone |
| 13600 | 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] | 13601 | 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] | 13602 | ;; |
| 13603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13604 | interix*) |
| 13605 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13606 | lt_cv_sys_max_cmd_len=196608 |
| 13607 | ;; |
| 13608 | |
| 13609 | osf*) |
| 13610 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13611 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13612 | # nice to cause kernel panics so lets avoid the loop below. |
| 13613 | # First set a reasonable default. |
| 13614 | lt_cv_sys_max_cmd_len=16384 |
| 13615 | # |
| 13616 | if test -x /sbin/sysconfig; then |
| 13617 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13618 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13619 | esac |
| 13620 | fi |
| 13621 | ;; |
| 13622 | sco3.2v5*) |
| 13623 | lt_cv_sys_max_cmd_len=102400 |
| 13624 | ;; |
| 13625 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13626 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13627 | if test -n "$kargmax"; then |
| 13628 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13629 | else |
| 13630 | lt_cv_sys_max_cmd_len=32768 |
| 13631 | fi |
| 13632 | ;; |
| 13633 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13634 | # If test is not a shell built-in, we'll probably end up computing a |
| 13635 | # maximum length that is only half of the actual maximum length, but |
| 13636 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13637 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13638 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13639 | = "XX$teststring") >/dev/null 2>&1 && |
| 13640 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13641 | lt_cv_sys_max_cmd_len=$new_result && |
| 13642 | test $i != 17 # 1/2 MB should be enough |
| 13643 | do |
| 13644 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13645 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13646 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13647 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13648 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13649 | # amounts of additional arguments before passing them to the linker. |
| 13650 | # It appears as though 1/2 is a usable value. |
| 13651 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13652 | ;; |
| 13653 | esac |
| 13654 | |
| 13655 | fi |
| 13656 | |
| 13657 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13658 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13659 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13660 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13661 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13662 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13663 | fi |
| 13664 | |
| 13665 | |
| 13666 | |
| 13667 | |
| 13668 | # 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] | 13669 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13670 | 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] | 13671 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13673 | else |
| 13674 | |
| 13675 | # These are sane defaults that work on at least a few old systems. |
| 13676 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13677 | |
| 13678 | # Character class describing NM global symbol codes. |
| 13679 | symcode='[BCDEGRST]' |
| 13680 | |
| 13681 | # Regexp to match symbols that can be accessed directly from C. |
| 13682 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13684 | # Transform an extracted symbol line into a proper C declaration |
| 13685 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13686 | |
| 13687 | # Transform an extracted symbol line into symbol name and symbol address |
| 13688 | 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'" |
| 13689 | |
| 13690 | # Define system-specific variables. |
| 13691 | case $host_os in |
| 13692 | aix*) |
| 13693 | symcode='[BCDT]' |
| 13694 | ;; |
| 13695 | cygwin* | mingw* | pw32*) |
| 13696 | symcode='[ABCDGISTW]' |
| 13697 | ;; |
| 13698 | hpux*) # Its linker distinguishes data from code symbols |
| 13699 | if test "$host_cpu" = ia64; then |
| 13700 | symcode='[ABCDEGRST]' |
| 13701 | fi |
| 13702 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13703 | 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'" |
| 13704 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13705 | linux*) |
| 13706 | if test "$host_cpu" = ia64; then |
| 13707 | symcode='[ABCDGIRSTW]' |
| 13708 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13709 | 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'" |
| 13710 | fi |
| 13711 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13712 | irix* | nonstopux*) |
| 13713 | symcode='[BCDEGRST]' |
| 13714 | ;; |
| 13715 | osf*) |
| 13716 | symcode='[BCDEGQRST]' |
| 13717 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13718 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13719 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13720 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13721 | sco3.2v5*) |
| 13722 | symcode='[DT]' |
| 13723 | ;; |
| 13724 | sysv4.2uw2*) |
| 13725 | symcode='[DT]' |
| 13726 | ;; |
| 13727 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13728 | symcode='[ABDT]' |
| 13729 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13730 | sysv4) |
| 13731 | symcode='[DFNSTU]' |
| 13732 | ;; |
| 13733 | esac |
| 13734 | |
| 13735 | # Handle CRLF in mingw tool chain |
| 13736 | opt_cr= |
| 13737 | case $build_os in |
| 13738 | mingw*) |
| 13739 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13740 | ;; |
| 13741 | esac |
| 13742 | |
| 13743 | # If we're using GNU nm, then use its standard symbol codes. |
| 13744 | case `$NM -V 2>&1` in |
| 13745 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13746 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13747 | esac |
| 13748 | |
| 13749 | # Try without a prefix undercore, then with it. |
| 13750 | for ac_symprfx in "" "_"; do |
| 13751 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13752 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13753 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13754 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13755 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13756 | 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] | 13757 | |
| 13758 | # Check to see that the pipe works correctly. |
| 13759 | pipe_works=no |
| 13760 | |
| 13761 | rm -f conftest* |
| 13762 | cat > conftest.$ac_ext <<EOF |
| 13763 | #ifdef __cplusplus |
| 13764 | extern "C" { |
| 13765 | #endif |
| 13766 | char nm_test_var; |
| 13767 | void nm_test_func(){} |
| 13768 | #ifdef __cplusplus |
| 13769 | } |
| 13770 | #endif |
| 13771 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13772 | EOF |
| 13773 | |
| 13774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13775 | (eval $ac_compile) 2>&5 |
| 13776 | ac_status=$? |
| 13777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13778 | (exit $ac_status); }; then |
| 13779 | # Now try to grab the symbols. |
| 13780 | nlist=conftest.nm |
| 13781 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13782 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13783 | ac_status=$? |
| 13784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13785 | (exit $ac_status); } && test -s "$nlist"; then |
| 13786 | # Try sorting and uniquifying the output. |
| 13787 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13788 | mv -f "$nlist"T "$nlist" |
| 13789 | else |
| 13790 | rm -f "$nlist"T |
| 13791 | fi |
| 13792 | |
| 13793 | # Make sure that we snagged all the symbols we need. |
| 13794 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13795 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13796 | cat <<EOF > conftest.$ac_ext |
| 13797 | #ifdef __cplusplus |
| 13798 | extern "C" { |
| 13799 | #endif |
| 13800 | |
| 13801 | EOF |
| 13802 | # Now generate the symbol file. |
| 13803 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13804 | |
| 13805 | cat <<EOF >> conftest.$ac_ext |
| 13806 | #if defined (__STDC__) && __STDC__ |
| 13807 | # define lt_ptr_t void * |
| 13808 | #else |
| 13809 | # define lt_ptr_t char * |
| 13810 | # define const |
| 13811 | #endif |
| 13812 | |
| 13813 | /* The mapping between symbol names and symbols. */ |
| 13814 | const struct { |
| 13815 | const char *name; |
| 13816 | lt_ptr_t address; |
| 13817 | } |
| 13818 | lt_preloaded_symbols[] = |
| 13819 | { |
| 13820 | EOF |
| 13821 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 13822 | cat <<\EOF >> conftest.$ac_ext |
| 13823 | {0, (lt_ptr_t) 0} |
| 13824 | }; |
| 13825 | |
| 13826 | #ifdef __cplusplus |
| 13827 | } |
| 13828 | #endif |
| 13829 | EOF |
| 13830 | # Now try linking the two files. |
| 13831 | mv conftest.$ac_objext conftstm.$ac_objext |
| 13832 | lt_save_LIBS="$LIBS" |
| 13833 | lt_save_CFLAGS="$CFLAGS" |
| 13834 | LIBS="conftstm.$ac_objext" |
| 13835 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 13836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13837 | (eval $ac_link) 2>&5 |
| 13838 | ac_status=$? |
| 13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13840 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 13841 | pipe_works=yes |
| 13842 | fi |
| 13843 | LIBS="$lt_save_LIBS" |
| 13844 | CFLAGS="$lt_save_CFLAGS" |
| 13845 | else |
| 13846 | echo "cannot find nm_test_func in $nlist" >&5 |
| 13847 | fi |
| 13848 | else |
| 13849 | echo "cannot find nm_test_var in $nlist" >&5 |
| 13850 | fi |
| 13851 | else |
| 13852 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 13853 | fi |
| 13854 | else |
| 13855 | echo "$progname: failed program was:" >&5 |
| 13856 | cat conftest.$ac_ext >&5 |
| 13857 | fi |
| 13858 | rm -f conftest* conftst* |
| 13859 | |
| 13860 | # Do not use the global_symbol_pipe unless it works. |
| 13861 | if test "$pipe_works" = yes; then |
| 13862 | break |
| 13863 | else |
| 13864 | lt_cv_sys_global_symbol_pipe= |
| 13865 | fi |
| 13866 | done |
| 13867 | |
| 13868 | fi |
| 13869 | |
| 13870 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 13871 | lt_cv_sys_global_symbol_to_cdecl= |
| 13872 | fi |
| 13873 | 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] | 13874 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 13875 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13876 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13877 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13878 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13879 | fi |
| 13880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13881 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 13882 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13883 | if test "${lt_cv_objdir+set}" = set; then |
| 13884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13885 | else |
| 13886 | rm -f .libs 2>/dev/null |
| 13887 | mkdir .libs 2>/dev/null |
| 13888 | if test -d .libs; then |
| 13889 | lt_cv_objdir=.libs |
| 13890 | else |
| 13891 | # MS-DOS does not allow filenames that begin with a dot. |
| 13892 | lt_cv_objdir=_libs |
| 13893 | fi |
| 13894 | rmdir .libs 2>/dev/null |
| 13895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13896 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 13897 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13898 | objdir=$lt_cv_objdir |
| 13899 | |
| 13900 | |
| 13901 | |
| 13902 | |
| 13903 | |
| 13904 | case $host_os in |
| 13905 | aix3*) |
| 13906 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13907 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13908 | # vanish in a puff of smoke. |
| 13909 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13910 | COLLECT_NAMES= |
| 13911 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13912 | fi |
| 13913 | ;; |
| 13914 | esac |
| 13915 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13916 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13917 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13918 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13919 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 13920 | |
| 13921 | # Same as above, but do not quote variable references. |
| 13922 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 13923 | |
| 13924 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13925 | # double_quote_subst'ed string. |
| 13926 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13927 | |
| 13928 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13929 | no_glob_subst='s/\*/\\\*/g' |
| 13930 | |
| 13931 | # Constants: |
| 13932 | rm="rm -f" |
| 13933 | |
| 13934 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 13935 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13936 | can_build_shared=yes |
| 13937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13938 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13939 | # which needs '.lib'). |
| 13940 | libext=a |
| 13941 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13942 | ofile="$default_ofile" |
| 13943 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13944 | |
| 13945 | if test -n "$ac_tool_prefix"; then |
| 13946 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 13947 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13948 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13950 | if test "${ac_cv_prog_AR+set}" = set; then |
| 13951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13952 | else |
| 13953 | if test -n "$AR"; then |
| 13954 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 13955 | else |
| 13956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13957 | for as_dir in $PATH |
| 13958 | do |
| 13959 | IFS=$as_save_IFS |
| 13960 | test -z "$as_dir" && as_dir=. |
| 13961 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13962 | 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] | 13963 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 13964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13965 | break 2 |
| 13966 | fi |
| 13967 | done |
| 13968 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13969 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13970 | |
| 13971 | fi |
| 13972 | fi |
| 13973 | AR=$ac_cv_prog_AR |
| 13974 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13975 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13976 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13977 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13978 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13979 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13980 | fi |
| 13981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13982 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13983 | fi |
| 13984 | if test -z "$ac_cv_prog_AR"; then |
| 13985 | ac_ct_AR=$AR |
| 13986 | # Extract the first word of "ar", so it can be a program name with args. |
| 13987 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13988 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13990 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 13991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13992 | else |
| 13993 | if test -n "$ac_ct_AR"; then |
| 13994 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 13995 | else |
| 13996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13997 | for as_dir in $PATH |
| 13998 | do |
| 13999 | IFS=$as_save_IFS |
| 14000 | test -z "$as_dir" && as_dir=. |
| 14001 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14002 | 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] | 14003 | ac_cv_prog_ac_ct_AR="ar" |
| 14004 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14005 | break 2 |
| 14006 | fi |
| 14007 | done |
| 14008 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14009 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14010 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14011 | fi |
| 14012 | fi |
| 14013 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 14014 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14015 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 14016 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14017 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14018 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14019 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14020 | fi |
| 14021 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14022 | if test "x$ac_ct_AR" = x; then |
| 14023 | AR="false" |
| 14024 | else |
| 14025 | case $cross_compiling:$ac_tool_warned in |
| 14026 | yes:) |
| 14027 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14028 | whose name does not start with the host triplet. If you think this |
| 14029 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14030 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14031 | whose name does not start with the host triplet. If you think this |
| 14032 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14033 | ac_tool_warned=yes ;; |
| 14034 | esac |
| 14035 | AR=$ac_ct_AR |
| 14036 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14037 | else |
| 14038 | AR="$ac_cv_prog_AR" |
| 14039 | fi |
| 14040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14041 | if test -n "$ac_tool_prefix"; then |
| 14042 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 14043 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14044 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14046 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 14047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14048 | else |
| 14049 | if test -n "$RANLIB"; then |
| 14050 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 14051 | else |
| 14052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14053 | for as_dir in $PATH |
| 14054 | do |
| 14055 | IFS=$as_save_IFS |
| 14056 | test -z "$as_dir" && as_dir=. |
| 14057 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14058 | 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] | 14059 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 14060 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14061 | break 2 |
| 14062 | fi |
| 14063 | done |
| 14064 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14065 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14066 | |
| 14067 | fi |
| 14068 | fi |
| 14069 | RANLIB=$ac_cv_prog_RANLIB |
| 14070 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14071 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 14072 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14073 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14074 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14075 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14076 | fi |
| 14077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14078 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14079 | fi |
| 14080 | if test -z "$ac_cv_prog_RANLIB"; then |
| 14081 | ac_ct_RANLIB=$RANLIB |
| 14082 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 14083 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14084 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14086 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 14087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14088 | else |
| 14089 | if test -n "$ac_ct_RANLIB"; then |
| 14090 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 14091 | else |
| 14092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14093 | for as_dir in $PATH |
| 14094 | do |
| 14095 | IFS=$as_save_IFS |
| 14096 | test -z "$as_dir" && as_dir=. |
| 14097 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14098 | 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] | 14099 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 14100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14101 | break 2 |
| 14102 | fi |
| 14103 | done |
| 14104 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14105 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14106 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14107 | fi |
| 14108 | fi |
| 14109 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14110 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14111 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14112 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14113 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14114 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14115 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14116 | fi |
| 14117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14118 | if test "x$ac_ct_RANLIB" = x; then |
| 14119 | RANLIB=":" |
| 14120 | else |
| 14121 | case $cross_compiling:$ac_tool_warned in |
| 14122 | yes:) |
| 14123 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14124 | whose name does not start with the host triplet. If you think this |
| 14125 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14126 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14127 | whose name does not start with the host triplet. If you think this |
| 14128 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14129 | ac_tool_warned=yes ;; |
| 14130 | esac |
| 14131 | RANLIB=$ac_ct_RANLIB |
| 14132 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14133 | else |
| 14134 | RANLIB="$ac_cv_prog_RANLIB" |
| 14135 | fi |
| 14136 | |
| 14137 | if test -n "$ac_tool_prefix"; then |
| 14138 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14139 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14140 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14142 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14144 | else |
| 14145 | if test -n "$STRIP"; then |
| 14146 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14147 | else |
| 14148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14149 | for as_dir in $PATH |
| 14150 | do |
| 14151 | IFS=$as_save_IFS |
| 14152 | test -z "$as_dir" && as_dir=. |
| 14153 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14154 | 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] | 14155 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14157 | break 2 |
| 14158 | fi |
| 14159 | done |
| 14160 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14161 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14162 | |
| 14163 | fi |
| 14164 | fi |
| 14165 | STRIP=$ac_cv_prog_STRIP |
| 14166 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14167 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14168 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14169 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14170 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14171 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14172 | fi |
| 14173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14174 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14175 | fi |
| 14176 | if test -z "$ac_cv_prog_STRIP"; then |
| 14177 | ac_ct_STRIP=$STRIP |
| 14178 | # Extract the first word of "strip", so it can be a program name with args. |
| 14179 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14180 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14182 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14184 | else |
| 14185 | if test -n "$ac_ct_STRIP"; then |
| 14186 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14187 | else |
| 14188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14189 | for as_dir in $PATH |
| 14190 | do |
| 14191 | IFS=$as_save_IFS |
| 14192 | test -z "$as_dir" && as_dir=. |
| 14193 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14194 | 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] | 14195 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14197 | break 2 |
| 14198 | fi |
| 14199 | done |
| 14200 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14201 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14202 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14203 | fi |
| 14204 | fi |
| 14205 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14206 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14207 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14208 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14209 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14210 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14211 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14212 | fi |
| 14213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14214 | if test "x$ac_ct_STRIP" = x; then |
| 14215 | STRIP=":" |
| 14216 | else |
| 14217 | case $cross_compiling:$ac_tool_warned in |
| 14218 | yes:) |
| 14219 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14220 | whose name does not start with the host triplet. If you think this |
| 14221 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14222 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14223 | whose name does not start with the host triplet. If you think this |
| 14224 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14225 | ac_tool_warned=yes ;; |
| 14226 | esac |
| 14227 | STRIP=$ac_ct_STRIP |
| 14228 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14229 | else |
| 14230 | STRIP="$ac_cv_prog_STRIP" |
| 14231 | fi |
| 14232 | |
| 14233 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14234 | old_CC="$CC" |
| 14235 | old_CFLAGS="$CFLAGS" |
| 14236 | |
| 14237 | # Set sane defaults for various variables |
| 14238 | test -z "$AR" && AR=ar |
| 14239 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14240 | test -z "$AS" && AS=as |
| 14241 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14242 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14243 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14244 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14245 | test -z "$LD" && LD=ld |
| 14246 | test -z "$LN_S" && LN_S="ln -s" |
| 14247 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14248 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14249 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14250 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14251 | test -z "$RANLIB" && RANLIB=: |
| 14252 | test -z "$STRIP" && STRIP=: |
| 14253 | test -z "$ac_objext" && ac_objext=o |
| 14254 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14255 | # Determine commands to create old-style static archives. |
| 14256 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14257 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14258 | old_postuninstall_cmds= |
| 14259 | |
| 14260 | if test -n "$RANLIB"; then |
| 14261 | case $host_os in |
| 14262 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14263 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14264 | ;; |
| 14265 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14266 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14267 | ;; |
| 14268 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14269 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14270 | fi |
| 14271 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14272 | for cc_temp in $compiler""; do |
| 14273 | case $cc_temp in |
| 14274 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14275 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14276 | \-*) ;; |
| 14277 | *) break;; |
| 14278 | esac |
| 14279 | done |
| 14280 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14281 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14282 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14283 | # Only perform the check for file, if the check method requires it |
| 14284 | case $deplibs_check_method in |
| 14285 | file_magic*) |
| 14286 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14287 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14288 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14289 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14291 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14292 | case $MAGIC_CMD in |
| 14293 | [\\/*] | ?:[\\/]*) |
| 14294 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14295 | ;; |
| 14296 | *) |
| 14297 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14298 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14299 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14300 | for ac_dir in $ac_dummy; do |
| 14301 | IFS="$lt_save_ifs" |
| 14302 | test -z "$ac_dir" && ac_dir=. |
| 14303 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14304 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14305 | if test -n "$file_magic_test_file"; then |
| 14306 | case $deplibs_check_method in |
| 14307 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14308 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14309 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14310 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14311 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14312 | : |
| 14313 | else |
| 14314 | cat <<EOF 1>&2 |
| 14315 | |
| 14316 | *** Warning: the command libtool uses to detect shared libraries, |
| 14317 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14318 | *** The result is that libtool may fail to recognize shared libraries |
| 14319 | *** as such. This will affect the creation of libtool libraries that |
| 14320 | *** depend on shared libraries, but programs linked with such libtool |
| 14321 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14322 | *** may want to report the problem to your system manager and/or to |
| 14323 | *** bug-libtool@gnu.org |
| 14324 | |
| 14325 | EOF |
| 14326 | fi ;; |
| 14327 | esac |
| 14328 | fi |
| 14329 | break |
| 14330 | fi |
| 14331 | done |
| 14332 | IFS="$lt_save_ifs" |
| 14333 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14334 | ;; |
| 14335 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14336 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14337 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14338 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14339 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14340 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14341 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14342 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14343 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14344 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14345 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14346 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14347 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14348 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14349 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14350 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14351 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14353 | else |
| 14354 | case $MAGIC_CMD in |
| 14355 | [\\/*] | ?:[\\/]*) |
| 14356 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14357 | ;; |
| 14358 | *) |
| 14359 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14360 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14361 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14362 | for ac_dir in $ac_dummy; do |
| 14363 | IFS="$lt_save_ifs" |
| 14364 | test -z "$ac_dir" && ac_dir=. |
| 14365 | if test -f $ac_dir/file; then |
| 14366 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14367 | if test -n "$file_magic_test_file"; then |
| 14368 | case $deplibs_check_method in |
| 14369 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14370 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14371 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14372 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14373 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14374 | : |
| 14375 | else |
| 14376 | cat <<EOF 1>&2 |
| 14377 | |
| 14378 | *** Warning: the command libtool uses to detect shared libraries, |
| 14379 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14380 | *** The result is that libtool may fail to recognize shared libraries |
| 14381 | *** as such. This will affect the creation of libtool libraries that |
| 14382 | *** depend on shared libraries, but programs linked with such libtool |
| 14383 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14384 | *** may want to report the problem to your system manager and/or to |
| 14385 | *** bug-libtool@gnu.org |
| 14386 | |
| 14387 | EOF |
| 14388 | fi ;; |
| 14389 | esac |
| 14390 | fi |
| 14391 | break |
| 14392 | fi |
| 14393 | done |
| 14394 | IFS="$lt_save_ifs" |
| 14395 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14396 | ;; |
| 14397 | esac |
| 14398 | fi |
| 14399 | |
| 14400 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14401 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14402 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14403 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14404 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14405 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14406 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14407 | fi |
| 14408 | |
| 14409 | else |
| 14410 | MAGIC_CMD=: |
| 14411 | fi |
| 14412 | fi |
| 14413 | |
| 14414 | fi |
| 14415 | ;; |
| 14416 | esac |
| 14417 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14418 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14419 | enable_win32_dll=no |
| 14420 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14421 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14422 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14423 | enableval=$enable_libtool_lock; |
| 14424 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14425 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14426 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14427 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14428 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14429 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14430 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14431 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14432 | else |
| 14433 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14434 | fi |
| 14435 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14436 | test -z "$pic_mode" && pic_mode=default |
| 14437 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14438 | # Use C for the default configuration in the libtool script |
| 14439 | tagname= |
| 14440 | lt_save_CC="$CC" |
| 14441 | ac_ext=c |
| 14442 | ac_cpp='$CPP $CPPFLAGS' |
| 14443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14446 | |
| 14447 | |
| 14448 | # Source file extension for C test sources. |
| 14449 | ac_ext=c |
| 14450 | |
| 14451 | # Object file extension for compiled C test sources. |
| 14452 | objext=o |
| 14453 | objext=$objext |
| 14454 | |
| 14455 | # Code to be used in simple compile tests |
| 14456 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14457 | |
| 14458 | # Code to be used in simple link tests |
| 14459 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14460 | |
| 14461 | |
| 14462 | # If no C compiler was specified, use CC. |
| 14463 | LTCC=${LTCC-"$CC"} |
| 14464 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14465 | # If no C compiler flags were specified, use CFLAGS. |
| 14466 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14467 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14468 | # Allow CC to be a program name with arguments. |
| 14469 | compiler=$CC |
| 14470 | |
| 14471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14472 | # save warnings/boilerplate of simple test code |
| 14473 | ac_outfile=conftest.$ac_objext |
| 14474 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14475 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14476 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14477 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14479 | ac_outfile=conftest.$ac_objext |
| 14480 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14481 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14482 | _lt_linker_boilerplate=`cat conftest.err` |
| 14483 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14484 | |
| 14485 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14486 | |
| 14487 | lt_prog_compiler_no_builtin_flag= |
| 14488 | |
| 14489 | if test "$GCC" = yes; then |
| 14490 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14491 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14493 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14494 | 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] | 14495 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14497 | else |
| 14498 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14499 | ac_outfile=conftest.$ac_objext |
| 14500 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14501 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14502 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14503 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14504 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14505 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14506 | # The option is referenced via a variable to avoid confusing sed. |
| 14507 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14508 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14509 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14510 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 14511 | (eval echo "\"\$as_me:14511: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14512 | (eval "$lt_compile" 2>conftest.err) |
| 14513 | ac_status=$? |
| 14514 | cat conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 14515 | echo "$as_me:14515: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14516 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14517 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14518 | # So say no if there are warnings other than the usual output. |
| 14519 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14520 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14521 | 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] | 14522 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14523 | fi |
| 14524 | fi |
| 14525 | $rm conftest* |
| 14526 | |
| 14527 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14528 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14529 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14530 | |
| 14531 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14532 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14533 | else |
| 14534 | : |
| 14535 | fi |
| 14536 | |
| 14537 | fi |
| 14538 | |
| 14539 | lt_prog_compiler_wl= |
| 14540 | lt_prog_compiler_pic= |
| 14541 | lt_prog_compiler_static= |
| 14542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14543 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14544 | 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] | 14545 | |
| 14546 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14547 | lt_prog_compiler_wl='-Wl,' |
| 14548 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14549 | |
| 14550 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14551 | aix*) |
| 14552 | # All AIX code is PIC. |
| 14553 | if test "$host_cpu" = ia64; then |
| 14554 | # AIX 5 now supports IA64 processor |
| 14555 | lt_prog_compiler_static='-Bstatic' |
| 14556 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14557 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14558 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14559 | amigaos*) |
| 14560 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14561 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14562 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14563 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14564 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14565 | |
| 14566 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14567 | # PIC is the default for these OSes. |
| 14568 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14569 | |
| 14570 | mingw* | pw32* | os2*) |
| 14571 | # This hack is so that the source file can tell whether it is being |
| 14572 | # built for inclusion in a dll (and should export symbols for example). |
| 14573 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14574 | ;; |
| 14575 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14576 | darwin* | rhapsody*) |
| 14577 | # PIC is the default on this platform |
| 14578 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14579 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14580 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14581 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14582 | interix3*) |
| 14583 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14584 | # Instead, we relocate shared libraries at runtime. |
| 14585 | ;; |
| 14586 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14587 | msdosdjgpp*) |
| 14588 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14589 | # on systems that don't support them. |
| 14590 | lt_prog_compiler_can_build_shared=no |
| 14591 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14592 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14593 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14594 | sysv4*MP*) |
| 14595 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14596 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14597 | fi |
| 14598 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14599 | |
| 14600 | hpux*) |
| 14601 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14602 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14603 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14604 | hppa*64*|ia64*) |
| 14605 | # +Z the default |
| 14606 | ;; |
| 14607 | *) |
| 14608 | lt_prog_compiler_pic='-fPIC' |
| 14609 | ;; |
| 14610 | esac |
| 14611 | ;; |
| 14612 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14613 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14614 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14615 | ;; |
| 14616 | esac |
| 14617 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14618 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14619 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14620 | aix*) |
| 14621 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14622 | if test "$host_cpu" = ia64; then |
| 14623 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14624 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14625 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14626 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14627 | fi |
| 14628 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14629 | darwin*) |
| 14630 | # PIC is the default on this platform |
| 14631 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14632 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14633 | xlc*) |
| 14634 | lt_prog_compiler_pic='-qnocommon' |
| 14635 | lt_prog_compiler_wl='-Wl,' |
| 14636 | ;; |
| 14637 | esac |
| 14638 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14639 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14640 | mingw* | pw32* | os2*) |
| 14641 | # This hack is so that the source file can tell whether it is being |
| 14642 | # built for inclusion in a dll (and should export symbols for example). |
| 14643 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14644 | ;; |
| 14645 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14646 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14647 | lt_prog_compiler_wl='-Wl,' |
| 14648 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14649 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14650 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14651 | hppa*64*|ia64*) |
| 14652 | # +Z the default |
| 14653 | ;; |
| 14654 | *) |
| 14655 | lt_prog_compiler_pic='+Z' |
| 14656 | ;; |
| 14657 | esac |
| 14658 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14659 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14660 | ;; |
| 14661 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14662 | irix5* | irix6* | nonstopux*) |
| 14663 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14664 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14665 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14666 | ;; |
| 14667 | |
| 14668 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14669 | lt_prog_compiler_pic='-KPIC' |
| 14670 | lt_prog_compiler_static='-Bstatic' |
| 14671 | ;; |
| 14672 | |
| 14673 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14674 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14675 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14676 | lt_prog_compiler_wl='-Wl,' |
| 14677 | lt_prog_compiler_pic='-KPIC' |
| 14678 | lt_prog_compiler_static='-static' |
| 14679 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14680 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14681 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14682 | # which looks to be a dead project) |
| 14683 | lt_prog_compiler_wl='-Wl,' |
| 14684 | lt_prog_compiler_pic='-fpic' |
| 14685 | lt_prog_compiler_static='-Bstatic' |
| 14686 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14687 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14688 | lt_prog_compiler_wl='-Wl,' |
| 14689 | # All Alpha code is PIC. |
| 14690 | lt_prog_compiler_static='-non_shared' |
| 14691 | ;; |
| 14692 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14693 | ;; |
| 14694 | |
| 14695 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14696 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14697 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14698 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14699 | ;; |
| 14700 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14701 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14702 | lt_prog_compiler_pic='-KPIC' |
| 14703 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14704 | case $cc_basename in |
| 14705 | f77* | f90* | f95*) |
| 14706 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14707 | *) |
| 14708 | lt_prog_compiler_wl='-Wl,';; |
| 14709 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14710 | ;; |
| 14711 | |
| 14712 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14713 | lt_prog_compiler_wl='-Qoption ld ' |
| 14714 | lt_prog_compiler_pic='-PIC' |
| 14715 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14716 | ;; |
| 14717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14718 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14719 | lt_prog_compiler_wl='-Wl,' |
| 14720 | lt_prog_compiler_pic='-KPIC' |
| 14721 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14722 | ;; |
| 14723 | |
| 14724 | sysv4*MP*) |
| 14725 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14726 | lt_prog_compiler_pic='-Kconform_pic' |
| 14727 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14728 | fi |
| 14729 | ;; |
| 14730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14731 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14732 | lt_prog_compiler_wl='-Wl,' |
| 14733 | lt_prog_compiler_pic='-KPIC' |
| 14734 | lt_prog_compiler_static='-Bstatic' |
| 14735 | ;; |
| 14736 | |
| 14737 | unicos*) |
| 14738 | lt_prog_compiler_wl='-Wl,' |
| 14739 | lt_prog_compiler_can_build_shared=no |
| 14740 | ;; |
| 14741 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14742 | uts4*) |
| 14743 | lt_prog_compiler_pic='-pic' |
| 14744 | lt_prog_compiler_static='-Bstatic' |
| 14745 | ;; |
| 14746 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14747 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14748 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14749 | ;; |
| 14750 | esac |
| 14751 | fi |
| 14752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14753 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14754 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14755 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14756 | # |
| 14757 | # Check to make sure the PIC flag actually works. |
| 14758 | # |
| 14759 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14760 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14761 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14762 | 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] | 14763 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14765 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14766 | lt_prog_compiler_pic_works=no |
| 14767 | ac_outfile=conftest.$ac_objext |
| 14768 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14769 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14770 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14771 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14772 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14773 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14774 | # The option is referenced via a variable to avoid confusing sed. |
| 14775 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14776 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14777 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14778 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 14779 | (eval echo "\"\$as_me:14779: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14780 | (eval "$lt_compile" 2>conftest.err) |
| 14781 | ac_status=$? |
| 14782 | cat conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 14783 | echo "$as_me:14783: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14784 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14785 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14786 | # So say no if there are warnings other than the usual output. |
| 14787 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14788 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14789 | 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] | 14790 | lt_prog_compiler_pic_works=yes |
| 14791 | fi |
| 14792 | fi |
| 14793 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14794 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14795 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14796 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14797 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14798 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14799 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14800 | case $lt_prog_compiler_pic in |
| 14801 | "" | " "*) ;; |
| 14802 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14803 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14804 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14805 | lt_prog_compiler_pic= |
| 14806 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14807 | fi |
| 14808 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14809 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14810 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14811 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14812 | *djgpp*) |
| 14813 | lt_prog_compiler_pic= |
| 14814 | ;; |
| 14815 | *) |
| 14816 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14817 | ;; |
| 14818 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14819 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14820 | # |
| 14821 | # Check to make sure the static flag actually works. |
| 14822 | # |
| 14823 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14824 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14825 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14826 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 14827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14828 | else |
| 14829 | lt_prog_compiler_static_works=no |
| 14830 | save_LDFLAGS="$LDFLAGS" |
| 14831 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14832 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14833 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14834 | # The linker can only warn and ignore the option if not recognized |
| 14835 | # So say no if there are warnings |
| 14836 | if test -s conftest.err; then |
| 14837 | # Append any errors to the config.log. |
| 14838 | cat conftest.err 1>&5 |
| 14839 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14840 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14841 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14842 | lt_prog_compiler_static_works=yes |
| 14843 | fi |
| 14844 | else |
| 14845 | lt_prog_compiler_static_works=yes |
| 14846 | fi |
| 14847 | fi |
| 14848 | $rm conftest* |
| 14849 | LDFLAGS="$save_LDFLAGS" |
| 14850 | |
| 14851 | fi |
| 14852 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 14853 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 14854 | |
| 14855 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 14856 | : |
| 14857 | else |
| 14858 | lt_prog_compiler_static= |
| 14859 | fi |
| 14860 | |
| 14861 | |
| 14862 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14863 | 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] | 14864 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14866 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14867 | lt_cv_prog_compiler_c_o=no |
| 14868 | $rm -r conftest 2>/dev/null |
| 14869 | mkdir conftest |
| 14870 | cd conftest |
| 14871 | mkdir out |
| 14872 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14873 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14874 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14875 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14876 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14877 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14878 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14879 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14880 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14881 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14882 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 14883 | (eval echo "\"\$as_me:14883: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14884 | (eval "$lt_compile" 2>out/conftest.err) |
| 14885 | ac_status=$? |
| 14886 | cat out/conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 14887 | echo "$as_me:14887: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14888 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14889 | then |
| 14890 | # The compiler can only warn and ignore the option if not recognized |
| 14891 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14892 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14893 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14894 | 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] | 14895 | lt_cv_prog_compiler_c_o=yes |
| 14896 | fi |
| 14897 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14898 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14899 | $rm conftest* |
| 14900 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14901 | # template instantiation |
| 14902 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14903 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14904 | cd .. |
| 14905 | rmdir conftest |
| 14906 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14907 | |
| 14908 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14909 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14910 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14911 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14912 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14913 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14914 | 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] | 14915 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14916 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14917 | 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] | 14918 | hard_links=yes |
| 14919 | $rm conftest* |
| 14920 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14921 | touch conftest.a |
| 14922 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14923 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14924 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14925 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14926 | if test "$hard_links" = no; then |
| 14927 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14928 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14929 | need_locks=warn |
| 14930 | fi |
| 14931 | else |
| 14932 | need_locks=no |
| 14933 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14935 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14936 | 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] | 14937 | |
| 14938 | runpath_var= |
| 14939 | allow_undefined_flag= |
| 14940 | enable_shared_with_static_runtimes=no |
| 14941 | archive_cmds= |
| 14942 | archive_expsym_cmds= |
| 14943 | old_archive_From_new_cmds= |
| 14944 | old_archive_from_expsyms_cmds= |
| 14945 | export_dynamic_flag_spec= |
| 14946 | whole_archive_flag_spec= |
| 14947 | thread_safe_flag_spec= |
| 14948 | hardcode_libdir_flag_spec= |
| 14949 | hardcode_libdir_flag_spec_ld= |
| 14950 | hardcode_libdir_separator= |
| 14951 | hardcode_direct=no |
| 14952 | hardcode_minus_L=no |
| 14953 | hardcode_shlibpath_var=unsupported |
| 14954 | link_all_deplibs=unknown |
| 14955 | hardcode_automatic=no |
| 14956 | module_cmds= |
| 14957 | module_expsym_cmds= |
| 14958 | always_export_symbols=no |
| 14959 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14960 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14961 | # included in the symbol list |
| 14962 | include_expsyms= |
| 14963 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14964 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14965 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14966 | # as well as any symbol that contains `d'. |
| 14967 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 14968 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14969 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14970 | # the symbol is explicitly referenced. Since portable code cannot |
| 14971 | # rely on this symbol name, it's probably fine to never include it in |
| 14972 | # preloaded symbol tables. |
| 14973 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14974 | # Just being paranoid about ensuring that cc_basename is set. |
| 14975 | for cc_temp in $compiler""; do |
| 14976 | case $cc_temp in |
| 14977 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14978 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14979 | \-*) ;; |
| 14980 | *) break;; |
| 14981 | esac |
| 14982 | done |
| 14983 | 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] | 14984 | |
| 14985 | case $host_os in |
| 14986 | cygwin* | mingw* | pw32*) |
| 14987 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14988 | # When not using gcc, we currently assume that we are using |
| 14989 | # Microsoft Visual C++. |
| 14990 | if test "$GCC" != yes; then |
| 14991 | with_gnu_ld=no |
| 14992 | fi |
| 14993 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14994 | interix*) |
| 14995 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14996 | with_gnu_ld=yes |
| 14997 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14998 | openbsd*) |
| 14999 | with_gnu_ld=no |
| 15000 | ;; |
| 15001 | esac |
| 15002 | |
| 15003 | ld_shlibs=yes |
| 15004 | if test "$with_gnu_ld" = yes; then |
| 15005 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15006 | wlarc='${wl}' |
| 15007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15008 | # Set some defaults for GNU ld with shared library support. These |
| 15009 | # are reset later if shared libraries are not supported. Putting them |
| 15010 | # here allows them to be overridden if necessary. |
| 15011 | runpath_var=LD_RUN_PATH |
| 15012 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 15013 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 15014 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15015 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15016 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15017 | else |
| 15018 | whole_archive_flag_spec= |
| 15019 | fi |
| 15020 | supports_anon_versioning=no |
| 15021 | case `$LD -v 2>/dev/null` in |
| 15022 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15023 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15024 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15025 | *\ 2.11.*) ;; # other 2.11 versions |
| 15026 | *) supports_anon_versioning=yes ;; |
| 15027 | esac |
| 15028 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15029 | # See if GNU ld supports shared libraries. |
| 15030 | case $host_os in |
| 15031 | aix3* | aix4* | aix5*) |
| 15032 | # On AIX/PPC, the GNU linker is very broken |
| 15033 | if test "$host_cpu" != ia64; then |
| 15034 | ld_shlibs=no |
| 15035 | cat <<EOF 1>&2 |
| 15036 | |
| 15037 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15038 | *** to be unable to reliably create shared libraries on AIX. |
| 15039 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15040 | *** really care for shared libraries, you may want to modify your PATH |
| 15041 | *** so that a non-GNU linker is found, and then restart. |
| 15042 | |
| 15043 | EOF |
| 15044 | fi |
| 15045 | ;; |
| 15046 | |
| 15047 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15048 | 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] | 15049 | hardcode_libdir_flag_spec='-L$libdir' |
| 15050 | hardcode_minus_L=yes |
| 15051 | |
| 15052 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15053 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15054 | # to version 4, is to share data among multiple programs linked |
| 15055 | # with the same dynamic library. Since this doesn't match the |
| 15056 | # behavior of shared libraries on other platforms, we can't use |
| 15057 | # them. |
| 15058 | ld_shlibs=no |
| 15059 | ;; |
| 15060 | |
| 15061 | beos*) |
| 15062 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15063 | allow_undefined_flag=unsupported |
| 15064 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15065 | # support --undefined. This deserves some investigation. FIXME |
| 15066 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15067 | else |
| 15068 | ld_shlibs=no |
| 15069 | fi |
| 15070 | ;; |
| 15071 | |
| 15072 | cygwin* | mingw* | pw32*) |
| 15073 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15074 | # as there is no search path for DLLs. |
| 15075 | hardcode_libdir_flag_spec='-L$libdir' |
| 15076 | allow_undefined_flag=unsupported |
| 15077 | always_export_symbols=no |
| 15078 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15079 | 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] | 15080 | |
| 15081 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15082 | 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] | 15083 | # If the export-symbols file already is a .def file (1st line |
| 15084 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15085 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15086 | cp $export_symbols $output_objdir/$soname.def; |
| 15087 | else |
| 15088 | echo EXPORTS > $output_objdir/$soname.def; |
| 15089 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15090 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15091 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15092 | else |
| 15093 | ld_shlibs=no |
| 15094 | fi |
| 15095 | ;; |
| 15096 | |
| 15097 | interix3*) |
| 15098 | hardcode_direct=no |
| 15099 | hardcode_shlibpath_var=no |
| 15100 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15101 | export_dynamic_flag_spec='${wl}-E' |
| 15102 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15103 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15104 | # default) and relocated if they conflict, which is a slow very memory |
| 15105 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15106 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15107 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15108 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15109 | 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' |
| 15110 | ;; |
| 15111 | |
| 15112 | linux*) |
| 15113 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15114 | tmp_addflag= |
| 15115 | case $cc_basename,$host_cpu in |
| 15116 | pgcc*) # Portland Group C compiler |
| 15117 | 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' |
| 15118 | tmp_addflag=' $pic_flag' |
| 15119 | ;; |
| 15120 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15121 | 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' |
| 15122 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15123 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15124 | tmp_addflag=' -i_dynamic' ;; |
| 15125 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15126 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15127 | ifc* | ifort*) # Intel Fortran compiler |
| 15128 | tmp_addflag=' -nofor_main' ;; |
| 15129 | esac |
| 15130 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15131 | |
| 15132 | if test $supports_anon_versioning = yes; then |
| 15133 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15134 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15135 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15136 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15137 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15138 | else |
| 15139 | ld_shlibs=no |
| 15140 | fi |
| 15141 | ;; |
| 15142 | |
| 15143 | netbsd*) |
| 15144 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15145 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15146 | wlarc= |
| 15147 | else |
| 15148 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15149 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15150 | fi |
| 15151 | ;; |
| 15152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15153 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15154 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15155 | ld_shlibs=no |
| 15156 | cat <<EOF 1>&2 |
| 15157 | |
| 15158 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15159 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15160 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15161 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15162 | *** your PATH or compiler configuration so that the native linker is |
| 15163 | *** used, and then restart. |
| 15164 | |
| 15165 | EOF |
| 15166 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15167 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15168 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15169 | else |
| 15170 | ld_shlibs=no |
| 15171 | fi |
| 15172 | ;; |
| 15173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15174 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15175 | case `$LD -v 2>&1` in |
| 15176 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15177 | ld_shlibs=no |
| 15178 | cat <<_LT_EOF 1>&2 |
| 15179 | |
| 15180 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15181 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15182 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15183 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15184 | *** your PATH or compiler configuration so that the native linker is |
| 15185 | *** used, and then restart. |
| 15186 | |
| 15187 | _LT_EOF |
| 15188 | ;; |
| 15189 | *) |
| 15190 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15191 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15192 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15193 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15194 | else |
| 15195 | ld_shlibs=no |
| 15196 | fi |
| 15197 | ;; |
| 15198 | esac |
| 15199 | ;; |
| 15200 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15201 | sunos4*) |
| 15202 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15203 | wlarc= |
| 15204 | hardcode_direct=yes |
| 15205 | hardcode_shlibpath_var=no |
| 15206 | ;; |
| 15207 | |
| 15208 | *) |
| 15209 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15210 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15211 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15212 | else |
| 15213 | ld_shlibs=no |
| 15214 | fi |
| 15215 | ;; |
| 15216 | esac |
| 15217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15218 | if test "$ld_shlibs" = no; then |
| 15219 | runpath_var= |
| 15220 | hardcode_libdir_flag_spec= |
| 15221 | export_dynamic_flag_spec= |
| 15222 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15223 | fi |
| 15224 | else |
| 15225 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15226 | case $host_os in |
| 15227 | aix3*) |
| 15228 | allow_undefined_flag=unsupported |
| 15229 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15230 | 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] | 15231 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15232 | # are no directories specified by -L. |
| 15233 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15234 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15235 | # Neither direct hardcoding nor static linking is supported with a |
| 15236 | # broken collect2. |
| 15237 | hardcode_direct=unsupported |
| 15238 | fi |
| 15239 | ;; |
| 15240 | |
| 15241 | aix4* | aix5*) |
| 15242 | if test "$host_cpu" = ia64; then |
| 15243 | # On IA64, the linker does run time linking by default, so we don't |
| 15244 | # have to do anything special. |
| 15245 | aix_use_runtimelinking=no |
| 15246 | exp_sym_flag='-Bexport' |
| 15247 | no_entry_flag="" |
| 15248 | else |
| 15249 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15250 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15251 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15252 | 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' |
| 15253 | else |
| 15254 | 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' |
| 15255 | fi |
| 15256 | aix_use_runtimelinking=no |
| 15257 | |
| 15258 | # Test if we are trying to use run time linking or normal |
| 15259 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15260 | # need to do runtime linking. |
| 15261 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15262 | for ld_flag in $LDFLAGS; do |
| 15263 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15264 | aix_use_runtimelinking=yes |
| 15265 | break |
| 15266 | fi |
| 15267 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15268 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15269 | esac |
| 15270 | |
| 15271 | exp_sym_flag='-bexport' |
| 15272 | no_entry_flag='-bnoentry' |
| 15273 | fi |
| 15274 | |
| 15275 | # When large executables or shared objects are built, AIX ld can |
| 15276 | # have problems creating the table of contents. If linking a library |
| 15277 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15278 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15279 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15280 | |
| 15281 | archive_cmds='' |
| 15282 | hardcode_direct=yes |
| 15283 | hardcode_libdir_separator=':' |
| 15284 | link_all_deplibs=yes |
| 15285 | |
| 15286 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15287 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15288 | # We only want to do this on AIX 4.2 and lower, the check |
| 15289 | # below for broken collect2 doesn't work under 4.3+ |
| 15290 | collect2name=`${CC} -print-prog-name=collect2` |
| 15291 | if test -f "$collect2name" && \ |
| 15292 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15293 | then |
| 15294 | # We have reworked collect2 |
| 15295 | hardcode_direct=yes |
| 15296 | else |
| 15297 | # We have old collect2 |
| 15298 | hardcode_direct=unsupported |
| 15299 | # It fails to find uninstalled libraries when the uninstalled |
| 15300 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15301 | # to unsupported forces relinking |
| 15302 | hardcode_minus_L=yes |
| 15303 | hardcode_libdir_flag_spec='-L$libdir' |
| 15304 | hardcode_libdir_separator= |
| 15305 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15306 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15307 | esac |
| 15308 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15309 | if test "$aix_use_runtimelinking" = yes; then |
| 15310 | shared_flag="$shared_flag "'${wl}-G' |
| 15311 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15312 | else |
| 15313 | # not using gcc |
| 15314 | if test "$host_cpu" = ia64; then |
| 15315 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15316 | # chokes on -Wl,-G. The following line is correct: |
| 15317 | shared_flag='-G' |
| 15318 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15319 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15320 | shared_flag='${wl}-G' |
| 15321 | else |
| 15322 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15323 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15324 | fi |
| 15325 | fi |
| 15326 | |
| 15327 | # It seems that -bexpall does not export symbols beginning with |
| 15328 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15329 | always_export_symbols=yes |
| 15330 | if test "$aix_use_runtimelinking" = yes; then |
| 15331 | # Warning - without using the other runtime loading flags (-brtl), |
| 15332 | # -berok will link without error, but may produce a broken library. |
| 15333 | allow_undefined_flag='-berok' |
| 15334 | # Determine the default libpath from the value encoded in an empty executable. |
| 15335 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15336 | /* confdefs.h. */ |
| 15337 | _ACEOF |
| 15338 | cat confdefs.h >>conftest.$ac_ext |
| 15339 | cat >>conftest.$ac_ext <<_ACEOF |
| 15340 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15341 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15342 | int |
| 15343 | main () |
| 15344 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15345 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15346 | ; |
| 15347 | return 0; |
| 15348 | } |
| 15349 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15350 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15351 | if { (ac_try="$ac_link" |
| 15352 | case "(($ac_try" in |
| 15353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15354 | *) ac_try_echo=$ac_try;; |
| 15355 | esac |
| 15356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15357 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15358 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15360 | rm -f conftest.er1 |
| 15361 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15363 | (exit $ac_status); } && |
| 15364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15365 | { (case "(($ac_try" in |
| 15366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15367 | *) ac_try_echo=$ac_try;; |
| 15368 | esac |
| 15369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15370 | (eval "$ac_try") 2>&5 |
| 15371 | ac_status=$? |
| 15372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15373 | (exit $ac_status); }; } && |
| 15374 | { ac_try='test -s conftest$ac_exeext' |
| 15375 | { (case "(($ac_try" in |
| 15376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15377 | *) ac_try_echo=$ac_try;; |
| 15378 | esac |
| 15379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15380 | (eval "$ac_try") 2>&5 |
| 15381 | ac_status=$? |
| 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15383 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15384 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15385 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15386 | }'` |
| 15387 | # Check for a 64-bit object if we didn't find anything. |
| 15388 | 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; } |
| 15389 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15390 | else |
| 15391 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15394 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15395 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15396 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15397 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15398 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15399 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15400 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15401 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15402 | 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] | 15403 | else |
| 15404 | if test "$host_cpu" = ia64; then |
| 15405 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15406 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15407 | 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] | 15408 | else |
| 15409 | # Determine the default libpath from the value encoded in an empty executable. |
| 15410 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15411 | /* confdefs.h. */ |
| 15412 | _ACEOF |
| 15413 | cat confdefs.h >>conftest.$ac_ext |
| 15414 | cat >>conftest.$ac_ext <<_ACEOF |
| 15415 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15416 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15417 | int |
| 15418 | main () |
| 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 | ; |
| 15422 | return 0; |
| 15423 | } |
| 15424 | _ACEOF |
| 15425 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15426 | if { (ac_try="$ac_link" |
| 15427 | case "(($ac_try" in |
| 15428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15429 | *) ac_try_echo=$ac_try;; |
| 15430 | esac |
| 15431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15432 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15433 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15435 | rm -f conftest.er1 |
| 15436 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15438 | (exit $ac_status); } && |
| 15439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15440 | { (case "(($ac_try" in |
| 15441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15442 | *) ac_try_echo=$ac_try;; |
| 15443 | esac |
| 15444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15445 | (eval "$ac_try") 2>&5 |
| 15446 | ac_status=$? |
| 15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15448 | (exit $ac_status); }; } && |
| 15449 | { ac_try='test -s conftest$ac_exeext' |
| 15450 | { (case "(($ac_try" in |
| 15451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15452 | *) ac_try_echo=$ac_try;; |
| 15453 | esac |
| 15454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15455 | (eval "$ac_try") 2>&5 |
| 15456 | ac_status=$? |
| 15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15458 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15459 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15460 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15461 | }'` |
| 15462 | # Check for a 64-bit object if we didn't find anything. |
| 15463 | 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; } |
| 15464 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15465 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15466 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15469 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15471 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15472 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15473 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15474 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15475 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15476 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15477 | # Warning - without using the other run time loading flags, |
| 15478 | # -berok will link without error, but may produce a broken library. |
| 15479 | no_undefined_flag=' ${wl}-bernotok' |
| 15480 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15481 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15482 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15483 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15484 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15485 | 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] | 15486 | fi |
| 15487 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15488 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15489 | |
| 15490 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15491 | 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] | 15492 | hardcode_libdir_flag_spec='-L$libdir' |
| 15493 | hardcode_minus_L=yes |
| 15494 | # see comment about different semantics on the GNU ld section |
| 15495 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15496 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15497 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15498 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15499 | export_dynamic_flag_spec=-rdynamic |
| 15500 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15501 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15502 | cygwin* | mingw* | pw32*) |
| 15503 | # When not using gcc, we currently assume that we are using |
| 15504 | # Microsoft Visual C++. |
| 15505 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15506 | # no search path for DLLs. |
| 15507 | hardcode_libdir_flag_spec=' ' |
| 15508 | allow_undefined_flag=unsupported |
| 15509 | # Tell ltmain to make .lib files, not .a files. |
| 15510 | libext=lib |
| 15511 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15512 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15513 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15514 | 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] | 15515 | # The linker will automatically build a .lib file if we build a DLL. |
| 15516 | old_archive_From_new_cmds='true' |
| 15517 | # FIXME: Should let the user specify the lib program. |
| 15518 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15519 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15520 | enable_shared_with_static_runtimes=yes |
| 15521 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15522 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15523 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15524 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15525 | rhapsody* | darwin1.[012]) |
| 15526 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15527 | ;; |
| 15528 | *) # Darwin 1.3 on |
| 15529 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15530 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15531 | else |
| 15532 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15533 | 10.[012]) |
| 15534 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15535 | ;; |
| 15536 | 10.*) |
| 15537 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15538 | ;; |
| 15539 | esac |
| 15540 | fi |
| 15541 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15542 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15543 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15544 | hardcode_direct=no |
| 15545 | hardcode_automatic=yes |
| 15546 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15547 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15548 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15549 | if test "$GCC" = yes ; then |
| 15550 | output_verbose_link_cmd='echo' |
| 15551 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15552 | 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] | 15553 | # 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] | 15554 | 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}' |
| 15555 | 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] | 15556 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15557 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15558 | xlc*) |
| 15559 | output_verbose_link_cmd='echo' |
| 15560 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15561 | 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] | 15562 | # 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] | 15563 | 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}' |
| 15564 | 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] | 15565 | ;; |
| 15566 | *) |
| 15567 | ld_shlibs=no |
| 15568 | ;; |
| 15569 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15570 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15571 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15572 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15573 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15574 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15575 | hardcode_libdir_flag_spec='-L$libdir' |
| 15576 | hardcode_shlibpath_var=no |
| 15577 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15578 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15579 | freebsd1*) |
| 15580 | ld_shlibs=no |
| 15581 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15582 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15583 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15584 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15585 | # does not break anything, and helps significantly (at the cost of a little |
| 15586 | # extra space). |
| 15587 | freebsd2.2*) |
| 15588 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15589 | hardcode_libdir_flag_spec='-R$libdir' |
| 15590 | hardcode_direct=yes |
| 15591 | hardcode_shlibpath_var=no |
| 15592 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15593 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15594 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15595 | freebsd2*) |
| 15596 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15597 | hardcode_direct=yes |
| 15598 | hardcode_minus_L=yes |
| 15599 | hardcode_shlibpath_var=no |
| 15600 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15601 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15602 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15603 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15604 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15605 | hardcode_libdir_flag_spec='-R$libdir' |
| 15606 | hardcode_direct=yes |
| 15607 | hardcode_shlibpath_var=no |
| 15608 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15609 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15610 | hpux9*) |
| 15611 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15612 | 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] | 15613 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15614 | 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] | 15615 | fi |
| 15616 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15617 | hardcode_libdir_separator=: |
| 15618 | hardcode_direct=yes |
| 15619 | |
| 15620 | # hardcode_minus_L: Not really in the search PATH, |
| 15621 | # but as the default location of the library. |
| 15622 | hardcode_minus_L=yes |
| 15623 | export_dynamic_flag_spec='${wl}-E' |
| 15624 | ;; |
| 15625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15626 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15627 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15628 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15629 | else |
| 15630 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15631 | fi |
| 15632 | if test "$with_gnu_ld" = no; then |
| 15633 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15634 | hardcode_libdir_separator=: |
| 15635 | |
| 15636 | hardcode_direct=yes |
| 15637 | export_dynamic_flag_spec='${wl}-E' |
| 15638 | |
| 15639 | # hardcode_minus_L: Not really in the search PATH, |
| 15640 | # but as the default location of the library. |
| 15641 | hardcode_minus_L=yes |
| 15642 | fi |
| 15643 | ;; |
| 15644 | |
| 15645 | hpux11*) |
| 15646 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15647 | case $host_cpu in |
| 15648 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15649 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15650 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15651 | ia64*) |
| 15652 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15653 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15654 | *) |
| 15655 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15656 | ;; |
| 15657 | esac |
| 15658 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15659 | case $host_cpu in |
| 15660 | hppa*64*) |
| 15661 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15662 | ;; |
| 15663 | ia64*) |
| 15664 | 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] | 15665 | ;; |
| 15666 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15667 | 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] | 15668 | ;; |
| 15669 | esac |
| 15670 | fi |
| 15671 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15672 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15673 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15674 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15675 | case $host_cpu in |
| 15676 | hppa*64*|ia64*) |
| 15677 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15678 | hardcode_direct=no |
| 15679 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15680 | ;; |
| 15681 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15682 | hardcode_direct=yes |
| 15683 | export_dynamic_flag_spec='${wl}-E' |
| 15684 | |
| 15685 | # hardcode_minus_L: Not really in the search PATH, |
| 15686 | # but as the default location of the library. |
| 15687 | hardcode_minus_L=yes |
| 15688 | ;; |
| 15689 | esac |
| 15690 | fi |
| 15691 | ;; |
| 15692 | |
| 15693 | irix5* | irix6* | nonstopux*) |
| 15694 | if test "$GCC" = yes; then |
| 15695 | 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' |
| 15696 | else |
| 15697 | 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' |
| 15698 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15699 | fi |
| 15700 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15701 | hardcode_libdir_separator=: |
| 15702 | link_all_deplibs=yes |
| 15703 | ;; |
| 15704 | |
| 15705 | netbsd*) |
| 15706 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15707 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15708 | else |
| 15709 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15710 | fi |
| 15711 | hardcode_libdir_flag_spec='-R$libdir' |
| 15712 | hardcode_direct=yes |
| 15713 | hardcode_shlibpath_var=no |
| 15714 | ;; |
| 15715 | |
| 15716 | newsos6) |
| 15717 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15718 | hardcode_direct=yes |
| 15719 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15720 | hardcode_libdir_separator=: |
| 15721 | hardcode_shlibpath_var=no |
| 15722 | ;; |
| 15723 | |
| 15724 | openbsd*) |
| 15725 | hardcode_direct=yes |
| 15726 | hardcode_shlibpath_var=no |
| 15727 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15728 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15729 | 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] | 15730 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15731 | export_dynamic_flag_spec='${wl}-E' |
| 15732 | else |
| 15733 | case $host_os in |
| 15734 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15735 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15736 | hardcode_libdir_flag_spec='-R$libdir' |
| 15737 | ;; |
| 15738 | *) |
| 15739 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15740 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15741 | ;; |
| 15742 | esac |
| 15743 | fi |
| 15744 | ;; |
| 15745 | |
| 15746 | os2*) |
| 15747 | hardcode_libdir_flag_spec='-L$libdir' |
| 15748 | hardcode_minus_L=yes |
| 15749 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15750 | 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] | 15751 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15752 | ;; |
| 15753 | |
| 15754 | osf3*) |
| 15755 | if test "$GCC" = yes; then |
| 15756 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15757 | 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' |
| 15758 | else |
| 15759 | allow_undefined_flag=' -expect_unresolved \*' |
| 15760 | 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' |
| 15761 | fi |
| 15762 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15763 | hardcode_libdir_separator=: |
| 15764 | ;; |
| 15765 | |
| 15766 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15767 | if test "$GCC" = yes; then |
| 15768 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15769 | 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' |
| 15770 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15771 | else |
| 15772 | allow_undefined_flag=' -expect_unresolved \*' |
| 15773 | 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] | 15774 | 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] | 15775 | $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] | 15776 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15777 | # Both c and cxx compiler support -rpath directly |
| 15778 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15779 | fi |
| 15780 | hardcode_libdir_separator=: |
| 15781 | ;; |
| 15782 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15783 | solaris*) |
| 15784 | no_undefined_flag=' -z text' |
| 15785 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15786 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15787 | 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] | 15788 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15789 | $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] | 15790 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15791 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15792 | 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] | 15793 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15794 | $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] | 15795 | fi |
| 15796 | hardcode_libdir_flag_spec='-R$libdir' |
| 15797 | hardcode_shlibpath_var=no |
| 15798 | case $host_os in |
| 15799 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15800 | *) |
| 15801 | # The compiler driver will combine linker options so we |
| 15802 | # cannot just pass the convience library names through |
| 15803 | # without $wl, iff we do not link with $LD. |
| 15804 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15805 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15806 | case $wlarc in |
| 15807 | '') |
| 15808 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15809 | *) |
| 15810 | 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' ;; |
| 15811 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15812 | esac |
| 15813 | link_all_deplibs=yes |
| 15814 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15815 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15816 | sunos4*) |
| 15817 | if test "x$host_vendor" = xsequent; then |
| 15818 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15819 | # files that make .init and .fini sections work. |
| 15820 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15821 | else |
| 15822 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15823 | fi |
| 15824 | hardcode_libdir_flag_spec='-L$libdir' |
| 15825 | hardcode_direct=yes |
| 15826 | hardcode_minus_L=yes |
| 15827 | hardcode_shlibpath_var=no |
| 15828 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15829 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15830 | sysv4) |
| 15831 | case $host_vendor in |
| 15832 | sni) |
| 15833 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15834 | hardcode_direct=yes # is this really true??? |
| 15835 | ;; |
| 15836 | siemens) |
| 15837 | ## LD is ld it makes a PLAMLIB |
| 15838 | ## CC just makes a GrossModule. |
| 15839 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15840 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15841 | hardcode_direct=no |
| 15842 | ;; |
| 15843 | motorola) |
| 15844 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15845 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15846 | ;; |
| 15847 | esac |
| 15848 | runpath_var='LD_RUN_PATH' |
| 15849 | hardcode_shlibpath_var=no |
| 15850 | ;; |
| 15851 | |
| 15852 | sysv4.3*) |
| 15853 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15854 | hardcode_shlibpath_var=no |
| 15855 | export_dynamic_flag_spec='-Bexport' |
| 15856 | ;; |
| 15857 | |
| 15858 | sysv4*MP*) |
| 15859 | if test -d /usr/nec; then |
| 15860 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15861 | hardcode_shlibpath_var=no |
| 15862 | runpath_var=LD_RUN_PATH |
| 15863 | hardcode_runpath_var=yes |
| 15864 | ld_shlibs=yes |
| 15865 | fi |
| 15866 | ;; |
| 15867 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15868 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15869 | no_undefined_flag='${wl}-z,text' |
| 15870 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15871 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15872 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15873 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15874 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15875 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15876 | 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] | 15877 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15878 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15879 | 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] | 15880 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15881 | ;; |
| 15882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15883 | sysv5* | sco3.2v5* | sco5v6*) |
| 15884 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15885 | # link with -lc, and that would cause any symbols used from libc to |
| 15886 | # always be unresolved, which means just about no library would |
| 15887 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15888 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15889 | # as -z defs. |
| 15890 | no_undefined_flag='${wl}-z,text' |
| 15891 | allow_undefined_flag='${wl}-z,nodefs' |
| 15892 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15893 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15894 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15895 | hardcode_libdir_separator=':' |
| 15896 | link_all_deplibs=yes |
| 15897 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15898 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15899 | |
| 15900 | if test "$GCC" = yes; then |
| 15901 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15902 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15903 | else |
| 15904 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15905 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15906 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15907 | ;; |
| 15908 | |
| 15909 | uts4*) |
| 15910 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15911 | hardcode_libdir_flag_spec='-L$libdir' |
| 15912 | hardcode_shlibpath_var=no |
| 15913 | ;; |
| 15914 | |
| 15915 | *) |
| 15916 | ld_shlibs=no |
| 15917 | ;; |
| 15918 | esac |
| 15919 | fi |
| 15920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15921 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 15922 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15923 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15924 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15925 | # |
| 15926 | # Do we need to explicitly link libc? |
| 15927 | # |
| 15928 | case "x$archive_cmds_need_lc" in |
| 15929 | x|xyes) |
| 15930 | # Assume -lc should be added |
| 15931 | archive_cmds_need_lc=yes |
| 15932 | |
| 15933 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15934 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15935 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15936 | # FIXME: we may have to deal with multi-command sequences. |
| 15937 | ;; |
| 15938 | '$CC '*) |
| 15939 | # Test whether the compiler implicitly links with -lc since on some |
| 15940 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15941 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15942 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15943 | 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] | 15944 | $rm conftest* |
| 15945 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15946 | |
| 15947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15948 | (eval $ac_compile) 2>&5 |
| 15949 | ac_status=$? |
| 15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15951 | (exit $ac_status); } 2>conftest.err; then |
| 15952 | soname=conftest |
| 15953 | lib=conftest |
| 15954 | libobjs=conftest.$ac_objext |
| 15955 | deplibs= |
| 15956 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15957 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15958 | compiler_flags=-v |
| 15959 | linker_flags=-v |
| 15960 | verstring= |
| 15961 | output_objdir=. |
| 15962 | libname=conftest |
| 15963 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15964 | allow_undefined_flag= |
| 15965 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15966 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15967 | ac_status=$? |
| 15968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15969 | (exit $ac_status); } |
| 15970 | then |
| 15971 | archive_cmds_need_lc=no |
| 15972 | else |
| 15973 | archive_cmds_need_lc=yes |
| 15974 | fi |
| 15975 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15976 | else |
| 15977 | cat conftest.err 1>&5 |
| 15978 | fi |
| 15979 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15980 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 15981 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15982 | ;; |
| 15983 | esac |
| 15984 | fi |
| 15985 | ;; |
| 15986 | esac |
| 15987 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15988 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15989 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15990 | library_names_spec= |
| 15991 | libname_spec='lib$name' |
| 15992 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15993 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15994 | postinstall_cmds= |
| 15995 | postuninstall_cmds= |
| 15996 | finish_cmds= |
| 15997 | finish_eval= |
| 15998 | shlibpath_var= |
| 15999 | shlibpath_overrides_runpath=unknown |
| 16000 | version_type=none |
| 16001 | dynamic_linker="$host_os ld.so" |
| 16002 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16003 | if test "$GCC" = yes; then |
| 16004 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16005 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16006 | # if the path contains ";" then we assume it to be the separator |
| 16007 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16008 | # assumed that no part of a normal pathname contains ";" but that should |
| 16009 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16010 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16011 | else |
| 16012 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16013 | fi |
| 16014 | else |
| 16015 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16016 | fi |
| 16017 | need_lib_prefix=unknown |
| 16018 | hardcode_into_libs=no |
| 16019 | |
| 16020 | # when you set need_version to no, make sure it does not cause -set_version |
| 16021 | # flags to be left without arguments |
| 16022 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16023 | |
| 16024 | case $host_os in |
| 16025 | aix3*) |
| 16026 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16027 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16028 | shlibpath_var=LIBPATH |
| 16029 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16030 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16031 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16032 | ;; |
| 16033 | |
| 16034 | aix4* | aix5*) |
| 16035 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16036 | need_lib_prefix=no |
| 16037 | need_version=no |
| 16038 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16039 | if test "$host_cpu" = ia64; then |
| 16040 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16041 | 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] | 16042 | shlibpath_var=LD_LIBRARY_PATH |
| 16043 | else |
| 16044 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16045 | # for dependence libraries. The import file would start with |
| 16046 | # the line `#! .'. This would cause the generated library to |
| 16047 | # depend on `.', always an invalid library. This was fixed in |
| 16048 | # development snapshots of GCC prior to 3.0. |
| 16049 | case $host_os in |
| 16050 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16051 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16052 | echo ' yes ' |
| 16053 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16054 | : |
| 16055 | else |
| 16056 | can_build_shared=no |
| 16057 | fi |
| 16058 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16059 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16060 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16061 | # soname into executable. Probably we can add versioning support to |
| 16062 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16063 | if test "$aix_use_runtimelinking" = yes; then |
| 16064 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16065 | # instead of lib<name>.a to let people know that these are not |
| 16066 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16067 | 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] | 16068 | else |
| 16069 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16070 | # and later when we are not doing run time linking. |
| 16071 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16072 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16073 | fi |
| 16074 | shlibpath_var=LIBPATH |
| 16075 | fi |
| 16076 | ;; |
| 16077 | |
| 16078 | amigaos*) |
| 16079 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16080 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16081 | 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] | 16082 | ;; |
| 16083 | |
| 16084 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16085 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16086 | dynamic_linker="$host_os ld.so" |
| 16087 | shlibpath_var=LIBRARY_PATH |
| 16088 | ;; |
| 16089 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16090 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16091 | version_type=linux |
| 16092 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16094 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16095 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16096 | shlibpath_var=LD_LIBRARY_PATH |
| 16097 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16098 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16099 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16100 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16101 | # libtool to hard-code these into programs |
| 16102 | ;; |
| 16103 | |
| 16104 | cygwin* | mingw* | pw32*) |
| 16105 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16106 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16107 | need_version=no |
| 16108 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16109 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16110 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16111 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16112 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16113 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16114 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16115 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16116 | dldir=$destdir/`dirname \$dlpath`~ |
| 16117 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16118 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16119 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16120 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16121 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16122 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16123 | shlibpath_overrides_runpath=yes |
| 16124 | |
| 16125 | case $host_os in |
| 16126 | cygwin*) |
| 16127 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16128 | 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] | 16129 | 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] | 16130 | ;; |
| 16131 | mingw*) |
| 16132 | # MinGW DLLs use traditional 'lib' prefix |
| 16133 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16134 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16135 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16136 | # It is most probably a Windows format PATH printed by |
| 16137 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16138 | # path with ; separators, and with drive letters. We can handle the |
| 16139 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16140 | # especially as we might pass files found there to a mingw objdump, |
| 16141 | # which wouldn't understand a cygwinified path. Ahh. |
| 16142 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16143 | else |
| 16144 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16145 | fi |
| 16146 | ;; |
| 16147 | pw32*) |
| 16148 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16149 | 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] | 16150 | ;; |
| 16151 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16152 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16153 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16154 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16155 | 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] | 16156 | ;; |
| 16157 | esac |
| 16158 | dynamic_linker='Win32 ld.exe' |
| 16159 | # FIXME: first we should search . and the directory the executable is in |
| 16160 | shlibpath_var=PATH |
| 16161 | ;; |
| 16162 | |
| 16163 | darwin* | rhapsody*) |
| 16164 | dynamic_linker="$host_os dyld" |
| 16165 | version_type=darwin |
| 16166 | need_lib_prefix=no |
| 16167 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16168 | 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] | 16169 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16170 | shlibpath_overrides_runpath=yes |
| 16171 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16172 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16173 | # 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] | 16174 | if test "$GCC" = yes; then |
| 16175 | 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"` |
| 16176 | else |
| 16177 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16178 | fi |
| 16179 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16180 | ;; |
| 16181 | |
| 16182 | dgux*) |
| 16183 | version_type=linux |
| 16184 | need_lib_prefix=no |
| 16185 | need_version=no |
| 16186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16187 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16188 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16189 | ;; |
| 16190 | |
| 16191 | freebsd1*) |
| 16192 | dynamic_linker=no |
| 16193 | ;; |
| 16194 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16195 | kfreebsd*-gnu) |
| 16196 | version_type=linux |
| 16197 | need_lib_prefix=no |
| 16198 | need_version=no |
| 16199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16200 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16201 | shlibpath_var=LD_LIBRARY_PATH |
| 16202 | shlibpath_overrides_runpath=no |
| 16203 | hardcode_into_libs=yes |
| 16204 | dynamic_linker='GNU ld.so' |
| 16205 | ;; |
| 16206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16207 | freebsd* | dragonfly*) |
| 16208 | # DragonFly does not have aout. When/if they implement a new |
| 16209 | # versioning mechanism, adjust this. |
| 16210 | if test -x /usr/bin/objformat; then |
| 16211 | objformat=`/usr/bin/objformat` |
| 16212 | else |
| 16213 | case $host_os in |
| 16214 | freebsd[123]*) objformat=aout ;; |
| 16215 | *) objformat=elf ;; |
| 16216 | esac |
| 16217 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16218 | version_type=freebsd-$objformat |
| 16219 | case $version_type in |
| 16220 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16221 | 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] | 16222 | need_version=no |
| 16223 | need_lib_prefix=no |
| 16224 | ;; |
| 16225 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16226 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16227 | need_version=yes |
| 16228 | ;; |
| 16229 | esac |
| 16230 | shlibpath_var=LD_LIBRARY_PATH |
| 16231 | case $host_os in |
| 16232 | freebsd2*) |
| 16233 | shlibpath_overrides_runpath=yes |
| 16234 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16235 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16236 | shlibpath_overrides_runpath=yes |
| 16237 | hardcode_into_libs=yes |
| 16238 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16239 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16240 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16241 | shlibpath_overrides_runpath=no |
| 16242 | hardcode_into_libs=yes |
| 16243 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16244 | freebsd*) # from 4.6 on |
| 16245 | shlibpath_overrides_runpath=yes |
| 16246 | hardcode_into_libs=yes |
| 16247 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16248 | esac |
| 16249 | ;; |
| 16250 | |
| 16251 | gnu*) |
| 16252 | version_type=linux |
| 16253 | need_lib_prefix=no |
| 16254 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16256 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16257 | shlibpath_var=LD_LIBRARY_PATH |
| 16258 | hardcode_into_libs=yes |
| 16259 | ;; |
| 16260 | |
| 16261 | hpux9* | hpux10* | hpux11*) |
| 16262 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16263 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16264 | version_type=sunos |
| 16265 | need_lib_prefix=no |
| 16266 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16267 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16268 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16269 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16270 | hardcode_into_libs=yes |
| 16271 | dynamic_linker="$host_os dld.so" |
| 16272 | shlibpath_var=LD_LIBRARY_PATH |
| 16273 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16275 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16276 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16277 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16278 | else |
| 16279 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16280 | fi |
| 16281 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16282 | ;; |
| 16283 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16284 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16285 | hardcode_into_libs=yes |
| 16286 | dynamic_linker="$host_os dld.sl" |
| 16287 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16288 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16290 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16291 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16292 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16293 | ;; |
| 16294 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16295 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16296 | dynamic_linker="$host_os dld.sl" |
| 16297 | shlibpath_var=SHLIB_PATH |
| 16298 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16300 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16301 | ;; |
| 16302 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16303 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16304 | postinstall_cmds='chmod 555 $lib' |
| 16305 | ;; |
| 16306 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16307 | interix3*) |
| 16308 | version_type=linux |
| 16309 | need_lib_prefix=no |
| 16310 | need_version=no |
| 16311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16312 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16313 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16314 | shlibpath_var=LD_LIBRARY_PATH |
| 16315 | shlibpath_overrides_runpath=no |
| 16316 | hardcode_into_libs=yes |
| 16317 | ;; |
| 16318 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16319 | irix5* | irix6* | nonstopux*) |
| 16320 | case $host_os in |
| 16321 | nonstopux*) version_type=nonstopux ;; |
| 16322 | *) |
| 16323 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16324 | version_type=linux |
| 16325 | else |
| 16326 | version_type=irix |
| 16327 | fi ;; |
| 16328 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16329 | need_lib_prefix=no |
| 16330 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16331 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16332 | 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] | 16333 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16334 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16335 | libsuff= shlibsuff= |
| 16336 | ;; |
| 16337 | *) |
| 16338 | 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] | 16339 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16340 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16341 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16342 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16343 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16344 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16345 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16346 | esac |
| 16347 | ;; |
| 16348 | esac |
| 16349 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16350 | shlibpath_overrides_runpath=no |
| 16351 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16352 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16353 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16354 | ;; |
| 16355 | |
| 16356 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16357 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16358 | dynamic_linker=no |
| 16359 | ;; |
| 16360 | |
| 16361 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16362 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16363 | version_type=linux |
| 16364 | need_lib_prefix=no |
| 16365 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16367 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16368 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16369 | shlibpath_var=LD_LIBRARY_PATH |
| 16370 | shlibpath_overrides_runpath=no |
| 16371 | # This implies no fast_install, which is unacceptable. |
| 16372 | # Some rework will be needed to allow for fast_install |
| 16373 | # before this can be enabled. |
| 16374 | hardcode_into_libs=yes |
| 16375 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16376 | # Append ld.so.conf contents to the search path |
| 16377 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16378 | 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] | 16379 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16380 | fi |
| 16381 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16382 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16383 | # powerpc, because MkLinux only supported shared libraries with the |
| 16384 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16385 | # most powerpc-linux boxes support dynamic linking these days and |
| 16386 | # people can always --disable-shared, the test was removed, and we |
| 16387 | # assume the GNU/Linux dynamic linker is in use. |
| 16388 | dynamic_linker='GNU/Linux ld.so' |
| 16389 | ;; |
| 16390 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16391 | knetbsd*-gnu) |
| 16392 | version_type=linux |
| 16393 | need_lib_prefix=no |
| 16394 | need_version=no |
| 16395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16396 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16397 | shlibpath_var=LD_LIBRARY_PATH |
| 16398 | shlibpath_overrides_runpath=no |
| 16399 | hardcode_into_libs=yes |
| 16400 | dynamic_linker='GNU ld.so' |
| 16401 | ;; |
| 16402 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16403 | netbsd*) |
| 16404 | version_type=sunos |
| 16405 | need_lib_prefix=no |
| 16406 | need_version=no |
| 16407 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16409 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16410 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16411 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16412 | 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] | 16413 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16414 | dynamic_linker='NetBSD ld.elf_so' |
| 16415 | fi |
| 16416 | shlibpath_var=LD_LIBRARY_PATH |
| 16417 | shlibpath_overrides_runpath=yes |
| 16418 | hardcode_into_libs=yes |
| 16419 | ;; |
| 16420 | |
| 16421 | newsos6) |
| 16422 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16424 | shlibpath_var=LD_LIBRARY_PATH |
| 16425 | shlibpath_overrides_runpath=yes |
| 16426 | ;; |
| 16427 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16428 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16429 | version_type=linux |
| 16430 | need_lib_prefix=no |
| 16431 | need_version=no |
| 16432 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16433 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16434 | shlibpath_var=LD_LIBRARY_PATH |
| 16435 | shlibpath_overrides_runpath=yes |
| 16436 | ;; |
| 16437 | |
| 16438 | openbsd*) |
| 16439 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16440 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16441 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16442 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16443 | case $host_os in |
| 16444 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16445 | *) need_version=no ;; |
| 16446 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16448 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16449 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16450 | 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] | 16451 | case $host_os in |
| 16452 | openbsd2.[89] | openbsd2.[89].*) |
| 16453 | shlibpath_overrides_runpath=no |
| 16454 | ;; |
| 16455 | *) |
| 16456 | shlibpath_overrides_runpath=yes |
| 16457 | ;; |
| 16458 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16459 | else |
| 16460 | shlibpath_overrides_runpath=yes |
| 16461 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16462 | ;; |
| 16463 | |
| 16464 | os2*) |
| 16465 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16466 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16467 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16468 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16469 | dynamic_linker='OS/2 ld.exe' |
| 16470 | shlibpath_var=LIBPATH |
| 16471 | ;; |
| 16472 | |
| 16473 | osf3* | osf4* | osf5*) |
| 16474 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16475 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16476 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16477 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16478 | 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] | 16479 | shlibpath_var=LD_LIBRARY_PATH |
| 16480 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16481 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16482 | ;; |
| 16483 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16484 | solaris*) |
| 16485 | version_type=linux |
| 16486 | need_lib_prefix=no |
| 16487 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16489 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16490 | shlibpath_var=LD_LIBRARY_PATH |
| 16491 | shlibpath_overrides_runpath=yes |
| 16492 | hardcode_into_libs=yes |
| 16493 | # ldd complains unless libraries are executable |
| 16494 | postinstall_cmds='chmod +x $lib' |
| 16495 | ;; |
| 16496 | |
| 16497 | sunos4*) |
| 16498 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16500 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16501 | shlibpath_var=LD_LIBRARY_PATH |
| 16502 | shlibpath_overrides_runpath=yes |
| 16503 | if test "$with_gnu_ld" = yes; then |
| 16504 | need_lib_prefix=no |
| 16505 | fi |
| 16506 | need_version=yes |
| 16507 | ;; |
| 16508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16509 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16510 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16512 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16513 | shlibpath_var=LD_LIBRARY_PATH |
| 16514 | case $host_vendor in |
| 16515 | sni) |
| 16516 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16517 | need_lib_prefix=no |
| 16518 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16519 | runpath_var=LD_RUN_PATH |
| 16520 | ;; |
| 16521 | siemens) |
| 16522 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16523 | ;; |
| 16524 | motorola) |
| 16525 | need_lib_prefix=no |
| 16526 | need_version=no |
| 16527 | shlibpath_overrides_runpath=no |
| 16528 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16529 | ;; |
| 16530 | esac |
| 16531 | ;; |
| 16532 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16533 | sysv4*MP*) |
| 16534 | if test -d /usr/nec ;then |
| 16535 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16536 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16537 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16538 | shlibpath_var=LD_LIBRARY_PATH |
| 16539 | fi |
| 16540 | ;; |
| 16541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16542 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16543 | version_type=freebsd-elf |
| 16544 | need_lib_prefix=no |
| 16545 | need_version=no |
| 16546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16547 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16548 | shlibpath_var=LD_LIBRARY_PATH |
| 16549 | hardcode_into_libs=yes |
| 16550 | if test "$with_gnu_ld" = yes; then |
| 16551 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16552 | shlibpath_overrides_runpath=no |
| 16553 | else |
| 16554 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16555 | shlibpath_overrides_runpath=yes |
| 16556 | case $host_os in |
| 16557 | sco3.2v5*) |
| 16558 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16559 | ;; |
| 16560 | esac |
| 16561 | fi |
| 16562 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16563 | ;; |
| 16564 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16565 | uts4*) |
| 16566 | version_type=linux |
| 16567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16568 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16569 | shlibpath_var=LD_LIBRARY_PATH |
| 16570 | ;; |
| 16571 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16572 | *) |
| 16573 | dynamic_linker=no |
| 16574 | ;; |
| 16575 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16576 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16577 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16578 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16580 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16581 | if test "$GCC" = yes; then |
| 16582 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16583 | fi |
| 16584 | |
| 16585 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16586 | 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] | 16587 | hardcode_action= |
| 16588 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16589 | test -n "$runpath_var" || \ |
| 16590 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16591 | |
| 16592 | # We can hardcode non-existant directories. |
| 16593 | if test "$hardcode_direct" != no && |
| 16594 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16595 | # have to relink, otherwise we might link with an installed library |
| 16596 | # when we should be linking with a yet-to-be-installed one |
| 16597 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16598 | test "$hardcode_minus_L" != no; then |
| 16599 | # Linking always hardcodes the temporary library directory. |
| 16600 | hardcode_action=relink |
| 16601 | else |
| 16602 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16603 | hardcode_action=immediate |
| 16604 | fi |
| 16605 | else |
| 16606 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16607 | # directories. |
| 16608 | hardcode_action=unsupported |
| 16609 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16610 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16611 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16612 | |
| 16613 | if test "$hardcode_action" = relink; then |
| 16614 | # Fast installation is not supported |
| 16615 | enable_fast_install=no |
| 16616 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16617 | test "$enable_shared" = no; then |
| 16618 | # Fast installation is not necessary |
| 16619 | enable_fast_install=needless |
| 16620 | fi |
| 16621 | |
| 16622 | striplib= |
| 16623 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16624 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16625 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16626 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16627 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16628 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16629 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16630 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16631 | else |
| 16632 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16633 | case $host_os in |
| 16634 | darwin*) |
| 16635 | if test -n "$STRIP" ; then |
| 16636 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16637 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16638 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16639 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16640 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16641 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16642 | fi |
| 16643 | ;; |
| 16644 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16645 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16646 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16647 | ;; |
| 16648 | esac |
| 16649 | fi |
| 16650 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16651 | if test "x$enable_dlopen" != xyes; then |
| 16652 | enable_dlopen=unknown |
| 16653 | enable_dlopen_self=unknown |
| 16654 | enable_dlopen_self_static=unknown |
| 16655 | else |
| 16656 | lt_cv_dlopen=no |
| 16657 | lt_cv_dlopen_libs= |
| 16658 | |
| 16659 | case $host_os in |
| 16660 | beos*) |
| 16661 | lt_cv_dlopen="load_add_on" |
| 16662 | lt_cv_dlopen_libs= |
| 16663 | lt_cv_dlopen_self=yes |
| 16664 | ;; |
| 16665 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16666 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16667 | lt_cv_dlopen="LoadLibrary" |
| 16668 | lt_cv_dlopen_libs= |
| 16669 | ;; |
| 16670 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16671 | cygwin*) |
| 16672 | lt_cv_dlopen="dlopen" |
| 16673 | lt_cv_dlopen_libs= |
| 16674 | ;; |
| 16675 | |
| 16676 | darwin*) |
| 16677 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16678 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16679 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16680 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16682 | else |
| 16683 | ac_check_lib_save_LIBS=$LIBS |
| 16684 | LIBS="-ldl $LIBS" |
| 16685 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16686 | /* confdefs.h. */ |
| 16687 | _ACEOF |
| 16688 | cat confdefs.h >>conftest.$ac_ext |
| 16689 | cat >>conftest.$ac_ext <<_ACEOF |
| 16690 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16692 | /* Override any GCC internal prototype to avoid an error. |
| 16693 | Use char because int might match the return type of a GCC |
| 16694 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16695 | #ifdef __cplusplus |
| 16696 | extern "C" |
| 16697 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16698 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16699 | int |
| 16700 | main () |
| 16701 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16702 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16703 | ; |
| 16704 | return 0; |
| 16705 | } |
| 16706 | _ACEOF |
| 16707 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16708 | if { (ac_try="$ac_link" |
| 16709 | case "(($ac_try" in |
| 16710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16711 | *) ac_try_echo=$ac_try;; |
| 16712 | esac |
| 16713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16714 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16715 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16717 | rm -f conftest.er1 |
| 16718 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16720 | (exit $ac_status); } && |
| 16721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16722 | { (case "(($ac_try" in |
| 16723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16724 | *) ac_try_echo=$ac_try;; |
| 16725 | esac |
| 16726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16727 | (eval "$ac_try") 2>&5 |
| 16728 | ac_status=$? |
| 16729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16730 | (exit $ac_status); }; } && |
| 16731 | { ac_try='test -s conftest$ac_exeext' |
| 16732 | { (case "(($ac_try" in |
| 16733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16734 | *) ac_try_echo=$ac_try;; |
| 16735 | esac |
| 16736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16737 | (eval "$ac_try") 2>&5 |
| 16738 | ac_status=$? |
| 16739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16740 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16741 | ac_cv_lib_dl_dlopen=yes |
| 16742 | else |
| 16743 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16746 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16747 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16748 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16749 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16750 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16751 | LIBS=$ac_check_lib_save_LIBS |
| 16752 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16753 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16754 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16755 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16756 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16757 | else |
| 16758 | |
| 16759 | lt_cv_dlopen="dyld" |
| 16760 | lt_cv_dlopen_libs= |
| 16761 | lt_cv_dlopen_self=yes |
| 16762 | |
| 16763 | fi |
| 16764 | |
| 16765 | ;; |
| 16766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16767 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16768 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16769 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16770 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16772 | else |
| 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. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16779 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16780 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16781 | #define shl_load innocuous_shl_load |
| 16782 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16783 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16784 | which can conflict with char shl_load (); below. |
| 16785 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16786 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16787 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16788 | #ifdef __STDC__ |
| 16789 | # include <limits.h> |
| 16790 | #else |
| 16791 | # include <assert.h> |
| 16792 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16793 | |
| 16794 | #undef shl_load |
| 16795 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16796 | /* Override any GCC internal prototype to avoid an error. |
| 16797 | Use char because int might match the return type of a GCC |
| 16798 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16799 | #ifdef __cplusplus |
| 16800 | extern "C" |
| 16801 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16802 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16803 | /* The GNU C library defines this for functions which it implements |
| 16804 | to always fail with ENOSYS. Some functions are actually named |
| 16805 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16806 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16807 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16808 | #endif |
| 16809 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16810 | int |
| 16811 | main () |
| 16812 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16813 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16814 | ; |
| 16815 | return 0; |
| 16816 | } |
| 16817 | _ACEOF |
| 16818 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16819 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16826 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16828 | rm -f conftest.er1 |
| 16829 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16831 | (exit $ac_status); } && |
| 16832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16833 | { (case "(($ac_try" in |
| 16834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16835 | *) ac_try_echo=$ac_try;; |
| 16836 | esac |
| 16837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16838 | (eval "$ac_try") 2>&5 |
| 16839 | ac_status=$? |
| 16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16841 | (exit $ac_status); }; } && |
| 16842 | { ac_try='test -s conftest$ac_exeext' |
| 16843 | { (case "(($ac_try" in |
| 16844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16845 | *) ac_try_echo=$ac_try;; |
| 16846 | esac |
| 16847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16848 | (eval "$ac_try") 2>&5 |
| 16849 | ac_status=$? |
| 16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16851 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16852 | ac_cv_func_shl_load=yes |
| 16853 | else |
| 16854 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16857 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16858 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16859 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16860 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16861 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16862 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16863 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16864 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16865 | if test $ac_cv_func_shl_load = yes; then |
| 16866 | lt_cv_dlopen="shl_load" |
| 16867 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16868 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16869 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16870 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16872 | else |
| 16873 | ac_check_lib_save_LIBS=$LIBS |
| 16874 | LIBS="-ldld $LIBS" |
| 16875 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16876 | /* confdefs.h. */ |
| 16877 | _ACEOF |
| 16878 | cat confdefs.h >>conftest.$ac_ext |
| 16879 | cat >>conftest.$ac_ext <<_ACEOF |
| 16880 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16882 | /* Override any GCC internal prototype to avoid an error. |
| 16883 | Use char because int might match the return type of a GCC |
| 16884 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16885 | #ifdef __cplusplus |
| 16886 | extern "C" |
| 16887 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16888 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16889 | int |
| 16890 | main () |
| 16891 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16892 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16893 | ; |
| 16894 | return 0; |
| 16895 | } |
| 16896 | _ACEOF |
| 16897 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16898 | if { (ac_try="$ac_link" |
| 16899 | case "(($ac_try" in |
| 16900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16901 | *) ac_try_echo=$ac_try;; |
| 16902 | esac |
| 16903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16904 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16905 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16907 | rm -f conftest.er1 |
| 16908 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16910 | (exit $ac_status); } && |
| 16911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16912 | { (case "(($ac_try" in |
| 16913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16914 | *) ac_try_echo=$ac_try;; |
| 16915 | esac |
| 16916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16917 | (eval "$ac_try") 2>&5 |
| 16918 | ac_status=$? |
| 16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16920 | (exit $ac_status); }; } && |
| 16921 | { ac_try='test -s conftest$ac_exeext' |
| 16922 | { (case "(($ac_try" in |
| 16923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16924 | *) ac_try_echo=$ac_try;; |
| 16925 | esac |
| 16926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16927 | (eval "$ac_try") 2>&5 |
| 16928 | ac_status=$? |
| 16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16930 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16931 | ac_cv_lib_dld_shl_load=yes |
| 16932 | else |
| 16933 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16935 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16936 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16937 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16938 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16939 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16940 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16941 | LIBS=$ac_check_lib_save_LIBS |
| 16942 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16943 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16944 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16945 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16946 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16947 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16948 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16949 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16950 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16952 | else |
| 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. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16959 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16960 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16961 | #define dlopen innocuous_dlopen |
| 16962 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16963 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16964 | which can conflict with char dlopen (); below. |
| 16965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16966 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16967 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16968 | #ifdef __STDC__ |
| 16969 | # include <limits.h> |
| 16970 | #else |
| 16971 | # include <assert.h> |
| 16972 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16973 | |
| 16974 | #undef dlopen |
| 16975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16976 | /* Override any GCC internal prototype to avoid an error. |
| 16977 | Use char because int might match the return type of a GCC |
| 16978 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16979 | #ifdef __cplusplus |
| 16980 | extern "C" |
| 16981 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16982 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16983 | /* The GNU C library defines this for functions which it implements |
| 16984 | to always fail with ENOSYS. Some functions are actually named |
| 16985 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16986 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16987 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16988 | #endif |
| 16989 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16990 | int |
| 16991 | main () |
| 16992 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16993 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16994 | ; |
| 16995 | return 0; |
| 16996 | } |
| 16997 | _ACEOF |
| 16998 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16999 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17006 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17008 | rm -f conftest.er1 |
| 17009 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17011 | (exit $ac_status); } && |
| 17012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17013 | { (case "(($ac_try" in |
| 17014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17015 | *) ac_try_echo=$ac_try;; |
| 17016 | esac |
| 17017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17018 | (eval "$ac_try") 2>&5 |
| 17019 | ac_status=$? |
| 17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17021 | (exit $ac_status); }; } && |
| 17022 | { ac_try='test -s conftest$ac_exeext' |
| 17023 | { (case "(($ac_try" in |
| 17024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17025 | *) ac_try_echo=$ac_try;; |
| 17026 | esac |
| 17027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17028 | (eval "$ac_try") 2>&5 |
| 17029 | ac_status=$? |
| 17030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17031 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17032 | ac_cv_func_dlopen=yes |
| 17033 | else |
| 17034 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17036 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17037 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17038 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17039 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17040 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17041 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17042 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17043 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17044 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17045 | if test $ac_cv_func_dlopen = yes; then |
| 17046 | lt_cv_dlopen="dlopen" |
| 17047 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17048 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17049 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17050 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17052 | else |
| 17053 | ac_check_lib_save_LIBS=$LIBS |
| 17054 | LIBS="-ldl $LIBS" |
| 17055 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17056 | /* confdefs.h. */ |
| 17057 | _ACEOF |
| 17058 | cat confdefs.h >>conftest.$ac_ext |
| 17059 | cat >>conftest.$ac_ext <<_ACEOF |
| 17060 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17061 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17062 | /* Override any GCC internal prototype to avoid an error. |
| 17063 | Use char because int might match the return type of a GCC |
| 17064 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17065 | #ifdef __cplusplus |
| 17066 | extern "C" |
| 17067 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17068 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17069 | int |
| 17070 | main () |
| 17071 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17072 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17073 | ; |
| 17074 | return 0; |
| 17075 | } |
| 17076 | _ACEOF |
| 17077 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17078 | if { (ac_try="$ac_link" |
| 17079 | case "(($ac_try" in |
| 17080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17081 | *) ac_try_echo=$ac_try;; |
| 17082 | esac |
| 17083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17084 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17085 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17087 | rm -f conftest.er1 |
| 17088 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17090 | (exit $ac_status); } && |
| 17091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17092 | { (case "(($ac_try" in |
| 17093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17094 | *) ac_try_echo=$ac_try;; |
| 17095 | esac |
| 17096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17097 | (eval "$ac_try") 2>&5 |
| 17098 | ac_status=$? |
| 17099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17100 | (exit $ac_status); }; } && |
| 17101 | { ac_try='test -s conftest$ac_exeext' |
| 17102 | { (case "(($ac_try" in |
| 17103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17104 | *) ac_try_echo=$ac_try;; |
| 17105 | esac |
| 17106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17107 | (eval "$ac_try") 2>&5 |
| 17108 | ac_status=$? |
| 17109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17110 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17111 | ac_cv_lib_dl_dlopen=yes |
| 17112 | else |
| 17113 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17115 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17116 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17117 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17118 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17119 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17120 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17121 | LIBS=$ac_check_lib_save_LIBS |
| 17122 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17123 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17124 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17125 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17126 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17127 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17128 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17129 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17130 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17132 | else |
| 17133 | ac_check_lib_save_LIBS=$LIBS |
| 17134 | LIBS="-lsvld $LIBS" |
| 17135 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17136 | /* confdefs.h. */ |
| 17137 | _ACEOF |
| 17138 | cat confdefs.h >>conftest.$ac_ext |
| 17139 | cat >>conftest.$ac_ext <<_ACEOF |
| 17140 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17141 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17142 | /* Override any GCC internal prototype to avoid an error. |
| 17143 | Use char because int might match the return type of a GCC |
| 17144 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17145 | #ifdef __cplusplus |
| 17146 | extern "C" |
| 17147 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17148 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17149 | int |
| 17150 | main () |
| 17151 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17152 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17153 | ; |
| 17154 | return 0; |
| 17155 | } |
| 17156 | _ACEOF |
| 17157 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17158 | if { (ac_try="$ac_link" |
| 17159 | case "(($ac_try" in |
| 17160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17161 | *) ac_try_echo=$ac_try;; |
| 17162 | esac |
| 17163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17164 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17165 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17167 | rm -f conftest.er1 |
| 17168 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17170 | (exit $ac_status); } && |
| 17171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17172 | { (case "(($ac_try" in |
| 17173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17174 | *) ac_try_echo=$ac_try;; |
| 17175 | esac |
| 17176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17177 | (eval "$ac_try") 2>&5 |
| 17178 | ac_status=$? |
| 17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17180 | (exit $ac_status); }; } && |
| 17181 | { ac_try='test -s conftest$ac_exeext' |
| 17182 | { (case "(($ac_try" in |
| 17183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17184 | *) ac_try_echo=$ac_try;; |
| 17185 | esac |
| 17186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17187 | (eval "$ac_try") 2>&5 |
| 17188 | ac_status=$? |
| 17189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17190 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17191 | ac_cv_lib_svld_dlopen=yes |
| 17192 | else |
| 17193 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17195 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17196 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17197 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17198 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17199 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17200 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17201 | LIBS=$ac_check_lib_save_LIBS |
| 17202 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17203 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17204 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17205 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17206 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17207 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17208 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17209 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17210 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17212 | else |
| 17213 | ac_check_lib_save_LIBS=$LIBS |
| 17214 | LIBS="-ldld $LIBS" |
| 17215 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17216 | /* confdefs.h. */ |
| 17217 | _ACEOF |
| 17218 | cat confdefs.h >>conftest.$ac_ext |
| 17219 | cat >>conftest.$ac_ext <<_ACEOF |
| 17220 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17222 | /* Override any GCC internal prototype to avoid an error. |
| 17223 | Use char because int might match the return type of a GCC |
| 17224 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17225 | #ifdef __cplusplus |
| 17226 | extern "C" |
| 17227 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17228 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17229 | int |
| 17230 | main () |
| 17231 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17232 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17233 | ; |
| 17234 | return 0; |
| 17235 | } |
| 17236 | _ACEOF |
| 17237 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17238 | if { (ac_try="$ac_link" |
| 17239 | case "(($ac_try" in |
| 17240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17241 | *) ac_try_echo=$ac_try;; |
| 17242 | esac |
| 17243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17244 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17245 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17247 | rm -f conftest.er1 |
| 17248 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17250 | (exit $ac_status); } && |
| 17251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17252 | { (case "(($ac_try" in |
| 17253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17254 | *) ac_try_echo=$ac_try;; |
| 17255 | esac |
| 17256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17257 | (eval "$ac_try") 2>&5 |
| 17258 | ac_status=$? |
| 17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17260 | (exit $ac_status); }; } && |
| 17261 | { ac_try='test -s conftest$ac_exeext' |
| 17262 | { (case "(($ac_try" in |
| 17263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17264 | *) ac_try_echo=$ac_try;; |
| 17265 | esac |
| 17266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17267 | (eval "$ac_try") 2>&5 |
| 17268 | ac_status=$? |
| 17269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17270 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17271 | ac_cv_lib_dld_dld_link=yes |
| 17272 | else |
| 17273 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17275 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17276 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17277 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17278 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17279 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17280 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17281 | LIBS=$ac_check_lib_save_LIBS |
| 17282 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17283 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17284 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17285 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17286 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17287 | fi |
| 17288 | |
| 17289 | |
| 17290 | fi |
| 17291 | |
| 17292 | |
| 17293 | fi |
| 17294 | |
| 17295 | |
| 17296 | fi |
| 17297 | |
| 17298 | |
| 17299 | fi |
| 17300 | |
| 17301 | |
| 17302 | fi |
| 17303 | |
| 17304 | ;; |
| 17305 | esac |
| 17306 | |
| 17307 | if test "x$lt_cv_dlopen" != xno; then |
| 17308 | enable_dlopen=yes |
| 17309 | else |
| 17310 | enable_dlopen=no |
| 17311 | fi |
| 17312 | |
| 17313 | case $lt_cv_dlopen in |
| 17314 | dlopen) |
| 17315 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17316 | 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] | 17317 | |
| 17318 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17319 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17320 | |
| 17321 | save_LIBS="$LIBS" |
| 17322 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17324 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17325 | 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] | 17326 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17328 | else |
| 17329 | if test "$cross_compiling" = yes; then : |
| 17330 | lt_cv_dlopen_self=cross |
| 17331 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17332 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17333 | lt_status=$lt_dlunknown |
| 17334 | cat > conftest.$ac_ext <<EOF |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 17335 | #line 17335 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17336 | #include "confdefs.h" |
| 17337 | |
| 17338 | #if HAVE_DLFCN_H |
| 17339 | #include <dlfcn.h> |
| 17340 | #endif |
| 17341 | |
| 17342 | #include <stdio.h> |
| 17343 | |
| 17344 | #ifdef RTLD_GLOBAL |
| 17345 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17346 | #else |
| 17347 | # ifdef DL_GLOBAL |
| 17348 | # define LT_DLGLOBAL DL_GLOBAL |
| 17349 | # else |
| 17350 | # define LT_DLGLOBAL 0 |
| 17351 | # endif |
| 17352 | #endif |
| 17353 | |
| 17354 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17355 | find out it does not work in some platform. */ |
| 17356 | #ifndef LT_DLLAZY_OR_NOW |
| 17357 | # ifdef RTLD_LAZY |
| 17358 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17359 | # else |
| 17360 | # ifdef DL_LAZY |
| 17361 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17362 | # else |
| 17363 | # ifdef RTLD_NOW |
| 17364 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17365 | # else |
| 17366 | # ifdef DL_NOW |
| 17367 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17368 | # else |
| 17369 | # define LT_DLLAZY_OR_NOW 0 |
| 17370 | # endif |
| 17371 | # endif |
| 17372 | # endif |
| 17373 | # endif |
| 17374 | #endif |
| 17375 | |
| 17376 | #ifdef __cplusplus |
| 17377 | extern "C" void exit (int); |
| 17378 | #endif |
| 17379 | |
| 17380 | void fnord() { int i=42;} |
| 17381 | int main () |
| 17382 | { |
| 17383 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17384 | int status = $lt_dlunknown; |
| 17385 | |
| 17386 | if (self) |
| 17387 | { |
| 17388 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17389 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17390 | /* dlclose (self); */ |
| 17391 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17392 | else |
| 17393 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17394 | |
| 17395 | exit (status); |
| 17396 | } |
| 17397 | EOF |
| 17398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17399 | (eval $ac_link) 2>&5 |
| 17400 | ac_status=$? |
| 17401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17402 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17403 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17404 | lt_status=$? |
| 17405 | case x$lt_status in |
| 17406 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17407 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17408 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17409 | esac |
| 17410 | else : |
| 17411 | # compilation failed |
| 17412 | lt_cv_dlopen_self=no |
| 17413 | fi |
| 17414 | fi |
| 17415 | rm -fr conftest* |
| 17416 | |
| 17417 | |
| 17418 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17419 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17420 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17421 | |
| 17422 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17423 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17424 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17425 | 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] | 17426 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17428 | else |
| 17429 | if test "$cross_compiling" = yes; then : |
| 17430 | lt_cv_dlopen_self_static=cross |
| 17431 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17432 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17433 | lt_status=$lt_dlunknown |
| 17434 | cat > conftest.$ac_ext <<EOF |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 17435 | #line 17435 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17436 | #include "confdefs.h" |
| 17437 | |
| 17438 | #if HAVE_DLFCN_H |
| 17439 | #include <dlfcn.h> |
| 17440 | #endif |
| 17441 | |
| 17442 | #include <stdio.h> |
| 17443 | |
| 17444 | #ifdef RTLD_GLOBAL |
| 17445 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17446 | #else |
| 17447 | # ifdef DL_GLOBAL |
| 17448 | # define LT_DLGLOBAL DL_GLOBAL |
| 17449 | # else |
| 17450 | # define LT_DLGLOBAL 0 |
| 17451 | # endif |
| 17452 | #endif |
| 17453 | |
| 17454 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17455 | find out it does not work in some platform. */ |
| 17456 | #ifndef LT_DLLAZY_OR_NOW |
| 17457 | # ifdef RTLD_LAZY |
| 17458 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17459 | # else |
| 17460 | # ifdef DL_LAZY |
| 17461 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17462 | # else |
| 17463 | # ifdef RTLD_NOW |
| 17464 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17465 | # else |
| 17466 | # ifdef DL_NOW |
| 17467 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17468 | # else |
| 17469 | # define LT_DLLAZY_OR_NOW 0 |
| 17470 | # endif |
| 17471 | # endif |
| 17472 | # endif |
| 17473 | # endif |
| 17474 | #endif |
| 17475 | |
| 17476 | #ifdef __cplusplus |
| 17477 | extern "C" void exit (int); |
| 17478 | #endif |
| 17479 | |
| 17480 | void fnord() { int i=42;} |
| 17481 | int main () |
| 17482 | { |
| 17483 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17484 | int status = $lt_dlunknown; |
| 17485 | |
| 17486 | if (self) |
| 17487 | { |
| 17488 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17489 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17490 | /* dlclose (self); */ |
| 17491 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17492 | else |
| 17493 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17494 | |
| 17495 | exit (status); |
| 17496 | } |
| 17497 | EOF |
| 17498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17499 | (eval $ac_link) 2>&5 |
| 17500 | ac_status=$? |
| 17501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17502 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17503 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17504 | lt_status=$? |
| 17505 | case x$lt_status in |
| 17506 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17507 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17508 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17509 | esac |
| 17510 | else : |
| 17511 | # compilation failed |
| 17512 | lt_cv_dlopen_self_static=no |
| 17513 | fi |
| 17514 | fi |
| 17515 | rm -fr conftest* |
| 17516 | |
| 17517 | |
| 17518 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17519 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17520 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17521 | fi |
| 17522 | |
| 17523 | CPPFLAGS="$save_CPPFLAGS" |
| 17524 | LDFLAGS="$save_LDFLAGS" |
| 17525 | LIBS="$save_LIBS" |
| 17526 | ;; |
| 17527 | esac |
| 17528 | |
| 17529 | case $lt_cv_dlopen_self in |
| 17530 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17531 | *) enable_dlopen_self=unknown ;; |
| 17532 | esac |
| 17533 | |
| 17534 | case $lt_cv_dlopen_self_static in |
| 17535 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17536 | *) enable_dlopen_self_static=unknown ;; |
| 17537 | esac |
| 17538 | fi |
| 17539 | |
| 17540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17541 | # Report which library types will actually be built |
| 17542 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17543 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17544 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17545 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17547 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17548 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17549 | test "$can_build_shared" = "no" && enable_shared=no |
| 17550 | |
| 17551 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17552 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17553 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17554 | aix3*) |
| 17555 | test "$enable_shared" = yes && enable_static=no |
| 17556 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17557 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17558 | postinstall_cmds='$RANLIB $lib' |
| 17559 | fi |
| 17560 | ;; |
| 17561 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17562 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17563 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17564 | test "$enable_shared" = yes && enable_static=no |
| 17565 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17566 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17567 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17568 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17569 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17571 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17572 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17573 | # Make sure either enable_shared or enable_static is yes. |
| 17574 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17575 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17576 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17577 | |
| 17578 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17579 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17580 | # with your package, and you will get complaints that there are |
| 17581 | # no rules to generate ltmain.sh. |
| 17582 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17583 | # See if we are running on zsh, and set the options which allow our commands through |
| 17584 | # without removal of \ escapes. |
| 17585 | if test -n "${ZSH_VERSION+set}" ; then |
| 17586 | setopt NO_GLOB_SUBST |
| 17587 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17588 | # Now quote all the things that may contain metacharacters while being |
| 17589 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17590 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17591 | 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] | 17592 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17593 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17594 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17595 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17596 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17597 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17598 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17599 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17600 | compiler \ |
| 17601 | CC \ |
| 17602 | LD \ |
| 17603 | lt_prog_compiler_wl \ |
| 17604 | lt_prog_compiler_pic \ |
| 17605 | lt_prog_compiler_static \ |
| 17606 | lt_prog_compiler_no_builtin_flag \ |
| 17607 | export_dynamic_flag_spec \ |
| 17608 | thread_safe_flag_spec \ |
| 17609 | whole_archive_flag_spec \ |
| 17610 | enable_shared_with_static_runtimes \ |
| 17611 | old_archive_cmds \ |
| 17612 | old_archive_from_new_cmds \ |
| 17613 | predep_objects \ |
| 17614 | postdep_objects \ |
| 17615 | predeps \ |
| 17616 | postdeps \ |
| 17617 | compiler_lib_search_path \ |
| 17618 | archive_cmds \ |
| 17619 | archive_expsym_cmds \ |
| 17620 | postinstall_cmds \ |
| 17621 | postuninstall_cmds \ |
| 17622 | old_archive_from_expsyms_cmds \ |
| 17623 | allow_undefined_flag \ |
| 17624 | no_undefined_flag \ |
| 17625 | export_symbols_cmds \ |
| 17626 | hardcode_libdir_flag_spec \ |
| 17627 | hardcode_libdir_flag_spec_ld \ |
| 17628 | hardcode_libdir_separator \ |
| 17629 | hardcode_automatic \ |
| 17630 | module_cmds \ |
| 17631 | module_expsym_cmds \ |
| 17632 | lt_cv_prog_compiler_c_o \ |
| 17633 | exclude_expsyms \ |
| 17634 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17635 | |
| 17636 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17637 | old_archive_cmds | \ |
| 17638 | old_archive_from_new_cmds | \ |
| 17639 | archive_cmds | \ |
| 17640 | archive_expsym_cmds | \ |
| 17641 | module_cmds | \ |
| 17642 | module_expsym_cmds | \ |
| 17643 | old_archive_from_expsyms_cmds | \ |
| 17644 | export_symbols_cmds | \ |
| 17645 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17646 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17647 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17648 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17649 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17650 | 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] | 17651 | ;; |
| 17652 | *) |
| 17653 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17654 | ;; |
| 17655 | esac |
| 17656 | done |
| 17657 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17658 | case $lt_echo in |
| 17659 | *'\$0 --fallback-echo"') |
| 17660 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17661 | ;; |
| 17662 | esac |
| 17663 | |
| 17664 | cfgfile="${ofile}T" |
| 17665 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17666 | $rm -f "$cfgfile" |
| 17667 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17668 | echo "$as_me: creating $ofile" >&6;} |
| 17669 | |
| 17670 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17671 | #! $SHELL |
| 17672 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17673 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17674 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17675 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17676 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17677 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17678 | # Free Software Foundation, Inc. |
| 17679 | # |
| 17680 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17681 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17682 | # |
| 17683 | # This program is free software; you can redistribute it and/or modify |
| 17684 | # it under the terms of the GNU General Public License as published by |
| 17685 | # the Free Software Foundation; either version 2 of the License, or |
| 17686 | # (at your option) any later version. |
| 17687 | # |
| 17688 | # This program is distributed in the hope that it will be useful, but |
| 17689 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17690 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17691 | # General Public License for more details. |
| 17692 | # |
| 17693 | # You should have received a copy of the GNU General Public License |
| 17694 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17695 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17696 | # |
| 17697 | # As a special exception to the GNU General Public License, if you |
| 17698 | # distribute this file as part of a program that contains a |
| 17699 | # configuration script generated by Autoconf, you may include it under |
| 17700 | # the same distribution terms that you use for the rest of that program. |
| 17701 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17702 | # A sed program that does not truncate output. |
| 17703 | SED=$lt_SED |
| 17704 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17705 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17706 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17707 | |
| 17708 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17709 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17710 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17711 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17712 | # The names of the tagged configurations supported by this script. |
| 17713 | available_tags= |
| 17714 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17715 | # ### BEGIN LIBTOOL CONFIG |
| 17716 | |
| 17717 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17718 | |
| 17719 | # Shell to use when invoking shell scripts. |
| 17720 | SHELL=$lt_SHELL |
| 17721 | |
| 17722 | # Whether or not to build shared libraries. |
| 17723 | build_libtool_libs=$enable_shared |
| 17724 | |
| 17725 | # Whether or not to build static libraries. |
| 17726 | build_old_libs=$enable_static |
| 17727 | |
| 17728 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17729 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17730 | |
| 17731 | # Whether or not to disallow shared libs when runtime libs are static |
| 17732 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17733 | |
| 17734 | # Whether or not to optimize for fast installation. |
| 17735 | fast_install=$enable_fast_install |
| 17736 | |
| 17737 | # The host system. |
| 17738 | host_alias=$host_alias |
| 17739 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17740 | host_os=$host_os |
| 17741 | |
| 17742 | # The build system. |
| 17743 | build_alias=$build_alias |
| 17744 | build=$build |
| 17745 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17746 | |
| 17747 | # An echo program that does not interpret backslashes. |
| 17748 | echo=$lt_echo |
| 17749 | |
| 17750 | # The archiver. |
| 17751 | AR=$lt_AR |
| 17752 | AR_FLAGS=$lt_AR_FLAGS |
| 17753 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17754 | # A C compiler. |
| 17755 | LTCC=$lt_LTCC |
| 17756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17757 | # LTCC compiler flags. |
| 17758 | LTCFLAGS=$lt_LTCFLAGS |
| 17759 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17760 | # A language-specific compiler. |
| 17761 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17762 | |
| 17763 | # Is the compiler the GNU C compiler? |
| 17764 | with_gcc=$GCC |
| 17765 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17766 | # An ERE matcher. |
| 17767 | EGREP=$lt_EGREP |
| 17768 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17769 | # The linker used to build libraries. |
| 17770 | LD=$lt_LD |
| 17771 | |
| 17772 | # Whether we need hard or soft links. |
| 17773 | LN_S=$lt_LN_S |
| 17774 | |
| 17775 | # A BSD-compatible nm program. |
| 17776 | NM=$lt_NM |
| 17777 | |
| 17778 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17779 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17780 | |
| 17781 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17782 | MAGIC_CMD=$MAGIC_CMD |
| 17783 | |
| 17784 | # Used on cygwin: DLL creation program. |
| 17785 | DLLTOOL="$DLLTOOL" |
| 17786 | |
| 17787 | # Used on cygwin: object dumper. |
| 17788 | OBJDUMP="$OBJDUMP" |
| 17789 | |
| 17790 | # Used on cygwin: assembler. |
| 17791 | AS="$AS" |
| 17792 | |
| 17793 | # The name of the directory that contains temporary libtool files. |
| 17794 | objdir=$objdir |
| 17795 | |
| 17796 | # How to create reloadable object files. |
| 17797 | reload_flag=$lt_reload_flag |
| 17798 | reload_cmds=$lt_reload_cmds |
| 17799 | |
| 17800 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17801 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17802 | |
| 17803 | # Object file suffix (normally "o"). |
| 17804 | objext="$ac_objext" |
| 17805 | |
| 17806 | # Old archive suffix (normally "a"). |
| 17807 | libext="$libext" |
| 17808 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17809 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17810 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17811 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17812 | # Executable file suffix (normally ""). |
| 17813 | exeext="$exeext" |
| 17814 | |
| 17815 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17816 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17817 | pic_mode=$pic_mode |
| 17818 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17819 | # What is the maximum length of a command? |
| 17820 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17821 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17822 | # Does compiler simultaneously support -c and -o options? |
| 17823 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17824 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17825 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17826 | need_locks=$lt_need_locks |
| 17827 | |
| 17828 | # Do we need the lib prefix for modules? |
| 17829 | need_lib_prefix=$need_lib_prefix |
| 17830 | |
| 17831 | # Do we need a version for libraries? |
| 17832 | need_version=$need_version |
| 17833 | |
| 17834 | # Whether dlopen is supported. |
| 17835 | dlopen_support=$enable_dlopen |
| 17836 | |
| 17837 | # Whether dlopen of programs is supported. |
| 17838 | dlopen_self=$enable_dlopen_self |
| 17839 | |
| 17840 | # Whether dlopen of statically linked programs is supported. |
| 17841 | dlopen_self_static=$enable_dlopen_self_static |
| 17842 | |
| 17843 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17844 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17845 | |
| 17846 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17847 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17848 | |
| 17849 | # Compiler flag to allow reflexive dlopens. |
| 17850 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17851 | |
| 17852 | # Compiler flag to generate shared objects directly from archives. |
| 17853 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17854 | |
| 17855 | # Compiler flag to generate thread-safe objects. |
| 17856 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 17857 | |
| 17858 | # Library versioning type. |
| 17859 | version_type=$version_type |
| 17860 | |
| 17861 | # Format of library name prefix. |
| 17862 | libname_spec=$lt_libname_spec |
| 17863 | |
| 17864 | # List of archive names. First name is the real one, the rest are links. |
| 17865 | # The last name is the one that the linker finds with -lNAME. |
| 17866 | library_names_spec=$lt_library_names_spec |
| 17867 | |
| 17868 | # The coded name of the library, if different from the real name. |
| 17869 | soname_spec=$lt_soname_spec |
| 17870 | |
| 17871 | # Commands used to build and install an old-style archive. |
| 17872 | RANLIB=$lt_RANLIB |
| 17873 | old_archive_cmds=$lt_old_archive_cmds |
| 17874 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17875 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17876 | |
| 17877 | # Create an old-style archive from a shared archive. |
| 17878 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17879 | |
| 17880 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17881 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17882 | |
| 17883 | # Commands used to build and install a shared archive. |
| 17884 | archive_cmds=$lt_archive_cmds |
| 17885 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17886 | postinstall_cmds=$lt_postinstall_cmds |
| 17887 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17888 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17889 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17890 | module_cmds=$lt_module_cmds |
| 17891 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17893 | # Commands to strip libraries. |
| 17894 | old_striplib=$lt_old_striplib |
| 17895 | striplib=$lt_striplib |
| 17896 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17897 | # Dependencies to place before the objects being linked to create a |
| 17898 | # shared library. |
| 17899 | predep_objects=$lt_predep_objects |
| 17900 | |
| 17901 | # Dependencies to place after the objects being linked to create a |
| 17902 | # shared library. |
| 17903 | postdep_objects=$lt_postdep_objects |
| 17904 | |
| 17905 | # Dependencies to place before the objects being linked to create a |
| 17906 | # shared library. |
| 17907 | predeps=$lt_predeps |
| 17908 | |
| 17909 | # Dependencies to place after the objects being linked to create a |
| 17910 | # shared library. |
| 17911 | postdeps=$lt_postdeps |
| 17912 | |
| 17913 | # The library search path used internally by the compiler when linking |
| 17914 | # a shared library. |
| 17915 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17916 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17917 | # Method to check whether dependent libraries are shared objects. |
| 17918 | deplibs_check_method=$lt_deplibs_check_method |
| 17919 | |
| 17920 | # Command to use when deplibs_check_method == file_magic. |
| 17921 | file_magic_cmd=$lt_file_magic_cmd |
| 17922 | |
| 17923 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17924 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17925 | |
| 17926 | # Flag that forces no undefined symbols. |
| 17927 | no_undefined_flag=$lt_no_undefined_flag |
| 17928 | |
| 17929 | # Commands used to finish a libtool library installation in a directory. |
| 17930 | finish_cmds=$lt_finish_cmds |
| 17931 | |
| 17932 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17933 | finish_eval=$lt_finish_eval |
| 17934 | |
| 17935 | # 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] | 17936 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17937 | |
| 17938 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17939 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17940 | |
| 17941 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17942 | 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] | 17943 | |
| 17944 | # This is the shared library runtime path variable. |
| 17945 | runpath_var=$runpath_var |
| 17946 | |
| 17947 | # This is the shared library path variable. |
| 17948 | shlibpath_var=$shlibpath_var |
| 17949 | |
| 17950 | # Is shlibpath searched before the hard-coded library search path? |
| 17951 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17952 | |
| 17953 | # How to hardcode a shared library path into an executable. |
| 17954 | hardcode_action=$hardcode_action |
| 17955 | |
| 17956 | # Whether we should hardcode library paths into libraries. |
| 17957 | hardcode_into_libs=$hardcode_into_libs |
| 17958 | |
| 17959 | # Flag to hardcode \$libdir into a binary during linking. |
| 17960 | # This must work even if \$libdir does not exist. |
| 17961 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17962 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17963 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17964 | # a binary during linking. This must work even if \$libdir does |
| 17965 | # not exist. |
| 17966 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17968 | # Whether we need a single -rpath flag with a separated argument. |
| 17969 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17970 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17971 | # 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] | 17972 | # resulting binary. |
| 17973 | hardcode_direct=$hardcode_direct |
| 17974 | |
| 17975 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17976 | # resulting binary. |
| 17977 | hardcode_minus_L=$hardcode_minus_L |
| 17978 | |
| 17979 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17980 | # the resulting binary. |
| 17981 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17982 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17983 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17984 | # and all subsequent libraries and executables linked against it. |
| 17985 | hardcode_automatic=$hardcode_automatic |
| 17986 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17987 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17988 | # restored at relink time. |
| 17989 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17990 | |
| 17991 | # Whether libtool must link a program against all its dependency libraries. |
| 17992 | link_all_deplibs=$link_all_deplibs |
| 17993 | |
| 17994 | # Compile-time system search path for libraries |
| 17995 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17996 | |
| 17997 | # Run-time system search path for libraries |
| 17998 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17999 | |
| 18000 | # Fix the shell variable \$srcfile for the compiler. |
| 18001 | fix_srcfile_path="$fix_srcfile_path" |
| 18002 | |
| 18003 | # Set to yes if exported symbols are required. |
| 18004 | always_export_symbols=$always_export_symbols |
| 18005 | |
| 18006 | # The commands to list exported symbols. |
| 18007 | export_symbols_cmds=$lt_export_symbols_cmds |
| 18008 | |
| 18009 | # The commands to extract the exported symbol list from a shared archive. |
| 18010 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18011 | |
| 18012 | # Symbols that should not be listed in the preloaded symbols. |
| 18013 | exclude_expsyms=$lt_exclude_expsyms |
| 18014 | |
| 18015 | # Symbols that must always be exported. |
| 18016 | include_expsyms=$lt_include_expsyms |
| 18017 | |
| 18018 | # ### END LIBTOOL CONFIG |
| 18019 | |
| 18020 | __EOF__ |
| 18021 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18022 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18023 | case $host_os in |
| 18024 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18025 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18026 | |
| 18027 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 18028 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 18029 | # vanish in a puff of smoke. |
| 18030 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 18031 | COLLECT_NAMES= |
| 18032 | export COLLECT_NAMES |
| 18033 | fi |
| 18034 | EOF |
| 18035 | ;; |
| 18036 | esac |
| 18037 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18038 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 18039 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 18040 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 18041 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18042 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18043 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18044 | mv -f "$cfgfile" "$ofile" || \ |
| 18045 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18046 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18047 | |
| 18048 | else |
| 18049 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18050 | # `config.status --recheck' to rerun these tests and create the |
| 18051 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18052 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18053 | if test -f "$ltmain_in"; then |
| 18054 | test -f Makefile && make "$ltmain" |
| 18055 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18056 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18057 | |
| 18058 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18059 | ac_ext=c |
| 18060 | ac_cpp='$CPP $CPPFLAGS' |
| 18061 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18062 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18063 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18064 | |
| 18065 | CC="$lt_save_CC" |
| 18066 | |
| 18067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18068 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18069 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18070 | withval=$with_tags; tagnames="$withval" |
| 18071 | fi |
| 18072 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18073 | |
| 18074 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 18075 | if test ! -f "${ofile}"; then |
| 18076 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 18077 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 18078 | fi |
| 18079 | |
| 18080 | if test -z "$LTCC"; then |
| 18081 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 18082 | if test -z "$LTCC"; then |
| 18083 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 18084 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 18085 | else |
| 18086 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 18087 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 18088 | fi |
| 18089 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18090 | if test -z "$LTCFLAGS"; then |
| 18091 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 18092 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18093 | |
| 18094 | # Extract list of available tagged configurations in $ofile. |
| 18095 | # Note that this assumes the entire list is on one line. |
| 18096 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 18097 | |
| 18098 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 18099 | for tagname in $tagnames; do |
| 18100 | IFS="$lt_save_ifs" |
| 18101 | # Check whether tagname contains only valid characters |
| 18102 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18103 | "") ;; |
| 18104 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18105 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18106 | { (exit 1); exit 1; }; } |
| 18107 | ;; |
| 18108 | esac |
| 18109 | |
| 18110 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18111 | then |
| 18112 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18113 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18114 | { (exit 1); exit 1; }; } |
| 18115 | fi |
| 18116 | |
| 18117 | # Update the list of available tags. |
| 18118 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18119 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18120 | |
| 18121 | case $tagname in |
| 18122 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18123 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18124 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18125 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18126 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18127 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18128 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18129 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18130 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18131 | |
| 18132 | |
| 18133 | |
| 18134 | |
| 18135 | archive_cmds_need_lc_CXX=no |
| 18136 | allow_undefined_flag_CXX= |
| 18137 | always_export_symbols_CXX=no |
| 18138 | archive_expsym_cmds_CXX= |
| 18139 | export_dynamic_flag_spec_CXX= |
| 18140 | hardcode_direct_CXX=no |
| 18141 | hardcode_libdir_flag_spec_CXX= |
| 18142 | hardcode_libdir_flag_spec_ld_CXX= |
| 18143 | hardcode_libdir_separator_CXX= |
| 18144 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18145 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18146 | hardcode_automatic_CXX=no |
| 18147 | module_cmds_CXX= |
| 18148 | module_expsym_cmds_CXX= |
| 18149 | link_all_deplibs_CXX=unknown |
| 18150 | old_archive_cmds_CXX=$old_archive_cmds |
| 18151 | no_undefined_flag_CXX= |
| 18152 | whole_archive_flag_spec_CXX= |
| 18153 | enable_shared_with_static_runtimes_CXX=no |
| 18154 | |
| 18155 | # Dependencies to place before and after the object being linked: |
| 18156 | predep_objects_CXX= |
| 18157 | postdep_objects_CXX= |
| 18158 | predeps_CXX= |
| 18159 | postdeps_CXX= |
| 18160 | compiler_lib_search_path_CXX= |
| 18161 | |
| 18162 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18163 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18164 | |
| 18165 | # Object file extension for compiled C++ test sources. |
| 18166 | objext=o |
| 18167 | objext_CXX=$objext |
| 18168 | |
| 18169 | # Code to be used in simple compile tests |
| 18170 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18171 | |
| 18172 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18173 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18174 | |
| 18175 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18176 | |
| 18177 | # If no C compiler was specified, use CC. |
| 18178 | LTCC=${LTCC-"$CC"} |
| 18179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18180 | # If no C compiler flags were specified, use CFLAGS. |
| 18181 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18182 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18183 | # Allow CC to be a program name with arguments. |
| 18184 | compiler=$CC |
| 18185 | |
| 18186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18187 | # save warnings/boilerplate of simple test code |
| 18188 | ac_outfile=conftest.$ac_objext |
| 18189 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18190 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18191 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18192 | $rm conftest* |
| 18193 | |
| 18194 | ac_outfile=conftest.$ac_objext |
| 18195 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18196 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18197 | _lt_linker_boilerplate=`cat conftest.err` |
| 18198 | $rm conftest* |
| 18199 | |
| 18200 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18201 | # Allow CC to be a program name with arguments. |
| 18202 | lt_save_CC=$CC |
| 18203 | lt_save_LD=$LD |
| 18204 | lt_save_GCC=$GCC |
| 18205 | GCC=$GXX |
| 18206 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18207 | lt_save_path_LD=$lt_cv_path_LD |
| 18208 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18209 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18210 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18211 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18212 | fi |
| 18213 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18214 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18215 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18216 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18217 | fi |
| 18218 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18219 | CC=${CXX-"c++"} |
| 18220 | compiler=$CC |
| 18221 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18222 | for cc_temp in $compiler""; do |
| 18223 | case $cc_temp in |
| 18224 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18225 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18226 | \-*) ;; |
| 18227 | *) break;; |
| 18228 | esac |
| 18229 | done |
| 18230 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18231 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18232 | |
| 18233 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18234 | # no_builtin_flag separately |
| 18235 | if test "$GXX" = yes; then |
| 18236 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18237 | else |
| 18238 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18239 | fi |
| 18240 | |
| 18241 | if test "$GXX" = yes; then |
| 18242 | # Set up default GNU C++ configuration |
| 18243 | |
| 18244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18245 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18246 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18247 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18248 | else |
| 18249 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18250 | fi |
| 18251 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18252 | ac_prog=ld |
| 18253 | if test "$GCC" = yes; then |
| 18254 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18255 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18256 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18257 | case $host in |
| 18258 | *-*-mingw*) |
| 18259 | # gcc leaves a trailing carriage return which upsets mingw |
| 18260 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18261 | *) |
| 18262 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18263 | esac |
| 18264 | case $ac_prog in |
| 18265 | # Accept absolute paths. |
| 18266 | [\\/]* | ?:[\\/]*) |
| 18267 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18268 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18269 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18270 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18271 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18272 | done |
| 18273 | test -z "$LD" && LD="$ac_prog" |
| 18274 | ;; |
| 18275 | "") |
| 18276 | # If it fails, then pretend we aren't using GCC. |
| 18277 | ac_prog=ld |
| 18278 | ;; |
| 18279 | *) |
| 18280 | # If it is relative, then search for the first ld in PATH. |
| 18281 | with_gnu_ld=unknown |
| 18282 | ;; |
| 18283 | esac |
| 18284 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18285 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18286 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18287 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18288 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18289 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18290 | fi |
| 18291 | if test "${lt_cv_path_LD+set}" = set; then |
| 18292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18293 | else |
| 18294 | if test -z "$LD"; then |
| 18295 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18296 | for ac_dir in $PATH; do |
| 18297 | IFS="$lt_save_ifs" |
| 18298 | test -z "$ac_dir" && ac_dir=. |
| 18299 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18300 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18301 | # 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] | 18302 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18303 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18304 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18305 | *GNU* | *'with BFD'*) |
| 18306 | test "$with_gnu_ld" != no && break |
| 18307 | ;; |
| 18308 | *) |
| 18309 | test "$with_gnu_ld" != yes && break |
| 18310 | ;; |
| 18311 | esac |
| 18312 | fi |
| 18313 | done |
| 18314 | IFS="$lt_save_ifs" |
| 18315 | else |
| 18316 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18317 | fi |
| 18318 | fi |
| 18319 | |
| 18320 | LD="$lt_cv_path_LD" |
| 18321 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18322 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18323 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18324 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18325 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18326 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18327 | fi |
| 18328 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18329 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18330 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18331 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18332 | 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] | 18333 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18335 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18336 | # 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] | 18337 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18338 | *GNU* | *'with BFD'*) |
| 18339 | lt_cv_prog_gnu_ld=yes |
| 18340 | ;; |
| 18341 | *) |
| 18342 | lt_cv_prog_gnu_ld=no |
| 18343 | ;; |
| 18344 | esac |
| 18345 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18346 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18347 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18348 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18349 | |
| 18350 | |
| 18351 | |
| 18352 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18353 | # archiving commands below assume that GNU ld is being used. |
| 18354 | if test "$with_gnu_ld" = yes; then |
| 18355 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18356 | 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' |
| 18357 | |
| 18358 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18359 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18360 | |
| 18361 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18362 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18363 | # investigate it a little bit more. (MM) |
| 18364 | wlarc='${wl}' |
| 18365 | |
| 18366 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18367 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18368 | grep 'no-whole-archive' > /dev/null; then |
| 18369 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18370 | else |
| 18371 | whole_archive_flag_spec_CXX= |
| 18372 | fi |
| 18373 | else |
| 18374 | with_gnu_ld=no |
| 18375 | wlarc= |
| 18376 | |
| 18377 | # A generic and very simple default shared library creation |
| 18378 | # command for GNU C++ for the case where it uses the native |
| 18379 | # linker, instead of GNU ld. If possible, this setting should |
| 18380 | # overridden to take advantage of the native linker features on |
| 18381 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18382 | 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] | 18383 | fi |
| 18384 | |
| 18385 | # Commands to make compiler produce verbose output that lists |
| 18386 | # what "hidden" libraries, object files and flags are used when |
| 18387 | # linking a shared library. |
| 18388 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18389 | |
| 18390 | else |
| 18391 | GXX=no |
| 18392 | with_gnu_ld=no |
| 18393 | wlarc= |
| 18394 | fi |
| 18395 | |
| 18396 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18397 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18398 | 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] | 18399 | ld_shlibs_CXX=yes |
| 18400 | case $host_os in |
| 18401 | aix3*) |
| 18402 | # FIXME: insert proper C++ library support |
| 18403 | ld_shlibs_CXX=no |
| 18404 | ;; |
| 18405 | aix4* | aix5*) |
| 18406 | if test "$host_cpu" = ia64; then |
| 18407 | # On IA64, the linker does run time linking by default, so we don't |
| 18408 | # have to do anything special. |
| 18409 | aix_use_runtimelinking=no |
| 18410 | exp_sym_flag='-Bexport' |
| 18411 | no_entry_flag="" |
| 18412 | else |
| 18413 | aix_use_runtimelinking=no |
| 18414 | |
| 18415 | # Test if we are trying to use run time linking or normal |
| 18416 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18417 | # need to do runtime linking. |
| 18418 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18419 | for ld_flag in $LDFLAGS; do |
| 18420 | case $ld_flag in |
| 18421 | *-brtl*) |
| 18422 | aix_use_runtimelinking=yes |
| 18423 | break |
| 18424 | ;; |
| 18425 | esac |
| 18426 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18427 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18428 | esac |
| 18429 | |
| 18430 | exp_sym_flag='-bexport' |
| 18431 | no_entry_flag='-bnoentry' |
| 18432 | fi |
| 18433 | |
| 18434 | # When large executables or shared objects are built, AIX ld can |
| 18435 | # have problems creating the table of contents. If linking a library |
| 18436 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18437 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18438 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18439 | |
| 18440 | archive_cmds_CXX='' |
| 18441 | hardcode_direct_CXX=yes |
| 18442 | hardcode_libdir_separator_CXX=':' |
| 18443 | link_all_deplibs_CXX=yes |
| 18444 | |
| 18445 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18446 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18447 | # We only want to do this on AIX 4.2 and lower, the check |
| 18448 | # below for broken collect2 doesn't work under 4.3+ |
| 18449 | collect2name=`${CC} -print-prog-name=collect2` |
| 18450 | if test -f "$collect2name" && \ |
| 18451 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18452 | then |
| 18453 | # We have reworked collect2 |
| 18454 | hardcode_direct_CXX=yes |
| 18455 | else |
| 18456 | # We have old collect2 |
| 18457 | hardcode_direct_CXX=unsupported |
| 18458 | # It fails to find uninstalled libraries when the uninstalled |
| 18459 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18460 | # to unsupported forces relinking |
| 18461 | hardcode_minus_L_CXX=yes |
| 18462 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18463 | hardcode_libdir_separator_CXX= |
| 18464 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18465 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18466 | esac |
| 18467 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18468 | if test "$aix_use_runtimelinking" = yes; then |
| 18469 | shared_flag="$shared_flag "'${wl}-G' |
| 18470 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18471 | else |
| 18472 | # not using gcc |
| 18473 | if test "$host_cpu" = ia64; then |
| 18474 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18475 | # chokes on -Wl,-G. The following line is correct: |
| 18476 | shared_flag='-G' |
| 18477 | else |
| 18478 | if test "$aix_use_runtimelinking" = yes; then |
| 18479 | shared_flag='${wl}-G' |
| 18480 | else |
| 18481 | shared_flag='${wl}-bM:SRE' |
| 18482 | fi |
| 18483 | fi |
| 18484 | fi |
| 18485 | |
| 18486 | # It seems that -bexpall does not export symbols beginning with |
| 18487 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18488 | always_export_symbols_CXX=yes |
| 18489 | if test "$aix_use_runtimelinking" = yes; then |
| 18490 | # Warning - without using the other runtime loading flags (-brtl), |
| 18491 | # -berok will link without error, but may produce a broken library. |
| 18492 | allow_undefined_flag_CXX='-berok' |
| 18493 | # Determine the default libpath from the value encoded in an empty executable. |
| 18494 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18495 | /* confdefs.h. */ |
| 18496 | _ACEOF |
| 18497 | cat confdefs.h >>conftest.$ac_ext |
| 18498 | cat >>conftest.$ac_ext <<_ACEOF |
| 18499 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18500 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18501 | int |
| 18502 | main () |
| 18503 | { |
| 18504 | |
| 18505 | ; |
| 18506 | return 0; |
| 18507 | } |
| 18508 | _ACEOF |
| 18509 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18510 | if { (ac_try="$ac_link" |
| 18511 | case "(($ac_try" in |
| 18512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18513 | *) ac_try_echo=$ac_try;; |
| 18514 | esac |
| 18515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18516 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18517 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18519 | rm -f conftest.er1 |
| 18520 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18522 | (exit $ac_status); } && |
| 18523 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18524 | { (case "(($ac_try" in |
| 18525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18526 | *) ac_try_echo=$ac_try;; |
| 18527 | esac |
| 18528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18529 | (eval "$ac_try") 2>&5 |
| 18530 | ac_status=$? |
| 18531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18532 | (exit $ac_status); }; } && |
| 18533 | { ac_try='test -s conftest$ac_exeext' |
| 18534 | { (case "(($ac_try" in |
| 18535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18536 | *) ac_try_echo=$ac_try;; |
| 18537 | esac |
| 18538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18539 | (eval "$ac_try") 2>&5 |
| 18540 | ac_status=$? |
| 18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18542 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18543 | |
| 18544 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18545 | }'` |
| 18546 | # Check for a 64-bit object if we didn't find anything. |
| 18547 | 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; } |
| 18548 | }'`; fi |
| 18549 | else |
| 18550 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18552 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18553 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18555 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18556 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18557 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18558 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18559 | |
| 18560 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18562 | 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] | 18563 | else |
| 18564 | if test "$host_cpu" = ia64; then |
| 18565 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18566 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18567 | 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] | 18568 | else |
| 18569 | # Determine the default libpath from the value encoded in an empty executable. |
| 18570 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18571 | /* confdefs.h. */ |
| 18572 | _ACEOF |
| 18573 | cat confdefs.h >>conftest.$ac_ext |
| 18574 | cat >>conftest.$ac_ext <<_ACEOF |
| 18575 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18576 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18577 | int |
| 18578 | main () |
| 18579 | { |
| 18580 | |
| 18581 | ; |
| 18582 | return 0; |
| 18583 | } |
| 18584 | _ACEOF |
| 18585 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18586 | if { (ac_try="$ac_link" |
| 18587 | case "(($ac_try" in |
| 18588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18589 | *) ac_try_echo=$ac_try;; |
| 18590 | esac |
| 18591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18592 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18593 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18595 | rm -f conftest.er1 |
| 18596 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18598 | (exit $ac_status); } && |
| 18599 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18600 | { (case "(($ac_try" in |
| 18601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18602 | *) ac_try_echo=$ac_try;; |
| 18603 | esac |
| 18604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18605 | (eval "$ac_try") 2>&5 |
| 18606 | ac_status=$? |
| 18607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18608 | (exit $ac_status); }; } && |
| 18609 | { ac_try='test -s conftest$ac_exeext' |
| 18610 | { (case "(($ac_try" in |
| 18611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18612 | *) ac_try_echo=$ac_try;; |
| 18613 | esac |
| 18614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18615 | (eval "$ac_try") 2>&5 |
| 18616 | ac_status=$? |
| 18617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18618 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18619 | |
| 18620 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18621 | }'` |
| 18622 | # Check for a 64-bit object if we didn't find anything. |
| 18623 | 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; } |
| 18624 | }'`; fi |
| 18625 | else |
| 18626 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18629 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18630 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18631 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18632 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18633 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18634 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18635 | |
| 18636 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18637 | # Warning - without using the other run time loading flags, |
| 18638 | # -berok will link without error, but may produce a broken library. |
| 18639 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18640 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18641 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18642 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18643 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18644 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18645 | 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] | 18646 | fi |
| 18647 | fi |
| 18648 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18649 | |
| 18650 | beos*) |
| 18651 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18652 | allow_undefined_flag_CXX=unsupported |
| 18653 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18654 | # support --undefined. This deserves some investigation. FIXME |
| 18655 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18656 | else |
| 18657 | ld_shlibs_CXX=no |
| 18658 | fi |
| 18659 | ;; |
| 18660 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18661 | chorus*) |
| 18662 | case $cc_basename in |
| 18663 | *) |
| 18664 | # FIXME: insert proper C++ library support |
| 18665 | ld_shlibs_CXX=no |
| 18666 | ;; |
| 18667 | esac |
| 18668 | ;; |
| 18669 | |
| 18670 | cygwin* | mingw* | pw32*) |
| 18671 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18672 | # as there is no search path for DLLs. |
| 18673 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18674 | allow_undefined_flag_CXX=unsupported |
| 18675 | always_export_symbols_CXX=no |
| 18676 | enable_shared_with_static_runtimes_CXX=yes |
| 18677 | |
| 18678 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18679 | 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] | 18680 | # If the export-symbols file already is a .def file (1st line |
| 18681 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18682 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18683 | cp $export_symbols $output_objdir/$soname.def; |
| 18684 | else |
| 18685 | echo EXPORTS > $output_objdir/$soname.def; |
| 18686 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18687 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18688 | $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] | 18689 | else |
| 18690 | ld_shlibs_CXX=no |
| 18691 | fi |
| 18692 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18693 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18694 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18695 | rhapsody* | darwin1.[012]) |
| 18696 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18697 | ;; |
| 18698 | *) # Darwin 1.3 on |
| 18699 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18700 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18701 | else |
| 18702 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18703 | 10.[012]) |
| 18704 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18705 | ;; |
| 18706 | 10.*) |
| 18707 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18708 | ;; |
| 18709 | esac |
| 18710 | fi |
| 18711 | ;; |
| 18712 | esac |
| 18713 | archive_cmds_need_lc_CXX=no |
| 18714 | hardcode_direct_CXX=no |
| 18715 | hardcode_automatic_CXX=yes |
| 18716 | hardcode_shlibpath_var_CXX=unsupported |
| 18717 | whole_archive_flag_spec_CXX='' |
| 18718 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18719 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18720 | if test "$GXX" = yes ; then |
| 18721 | lt_int_apple_cc_single_mod=no |
| 18722 | output_verbose_link_cmd='echo' |
| 18723 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18724 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18725 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18726 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18727 | 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] | 18728 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18729 | 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] | 18730 | fi |
| 18731 | 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] | 18732 | # 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] | 18733 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18734 | 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] | 18735 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18736 | 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] | 18737 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18738 | 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] | 18739 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18740 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18741 | xlc*) |
| 18742 | output_verbose_link_cmd='echo' |
| 18743 | 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' |
| 18744 | 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] | 18745 | # 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] | 18746 | 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}' |
| 18747 | 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] | 18748 | ;; |
| 18749 | *) |
| 18750 | ld_shlibs_CXX=no |
| 18751 | ;; |
| 18752 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18753 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18754 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18755 | |
| 18756 | dgux*) |
| 18757 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18758 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18759 | # FIXME: insert proper C++ library support |
| 18760 | ld_shlibs_CXX=no |
| 18761 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18762 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18763 | # Green Hills C++ Compiler |
| 18764 | # FIXME: insert proper C++ library support |
| 18765 | ld_shlibs_CXX=no |
| 18766 | ;; |
| 18767 | *) |
| 18768 | # FIXME: insert proper C++ library support |
| 18769 | ld_shlibs_CXX=no |
| 18770 | ;; |
| 18771 | esac |
| 18772 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18773 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18774 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18775 | ld_shlibs_CXX=no |
| 18776 | ;; |
| 18777 | freebsd-elf*) |
| 18778 | archive_cmds_need_lc_CXX=no |
| 18779 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18780 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18781 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18782 | # conventions |
| 18783 | ld_shlibs_CXX=yes |
| 18784 | ;; |
| 18785 | gnu*) |
| 18786 | ;; |
| 18787 | hpux9*) |
| 18788 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18789 | hardcode_libdir_separator_CXX=: |
| 18790 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18791 | hardcode_direct_CXX=yes |
| 18792 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18793 | # but as the default |
| 18794 | # location of the library. |
| 18795 | |
| 18796 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18797 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18798 | # FIXME: insert proper C++ library support |
| 18799 | ld_shlibs_CXX=no |
| 18800 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18801 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18802 | 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] | 18803 | # Commands to make compiler produce verbose output that lists |
| 18804 | # what "hidden" libraries, object files and flags are used when |
| 18805 | # linking a shared library. |
| 18806 | # |
| 18807 | # There doesn't appear to be a way to prevent this compiler from |
| 18808 | # explicitly linking system object files so we need to strip them |
| 18809 | # from the output so that they don't get included in the library |
| 18810 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18811 | 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] | 18812 | ;; |
| 18813 | *) |
| 18814 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18815 | 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] | 18816 | else |
| 18817 | # FIXME: insert proper C++ library support |
| 18818 | ld_shlibs_CXX=no |
| 18819 | fi |
| 18820 | ;; |
| 18821 | esac |
| 18822 | ;; |
| 18823 | hpux10*|hpux11*) |
| 18824 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18825 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18826 | hardcode_libdir_separator_CXX=: |
| 18827 | |
| 18828 | case $host_cpu in |
| 18829 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18830 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18831 | ;; |
| 18832 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18833 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18834 | ;; |
| 18835 | esac |
| 18836 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18837 | case $host_cpu in |
| 18838 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18839 | hardcode_direct_CXX=no |
| 18840 | hardcode_shlibpath_var_CXX=no |
| 18841 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18842 | *) |
| 18843 | hardcode_direct_CXX=yes |
| 18844 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18845 | # but as the default |
| 18846 | # location of the library. |
| 18847 | ;; |
| 18848 | esac |
| 18849 | |
| 18850 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18851 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18852 | # FIXME: insert proper C++ library support |
| 18853 | ld_shlibs_CXX=no |
| 18854 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18855 | aCC*) |
| 18856 | case $host_cpu in |
| 18857 | hppa*64*) |
| 18858 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18859 | ;; |
| 18860 | ia64*) |
| 18861 | 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] | 18862 | ;; |
| 18863 | *) |
| 18864 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18865 | ;; |
| 18866 | esac |
| 18867 | # Commands to make compiler produce verbose output that lists |
| 18868 | # what "hidden" libraries, object files and flags are used when |
| 18869 | # linking a shared library. |
| 18870 | # |
| 18871 | # There doesn't appear to be a way to prevent this compiler from |
| 18872 | # explicitly linking system object files so we need to strip them |
| 18873 | # from the output so that they don't get included in the library |
| 18874 | # dependencies. |
| 18875 | 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' |
| 18876 | ;; |
| 18877 | *) |
| 18878 | if test "$GXX" = yes; then |
| 18879 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18880 | case $host_cpu in |
| 18881 | hppa*64*) |
| 18882 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18883 | ;; |
| 18884 | ia64*) |
| 18885 | 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] | 18886 | ;; |
| 18887 | *) |
| 18888 | 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' |
| 18889 | ;; |
| 18890 | esac |
| 18891 | fi |
| 18892 | else |
| 18893 | # FIXME: insert proper C++ library support |
| 18894 | ld_shlibs_CXX=no |
| 18895 | fi |
| 18896 | ;; |
| 18897 | esac |
| 18898 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18899 | interix3*) |
| 18900 | hardcode_direct_CXX=no |
| 18901 | hardcode_shlibpath_var_CXX=no |
| 18902 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18903 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18904 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18905 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18906 | # default) and relocated if they conflict, which is a slow very memory |
| 18907 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18908 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18909 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18910 | 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' |
| 18911 | 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' |
| 18912 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18913 | irix5* | irix6*) |
| 18914 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18915 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18916 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18917 | 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] | 18918 | |
| 18919 | # Archives containing C++ object files must be created using |
| 18920 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18921 | # necessary to make sure instantiated templates are included |
| 18922 | # in the archive. |
| 18923 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18924 | ;; |
| 18925 | *) |
| 18926 | if test "$GXX" = yes; then |
| 18927 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18928 | 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] | 18929 | else |
| 18930 | 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' |
| 18931 | fi |
| 18932 | fi |
| 18933 | link_all_deplibs_CXX=yes |
| 18934 | ;; |
| 18935 | esac |
| 18936 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18937 | hardcode_libdir_separator_CXX=: |
| 18938 | ;; |
| 18939 | linux*) |
| 18940 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18941 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18942 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18943 | |
| 18944 | # KCC will only create a shared library if the output file |
| 18945 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18946 | # to its proper name (with version) after linking. |
| 18947 | 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' |
| 18948 | 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' |
| 18949 | # Commands to make compiler produce verbose output that lists |
| 18950 | # what "hidden" libraries, object files and flags are used when |
| 18951 | # linking a shared library. |
| 18952 | # |
| 18953 | # There doesn't appear to be a way to prevent this compiler from |
| 18954 | # explicitly linking system object files so we need to strip them |
| 18955 | # from the output so that they don't get included in the library |
| 18956 | # dependencies. |
| 18957 | 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' |
| 18958 | |
| 18959 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 18960 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18961 | |
| 18962 | # Archives containing C++ object files must be created using |
| 18963 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18964 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18965 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18966 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18967 | # Intel C++ |
| 18968 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18969 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18970 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18971 | # earlier do not add the objects themselves. |
| 18972 | case `$CC -V 2>&1` in |
| 18973 | *"Version 7."*) |
| 18974 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18975 | 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' |
| 18976 | ;; |
| 18977 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18978 | tmp_idyn= |
| 18979 | case $host_cpu in |
| 18980 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18981 | esac |
| 18982 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18983 | 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] | 18984 | ;; |
| 18985 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18986 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18987 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18988 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18989 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18990 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18991 | pgCC*) |
| 18992 | # Portland Group C++ compiler |
| 18993 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18994 | 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' |
| 18995 | |
| 18996 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18997 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18998 | 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' |
| 18999 | ;; |
| 19000 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19001 | # Compaq C++ |
| 19002 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19003 | 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' |
| 19004 | |
| 19005 | runpath_var=LD_RUN_PATH |
| 19006 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19007 | hardcode_libdir_separator_CXX=: |
| 19008 | |
| 19009 | # Commands to make compiler produce verbose output that lists |
| 19010 | # what "hidden" libraries, object files and flags are used when |
| 19011 | # linking a shared library. |
| 19012 | # |
| 19013 | # There doesn't appear to be a way to prevent this compiler from |
| 19014 | # explicitly linking system object files so we need to strip them |
| 19015 | # from the output so that they don't get included in the library |
| 19016 | # dependencies. |
| 19017 | 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' |
| 19018 | ;; |
| 19019 | esac |
| 19020 | ;; |
| 19021 | lynxos*) |
| 19022 | # FIXME: insert proper C++ library support |
| 19023 | ld_shlibs_CXX=no |
| 19024 | ;; |
| 19025 | m88k*) |
| 19026 | # FIXME: insert proper C++ library support |
| 19027 | ld_shlibs_CXX=no |
| 19028 | ;; |
| 19029 | mvs*) |
| 19030 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19031 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19032 | # FIXME: insert proper C++ library support |
| 19033 | ld_shlibs_CXX=no |
| 19034 | ;; |
| 19035 | *) |
| 19036 | # FIXME: insert proper C++ library support |
| 19037 | ld_shlibs_CXX=no |
| 19038 | ;; |
| 19039 | esac |
| 19040 | ;; |
| 19041 | netbsd*) |
| 19042 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19043 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 19044 | wlarc= |
| 19045 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19046 | hardcode_direct_CXX=yes |
| 19047 | hardcode_shlibpath_var_CXX=no |
| 19048 | fi |
| 19049 | # Workaround some broken pre-1.5 toolchains |
| 19050 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 19051 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19052 | openbsd2*) |
| 19053 | # C++ shared libraries are fairly broken |
| 19054 | ld_shlibs_CXX=no |
| 19055 | ;; |
| 19056 | openbsd*) |
| 19057 | hardcode_direct_CXX=yes |
| 19058 | hardcode_shlibpath_var_CXX=no |
| 19059 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 19060 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19061 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19062 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 19063 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19064 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19065 | fi |
| 19066 | output_verbose_link_cmd='echo' |
| 19067 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19068 | osf3*) |
| 19069 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19070 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19071 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19072 | |
| 19073 | # KCC will only create a shared library if the output file |
| 19074 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19075 | # to its proper name (with version) after linking. |
| 19076 | 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' |
| 19077 | |
| 19078 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19079 | hardcode_libdir_separator_CXX=: |
| 19080 | |
| 19081 | # Archives containing C++ object files must be created using |
| 19082 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19083 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19084 | |
| 19085 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19086 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19087 | # Rational C++ 2.4.1 |
| 19088 | # FIXME: insert proper C++ library support |
| 19089 | ld_shlibs_CXX=no |
| 19090 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19091 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19092 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19093 | 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] | 19094 | |
| 19095 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19096 | hardcode_libdir_separator_CXX=: |
| 19097 | |
| 19098 | # Commands to make compiler produce verbose output that lists |
| 19099 | # what "hidden" libraries, object files and flags are used when |
| 19100 | # linking a shared library. |
| 19101 | # |
| 19102 | # There doesn't appear to be a way to prevent this compiler from |
| 19103 | # explicitly linking system object files so we need to strip them |
| 19104 | # from the output so that they don't get included in the library |
| 19105 | # dependencies. |
| 19106 | 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' |
| 19107 | ;; |
| 19108 | *) |
| 19109 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19110 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19111 | 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] | 19112 | |
| 19113 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19114 | hardcode_libdir_separator_CXX=: |
| 19115 | |
| 19116 | # Commands to make compiler produce verbose output that lists |
| 19117 | # what "hidden" libraries, object files and flags are used when |
| 19118 | # linking a shared library. |
| 19119 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19120 | |
| 19121 | else |
| 19122 | # FIXME: insert proper C++ library support |
| 19123 | ld_shlibs_CXX=no |
| 19124 | fi |
| 19125 | ;; |
| 19126 | esac |
| 19127 | ;; |
| 19128 | osf4* | osf5*) |
| 19129 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19130 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19131 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19132 | |
| 19133 | # KCC will only create a shared library if the output file |
| 19134 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19135 | # to its proper name (with version) after linking. |
| 19136 | 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' |
| 19137 | |
| 19138 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19139 | hardcode_libdir_separator_CXX=: |
| 19140 | |
| 19141 | # Archives containing C++ object files must be created using |
| 19142 | # the KAI C++ compiler. |
| 19143 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19144 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19145 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19146 | # Rational C++ 2.4.1 |
| 19147 | # FIXME: insert proper C++ library support |
| 19148 | ld_shlibs_CXX=no |
| 19149 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19150 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19151 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19152 | 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] | 19153 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19154 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19155 | $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] | 19156 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19157 | |
| 19158 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19159 | hardcode_libdir_separator_CXX=: |
| 19160 | |
| 19161 | # Commands to make compiler produce verbose output that lists |
| 19162 | # what "hidden" libraries, object files and flags are used when |
| 19163 | # linking a shared library. |
| 19164 | # |
| 19165 | # There doesn't appear to be a way to prevent this compiler from |
| 19166 | # explicitly linking system object files so we need to strip them |
| 19167 | # from the output so that they don't get included in the library |
| 19168 | # dependencies. |
| 19169 | 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' |
| 19170 | ;; |
| 19171 | *) |
| 19172 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19173 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19174 | 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] | 19175 | |
| 19176 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19177 | hardcode_libdir_separator_CXX=: |
| 19178 | |
| 19179 | # Commands to make compiler produce verbose output that lists |
| 19180 | # what "hidden" libraries, object files and flags are used when |
| 19181 | # linking a shared library. |
| 19182 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19183 | |
| 19184 | else |
| 19185 | # FIXME: insert proper C++ library support |
| 19186 | ld_shlibs_CXX=no |
| 19187 | fi |
| 19188 | ;; |
| 19189 | esac |
| 19190 | ;; |
| 19191 | psos*) |
| 19192 | # FIXME: insert proper C++ library support |
| 19193 | ld_shlibs_CXX=no |
| 19194 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19195 | sunos4*) |
| 19196 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19197 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19198 | # Sun C++ 4.x |
| 19199 | # FIXME: insert proper C++ library support |
| 19200 | ld_shlibs_CXX=no |
| 19201 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19202 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19203 | # Lucid |
| 19204 | # FIXME: insert proper C++ library support |
| 19205 | ld_shlibs_CXX=no |
| 19206 | ;; |
| 19207 | *) |
| 19208 | # FIXME: insert proper C++ library support |
| 19209 | ld_shlibs_CXX=no |
| 19210 | ;; |
| 19211 | esac |
| 19212 | ;; |
| 19213 | solaris*) |
| 19214 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19215 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19216 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19217 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19218 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19219 | 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] | 19220 | 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] | 19221 | $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] | 19222 | |
| 19223 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19224 | hardcode_shlibpath_var_CXX=no |
| 19225 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19226 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19227 | *) |
| 19228 | # The C++ compiler is used as linker so we must use $wl |
| 19229 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19230 | # linker. We must also pass each convience library through |
| 19231 | # to the system linker between allextract/defaultextract. |
| 19232 | # The C++ compiler will combine linker options so we |
| 19233 | # cannot just pass the convience library names through |
| 19234 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19235 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19236 | 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] | 19237 | ;; |
| 19238 | esac |
| 19239 | link_all_deplibs_CXX=yes |
| 19240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19241 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19242 | |
| 19243 | # Archives containing C++ object files must be created using |
| 19244 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19245 | # necessary to make sure instantiated templates are included |
| 19246 | # in the archive. |
| 19247 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19248 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19249 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19250 | # Green Hills C++ Compiler |
| 19251 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19252 | |
| 19253 | # The C++ compiler must be used to create the archive. |
| 19254 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19255 | ;; |
| 19256 | *) |
| 19257 | # GNU C++ compiler with Solaris linker |
| 19258 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19259 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19260 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19261 | 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] | 19262 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19263 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19264 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19265 | # Commands to make compiler produce verbose output that lists |
| 19266 | # what "hidden" libraries, object files and flags are used when |
| 19267 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19268 | 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] | 19269 | else |
| 19270 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19271 | # platform. |
| 19272 | 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] | 19273 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19274 | $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] | 19275 | |
| 19276 | # Commands to make compiler produce verbose output that lists |
| 19277 | # what "hidden" libraries, object files and flags are used when |
| 19278 | # linking a shared library. |
| 19279 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19280 | fi |
| 19281 | |
| 19282 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19283 | fi |
| 19284 | ;; |
| 19285 | esac |
| 19286 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19287 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19288 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19289 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19290 | hardcode_shlibpath_var_CXX=no |
| 19291 | runpath_var='LD_RUN_PATH' |
| 19292 | |
| 19293 | case $cc_basename in |
| 19294 | CC*) |
| 19295 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19296 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19297 | ;; |
| 19298 | *) |
| 19299 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19300 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19301 | ;; |
| 19302 | esac |
| 19303 | ;; |
| 19304 | sysv5* | sco3.2v5* | sco5v6*) |
| 19305 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19306 | # link with -lc, and that would cause any symbols used from libc to |
| 19307 | # always be unresolved, which means just about no library would |
| 19308 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19309 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19310 | # as -z defs. |
| 19311 | # For security reasons, it is highly recommended that you always |
| 19312 | # use absolute paths for naming shared libraries, and exclude the |
| 19313 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19314 | # requires that you compile everything twice, which is a pain. |
| 19315 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19316 | # non-empty value in the environment. Most likely only useful for |
| 19317 | # creating official distributions of packages. |
| 19318 | # This is a hack until libtool officially supports absolute path |
| 19319 | # names for shared libraries. |
| 19320 | no_undefined_flag_CXX='${wl}-z,text' |
| 19321 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19322 | archive_cmds_need_lc_CXX=no |
| 19323 | hardcode_shlibpath_var_CXX=no |
| 19324 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19325 | hardcode_libdir_separator_CXX=':' |
| 19326 | link_all_deplibs_CXX=yes |
| 19327 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19328 | runpath_var='LD_RUN_PATH' |
| 19329 | |
| 19330 | case $cc_basename in |
| 19331 | CC*) |
| 19332 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19333 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19334 | ;; |
| 19335 | *) |
| 19336 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19337 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19338 | ;; |
| 19339 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19340 | ;; |
| 19341 | tandem*) |
| 19342 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19343 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19344 | # NonStop-UX NCC 3.20 |
| 19345 | # FIXME: insert proper C++ library support |
| 19346 | ld_shlibs_CXX=no |
| 19347 | ;; |
| 19348 | *) |
| 19349 | # FIXME: insert proper C++ library support |
| 19350 | ld_shlibs_CXX=no |
| 19351 | ;; |
| 19352 | esac |
| 19353 | ;; |
| 19354 | vxworks*) |
| 19355 | # FIXME: insert proper C++ library support |
| 19356 | ld_shlibs_CXX=no |
| 19357 | ;; |
| 19358 | *) |
| 19359 | # FIXME: insert proper C++ library support |
| 19360 | ld_shlibs_CXX=no |
| 19361 | ;; |
| 19362 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19363 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19364 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19365 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19366 | |
| 19367 | GCC_CXX="$GXX" |
| 19368 | LD_CXX="$LD" |
| 19369 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19370 | |
| 19371 | cat > conftest.$ac_ext <<EOF |
| 19372 | class Foo |
| 19373 | { |
| 19374 | public: |
| 19375 | Foo (void) { a = 0; } |
| 19376 | private: |
| 19377 | int a; |
| 19378 | }; |
| 19379 | EOF |
| 19380 | |
| 19381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19382 | (eval $ac_compile) 2>&5 |
| 19383 | ac_status=$? |
| 19384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19385 | (exit $ac_status); }; then |
| 19386 | # Parse the compiler output and extract the necessary |
| 19387 | # objects, libraries and library flags. |
| 19388 | |
| 19389 | # Sentinel used to keep track of whether or not we are before |
| 19390 | # the conftest object file. |
| 19391 | pre_test_object_deps_done=no |
| 19392 | |
| 19393 | # The `*' in the case matches for architectures that use `case' in |
| 19394 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19395 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19396 | 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] | 19397 | |
| 19398 | for p in `eval $output_verbose_link_cmd`; do |
| 19399 | case $p in |
| 19400 | |
| 19401 | -L* | -R* | -l*) |
| 19402 | # Some compilers place space between "-{L,R}" and the path. |
| 19403 | # Remove the space. |
| 19404 | if test $p = "-L" \ |
| 19405 | || test $p = "-R"; then |
| 19406 | prev=$p |
| 19407 | continue |
| 19408 | else |
| 19409 | prev= |
| 19410 | fi |
| 19411 | |
| 19412 | if test "$pre_test_object_deps_done" = no; then |
| 19413 | case $p in |
| 19414 | -L* | -R*) |
| 19415 | # Internal compiler library paths should come after those |
| 19416 | # provided the user. The postdeps already come after the |
| 19417 | # user supplied libs so there is no need to process them. |
| 19418 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19419 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19420 | else |
| 19421 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19422 | fi |
| 19423 | ;; |
| 19424 | # The "-l" case would never come before the object being |
| 19425 | # linked, so don't bother handling this case. |
| 19426 | esac |
| 19427 | else |
| 19428 | if test -z "$postdeps_CXX"; then |
| 19429 | postdeps_CXX="${prev}${p}" |
| 19430 | else |
| 19431 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19432 | fi |
| 19433 | fi |
| 19434 | ;; |
| 19435 | |
| 19436 | *.$objext) |
| 19437 | # This assumes that the test object file only shows up |
| 19438 | # once in the compiler output. |
| 19439 | if test "$p" = "conftest.$objext"; then |
| 19440 | pre_test_object_deps_done=yes |
| 19441 | continue |
| 19442 | fi |
| 19443 | |
| 19444 | if test "$pre_test_object_deps_done" = no; then |
| 19445 | if test -z "$predep_objects_CXX"; then |
| 19446 | predep_objects_CXX="$p" |
| 19447 | else |
| 19448 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19449 | fi |
| 19450 | else |
| 19451 | if test -z "$postdep_objects_CXX"; then |
| 19452 | postdep_objects_CXX="$p" |
| 19453 | else |
| 19454 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19455 | fi |
| 19456 | fi |
| 19457 | ;; |
| 19458 | |
| 19459 | *) ;; # Ignore the rest. |
| 19460 | |
| 19461 | esac |
| 19462 | done |
| 19463 | |
| 19464 | # Clean up. |
| 19465 | rm -f a.out a.exe |
| 19466 | else |
| 19467 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19468 | fi |
| 19469 | |
| 19470 | $rm -f confest.$objext |
| 19471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19472 | # PORTME: override above test on systems where it is broken |
| 19473 | case $host_os in |
| 19474 | interix3*) |
| 19475 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19476 | # hack all around it, let's just trust "g++" to DTRT. |
| 19477 | predep_objects_CXX= |
| 19478 | postdep_objects_CXX= |
| 19479 | postdeps_CXX= |
| 19480 | ;; |
| 19481 | |
| 19482 | solaris*) |
| 19483 | case $cc_basename in |
| 19484 | CC*) |
| 19485 | # Adding this requires a known-good setup of shared libraries for |
| 19486 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19487 | # archive will be linked into the output, leading to subtle bugs. |
| 19488 | postdeps_CXX='-lCstd -lCrun' |
| 19489 | ;; |
| 19490 | esac |
| 19491 | ;; |
| 19492 | esac |
| 19493 | |
| 19494 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19495 | case " $postdeps_CXX " in |
| 19496 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19497 | esac |
| 19498 | |
| 19499 | lt_prog_compiler_wl_CXX= |
| 19500 | lt_prog_compiler_pic_CXX= |
| 19501 | lt_prog_compiler_static_CXX= |
| 19502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19503 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19504 | 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] | 19505 | |
| 19506 | # C++ specific cases for pic, static, wl, etc. |
| 19507 | if test "$GXX" = yes; then |
| 19508 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19509 | lt_prog_compiler_static_CXX='-static' |
| 19510 | |
| 19511 | case $host_os in |
| 19512 | aix*) |
| 19513 | # All AIX code is PIC. |
| 19514 | if test "$host_cpu" = ia64; then |
| 19515 | # AIX 5 now supports IA64 processor |
| 19516 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19517 | fi |
| 19518 | ;; |
| 19519 | amigaos*) |
| 19520 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19521 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19522 | # like `-m68040'. |
| 19523 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19524 | ;; |
| 19525 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19526 | # PIC is the default for these OSes. |
| 19527 | ;; |
| 19528 | mingw* | os2* | pw32*) |
| 19529 | # This hack is so that the source file can tell whether it is being |
| 19530 | # built for inclusion in a dll (and should export symbols for example). |
| 19531 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19532 | ;; |
| 19533 | darwin* | rhapsody*) |
| 19534 | # PIC is the default on this platform |
| 19535 | # Common symbols not allowed in MH_DYLIB files |
| 19536 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19537 | ;; |
| 19538 | *djgpp*) |
| 19539 | # DJGPP does not support shared libraries at all |
| 19540 | lt_prog_compiler_pic_CXX= |
| 19541 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19542 | interix3*) |
| 19543 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19544 | # Instead, we relocate shared libraries at runtime. |
| 19545 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19546 | sysv4*MP*) |
| 19547 | if test -d /usr/nec; then |
| 19548 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19549 | fi |
| 19550 | ;; |
| 19551 | hpux*) |
| 19552 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19553 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19554 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19555 | hppa*64*|ia64*) |
| 19556 | ;; |
| 19557 | *) |
| 19558 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19559 | ;; |
| 19560 | esac |
| 19561 | ;; |
| 19562 | *) |
| 19563 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19564 | ;; |
| 19565 | esac |
| 19566 | else |
| 19567 | case $host_os in |
| 19568 | aix4* | aix5*) |
| 19569 | # All AIX code is PIC. |
| 19570 | if test "$host_cpu" = ia64; then |
| 19571 | # AIX 5 now supports IA64 processor |
| 19572 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19573 | else |
| 19574 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19575 | fi |
| 19576 | ;; |
| 19577 | chorus*) |
| 19578 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19579 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19580 | # Green Hills C++ Compiler |
| 19581 | # _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" |
| 19582 | ;; |
| 19583 | esac |
| 19584 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19585 | darwin*) |
| 19586 | # PIC is the default on this platform |
| 19587 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19588 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19589 | xlc*) |
| 19590 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19591 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19592 | ;; |
| 19593 | esac |
| 19594 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19595 | dgux*) |
| 19596 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19597 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19598 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19599 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19600 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19601 | # Green Hills C++ Compiler |
| 19602 | lt_prog_compiler_pic_CXX='-pic' |
| 19603 | ;; |
| 19604 | *) |
| 19605 | ;; |
| 19606 | esac |
| 19607 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19608 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19609 | # FreeBSD uses GNU C++ |
| 19610 | ;; |
| 19611 | hpux9* | hpux10* | hpux11*) |
| 19612 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19613 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19614 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19615 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19616 | if test "$host_cpu" != ia64; then |
| 19617 | lt_prog_compiler_pic_CXX='+Z' |
| 19618 | fi |
| 19619 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19620 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19621 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19622 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19623 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19624 | hppa*64*|ia64*) |
| 19625 | # +Z the default |
| 19626 | ;; |
| 19627 | *) |
| 19628 | lt_prog_compiler_pic_CXX='+Z' |
| 19629 | ;; |
| 19630 | esac |
| 19631 | ;; |
| 19632 | *) |
| 19633 | ;; |
| 19634 | esac |
| 19635 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19636 | interix*) |
| 19637 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19638 | # Anyone wants to do a port? |
| 19639 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19640 | irix5* | irix6* | nonstopux*) |
| 19641 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19642 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19643 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19644 | lt_prog_compiler_static_CXX='-non_shared' |
| 19645 | # CC pic flag -KPIC is the default. |
| 19646 | ;; |
| 19647 | *) |
| 19648 | ;; |
| 19649 | esac |
| 19650 | ;; |
| 19651 | linux*) |
| 19652 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19653 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19654 | # KAI C++ Compiler |
| 19655 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19656 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19657 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19658 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19659 | # Intel C++ |
| 19660 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19661 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19662 | lt_prog_compiler_static_CXX='-static' |
| 19663 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19664 | pgCC*) |
| 19665 | # Portland Group C++ compiler. |
| 19666 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19667 | lt_prog_compiler_pic_CXX='-fpic' |
| 19668 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19669 | ;; |
| 19670 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19671 | # Compaq C++ |
| 19672 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19673 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19674 | lt_prog_compiler_pic_CXX= |
| 19675 | lt_prog_compiler_static_CXX='-non_shared' |
| 19676 | ;; |
| 19677 | *) |
| 19678 | ;; |
| 19679 | esac |
| 19680 | ;; |
| 19681 | lynxos*) |
| 19682 | ;; |
| 19683 | m88k*) |
| 19684 | ;; |
| 19685 | mvs*) |
| 19686 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19687 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19688 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19689 | ;; |
| 19690 | *) |
| 19691 | ;; |
| 19692 | esac |
| 19693 | ;; |
| 19694 | netbsd*) |
| 19695 | ;; |
| 19696 | osf3* | osf4* | osf5*) |
| 19697 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19698 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19699 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19700 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19701 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19702 | # Rational C++ 2.4.1 |
| 19703 | lt_prog_compiler_pic_CXX='-pic' |
| 19704 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19705 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19706 | # Digital/Compaq C++ |
| 19707 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19708 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19709 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19710 | lt_prog_compiler_pic_CXX= |
| 19711 | lt_prog_compiler_static_CXX='-non_shared' |
| 19712 | ;; |
| 19713 | *) |
| 19714 | ;; |
| 19715 | esac |
| 19716 | ;; |
| 19717 | psos*) |
| 19718 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19719 | solaris*) |
| 19720 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19721 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19722 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19723 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19724 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19725 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19726 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19727 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19728 | # Green Hills C++ Compiler |
| 19729 | lt_prog_compiler_pic_CXX='-PIC' |
| 19730 | ;; |
| 19731 | *) |
| 19732 | ;; |
| 19733 | esac |
| 19734 | ;; |
| 19735 | sunos4*) |
| 19736 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19737 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19738 | # Sun C++ 4.x |
| 19739 | lt_prog_compiler_pic_CXX='-pic' |
| 19740 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19741 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19742 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19743 | # Lucid |
| 19744 | lt_prog_compiler_pic_CXX='-pic' |
| 19745 | ;; |
| 19746 | *) |
| 19747 | ;; |
| 19748 | esac |
| 19749 | ;; |
| 19750 | tandem*) |
| 19751 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19752 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19753 | # NonStop-UX NCC 3.20 |
| 19754 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19755 | ;; |
| 19756 | *) |
| 19757 | ;; |
| 19758 | esac |
| 19759 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19760 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19761 | case $cc_basename in |
| 19762 | CC*) |
| 19763 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19764 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19765 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19766 | ;; |
| 19767 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19768 | ;; |
| 19769 | vxworks*) |
| 19770 | ;; |
| 19771 | *) |
| 19772 | lt_prog_compiler_can_build_shared_CXX=no |
| 19773 | ;; |
| 19774 | esac |
| 19775 | fi |
| 19776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19777 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19778 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19779 | |
| 19780 | # |
| 19781 | # Check to make sure the PIC flag actually works. |
| 19782 | # |
| 19783 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19785 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19786 | 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] | 19787 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19789 | else |
| 19790 | lt_prog_compiler_pic_works_CXX=no |
| 19791 | ac_outfile=conftest.$ac_objext |
| 19792 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19793 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19794 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19795 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19796 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19797 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19798 | # The option is referenced via a variable to avoid confusing sed. |
| 19799 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19800 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19801 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19802 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 19803 | (eval echo "\"\$as_me:19803: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19804 | (eval "$lt_compile" 2>conftest.err) |
| 19805 | ac_status=$? |
| 19806 | cat conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 19807 | echo "$as_me:19807: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19808 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19809 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19810 | # So say no if there are warnings other than the usual output. |
| 19811 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19812 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19813 | 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] | 19814 | lt_prog_compiler_pic_works_CXX=yes |
| 19815 | fi |
| 19816 | fi |
| 19817 | $rm conftest* |
| 19818 | |
| 19819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19820 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 19821 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19822 | |
| 19823 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 19824 | case $lt_prog_compiler_pic_CXX in |
| 19825 | "" | " "*) ;; |
| 19826 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19827 | esac |
| 19828 | else |
| 19829 | lt_prog_compiler_pic_CXX= |
| 19830 | lt_prog_compiler_can_build_shared_CXX=no |
| 19831 | fi |
| 19832 | |
| 19833 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19834 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19835 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19836 | *djgpp*) |
| 19837 | lt_prog_compiler_pic_CXX= |
| 19838 | ;; |
| 19839 | *) |
| 19840 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19841 | ;; |
| 19842 | esac |
| 19843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19844 | # |
| 19845 | # Check to make sure the static flag actually works. |
| 19846 | # |
| 19847 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19848 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19849 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 19850 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 19851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19852 | else |
| 19853 | lt_prog_compiler_static_works_CXX=no |
| 19854 | save_LDFLAGS="$LDFLAGS" |
| 19855 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19856 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19857 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19858 | # The linker can only warn and ignore the option if not recognized |
| 19859 | # So say no if there are warnings |
| 19860 | if test -s conftest.err; then |
| 19861 | # Append any errors to the config.log. |
| 19862 | cat conftest.err 1>&5 |
| 19863 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 19864 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19865 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19866 | lt_prog_compiler_static_works_CXX=yes |
| 19867 | fi |
| 19868 | else |
| 19869 | lt_prog_compiler_static_works_CXX=yes |
| 19870 | fi |
| 19871 | fi |
| 19872 | $rm conftest* |
| 19873 | LDFLAGS="$save_LDFLAGS" |
| 19874 | |
| 19875 | fi |
| 19876 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 19877 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 19878 | |
| 19879 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 19880 | : |
| 19881 | else |
| 19882 | lt_prog_compiler_static_CXX= |
| 19883 | fi |
| 19884 | |
| 19885 | |
| 19886 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19887 | 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] | 19888 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 19889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19890 | else |
| 19891 | lt_cv_prog_compiler_c_o_CXX=no |
| 19892 | $rm -r conftest 2>/dev/null |
| 19893 | mkdir conftest |
| 19894 | cd conftest |
| 19895 | mkdir out |
| 19896 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19897 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19898 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19899 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19900 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19901 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19902 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19903 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19904 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19905 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19906 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 19907 | (eval echo "\"\$as_me:19907: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19908 | (eval "$lt_compile" 2>out/conftest.err) |
| 19909 | ac_status=$? |
| 19910 | cat out/conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 19911 | echo "$as_me:19911: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19912 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19913 | then |
| 19914 | # The compiler can only warn and ignore the option if not recognized |
| 19915 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19916 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 19917 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19918 | 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] | 19919 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19920 | fi |
| 19921 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19922 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19923 | $rm conftest* |
| 19924 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19925 | # template instantiation |
| 19926 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19927 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19928 | cd .. |
| 19929 | rmdir conftest |
| 19930 | $rm conftest* |
| 19931 | |
| 19932 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19933 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19934 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19935 | |
| 19936 | |
| 19937 | hard_links="nottested" |
| 19938 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19939 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19940 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19941 | 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] | 19942 | hard_links=yes |
| 19943 | $rm conftest* |
| 19944 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19945 | touch conftest.a |
| 19946 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19947 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19948 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19949 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19950 | if test "$hard_links" = no; then |
| 19951 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19952 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19953 | need_locks=warn |
| 19954 | fi |
| 19955 | else |
| 19956 | need_locks=no |
| 19957 | fi |
| 19958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19959 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19960 | 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] | 19961 | |
| 19962 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19963 | case $host_os in |
| 19964 | aix4* | aix5*) |
| 19965 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19966 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19967 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19968 | 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' |
| 19969 | else |
| 19970 | 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' |
| 19971 | fi |
| 19972 | ;; |
| 19973 | pw32*) |
| 19974 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 19975 | ;; |
| 19976 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19977 | 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] | 19978 | ;; |
| 19979 | *) |
| 19980 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19981 | ;; |
| 19982 | esac |
| 19983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19984 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19985 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19986 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19987 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19988 | # |
| 19989 | # Do we need to explicitly link libc? |
| 19990 | # |
| 19991 | case "x$archive_cmds_need_lc_CXX" in |
| 19992 | x|xyes) |
| 19993 | # Assume -lc should be added |
| 19994 | archive_cmds_need_lc_CXX=yes |
| 19995 | |
| 19996 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19997 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19998 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19999 | # FIXME: we may have to deal with multi-command sequences. |
| 20000 | ;; |
| 20001 | '$CC '*) |
| 20002 | # Test whether the compiler implicitly links with -lc since on some |
| 20003 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 20004 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20005 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 20006 | 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] | 20007 | $rm conftest* |
| 20008 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20009 | |
| 20010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20011 | (eval $ac_compile) 2>&5 |
| 20012 | ac_status=$? |
| 20013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20014 | (exit $ac_status); } 2>conftest.err; then |
| 20015 | soname=conftest |
| 20016 | lib=conftest |
| 20017 | libobjs=conftest.$ac_objext |
| 20018 | deplibs= |
| 20019 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20020 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20021 | compiler_flags=-v |
| 20022 | linker_flags=-v |
| 20023 | verstring= |
| 20024 | output_objdir=. |
| 20025 | libname=conftest |
| 20026 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 20027 | allow_undefined_flag_CXX= |
| 20028 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20029 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20030 | ac_status=$? |
| 20031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20032 | (exit $ac_status); } |
| 20033 | then |
| 20034 | archive_cmds_need_lc_CXX=no |
| 20035 | else |
| 20036 | archive_cmds_need_lc_CXX=yes |
| 20037 | fi |
| 20038 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 20039 | else |
| 20040 | cat conftest.err 1>&5 |
| 20041 | fi |
| 20042 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20043 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 20044 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20045 | ;; |
| 20046 | esac |
| 20047 | fi |
| 20048 | ;; |
| 20049 | esac |
| 20050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20051 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20052 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20053 | library_names_spec= |
| 20054 | libname_spec='lib$name' |
| 20055 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20056 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20057 | postinstall_cmds= |
| 20058 | postuninstall_cmds= |
| 20059 | finish_cmds= |
| 20060 | finish_eval= |
| 20061 | shlibpath_var= |
| 20062 | shlibpath_overrides_runpath=unknown |
| 20063 | version_type=none |
| 20064 | dynamic_linker="$host_os ld.so" |
| 20065 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20066 | if test "$GCC" = yes; then |
| 20067 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20068 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20069 | # if the path contains ";" then we assume it to be the separator |
| 20070 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20071 | # assumed that no part of a normal pathname contains ";" but that should |
| 20072 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20073 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20074 | else |
| 20075 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20076 | fi |
| 20077 | else |
| 20078 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20079 | fi |
| 20080 | need_lib_prefix=unknown |
| 20081 | hardcode_into_libs=no |
| 20082 | |
| 20083 | # when you set need_version to no, make sure it does not cause -set_version |
| 20084 | # flags to be left without arguments |
| 20085 | need_version=unknown |
| 20086 | |
| 20087 | case $host_os in |
| 20088 | aix3*) |
| 20089 | version_type=linux |
| 20090 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20091 | shlibpath_var=LIBPATH |
| 20092 | |
| 20093 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20094 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20095 | ;; |
| 20096 | |
| 20097 | aix4* | aix5*) |
| 20098 | version_type=linux |
| 20099 | need_lib_prefix=no |
| 20100 | need_version=no |
| 20101 | hardcode_into_libs=yes |
| 20102 | if test "$host_cpu" = ia64; then |
| 20103 | # AIX 5 supports IA64 |
| 20104 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20105 | shlibpath_var=LD_LIBRARY_PATH |
| 20106 | else |
| 20107 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20108 | # for dependence libraries. The import file would start with |
| 20109 | # the line `#! .'. This would cause the generated library to |
| 20110 | # depend on `.', always an invalid library. This was fixed in |
| 20111 | # development snapshots of GCC prior to 3.0. |
| 20112 | case $host_os in |
| 20113 | aix4 | aix4.[01] | aix4.[01].*) |
| 20114 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20115 | echo ' yes ' |
| 20116 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20117 | : |
| 20118 | else |
| 20119 | can_build_shared=no |
| 20120 | fi |
| 20121 | ;; |
| 20122 | esac |
| 20123 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20124 | # soname into executable. Probably we can add versioning support to |
| 20125 | # collect2, so additional links can be useful in future. |
| 20126 | if test "$aix_use_runtimelinking" = yes; then |
| 20127 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20128 | # instead of lib<name>.a to let people know that these are not |
| 20129 | # typical AIX shared libraries. |
| 20130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20131 | else |
| 20132 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20133 | # and later when we are not doing run time linking. |
| 20134 | library_names_spec='${libname}${release}.a $libname.a' |
| 20135 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20136 | fi |
| 20137 | shlibpath_var=LIBPATH |
| 20138 | fi |
| 20139 | ;; |
| 20140 | |
| 20141 | amigaos*) |
| 20142 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20143 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20144 | 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] | 20145 | ;; |
| 20146 | |
| 20147 | beos*) |
| 20148 | library_names_spec='${libname}${shared_ext}' |
| 20149 | dynamic_linker="$host_os ld.so" |
| 20150 | shlibpath_var=LIBRARY_PATH |
| 20151 | ;; |
| 20152 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20153 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20154 | version_type=linux |
| 20155 | need_version=no |
| 20156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20157 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20158 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20159 | shlibpath_var=LD_LIBRARY_PATH |
| 20160 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20161 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20162 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20163 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20164 | # libtool to hard-code these into programs |
| 20165 | ;; |
| 20166 | |
| 20167 | cygwin* | mingw* | pw32*) |
| 20168 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20169 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20170 | need_version=no |
| 20171 | need_lib_prefix=no |
| 20172 | |
| 20173 | case $GCC,$host_os in |
| 20174 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20175 | library_names_spec='$libname.dll.a' |
| 20176 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20177 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20178 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20179 | dldir=$destdir/`dirname \$dlpath`~ |
| 20180 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20181 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20182 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20183 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20184 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20185 | $rm \$dlpath' |
| 20186 | shlibpath_overrides_runpath=yes |
| 20187 | |
| 20188 | case $host_os in |
| 20189 | cygwin*) |
| 20190 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20191 | 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] | 20192 | 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] | 20193 | ;; |
| 20194 | mingw*) |
| 20195 | # MinGW DLLs use traditional 'lib' prefix |
| 20196 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20197 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20198 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20199 | # It is most probably a Windows format PATH printed by |
| 20200 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20201 | # path with ; separators, and with drive letters. We can handle the |
| 20202 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20203 | # especially as we might pass files found there to a mingw objdump, |
| 20204 | # which wouldn't understand a cygwinified path. Ahh. |
| 20205 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20206 | else |
| 20207 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20208 | fi |
| 20209 | ;; |
| 20210 | pw32*) |
| 20211 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20212 | 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] | 20213 | ;; |
| 20214 | esac |
| 20215 | ;; |
| 20216 | |
| 20217 | *) |
| 20218 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20219 | ;; |
| 20220 | esac |
| 20221 | dynamic_linker='Win32 ld.exe' |
| 20222 | # FIXME: first we should search . and the directory the executable is in |
| 20223 | shlibpath_var=PATH |
| 20224 | ;; |
| 20225 | |
| 20226 | darwin* | rhapsody*) |
| 20227 | dynamic_linker="$host_os dyld" |
| 20228 | version_type=darwin |
| 20229 | need_lib_prefix=no |
| 20230 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20231 | 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] | 20232 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20233 | shlibpath_overrides_runpath=yes |
| 20234 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20235 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20236 | # 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] | 20237 | if test "$GCC" = yes; then |
| 20238 | 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"` |
| 20239 | else |
| 20240 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20241 | fi |
| 20242 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20243 | ;; |
| 20244 | |
| 20245 | dgux*) |
| 20246 | version_type=linux |
| 20247 | need_lib_prefix=no |
| 20248 | need_version=no |
| 20249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20250 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20251 | shlibpath_var=LD_LIBRARY_PATH |
| 20252 | ;; |
| 20253 | |
| 20254 | freebsd1*) |
| 20255 | dynamic_linker=no |
| 20256 | ;; |
| 20257 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20258 | kfreebsd*-gnu) |
| 20259 | version_type=linux |
| 20260 | need_lib_prefix=no |
| 20261 | need_version=no |
| 20262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20263 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20264 | shlibpath_var=LD_LIBRARY_PATH |
| 20265 | shlibpath_overrides_runpath=no |
| 20266 | hardcode_into_libs=yes |
| 20267 | dynamic_linker='GNU ld.so' |
| 20268 | ;; |
| 20269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20270 | freebsd* | dragonfly*) |
| 20271 | # DragonFly does not have aout. When/if they implement a new |
| 20272 | # versioning mechanism, adjust this. |
| 20273 | if test -x /usr/bin/objformat; then |
| 20274 | objformat=`/usr/bin/objformat` |
| 20275 | else |
| 20276 | case $host_os in |
| 20277 | freebsd[123]*) objformat=aout ;; |
| 20278 | *) objformat=elf ;; |
| 20279 | esac |
| 20280 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20281 | version_type=freebsd-$objformat |
| 20282 | case $version_type in |
| 20283 | freebsd-elf*) |
| 20284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20285 | need_version=no |
| 20286 | need_lib_prefix=no |
| 20287 | ;; |
| 20288 | freebsd-*) |
| 20289 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20290 | need_version=yes |
| 20291 | ;; |
| 20292 | esac |
| 20293 | shlibpath_var=LD_LIBRARY_PATH |
| 20294 | case $host_os in |
| 20295 | freebsd2*) |
| 20296 | shlibpath_overrides_runpath=yes |
| 20297 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20298 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20299 | shlibpath_overrides_runpath=yes |
| 20300 | hardcode_into_libs=yes |
| 20301 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20302 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20303 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20304 | shlibpath_overrides_runpath=no |
| 20305 | hardcode_into_libs=yes |
| 20306 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20307 | freebsd*) # from 4.6 on |
| 20308 | shlibpath_overrides_runpath=yes |
| 20309 | hardcode_into_libs=yes |
| 20310 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20311 | esac |
| 20312 | ;; |
| 20313 | |
| 20314 | gnu*) |
| 20315 | version_type=linux |
| 20316 | need_lib_prefix=no |
| 20317 | need_version=no |
| 20318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20319 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20320 | shlibpath_var=LD_LIBRARY_PATH |
| 20321 | hardcode_into_libs=yes |
| 20322 | ;; |
| 20323 | |
| 20324 | hpux9* | hpux10* | hpux11*) |
| 20325 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20326 | # link against other versions. |
| 20327 | version_type=sunos |
| 20328 | need_lib_prefix=no |
| 20329 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20330 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20331 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20332 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20333 | hardcode_into_libs=yes |
| 20334 | dynamic_linker="$host_os dld.so" |
| 20335 | shlibpath_var=LD_LIBRARY_PATH |
| 20336 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20338 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20339 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20340 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20341 | else |
| 20342 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20343 | fi |
| 20344 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20345 | ;; |
| 20346 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20347 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20348 | hardcode_into_libs=yes |
| 20349 | dynamic_linker="$host_os dld.sl" |
| 20350 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20351 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20353 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20354 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20355 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20356 | ;; |
| 20357 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20358 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20359 | dynamic_linker="$host_os dld.sl" |
| 20360 | shlibpath_var=SHLIB_PATH |
| 20361 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20363 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20364 | ;; |
| 20365 | esac |
| 20366 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20367 | postinstall_cmds='chmod 555 $lib' |
| 20368 | ;; |
| 20369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20370 | interix3*) |
| 20371 | version_type=linux |
| 20372 | need_lib_prefix=no |
| 20373 | need_version=no |
| 20374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20375 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20376 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20377 | shlibpath_var=LD_LIBRARY_PATH |
| 20378 | shlibpath_overrides_runpath=no |
| 20379 | hardcode_into_libs=yes |
| 20380 | ;; |
| 20381 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20382 | irix5* | irix6* | nonstopux*) |
| 20383 | case $host_os in |
| 20384 | nonstopux*) version_type=nonstopux ;; |
| 20385 | *) |
| 20386 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20387 | version_type=linux |
| 20388 | else |
| 20389 | version_type=irix |
| 20390 | fi ;; |
| 20391 | esac |
| 20392 | need_lib_prefix=no |
| 20393 | need_version=no |
| 20394 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20396 | case $host_os in |
| 20397 | irix5* | nonstopux*) |
| 20398 | libsuff= shlibsuff= |
| 20399 | ;; |
| 20400 | *) |
| 20401 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20402 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20403 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20404 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20405 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20406 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20407 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20408 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20409 | esac |
| 20410 | ;; |
| 20411 | esac |
| 20412 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20413 | shlibpath_overrides_runpath=no |
| 20414 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20415 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20416 | hardcode_into_libs=yes |
| 20417 | ;; |
| 20418 | |
| 20419 | # No shared lib support for Linux oldld, aout, or coff. |
| 20420 | linux*oldld* | linux*aout* | linux*coff*) |
| 20421 | dynamic_linker=no |
| 20422 | ;; |
| 20423 | |
| 20424 | # This must be Linux ELF. |
| 20425 | linux*) |
| 20426 | version_type=linux |
| 20427 | need_lib_prefix=no |
| 20428 | need_version=no |
| 20429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20430 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20431 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20432 | shlibpath_var=LD_LIBRARY_PATH |
| 20433 | shlibpath_overrides_runpath=no |
| 20434 | # This implies no fast_install, which is unacceptable. |
| 20435 | # Some rework will be needed to allow for fast_install |
| 20436 | # before this can be enabled. |
| 20437 | hardcode_into_libs=yes |
| 20438 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20439 | # Append ld.so.conf contents to the search path |
| 20440 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20441 | 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] | 20442 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20443 | fi |
| 20444 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20445 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20446 | # powerpc, because MkLinux only supported shared libraries with the |
| 20447 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20448 | # most powerpc-linux boxes support dynamic linking these days and |
| 20449 | # people can always --disable-shared, the test was removed, and we |
| 20450 | # assume the GNU/Linux dynamic linker is in use. |
| 20451 | dynamic_linker='GNU/Linux ld.so' |
| 20452 | ;; |
| 20453 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20454 | knetbsd*-gnu) |
| 20455 | version_type=linux |
| 20456 | need_lib_prefix=no |
| 20457 | need_version=no |
| 20458 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20459 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20460 | shlibpath_var=LD_LIBRARY_PATH |
| 20461 | shlibpath_overrides_runpath=no |
| 20462 | hardcode_into_libs=yes |
| 20463 | dynamic_linker='GNU ld.so' |
| 20464 | ;; |
| 20465 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20466 | netbsd*) |
| 20467 | version_type=sunos |
| 20468 | need_lib_prefix=no |
| 20469 | need_version=no |
| 20470 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20472 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20473 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20474 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20475 | 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] | 20476 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20477 | dynamic_linker='NetBSD ld.elf_so' |
| 20478 | fi |
| 20479 | shlibpath_var=LD_LIBRARY_PATH |
| 20480 | shlibpath_overrides_runpath=yes |
| 20481 | hardcode_into_libs=yes |
| 20482 | ;; |
| 20483 | |
| 20484 | newsos6) |
| 20485 | version_type=linux |
| 20486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20487 | shlibpath_var=LD_LIBRARY_PATH |
| 20488 | shlibpath_overrides_runpath=yes |
| 20489 | ;; |
| 20490 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20491 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20492 | version_type=linux |
| 20493 | need_lib_prefix=no |
| 20494 | need_version=no |
| 20495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20496 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20497 | shlibpath_var=LD_LIBRARY_PATH |
| 20498 | shlibpath_overrides_runpath=yes |
| 20499 | ;; |
| 20500 | |
| 20501 | openbsd*) |
| 20502 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20503 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20504 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20505 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20506 | case $host_os in |
| 20507 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20508 | *) need_version=no ;; |
| 20509 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20511 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20512 | shlibpath_var=LD_LIBRARY_PATH |
| 20513 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20514 | case $host_os in |
| 20515 | openbsd2.[89] | openbsd2.[89].*) |
| 20516 | shlibpath_overrides_runpath=no |
| 20517 | ;; |
| 20518 | *) |
| 20519 | shlibpath_overrides_runpath=yes |
| 20520 | ;; |
| 20521 | esac |
| 20522 | else |
| 20523 | shlibpath_overrides_runpath=yes |
| 20524 | fi |
| 20525 | ;; |
| 20526 | |
| 20527 | os2*) |
| 20528 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20529 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20530 | need_lib_prefix=no |
| 20531 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20532 | dynamic_linker='OS/2 ld.exe' |
| 20533 | shlibpath_var=LIBPATH |
| 20534 | ;; |
| 20535 | |
| 20536 | osf3* | osf4* | osf5*) |
| 20537 | version_type=osf |
| 20538 | need_lib_prefix=no |
| 20539 | need_version=no |
| 20540 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20542 | shlibpath_var=LD_LIBRARY_PATH |
| 20543 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20544 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20545 | ;; |
| 20546 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20547 | solaris*) |
| 20548 | version_type=linux |
| 20549 | need_lib_prefix=no |
| 20550 | need_version=no |
| 20551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20552 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20553 | shlibpath_var=LD_LIBRARY_PATH |
| 20554 | shlibpath_overrides_runpath=yes |
| 20555 | hardcode_into_libs=yes |
| 20556 | # ldd complains unless libraries are executable |
| 20557 | postinstall_cmds='chmod +x $lib' |
| 20558 | ;; |
| 20559 | |
| 20560 | sunos4*) |
| 20561 | version_type=sunos |
| 20562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20563 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20564 | shlibpath_var=LD_LIBRARY_PATH |
| 20565 | shlibpath_overrides_runpath=yes |
| 20566 | if test "$with_gnu_ld" = yes; then |
| 20567 | need_lib_prefix=no |
| 20568 | fi |
| 20569 | need_version=yes |
| 20570 | ;; |
| 20571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20572 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20573 | version_type=linux |
| 20574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20575 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20576 | shlibpath_var=LD_LIBRARY_PATH |
| 20577 | case $host_vendor in |
| 20578 | sni) |
| 20579 | shlibpath_overrides_runpath=no |
| 20580 | need_lib_prefix=no |
| 20581 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20582 | runpath_var=LD_RUN_PATH |
| 20583 | ;; |
| 20584 | siemens) |
| 20585 | need_lib_prefix=no |
| 20586 | ;; |
| 20587 | motorola) |
| 20588 | need_lib_prefix=no |
| 20589 | need_version=no |
| 20590 | shlibpath_overrides_runpath=no |
| 20591 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20592 | ;; |
| 20593 | esac |
| 20594 | ;; |
| 20595 | |
| 20596 | sysv4*MP*) |
| 20597 | if test -d /usr/nec ;then |
| 20598 | version_type=linux |
| 20599 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20600 | soname_spec='$libname${shared_ext}.$major' |
| 20601 | shlibpath_var=LD_LIBRARY_PATH |
| 20602 | fi |
| 20603 | ;; |
| 20604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20605 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20606 | version_type=freebsd-elf |
| 20607 | need_lib_prefix=no |
| 20608 | need_version=no |
| 20609 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20610 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20611 | shlibpath_var=LD_LIBRARY_PATH |
| 20612 | hardcode_into_libs=yes |
| 20613 | if test "$with_gnu_ld" = yes; then |
| 20614 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20615 | shlibpath_overrides_runpath=no |
| 20616 | else |
| 20617 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20618 | shlibpath_overrides_runpath=yes |
| 20619 | case $host_os in |
| 20620 | sco3.2v5*) |
| 20621 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20622 | ;; |
| 20623 | esac |
| 20624 | fi |
| 20625 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20626 | ;; |
| 20627 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20628 | uts4*) |
| 20629 | version_type=linux |
| 20630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20631 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20632 | shlibpath_var=LD_LIBRARY_PATH |
| 20633 | ;; |
| 20634 | |
| 20635 | *) |
| 20636 | dynamic_linker=no |
| 20637 | ;; |
| 20638 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20639 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20640 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20641 | test "$dynamic_linker" = no && can_build_shared=no |
| 20642 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20643 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20644 | if test "$GCC" = yes; then |
| 20645 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20646 | fi |
| 20647 | |
| 20648 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20649 | 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] | 20650 | hardcode_action_CXX= |
| 20651 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20652 | test -n "$runpath_var_CXX" || \ |
| 20653 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20654 | |
| 20655 | # We can hardcode non-existant directories. |
| 20656 | if test "$hardcode_direct_CXX" != no && |
| 20657 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20658 | # have to relink, otherwise we might link with an installed library |
| 20659 | # when we should be linking with a yet-to-be-installed one |
| 20660 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20661 | test "$hardcode_minus_L_CXX" != no; then |
| 20662 | # Linking always hardcodes the temporary library directory. |
| 20663 | hardcode_action_CXX=relink |
| 20664 | else |
| 20665 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20666 | hardcode_action_CXX=immediate |
| 20667 | fi |
| 20668 | else |
| 20669 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20670 | # directories. |
| 20671 | hardcode_action_CXX=unsupported |
| 20672 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20673 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20674 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20675 | |
| 20676 | if test "$hardcode_action_CXX" = relink; then |
| 20677 | # Fast installation is not supported |
| 20678 | enable_fast_install=no |
| 20679 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20680 | test "$enable_shared" = no; then |
| 20681 | # Fast installation is not necessary |
| 20682 | enable_fast_install=needless |
| 20683 | fi |
| 20684 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20685 | |
| 20686 | # The else clause should only fire when bootstrapping the |
| 20687 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20688 | # with your package, and you will get complaints that there are |
| 20689 | # no rules to generate ltmain.sh. |
| 20690 | if test -f "$ltmain"; then |
| 20691 | # See if we are running on zsh, and set the options which allow our commands through |
| 20692 | # without removal of \ escapes. |
| 20693 | if test -n "${ZSH_VERSION+set}" ; then |
| 20694 | setopt NO_GLOB_SUBST |
| 20695 | fi |
| 20696 | # Now quote all the things that may contain metacharacters while being |
| 20697 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20698 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20699 | 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] | 20700 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20701 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20702 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20703 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20704 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20705 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20706 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20707 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20708 | compiler_CXX \ |
| 20709 | CC_CXX \ |
| 20710 | LD_CXX \ |
| 20711 | lt_prog_compiler_wl_CXX \ |
| 20712 | lt_prog_compiler_pic_CXX \ |
| 20713 | lt_prog_compiler_static_CXX \ |
| 20714 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20715 | export_dynamic_flag_spec_CXX \ |
| 20716 | thread_safe_flag_spec_CXX \ |
| 20717 | whole_archive_flag_spec_CXX \ |
| 20718 | enable_shared_with_static_runtimes_CXX \ |
| 20719 | old_archive_cmds_CXX \ |
| 20720 | old_archive_from_new_cmds_CXX \ |
| 20721 | predep_objects_CXX \ |
| 20722 | postdep_objects_CXX \ |
| 20723 | predeps_CXX \ |
| 20724 | postdeps_CXX \ |
| 20725 | compiler_lib_search_path_CXX \ |
| 20726 | archive_cmds_CXX \ |
| 20727 | archive_expsym_cmds_CXX \ |
| 20728 | postinstall_cmds_CXX \ |
| 20729 | postuninstall_cmds_CXX \ |
| 20730 | old_archive_from_expsyms_cmds_CXX \ |
| 20731 | allow_undefined_flag_CXX \ |
| 20732 | no_undefined_flag_CXX \ |
| 20733 | export_symbols_cmds_CXX \ |
| 20734 | hardcode_libdir_flag_spec_CXX \ |
| 20735 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20736 | hardcode_libdir_separator_CXX \ |
| 20737 | hardcode_automatic_CXX \ |
| 20738 | module_cmds_CXX \ |
| 20739 | module_expsym_cmds_CXX \ |
| 20740 | lt_cv_prog_compiler_c_o_CXX \ |
| 20741 | exclude_expsyms_CXX \ |
| 20742 | include_expsyms_CXX; do |
| 20743 | |
| 20744 | case $var in |
| 20745 | old_archive_cmds_CXX | \ |
| 20746 | old_archive_from_new_cmds_CXX | \ |
| 20747 | archive_cmds_CXX | \ |
| 20748 | archive_expsym_cmds_CXX | \ |
| 20749 | module_cmds_CXX | \ |
| 20750 | module_expsym_cmds_CXX | \ |
| 20751 | old_archive_from_expsyms_cmds_CXX | \ |
| 20752 | export_symbols_cmds_CXX | \ |
| 20753 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20754 | postinstall_cmds | postuninstall_cmds | \ |
| 20755 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20756 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20757 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20758 | 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] | 20759 | ;; |
| 20760 | *) |
| 20761 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20762 | ;; |
| 20763 | esac |
| 20764 | done |
| 20765 | |
| 20766 | case $lt_echo in |
| 20767 | *'\$0 --fallback-echo"') |
| 20768 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20769 | ;; |
| 20770 | esac |
| 20771 | |
| 20772 | cfgfile="$ofile" |
| 20773 | |
| 20774 | cat <<__EOF__ >> "$cfgfile" |
| 20775 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20776 | |
| 20777 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20778 | |
| 20779 | # Shell to use when invoking shell scripts. |
| 20780 | SHELL=$lt_SHELL |
| 20781 | |
| 20782 | # Whether or not to build shared libraries. |
| 20783 | build_libtool_libs=$enable_shared |
| 20784 | |
| 20785 | # Whether or not to build static libraries. |
| 20786 | build_old_libs=$enable_static |
| 20787 | |
| 20788 | # Whether or not to add -lc for building shared libraries. |
| 20789 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20790 | |
| 20791 | # Whether or not to disallow shared libs when runtime libs are static |
| 20792 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20793 | |
| 20794 | # Whether or not to optimize for fast installation. |
| 20795 | fast_install=$enable_fast_install |
| 20796 | |
| 20797 | # The host system. |
| 20798 | host_alias=$host_alias |
| 20799 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20800 | host_os=$host_os |
| 20801 | |
| 20802 | # The build system. |
| 20803 | build_alias=$build_alias |
| 20804 | build=$build |
| 20805 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20806 | |
| 20807 | # An echo program that does not interpret backslashes. |
| 20808 | echo=$lt_echo |
| 20809 | |
| 20810 | # The archiver. |
| 20811 | AR=$lt_AR |
| 20812 | AR_FLAGS=$lt_AR_FLAGS |
| 20813 | |
| 20814 | # A C compiler. |
| 20815 | LTCC=$lt_LTCC |
| 20816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20817 | # LTCC compiler flags. |
| 20818 | LTCFLAGS=$lt_LTCFLAGS |
| 20819 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20820 | # A language-specific compiler. |
| 20821 | CC=$lt_compiler_CXX |
| 20822 | |
| 20823 | # Is the compiler the GNU C compiler? |
| 20824 | with_gcc=$GCC_CXX |
| 20825 | |
| 20826 | # An ERE matcher. |
| 20827 | EGREP=$lt_EGREP |
| 20828 | |
| 20829 | # The linker used to build libraries. |
| 20830 | LD=$lt_LD_CXX |
| 20831 | |
| 20832 | # Whether we need hard or soft links. |
| 20833 | LN_S=$lt_LN_S |
| 20834 | |
| 20835 | # A BSD-compatible nm program. |
| 20836 | NM=$lt_NM |
| 20837 | |
| 20838 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20839 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20840 | |
| 20841 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20842 | MAGIC_CMD=$MAGIC_CMD |
| 20843 | |
| 20844 | # Used on cygwin: DLL creation program. |
| 20845 | DLLTOOL="$DLLTOOL" |
| 20846 | |
| 20847 | # Used on cygwin: object dumper. |
| 20848 | OBJDUMP="$OBJDUMP" |
| 20849 | |
| 20850 | # Used on cygwin: assembler. |
| 20851 | AS="$AS" |
| 20852 | |
| 20853 | # The name of the directory that contains temporary libtool files. |
| 20854 | objdir=$objdir |
| 20855 | |
| 20856 | # How to create reloadable object files. |
| 20857 | reload_flag=$lt_reload_flag |
| 20858 | reload_cmds=$lt_reload_cmds |
| 20859 | |
| 20860 | # How to pass a linker flag through the compiler. |
| 20861 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20862 | |
| 20863 | # Object file suffix (normally "o"). |
| 20864 | objext="$ac_objext" |
| 20865 | |
| 20866 | # Old archive suffix (normally "a"). |
| 20867 | libext="$libext" |
| 20868 | |
| 20869 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20870 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20871 | |
| 20872 | # Executable file suffix (normally ""). |
| 20873 | exeext="$exeext" |
| 20874 | |
| 20875 | # Additional compiler flags for building library objects. |
| 20876 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20877 | pic_mode=$pic_mode |
| 20878 | |
| 20879 | # What is the maximum length of a command? |
| 20880 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20881 | |
| 20882 | # Does compiler simultaneously support -c and -o options? |
| 20883 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20885 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20886 | need_locks=$lt_need_locks |
| 20887 | |
| 20888 | # Do we need the lib prefix for modules? |
| 20889 | need_lib_prefix=$need_lib_prefix |
| 20890 | |
| 20891 | # Do we need a version for libraries? |
| 20892 | need_version=$need_version |
| 20893 | |
| 20894 | # Whether dlopen is supported. |
| 20895 | dlopen_support=$enable_dlopen |
| 20896 | |
| 20897 | # Whether dlopen of programs is supported. |
| 20898 | dlopen_self=$enable_dlopen_self |
| 20899 | |
| 20900 | # Whether dlopen of statically linked programs is supported. |
| 20901 | dlopen_self_static=$enable_dlopen_self_static |
| 20902 | |
| 20903 | # Compiler flag to prevent dynamic linking. |
| 20904 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20905 | |
| 20906 | # Compiler flag to turn off builtin functions. |
| 20907 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20908 | |
| 20909 | # Compiler flag to allow reflexive dlopens. |
| 20910 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20911 | |
| 20912 | # Compiler flag to generate shared objects directly from archives. |
| 20913 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20914 | |
| 20915 | # Compiler flag to generate thread-safe objects. |
| 20916 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 20917 | |
| 20918 | # Library versioning type. |
| 20919 | version_type=$version_type |
| 20920 | |
| 20921 | # Format of library name prefix. |
| 20922 | libname_spec=$lt_libname_spec |
| 20923 | |
| 20924 | # List of archive names. First name is the real one, the rest are links. |
| 20925 | # The last name is the one that the linker finds with -lNAME. |
| 20926 | library_names_spec=$lt_library_names_spec |
| 20927 | |
| 20928 | # The coded name of the library, if different from the real name. |
| 20929 | soname_spec=$lt_soname_spec |
| 20930 | |
| 20931 | # Commands used to build and install an old-style archive. |
| 20932 | RANLIB=$lt_RANLIB |
| 20933 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20934 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20935 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20936 | |
| 20937 | # Create an old-style archive from a shared archive. |
| 20938 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20939 | |
| 20940 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20941 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20942 | |
| 20943 | # Commands used to build and install a shared archive. |
| 20944 | archive_cmds=$lt_archive_cmds_CXX |
| 20945 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20946 | postinstall_cmds=$lt_postinstall_cmds |
| 20947 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20948 | |
| 20949 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20950 | module_cmds=$lt_module_cmds_CXX |
| 20951 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20952 | |
| 20953 | # Commands to strip libraries. |
| 20954 | old_striplib=$lt_old_striplib |
| 20955 | striplib=$lt_striplib |
| 20956 | |
| 20957 | # Dependencies to place before the objects being linked to create a |
| 20958 | # shared library. |
| 20959 | predep_objects=$lt_predep_objects_CXX |
| 20960 | |
| 20961 | # Dependencies to place after the objects being linked to create a |
| 20962 | # shared library. |
| 20963 | postdep_objects=$lt_postdep_objects_CXX |
| 20964 | |
| 20965 | # Dependencies to place before the objects being linked to create a |
| 20966 | # shared library. |
| 20967 | predeps=$lt_predeps_CXX |
| 20968 | |
| 20969 | # Dependencies to place after the objects being linked to create a |
| 20970 | # shared library. |
| 20971 | postdeps=$lt_postdeps_CXX |
| 20972 | |
| 20973 | # The library search path used internally by the compiler when linking |
| 20974 | # a shared library. |
| 20975 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20976 | |
| 20977 | # Method to check whether dependent libraries are shared objects. |
| 20978 | deplibs_check_method=$lt_deplibs_check_method |
| 20979 | |
| 20980 | # Command to use when deplibs_check_method == file_magic. |
| 20981 | file_magic_cmd=$lt_file_magic_cmd |
| 20982 | |
| 20983 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20984 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20985 | |
| 20986 | # Flag that forces no undefined symbols. |
| 20987 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20988 | |
| 20989 | # Commands used to finish a libtool library installation in a directory. |
| 20990 | finish_cmds=$lt_finish_cmds |
| 20991 | |
| 20992 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20993 | finish_eval=$lt_finish_eval |
| 20994 | |
| 20995 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20996 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20997 | |
| 20998 | # Transform the output of nm in a proper C declaration |
| 20999 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21000 | |
| 21001 | # Transform the output of nm in a C name address pair |
| 21002 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21003 | |
| 21004 | # This is the shared library runtime path variable. |
| 21005 | runpath_var=$runpath_var |
| 21006 | |
| 21007 | # This is the shared library path variable. |
| 21008 | shlibpath_var=$shlibpath_var |
| 21009 | |
| 21010 | # Is shlibpath searched before the hard-coded library search path? |
| 21011 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21012 | |
| 21013 | # How to hardcode a shared library path into an executable. |
| 21014 | hardcode_action=$hardcode_action_CXX |
| 21015 | |
| 21016 | # Whether we should hardcode library paths into libraries. |
| 21017 | hardcode_into_libs=$hardcode_into_libs |
| 21018 | |
| 21019 | # Flag to hardcode \$libdir into a binary during linking. |
| 21020 | # This must work even if \$libdir does not exist. |
| 21021 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21022 | |
| 21023 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21024 | # a binary during linking. This must work even if \$libdir does |
| 21025 | # not exist. |
| 21026 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 21027 | |
| 21028 | # Whether we need a single -rpath flag with a separated argument. |
| 21029 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21030 | |
| 21031 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21032 | # resulting binary. |
| 21033 | hardcode_direct=$hardcode_direct_CXX |
| 21034 | |
| 21035 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21036 | # resulting binary. |
| 21037 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21038 | |
| 21039 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21040 | # the resulting binary. |
| 21041 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21042 | |
| 21043 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21044 | # and all subsequent libraries and executables linked against it. |
| 21045 | hardcode_automatic=$hardcode_automatic_CXX |
| 21046 | |
| 21047 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21048 | # restored at relink time. |
| 21049 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21050 | |
| 21051 | # Whether libtool must link a program against all its dependency libraries. |
| 21052 | link_all_deplibs=$link_all_deplibs_CXX |
| 21053 | |
| 21054 | # Compile-time system search path for libraries |
| 21055 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21056 | |
| 21057 | # Run-time system search path for libraries |
| 21058 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21059 | |
| 21060 | # Fix the shell variable \$srcfile for the compiler. |
| 21061 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 21062 | |
| 21063 | # Set to yes if exported symbols are required. |
| 21064 | always_export_symbols=$always_export_symbols_CXX |
| 21065 | |
| 21066 | # The commands to list exported symbols. |
| 21067 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21068 | |
| 21069 | # The commands to extract the exported symbol list from a shared archive. |
| 21070 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21071 | |
| 21072 | # Symbols that should not be listed in the preloaded symbols. |
| 21073 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21074 | |
| 21075 | # Symbols that must always be exported. |
| 21076 | include_expsyms=$lt_include_expsyms_CXX |
| 21077 | |
| 21078 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21079 | |
| 21080 | __EOF__ |
| 21081 | |
| 21082 | |
| 21083 | else |
| 21084 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21085 | # `config.status --recheck' to rerun these tests and create the |
| 21086 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21087 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21088 | if test -f "$ltmain_in"; then |
| 21089 | test -f Makefile && make "$ltmain" |
| 21090 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21091 | fi |
| 21092 | |
| 21093 | |
| 21094 | ac_ext=c |
| 21095 | ac_cpp='$CPP $CPPFLAGS' |
| 21096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21099 | |
| 21100 | CC=$lt_save_CC |
| 21101 | LDCXX=$LD |
| 21102 | LD=$lt_save_LD |
| 21103 | GCC=$lt_save_GCC |
| 21104 | with_gnu_ldcxx=$with_gnu_ld |
| 21105 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21106 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21107 | lt_cv_path_LD=$lt_save_path_LD |
| 21108 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21109 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21110 | |
| 21111 | else |
| 21112 | tagname="" |
| 21113 | fi |
| 21114 | ;; |
| 21115 | |
| 21116 | F77) |
| 21117 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21118 | |
| 21119 | ac_ext=f |
| 21120 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21121 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21122 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21123 | |
| 21124 | |
| 21125 | archive_cmds_need_lc_F77=no |
| 21126 | allow_undefined_flag_F77= |
| 21127 | always_export_symbols_F77=no |
| 21128 | archive_expsym_cmds_F77= |
| 21129 | export_dynamic_flag_spec_F77= |
| 21130 | hardcode_direct_F77=no |
| 21131 | hardcode_libdir_flag_spec_F77= |
| 21132 | hardcode_libdir_flag_spec_ld_F77= |
| 21133 | hardcode_libdir_separator_F77= |
| 21134 | hardcode_minus_L_F77=no |
| 21135 | hardcode_automatic_F77=no |
| 21136 | module_cmds_F77= |
| 21137 | module_expsym_cmds_F77= |
| 21138 | link_all_deplibs_F77=unknown |
| 21139 | old_archive_cmds_F77=$old_archive_cmds |
| 21140 | no_undefined_flag_F77= |
| 21141 | whole_archive_flag_spec_F77= |
| 21142 | enable_shared_with_static_runtimes_F77=no |
| 21143 | |
| 21144 | # Source file extension for f77 test sources. |
| 21145 | ac_ext=f |
| 21146 | |
| 21147 | # Object file extension for compiled f77 test sources. |
| 21148 | objext=o |
| 21149 | objext_F77=$objext |
| 21150 | |
| 21151 | # Code to be used in simple compile tests |
| 21152 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21153 | |
| 21154 | # Code to be used in simple link tests |
| 21155 | lt_simple_link_test_code=" program t\n end\n" |
| 21156 | |
| 21157 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21158 | |
| 21159 | # If no C compiler was specified, use CC. |
| 21160 | LTCC=${LTCC-"$CC"} |
| 21161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21162 | # If no C compiler flags were specified, use CFLAGS. |
| 21163 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21164 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21165 | # Allow CC to be a program name with arguments. |
| 21166 | compiler=$CC |
| 21167 | |
| 21168 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21169 | # save warnings/boilerplate of simple test code |
| 21170 | ac_outfile=conftest.$ac_objext |
| 21171 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21172 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21173 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21174 | $rm conftest* |
| 21175 | |
| 21176 | ac_outfile=conftest.$ac_objext |
| 21177 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21178 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21179 | _lt_linker_boilerplate=`cat conftest.err` |
| 21180 | $rm conftest* |
| 21181 | |
| 21182 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21183 | # Allow CC to be a program name with arguments. |
| 21184 | lt_save_CC="$CC" |
| 21185 | CC=${F77-"f77"} |
| 21186 | compiler=$CC |
| 21187 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21188 | for cc_temp in $compiler""; do |
| 21189 | case $cc_temp in |
| 21190 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21191 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21192 | \-*) ;; |
| 21193 | *) break;; |
| 21194 | esac |
| 21195 | done |
| 21196 | 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] | 21197 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21198 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21199 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21200 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21201 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21202 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21203 | |
| 21204 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21205 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21206 | test "$can_build_shared" = "no" && enable_shared=no |
| 21207 | |
| 21208 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21209 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21210 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21211 | aix3*) |
| 21212 | test "$enable_shared" = yes && enable_static=no |
| 21213 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21214 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21215 | postinstall_cmds='$RANLIB $lib' |
| 21216 | fi |
| 21217 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21218 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21219 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21220 | test "$enable_shared" = yes && enable_static=no |
| 21221 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21222 | ;; |
| 21223 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21224 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21225 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21227 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21228 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21229 | # Make sure either enable_shared or enable_static is yes. |
| 21230 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21231 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21232 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21233 | |
| 21234 | GCC_F77="$G77" |
| 21235 | LD_F77="$LD" |
| 21236 | |
| 21237 | lt_prog_compiler_wl_F77= |
| 21238 | lt_prog_compiler_pic_F77= |
| 21239 | lt_prog_compiler_static_F77= |
| 21240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21241 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21242 | 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] | 21243 | |
| 21244 | if test "$GCC" = yes; then |
| 21245 | lt_prog_compiler_wl_F77='-Wl,' |
| 21246 | lt_prog_compiler_static_F77='-static' |
| 21247 | |
| 21248 | case $host_os in |
| 21249 | aix*) |
| 21250 | # All AIX code is PIC. |
| 21251 | if test "$host_cpu" = ia64; then |
| 21252 | # AIX 5 now supports IA64 processor |
| 21253 | lt_prog_compiler_static_F77='-Bstatic' |
| 21254 | fi |
| 21255 | ;; |
| 21256 | |
| 21257 | amigaos*) |
| 21258 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21259 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21260 | # like `-m68040'. |
| 21261 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21262 | ;; |
| 21263 | |
| 21264 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21265 | # PIC is the default for these OSes. |
| 21266 | ;; |
| 21267 | |
| 21268 | mingw* | pw32* | os2*) |
| 21269 | # This hack is so that the source file can tell whether it is being |
| 21270 | # built for inclusion in a dll (and should export symbols for example). |
| 21271 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21272 | ;; |
| 21273 | |
| 21274 | darwin* | rhapsody*) |
| 21275 | # PIC is the default on this platform |
| 21276 | # Common symbols not allowed in MH_DYLIB files |
| 21277 | lt_prog_compiler_pic_F77='-fno-common' |
| 21278 | ;; |
| 21279 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21280 | interix3*) |
| 21281 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21282 | # Instead, we relocate shared libraries at runtime. |
| 21283 | ;; |
| 21284 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21285 | msdosdjgpp*) |
| 21286 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21287 | # on systems that don't support them. |
| 21288 | lt_prog_compiler_can_build_shared_F77=no |
| 21289 | enable_shared=no |
| 21290 | ;; |
| 21291 | |
| 21292 | sysv4*MP*) |
| 21293 | if test -d /usr/nec; then |
| 21294 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21295 | fi |
| 21296 | ;; |
| 21297 | |
| 21298 | hpux*) |
| 21299 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21300 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21301 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21302 | hppa*64*|ia64*) |
| 21303 | # +Z the default |
| 21304 | ;; |
| 21305 | *) |
| 21306 | lt_prog_compiler_pic_F77='-fPIC' |
| 21307 | ;; |
| 21308 | esac |
| 21309 | ;; |
| 21310 | |
| 21311 | *) |
| 21312 | lt_prog_compiler_pic_F77='-fPIC' |
| 21313 | ;; |
| 21314 | esac |
| 21315 | else |
| 21316 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21317 | case $host_os in |
| 21318 | aix*) |
| 21319 | lt_prog_compiler_wl_F77='-Wl,' |
| 21320 | if test "$host_cpu" = ia64; then |
| 21321 | # AIX 5 now supports IA64 processor |
| 21322 | lt_prog_compiler_static_F77='-Bstatic' |
| 21323 | else |
| 21324 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21325 | fi |
| 21326 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21327 | darwin*) |
| 21328 | # PIC is the default on this platform |
| 21329 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21330 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21331 | xlc*) |
| 21332 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21333 | lt_prog_compiler_wl_F77='-Wl,' |
| 21334 | ;; |
| 21335 | esac |
| 21336 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21337 | |
| 21338 | mingw* | pw32* | os2*) |
| 21339 | # This hack is so that the source file can tell whether it is being |
| 21340 | # built for inclusion in a dll (and should export symbols for example). |
| 21341 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21342 | ;; |
| 21343 | |
| 21344 | hpux9* | hpux10* | hpux11*) |
| 21345 | lt_prog_compiler_wl_F77='-Wl,' |
| 21346 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21347 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21348 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21349 | hppa*64*|ia64*) |
| 21350 | # +Z the default |
| 21351 | ;; |
| 21352 | *) |
| 21353 | lt_prog_compiler_pic_F77='+Z' |
| 21354 | ;; |
| 21355 | esac |
| 21356 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21357 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21358 | ;; |
| 21359 | |
| 21360 | irix5* | irix6* | nonstopux*) |
| 21361 | lt_prog_compiler_wl_F77='-Wl,' |
| 21362 | # PIC (with -KPIC) is the default. |
| 21363 | lt_prog_compiler_static_F77='-non_shared' |
| 21364 | ;; |
| 21365 | |
| 21366 | newsos6) |
| 21367 | lt_prog_compiler_pic_F77='-KPIC' |
| 21368 | lt_prog_compiler_static_F77='-Bstatic' |
| 21369 | ;; |
| 21370 | |
| 21371 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21372 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21373 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21374 | lt_prog_compiler_wl_F77='-Wl,' |
| 21375 | lt_prog_compiler_pic_F77='-KPIC' |
| 21376 | lt_prog_compiler_static_F77='-static' |
| 21377 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21378 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21379 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21380 | # which looks to be a dead project) |
| 21381 | lt_prog_compiler_wl_F77='-Wl,' |
| 21382 | lt_prog_compiler_pic_F77='-fpic' |
| 21383 | lt_prog_compiler_static_F77='-Bstatic' |
| 21384 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21385 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21386 | lt_prog_compiler_wl_F77='-Wl,' |
| 21387 | # All Alpha code is PIC. |
| 21388 | lt_prog_compiler_static_F77='-non_shared' |
| 21389 | ;; |
| 21390 | esac |
| 21391 | ;; |
| 21392 | |
| 21393 | osf3* | osf4* | osf5*) |
| 21394 | lt_prog_compiler_wl_F77='-Wl,' |
| 21395 | # All OSF/1 code is PIC. |
| 21396 | lt_prog_compiler_static_F77='-non_shared' |
| 21397 | ;; |
| 21398 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21399 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21400 | lt_prog_compiler_pic_F77='-KPIC' |
| 21401 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21402 | case $cc_basename in |
| 21403 | f77* | f90* | f95*) |
| 21404 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21405 | *) |
| 21406 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21407 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21408 | ;; |
| 21409 | |
| 21410 | sunos4*) |
| 21411 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21412 | lt_prog_compiler_pic_F77='-PIC' |
| 21413 | lt_prog_compiler_static_F77='-Bstatic' |
| 21414 | ;; |
| 21415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21416 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21417 | lt_prog_compiler_wl_F77='-Wl,' |
| 21418 | lt_prog_compiler_pic_F77='-KPIC' |
| 21419 | lt_prog_compiler_static_F77='-Bstatic' |
| 21420 | ;; |
| 21421 | |
| 21422 | sysv4*MP*) |
| 21423 | if test -d /usr/nec ;then |
| 21424 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21425 | lt_prog_compiler_static_F77='-Bstatic' |
| 21426 | fi |
| 21427 | ;; |
| 21428 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21429 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21430 | lt_prog_compiler_wl_F77='-Wl,' |
| 21431 | lt_prog_compiler_pic_F77='-KPIC' |
| 21432 | lt_prog_compiler_static_F77='-Bstatic' |
| 21433 | ;; |
| 21434 | |
| 21435 | unicos*) |
| 21436 | lt_prog_compiler_wl_F77='-Wl,' |
| 21437 | lt_prog_compiler_can_build_shared_F77=no |
| 21438 | ;; |
| 21439 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21440 | uts4*) |
| 21441 | lt_prog_compiler_pic_F77='-pic' |
| 21442 | lt_prog_compiler_static_F77='-Bstatic' |
| 21443 | ;; |
| 21444 | |
| 21445 | *) |
| 21446 | lt_prog_compiler_can_build_shared_F77=no |
| 21447 | ;; |
| 21448 | esac |
| 21449 | fi |
| 21450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21451 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21452 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21453 | |
| 21454 | # |
| 21455 | # Check to make sure the PIC flag actually works. |
| 21456 | # |
| 21457 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21459 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21460 | 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] | 21461 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21463 | else |
| 21464 | lt_prog_compiler_pic_works_F77=no |
| 21465 | ac_outfile=conftest.$ac_objext |
| 21466 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21467 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21468 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21469 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21470 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21471 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21472 | # The option is referenced via a variable to avoid confusing sed. |
| 21473 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21474 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21475 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21476 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 21477 | (eval echo "\"\$as_me:21477: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21478 | (eval "$lt_compile" 2>conftest.err) |
| 21479 | ac_status=$? |
| 21480 | cat conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 21481 | echo "$as_me:21481: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21482 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21483 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21484 | # So say no if there are warnings other than the usual output. |
| 21485 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21486 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21487 | 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] | 21488 | lt_prog_compiler_pic_works_F77=yes |
| 21489 | fi |
| 21490 | fi |
| 21491 | $rm conftest* |
| 21492 | |
| 21493 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21494 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21495 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21496 | |
| 21497 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21498 | case $lt_prog_compiler_pic_F77 in |
| 21499 | "" | " "*) ;; |
| 21500 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21501 | esac |
| 21502 | else |
| 21503 | lt_prog_compiler_pic_F77= |
| 21504 | lt_prog_compiler_can_build_shared_F77=no |
| 21505 | fi |
| 21506 | |
| 21507 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21508 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21509 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21510 | *djgpp*) |
| 21511 | lt_prog_compiler_pic_F77= |
| 21512 | ;; |
| 21513 | *) |
| 21514 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21515 | ;; |
| 21516 | esac |
| 21517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21518 | # |
| 21519 | # Check to make sure the static flag actually works. |
| 21520 | # |
| 21521 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21522 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21523 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21524 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21526 | else |
| 21527 | lt_prog_compiler_static_works_F77=no |
| 21528 | save_LDFLAGS="$LDFLAGS" |
| 21529 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21530 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21531 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21532 | # The linker can only warn and ignore the option if not recognized |
| 21533 | # So say no if there are warnings |
| 21534 | if test -s conftest.err; then |
| 21535 | # Append any errors to the config.log. |
| 21536 | cat conftest.err 1>&5 |
| 21537 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21538 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21539 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21540 | lt_prog_compiler_static_works_F77=yes |
| 21541 | fi |
| 21542 | else |
| 21543 | lt_prog_compiler_static_works_F77=yes |
| 21544 | fi |
| 21545 | fi |
| 21546 | $rm conftest* |
| 21547 | LDFLAGS="$save_LDFLAGS" |
| 21548 | |
| 21549 | fi |
| 21550 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21551 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21552 | |
| 21553 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21554 | : |
| 21555 | else |
| 21556 | lt_prog_compiler_static_F77= |
| 21557 | fi |
| 21558 | |
| 21559 | |
| 21560 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21561 | 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] | 21562 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21564 | else |
| 21565 | lt_cv_prog_compiler_c_o_F77=no |
| 21566 | $rm -r conftest 2>/dev/null |
| 21567 | mkdir conftest |
| 21568 | cd conftest |
| 21569 | mkdir out |
| 21570 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21571 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21572 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21573 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21574 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21575 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21576 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21577 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21578 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21579 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21580 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 21581 | (eval echo "\"\$as_me:21581: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21582 | (eval "$lt_compile" 2>out/conftest.err) |
| 21583 | ac_status=$? |
| 21584 | cat out/conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 21585 | echo "$as_me:21585: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21586 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21587 | then |
| 21588 | # The compiler can only warn and ignore the option if not recognized |
| 21589 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21590 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21591 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21592 | 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] | 21593 | lt_cv_prog_compiler_c_o_F77=yes |
| 21594 | fi |
| 21595 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21596 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21597 | $rm conftest* |
| 21598 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21599 | # template instantiation |
| 21600 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21601 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21602 | cd .. |
| 21603 | rmdir conftest |
| 21604 | $rm conftest* |
| 21605 | |
| 21606 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21607 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21608 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21609 | |
| 21610 | |
| 21611 | hard_links="nottested" |
| 21612 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21613 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21614 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21615 | 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] | 21616 | hard_links=yes |
| 21617 | $rm conftest* |
| 21618 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21619 | touch conftest.a |
| 21620 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21621 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21622 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21623 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21624 | if test "$hard_links" = no; then |
| 21625 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21626 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21627 | need_locks=warn |
| 21628 | fi |
| 21629 | else |
| 21630 | need_locks=no |
| 21631 | fi |
| 21632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21633 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21634 | 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] | 21635 | |
| 21636 | runpath_var= |
| 21637 | allow_undefined_flag_F77= |
| 21638 | enable_shared_with_static_runtimes_F77=no |
| 21639 | archive_cmds_F77= |
| 21640 | archive_expsym_cmds_F77= |
| 21641 | old_archive_From_new_cmds_F77= |
| 21642 | old_archive_from_expsyms_cmds_F77= |
| 21643 | export_dynamic_flag_spec_F77= |
| 21644 | whole_archive_flag_spec_F77= |
| 21645 | thread_safe_flag_spec_F77= |
| 21646 | hardcode_libdir_flag_spec_F77= |
| 21647 | hardcode_libdir_flag_spec_ld_F77= |
| 21648 | hardcode_libdir_separator_F77= |
| 21649 | hardcode_direct_F77=no |
| 21650 | hardcode_minus_L_F77=no |
| 21651 | hardcode_shlibpath_var_F77=unsupported |
| 21652 | link_all_deplibs_F77=unknown |
| 21653 | hardcode_automatic_F77=no |
| 21654 | module_cmds_F77= |
| 21655 | module_expsym_cmds_F77= |
| 21656 | always_export_symbols_F77=no |
| 21657 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21658 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21659 | # included in the symbol list |
| 21660 | include_expsyms_F77= |
| 21661 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21662 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21663 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21664 | # as well as any symbol that contains `d'. |
| 21665 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21666 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21667 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21668 | # the symbol is explicitly referenced. Since portable code cannot |
| 21669 | # rely on this symbol name, it's probably fine to never include it in |
| 21670 | # preloaded symbol tables. |
| 21671 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21672 | # Just being paranoid about ensuring that cc_basename is set. |
| 21673 | for cc_temp in $compiler""; do |
| 21674 | case $cc_temp in |
| 21675 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21676 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21677 | \-*) ;; |
| 21678 | *) break;; |
| 21679 | esac |
| 21680 | done |
| 21681 | 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] | 21682 | |
| 21683 | case $host_os in |
| 21684 | cygwin* | mingw* | pw32*) |
| 21685 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21686 | # When not using gcc, we currently assume that we are using |
| 21687 | # Microsoft Visual C++. |
| 21688 | if test "$GCC" != yes; then |
| 21689 | with_gnu_ld=no |
| 21690 | fi |
| 21691 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21692 | interix*) |
| 21693 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21694 | with_gnu_ld=yes |
| 21695 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21696 | openbsd*) |
| 21697 | with_gnu_ld=no |
| 21698 | ;; |
| 21699 | esac |
| 21700 | |
| 21701 | ld_shlibs_F77=yes |
| 21702 | if test "$with_gnu_ld" = yes; then |
| 21703 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21704 | wlarc='${wl}' |
| 21705 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21706 | # Set some defaults for GNU ld with shared library support. These |
| 21707 | # are reset later if shared libraries are not supported. Putting them |
| 21708 | # here allows them to be overridden if necessary. |
| 21709 | runpath_var=LD_RUN_PATH |
| 21710 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21711 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21712 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21713 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21714 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21715 | else |
| 21716 | whole_archive_flag_spec_F77= |
| 21717 | fi |
| 21718 | supports_anon_versioning=no |
| 21719 | case `$LD -v 2>/dev/null` in |
| 21720 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21721 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21722 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21723 | *\ 2.11.*) ;; # other 2.11 versions |
| 21724 | *) supports_anon_versioning=yes ;; |
| 21725 | esac |
| 21726 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21727 | # See if GNU ld supports shared libraries. |
| 21728 | case $host_os in |
| 21729 | aix3* | aix4* | aix5*) |
| 21730 | # On AIX/PPC, the GNU linker is very broken |
| 21731 | if test "$host_cpu" != ia64; then |
| 21732 | ld_shlibs_F77=no |
| 21733 | cat <<EOF 1>&2 |
| 21734 | |
| 21735 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21736 | *** to be unable to reliably create shared libraries on AIX. |
| 21737 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21738 | *** really care for shared libraries, you may want to modify your PATH |
| 21739 | *** so that a non-GNU linker is found, and then restart. |
| 21740 | |
| 21741 | EOF |
| 21742 | fi |
| 21743 | ;; |
| 21744 | |
| 21745 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21746 | 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] | 21747 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21748 | hardcode_minus_L_F77=yes |
| 21749 | |
| 21750 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21751 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21752 | # to version 4, is to share data among multiple programs linked |
| 21753 | # with the same dynamic library. Since this doesn't match the |
| 21754 | # behavior of shared libraries on other platforms, we can't use |
| 21755 | # them. |
| 21756 | ld_shlibs_F77=no |
| 21757 | ;; |
| 21758 | |
| 21759 | beos*) |
| 21760 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21761 | allow_undefined_flag_F77=unsupported |
| 21762 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21763 | # support --undefined. This deserves some investigation. FIXME |
| 21764 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21765 | else |
| 21766 | ld_shlibs_F77=no |
| 21767 | fi |
| 21768 | ;; |
| 21769 | |
| 21770 | cygwin* | mingw* | pw32*) |
| 21771 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21772 | # as there is no search path for DLLs. |
| 21773 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21774 | allow_undefined_flag_F77=unsupported |
| 21775 | always_export_symbols_F77=no |
| 21776 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21777 | 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] | 21778 | |
| 21779 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21780 | 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] | 21781 | # If the export-symbols file already is a .def file (1st line |
| 21782 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21783 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21784 | cp $export_symbols $output_objdir/$soname.def; |
| 21785 | else |
| 21786 | echo EXPORTS > $output_objdir/$soname.def; |
| 21787 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21788 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21789 | $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] | 21790 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21791 | ld_shlibs_F77=no |
| 21792 | fi |
| 21793 | ;; |
| 21794 | |
| 21795 | interix3*) |
| 21796 | hardcode_direct_F77=no |
| 21797 | hardcode_shlibpath_var_F77=no |
| 21798 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21799 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21800 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21801 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21802 | # default) and relocated if they conflict, which is a slow very memory |
| 21803 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21804 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21805 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21806 | 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' |
| 21807 | 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' |
| 21808 | ;; |
| 21809 | |
| 21810 | linux*) |
| 21811 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21812 | tmp_addflag= |
| 21813 | case $cc_basename,$host_cpu in |
| 21814 | pgcc*) # Portland Group C compiler |
| 21815 | 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' |
| 21816 | tmp_addflag=' $pic_flag' |
| 21817 | ;; |
| 21818 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21819 | 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' |
| 21820 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21821 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21822 | tmp_addflag=' -i_dynamic' ;; |
| 21823 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21824 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21825 | ifc* | ifort*) # Intel Fortran compiler |
| 21826 | tmp_addflag=' -nofor_main' ;; |
| 21827 | esac |
| 21828 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21829 | |
| 21830 | if test $supports_anon_versioning = yes; then |
| 21831 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21832 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21833 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21834 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21835 | fi |
| 21836 | else |
| 21837 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21838 | fi |
| 21839 | ;; |
| 21840 | |
| 21841 | netbsd*) |
| 21842 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21843 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21844 | wlarc= |
| 21845 | else |
| 21846 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21847 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21848 | fi |
| 21849 | ;; |
| 21850 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21851 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21852 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21853 | ld_shlibs_F77=no |
| 21854 | cat <<EOF 1>&2 |
| 21855 | |
| 21856 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21857 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21858 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21859 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21860 | *** your PATH or compiler configuration so that the native linker is |
| 21861 | *** used, and then restart. |
| 21862 | |
| 21863 | EOF |
| 21864 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21865 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21866 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21867 | else |
| 21868 | ld_shlibs_F77=no |
| 21869 | fi |
| 21870 | ;; |
| 21871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21872 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21873 | case `$LD -v 2>&1` in |
| 21874 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 21875 | ld_shlibs_F77=no |
| 21876 | cat <<_LT_EOF 1>&2 |
| 21877 | |
| 21878 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21879 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21880 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21881 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21882 | *** your PATH or compiler configuration so that the native linker is |
| 21883 | *** used, and then restart. |
| 21884 | |
| 21885 | _LT_EOF |
| 21886 | ;; |
| 21887 | *) |
| 21888 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21889 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 21890 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 21891 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 21892 | else |
| 21893 | ld_shlibs_F77=no |
| 21894 | fi |
| 21895 | ;; |
| 21896 | esac |
| 21897 | ;; |
| 21898 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21899 | sunos4*) |
| 21900 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21901 | wlarc= |
| 21902 | hardcode_direct_F77=yes |
| 21903 | hardcode_shlibpath_var_F77=no |
| 21904 | ;; |
| 21905 | |
| 21906 | *) |
| 21907 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21908 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21909 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21910 | else |
| 21911 | ld_shlibs_F77=no |
| 21912 | fi |
| 21913 | ;; |
| 21914 | esac |
| 21915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21916 | if test "$ld_shlibs_F77" = no; then |
| 21917 | runpath_var= |
| 21918 | hardcode_libdir_flag_spec_F77= |
| 21919 | export_dynamic_flag_spec_F77= |
| 21920 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21921 | fi |
| 21922 | else |
| 21923 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21924 | case $host_os in |
| 21925 | aix3*) |
| 21926 | allow_undefined_flag_F77=unsupported |
| 21927 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21928 | 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] | 21929 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21930 | # are no directories specified by -L. |
| 21931 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21932 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21933 | # Neither direct hardcoding nor static linking is supported with a |
| 21934 | # broken collect2. |
| 21935 | hardcode_direct_F77=unsupported |
| 21936 | fi |
| 21937 | ;; |
| 21938 | |
| 21939 | aix4* | aix5*) |
| 21940 | if test "$host_cpu" = ia64; then |
| 21941 | # On IA64, the linker does run time linking by default, so we don't |
| 21942 | # have to do anything special. |
| 21943 | aix_use_runtimelinking=no |
| 21944 | exp_sym_flag='-Bexport' |
| 21945 | no_entry_flag="" |
| 21946 | else |
| 21947 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21948 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21949 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21950 | 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' |
| 21951 | else |
| 21952 | 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' |
| 21953 | fi |
| 21954 | aix_use_runtimelinking=no |
| 21955 | |
| 21956 | # Test if we are trying to use run time linking or normal |
| 21957 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21958 | # need to do runtime linking. |
| 21959 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21960 | for ld_flag in $LDFLAGS; do |
| 21961 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21962 | aix_use_runtimelinking=yes |
| 21963 | break |
| 21964 | fi |
| 21965 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21966 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21967 | esac |
| 21968 | |
| 21969 | exp_sym_flag='-bexport' |
| 21970 | no_entry_flag='-bnoentry' |
| 21971 | fi |
| 21972 | |
| 21973 | # When large executables or shared objects are built, AIX ld can |
| 21974 | # have problems creating the table of contents. If linking a library |
| 21975 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21976 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21977 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21978 | |
| 21979 | archive_cmds_F77='' |
| 21980 | hardcode_direct_F77=yes |
| 21981 | hardcode_libdir_separator_F77=':' |
| 21982 | link_all_deplibs_F77=yes |
| 21983 | |
| 21984 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21985 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21986 | # We only want to do this on AIX 4.2 and lower, the check |
| 21987 | # below for broken collect2 doesn't work under 4.3+ |
| 21988 | collect2name=`${CC} -print-prog-name=collect2` |
| 21989 | if test -f "$collect2name" && \ |
| 21990 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21991 | then |
| 21992 | # We have reworked collect2 |
| 21993 | hardcode_direct_F77=yes |
| 21994 | else |
| 21995 | # We have old collect2 |
| 21996 | hardcode_direct_F77=unsupported |
| 21997 | # It fails to find uninstalled libraries when the uninstalled |
| 21998 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21999 | # to unsupported forces relinking |
| 22000 | hardcode_minus_L_F77=yes |
| 22001 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22002 | hardcode_libdir_separator_F77= |
| 22003 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22004 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22005 | esac |
| 22006 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22007 | if test "$aix_use_runtimelinking" = yes; then |
| 22008 | shared_flag="$shared_flag "'${wl}-G' |
| 22009 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22010 | else |
| 22011 | # not using gcc |
| 22012 | if test "$host_cpu" = ia64; then |
| 22013 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22014 | # chokes on -Wl,-G. The following line is correct: |
| 22015 | shared_flag='-G' |
| 22016 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22017 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22018 | shared_flag='${wl}-G' |
| 22019 | else |
| 22020 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22021 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22022 | fi |
| 22023 | fi |
| 22024 | |
| 22025 | # It seems that -bexpall does not export symbols beginning with |
| 22026 | # underscore (_), so it is better to generate a list of symbols to export. |
| 22027 | always_export_symbols_F77=yes |
| 22028 | if test "$aix_use_runtimelinking" = yes; then |
| 22029 | # Warning - without using the other runtime loading flags (-brtl), |
| 22030 | # -berok will link without error, but may produce a broken library. |
| 22031 | allow_undefined_flag_F77='-berok' |
| 22032 | # Determine the default libpath from the value encoded in an empty executable. |
| 22033 | cat >conftest.$ac_ext <<_ACEOF |
| 22034 | program main |
| 22035 | |
| 22036 | end |
| 22037 | _ACEOF |
| 22038 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22039 | if { (ac_try="$ac_link" |
| 22040 | case "(($ac_try" in |
| 22041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22042 | *) ac_try_echo=$ac_try;; |
| 22043 | esac |
| 22044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22045 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22046 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22048 | rm -f conftest.er1 |
| 22049 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22051 | (exit $ac_status); } && |
| 22052 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22053 | { (case "(($ac_try" in |
| 22054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22055 | *) ac_try_echo=$ac_try;; |
| 22056 | esac |
| 22057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22058 | (eval "$ac_try") 2>&5 |
| 22059 | ac_status=$? |
| 22060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22061 | (exit $ac_status); }; } && |
| 22062 | { ac_try='test -s conftest$ac_exeext' |
| 22063 | { (case "(($ac_try" in |
| 22064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22065 | *) ac_try_echo=$ac_try;; |
| 22066 | esac |
| 22067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22068 | (eval "$ac_try") 2>&5 |
| 22069 | ac_status=$? |
| 22070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22071 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22072 | |
| 22073 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22074 | }'` |
| 22075 | # Check for a 64-bit object if we didn't find anything. |
| 22076 | 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; } |
| 22077 | }'`; fi |
| 22078 | else |
| 22079 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22082 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22083 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22084 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22085 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22086 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22087 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22088 | |
| 22089 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22090 | 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] | 22091 | else |
| 22092 | if test "$host_cpu" = ia64; then |
| 22093 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 22094 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22095 | 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] | 22096 | else |
| 22097 | # Determine the default libpath from the value encoded in an empty executable. |
| 22098 | cat >conftest.$ac_ext <<_ACEOF |
| 22099 | program main |
| 22100 | |
| 22101 | end |
| 22102 | _ACEOF |
| 22103 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22104 | if { (ac_try="$ac_link" |
| 22105 | case "(($ac_try" in |
| 22106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22107 | *) ac_try_echo=$ac_try;; |
| 22108 | esac |
| 22109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22110 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22111 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22113 | rm -f conftest.er1 |
| 22114 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22116 | (exit $ac_status); } && |
| 22117 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22118 | { (case "(($ac_try" in |
| 22119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22120 | *) ac_try_echo=$ac_try;; |
| 22121 | esac |
| 22122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22123 | (eval "$ac_try") 2>&5 |
| 22124 | ac_status=$? |
| 22125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22126 | (exit $ac_status); }; } && |
| 22127 | { ac_try='test -s conftest$ac_exeext' |
| 22128 | { (case "(($ac_try" in |
| 22129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22130 | *) ac_try_echo=$ac_try;; |
| 22131 | esac |
| 22132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22133 | (eval "$ac_try") 2>&5 |
| 22134 | ac_status=$? |
| 22135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22136 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22137 | |
| 22138 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22139 | }'` |
| 22140 | # Check for a 64-bit object if we didn't find anything. |
| 22141 | 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; } |
| 22142 | }'`; fi |
| 22143 | else |
| 22144 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22147 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22148 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22149 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22150 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22151 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22152 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22153 | |
| 22154 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22155 | # Warning - without using the other run time loading flags, |
| 22156 | # -berok will link without error, but may produce a broken library. |
| 22157 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22158 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22159 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22160 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22161 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22162 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22163 | 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] | 22164 | fi |
| 22165 | fi |
| 22166 | ;; |
| 22167 | |
| 22168 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22169 | 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] | 22170 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22171 | hardcode_minus_L_F77=yes |
| 22172 | # see comment about different semantics on the GNU ld section |
| 22173 | ld_shlibs_F77=no |
| 22174 | ;; |
| 22175 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22176 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22177 | export_dynamic_flag_spec_F77=-rdynamic |
| 22178 | ;; |
| 22179 | |
| 22180 | cygwin* | mingw* | pw32*) |
| 22181 | # When not using gcc, we currently assume that we are using |
| 22182 | # Microsoft Visual C++. |
| 22183 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22184 | # no search path for DLLs. |
| 22185 | hardcode_libdir_flag_spec_F77=' ' |
| 22186 | allow_undefined_flag_F77=unsupported |
| 22187 | # Tell ltmain to make .lib files, not .a files. |
| 22188 | libext=lib |
| 22189 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22190 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22191 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22192 | 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] | 22193 | # The linker will automatically build a .lib file if we build a DLL. |
| 22194 | old_archive_From_new_cmds_F77='true' |
| 22195 | # FIXME: Should let the user specify the lib program. |
| 22196 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22197 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22198 | enable_shared_with_static_runtimes_F77=yes |
| 22199 | ;; |
| 22200 | |
| 22201 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22202 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22203 | rhapsody* | darwin1.[012]) |
| 22204 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22205 | ;; |
| 22206 | *) # Darwin 1.3 on |
| 22207 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22208 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22209 | else |
| 22210 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22211 | 10.[012]) |
| 22212 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22213 | ;; |
| 22214 | 10.*) |
| 22215 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22216 | ;; |
| 22217 | esac |
| 22218 | fi |
| 22219 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22220 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22221 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22222 | hardcode_direct_F77=no |
| 22223 | hardcode_automatic_F77=yes |
| 22224 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22225 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22226 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22227 | if test "$GCC" = yes ; then |
| 22228 | output_verbose_link_cmd='echo' |
| 22229 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22230 | 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] | 22231 | # 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] | 22232 | 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}' |
| 22233 | 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] | 22234 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22235 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22236 | xlc*) |
| 22237 | output_verbose_link_cmd='echo' |
| 22238 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22239 | 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] | 22240 | # 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] | 22241 | 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}' |
| 22242 | 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] | 22243 | ;; |
| 22244 | *) |
| 22245 | ld_shlibs_F77=no |
| 22246 | ;; |
| 22247 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22248 | fi |
| 22249 | ;; |
| 22250 | |
| 22251 | dgux*) |
| 22252 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22253 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22254 | hardcode_shlibpath_var_F77=no |
| 22255 | ;; |
| 22256 | |
| 22257 | freebsd1*) |
| 22258 | ld_shlibs_F77=no |
| 22259 | ;; |
| 22260 | |
| 22261 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22262 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22263 | # does not break anything, and helps significantly (at the cost of a little |
| 22264 | # extra space). |
| 22265 | freebsd2.2*) |
| 22266 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22267 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22268 | hardcode_direct_F77=yes |
| 22269 | hardcode_shlibpath_var_F77=no |
| 22270 | ;; |
| 22271 | |
| 22272 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22273 | freebsd2*) |
| 22274 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22275 | hardcode_direct_F77=yes |
| 22276 | hardcode_minus_L_F77=yes |
| 22277 | hardcode_shlibpath_var_F77=no |
| 22278 | ;; |
| 22279 | |
| 22280 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22281 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22282 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22283 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22284 | hardcode_direct_F77=yes |
| 22285 | hardcode_shlibpath_var_F77=no |
| 22286 | ;; |
| 22287 | |
| 22288 | hpux9*) |
| 22289 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22290 | 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] | 22291 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22292 | 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] | 22293 | fi |
| 22294 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22295 | hardcode_libdir_separator_F77=: |
| 22296 | hardcode_direct_F77=yes |
| 22297 | |
| 22298 | # hardcode_minus_L: Not really in the search PATH, |
| 22299 | # but as the default location of the library. |
| 22300 | hardcode_minus_L_F77=yes |
| 22301 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22302 | ;; |
| 22303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22304 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22305 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22306 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22307 | else |
| 22308 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22309 | fi |
| 22310 | if test "$with_gnu_ld" = no; then |
| 22311 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22312 | hardcode_libdir_separator_F77=: |
| 22313 | |
| 22314 | hardcode_direct_F77=yes |
| 22315 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22316 | |
| 22317 | # hardcode_minus_L: Not really in the search PATH, |
| 22318 | # but as the default location of the library. |
| 22319 | hardcode_minus_L_F77=yes |
| 22320 | fi |
| 22321 | ;; |
| 22322 | |
| 22323 | hpux11*) |
| 22324 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22325 | case $host_cpu in |
| 22326 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22327 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22328 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22329 | ia64*) |
| 22330 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22331 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22332 | *) |
| 22333 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22334 | ;; |
| 22335 | esac |
| 22336 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22337 | case $host_cpu in |
| 22338 | hppa*64*) |
| 22339 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22340 | ;; |
| 22341 | ia64*) |
| 22342 | 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] | 22343 | ;; |
| 22344 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22345 | 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] | 22346 | ;; |
| 22347 | esac |
| 22348 | fi |
| 22349 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22350 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22351 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22353 | case $host_cpu in |
| 22354 | hppa*64*|ia64*) |
| 22355 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22356 | hardcode_direct_F77=no |
| 22357 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22358 | ;; |
| 22359 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22360 | hardcode_direct_F77=yes |
| 22361 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22362 | |
| 22363 | # hardcode_minus_L: Not really in the search PATH, |
| 22364 | # but as the default location of the library. |
| 22365 | hardcode_minus_L_F77=yes |
| 22366 | ;; |
| 22367 | esac |
| 22368 | fi |
| 22369 | ;; |
| 22370 | |
| 22371 | irix5* | irix6* | nonstopux*) |
| 22372 | if test "$GCC" = yes; then |
| 22373 | 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' |
| 22374 | else |
| 22375 | 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' |
| 22376 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22377 | fi |
| 22378 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22379 | hardcode_libdir_separator_F77=: |
| 22380 | link_all_deplibs_F77=yes |
| 22381 | ;; |
| 22382 | |
| 22383 | netbsd*) |
| 22384 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22385 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22386 | else |
| 22387 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22388 | fi |
| 22389 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22390 | hardcode_direct_F77=yes |
| 22391 | hardcode_shlibpath_var_F77=no |
| 22392 | ;; |
| 22393 | |
| 22394 | newsos6) |
| 22395 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22396 | hardcode_direct_F77=yes |
| 22397 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22398 | hardcode_libdir_separator_F77=: |
| 22399 | hardcode_shlibpath_var_F77=no |
| 22400 | ;; |
| 22401 | |
| 22402 | openbsd*) |
| 22403 | hardcode_direct_F77=yes |
| 22404 | hardcode_shlibpath_var_F77=no |
| 22405 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22406 | 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] | 22407 | 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] | 22408 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22409 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22410 | else |
| 22411 | case $host_os in |
| 22412 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22413 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22414 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22415 | ;; |
| 22416 | *) |
| 22417 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22418 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22419 | ;; |
| 22420 | esac |
| 22421 | fi |
| 22422 | ;; |
| 22423 | |
| 22424 | os2*) |
| 22425 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22426 | hardcode_minus_L_F77=yes |
| 22427 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22428 | 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] | 22429 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22430 | ;; |
| 22431 | |
| 22432 | osf3*) |
| 22433 | if test "$GCC" = yes; then |
| 22434 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22435 | 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' |
| 22436 | else |
| 22437 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22438 | 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' |
| 22439 | fi |
| 22440 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22441 | hardcode_libdir_separator_F77=: |
| 22442 | ;; |
| 22443 | |
| 22444 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22445 | if test "$GCC" = yes; then |
| 22446 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22447 | 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' |
| 22448 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22449 | else |
| 22450 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22451 | 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] | 22452 | 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] | 22453 | $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] | 22454 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22455 | # Both c and cxx compiler support -rpath directly |
| 22456 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22457 | fi |
| 22458 | hardcode_libdir_separator_F77=: |
| 22459 | ;; |
| 22460 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22461 | solaris*) |
| 22462 | no_undefined_flag_F77=' -z text' |
| 22463 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22464 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22465 | 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] | 22466 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22467 | $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] | 22468 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22469 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22470 | 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] | 22471 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22472 | $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] | 22473 | fi |
| 22474 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22475 | hardcode_shlibpath_var_F77=no |
| 22476 | case $host_os in |
| 22477 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22478 | *) |
| 22479 | # The compiler driver will combine linker options so we |
| 22480 | # cannot just pass the convience library names through |
| 22481 | # without $wl, iff we do not link with $LD. |
| 22482 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22483 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22484 | case $wlarc in |
| 22485 | '') |
| 22486 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22487 | *) |
| 22488 | 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' ;; |
| 22489 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22490 | esac |
| 22491 | link_all_deplibs_F77=yes |
| 22492 | ;; |
| 22493 | |
| 22494 | sunos4*) |
| 22495 | if test "x$host_vendor" = xsequent; then |
| 22496 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22497 | # files that make .init and .fini sections work. |
| 22498 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22499 | else |
| 22500 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22501 | fi |
| 22502 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22503 | hardcode_direct_F77=yes |
| 22504 | hardcode_minus_L_F77=yes |
| 22505 | hardcode_shlibpath_var_F77=no |
| 22506 | ;; |
| 22507 | |
| 22508 | sysv4) |
| 22509 | case $host_vendor in |
| 22510 | sni) |
| 22511 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22512 | hardcode_direct_F77=yes # is this really true??? |
| 22513 | ;; |
| 22514 | siemens) |
| 22515 | ## LD is ld it makes a PLAMLIB |
| 22516 | ## CC just makes a GrossModule. |
| 22517 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22518 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22519 | hardcode_direct_F77=no |
| 22520 | ;; |
| 22521 | motorola) |
| 22522 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22523 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22524 | ;; |
| 22525 | esac |
| 22526 | runpath_var='LD_RUN_PATH' |
| 22527 | hardcode_shlibpath_var_F77=no |
| 22528 | ;; |
| 22529 | |
| 22530 | sysv4.3*) |
| 22531 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22532 | hardcode_shlibpath_var_F77=no |
| 22533 | export_dynamic_flag_spec_F77='-Bexport' |
| 22534 | ;; |
| 22535 | |
| 22536 | sysv4*MP*) |
| 22537 | if test -d /usr/nec; then |
| 22538 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22539 | hardcode_shlibpath_var_F77=no |
| 22540 | runpath_var=LD_RUN_PATH |
| 22541 | hardcode_runpath_var=yes |
| 22542 | ld_shlibs_F77=yes |
| 22543 | fi |
| 22544 | ;; |
| 22545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22546 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22547 | no_undefined_flag_F77='${wl}-z,text' |
| 22548 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22549 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22550 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22551 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22552 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22553 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22554 | 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] | 22555 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22556 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22557 | 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] | 22558 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22559 | ;; |
| 22560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22561 | sysv5* | sco3.2v5* | sco5v6*) |
| 22562 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22563 | # link with -lc, and that would cause any symbols used from libc to |
| 22564 | # always be unresolved, which means just about no library would |
| 22565 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22566 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22567 | # as -z defs. |
| 22568 | no_undefined_flag_F77='${wl}-z,text' |
| 22569 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22570 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22571 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22572 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22573 | hardcode_libdir_separator_F77=':' |
| 22574 | link_all_deplibs_F77=yes |
| 22575 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22576 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22577 | |
| 22578 | if test "$GCC" = yes; then |
| 22579 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22580 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22581 | else |
| 22582 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22583 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22584 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22585 | ;; |
| 22586 | |
| 22587 | uts4*) |
| 22588 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22589 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22590 | hardcode_shlibpath_var_F77=no |
| 22591 | ;; |
| 22592 | |
| 22593 | *) |
| 22594 | ld_shlibs_F77=no |
| 22595 | ;; |
| 22596 | esac |
| 22597 | fi |
| 22598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22599 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22600 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22601 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22602 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22603 | # |
| 22604 | # Do we need to explicitly link libc? |
| 22605 | # |
| 22606 | case "x$archive_cmds_need_lc_F77" in |
| 22607 | x|xyes) |
| 22608 | # Assume -lc should be added |
| 22609 | archive_cmds_need_lc_F77=yes |
| 22610 | |
| 22611 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22612 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22613 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22614 | # FIXME: we may have to deal with multi-command sequences. |
| 22615 | ;; |
| 22616 | '$CC '*) |
| 22617 | # Test whether the compiler implicitly links with -lc since on some |
| 22618 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22619 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22620 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22621 | 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] | 22622 | $rm conftest* |
| 22623 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22624 | |
| 22625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22626 | (eval $ac_compile) 2>&5 |
| 22627 | ac_status=$? |
| 22628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22629 | (exit $ac_status); } 2>conftest.err; then |
| 22630 | soname=conftest |
| 22631 | lib=conftest |
| 22632 | libobjs=conftest.$ac_objext |
| 22633 | deplibs= |
| 22634 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22635 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22636 | compiler_flags=-v |
| 22637 | linker_flags=-v |
| 22638 | verstring= |
| 22639 | output_objdir=. |
| 22640 | libname=conftest |
| 22641 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22642 | allow_undefined_flag_F77= |
| 22643 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22644 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22645 | ac_status=$? |
| 22646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22647 | (exit $ac_status); } |
| 22648 | then |
| 22649 | archive_cmds_need_lc_F77=no |
| 22650 | else |
| 22651 | archive_cmds_need_lc_F77=yes |
| 22652 | fi |
| 22653 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22654 | else |
| 22655 | cat conftest.err 1>&5 |
| 22656 | fi |
| 22657 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22658 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22659 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22660 | ;; |
| 22661 | esac |
| 22662 | fi |
| 22663 | ;; |
| 22664 | esac |
| 22665 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22666 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22667 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22668 | library_names_spec= |
| 22669 | libname_spec='lib$name' |
| 22670 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22671 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22672 | postinstall_cmds= |
| 22673 | postuninstall_cmds= |
| 22674 | finish_cmds= |
| 22675 | finish_eval= |
| 22676 | shlibpath_var= |
| 22677 | shlibpath_overrides_runpath=unknown |
| 22678 | version_type=none |
| 22679 | dynamic_linker="$host_os ld.so" |
| 22680 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22681 | if test "$GCC" = yes; then |
| 22682 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22683 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22684 | # if the path contains ";" then we assume it to be the separator |
| 22685 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22686 | # assumed that no part of a normal pathname contains ";" but that should |
| 22687 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22688 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22689 | else |
| 22690 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22691 | fi |
| 22692 | else |
| 22693 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22694 | fi |
| 22695 | need_lib_prefix=unknown |
| 22696 | hardcode_into_libs=no |
| 22697 | |
| 22698 | # when you set need_version to no, make sure it does not cause -set_version |
| 22699 | # flags to be left without arguments |
| 22700 | need_version=unknown |
| 22701 | |
| 22702 | case $host_os in |
| 22703 | aix3*) |
| 22704 | version_type=linux |
| 22705 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22706 | shlibpath_var=LIBPATH |
| 22707 | |
| 22708 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22709 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22710 | ;; |
| 22711 | |
| 22712 | aix4* | aix5*) |
| 22713 | version_type=linux |
| 22714 | need_lib_prefix=no |
| 22715 | need_version=no |
| 22716 | hardcode_into_libs=yes |
| 22717 | if test "$host_cpu" = ia64; then |
| 22718 | # AIX 5 supports IA64 |
| 22719 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22720 | shlibpath_var=LD_LIBRARY_PATH |
| 22721 | else |
| 22722 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22723 | # for dependence libraries. The import file would start with |
| 22724 | # the line `#! .'. This would cause the generated library to |
| 22725 | # depend on `.', always an invalid library. This was fixed in |
| 22726 | # development snapshots of GCC prior to 3.0. |
| 22727 | case $host_os in |
| 22728 | aix4 | aix4.[01] | aix4.[01].*) |
| 22729 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22730 | echo ' yes ' |
| 22731 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22732 | : |
| 22733 | else |
| 22734 | can_build_shared=no |
| 22735 | fi |
| 22736 | ;; |
| 22737 | esac |
| 22738 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22739 | # soname into executable. Probably we can add versioning support to |
| 22740 | # collect2, so additional links can be useful in future. |
| 22741 | if test "$aix_use_runtimelinking" = yes; then |
| 22742 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22743 | # instead of lib<name>.a to let people know that these are not |
| 22744 | # typical AIX shared libraries. |
| 22745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22746 | else |
| 22747 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22748 | # and later when we are not doing run time linking. |
| 22749 | library_names_spec='${libname}${release}.a $libname.a' |
| 22750 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22751 | fi |
| 22752 | shlibpath_var=LIBPATH |
| 22753 | fi |
| 22754 | ;; |
| 22755 | |
| 22756 | amigaos*) |
| 22757 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22758 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22759 | 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] | 22760 | ;; |
| 22761 | |
| 22762 | beos*) |
| 22763 | library_names_spec='${libname}${shared_ext}' |
| 22764 | dynamic_linker="$host_os ld.so" |
| 22765 | shlibpath_var=LIBRARY_PATH |
| 22766 | ;; |
| 22767 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22768 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22769 | version_type=linux |
| 22770 | need_version=no |
| 22771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22772 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22773 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22774 | shlibpath_var=LD_LIBRARY_PATH |
| 22775 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22776 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22777 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22778 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22779 | # libtool to hard-code these into programs |
| 22780 | ;; |
| 22781 | |
| 22782 | cygwin* | mingw* | pw32*) |
| 22783 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22784 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22785 | need_version=no |
| 22786 | need_lib_prefix=no |
| 22787 | |
| 22788 | case $GCC,$host_os in |
| 22789 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22790 | library_names_spec='$libname.dll.a' |
| 22791 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22792 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22793 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22794 | dldir=$destdir/`dirname \$dlpath`~ |
| 22795 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22796 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22797 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22798 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22799 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22800 | $rm \$dlpath' |
| 22801 | shlibpath_overrides_runpath=yes |
| 22802 | |
| 22803 | case $host_os in |
| 22804 | cygwin*) |
| 22805 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22806 | 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] | 22807 | 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] | 22808 | ;; |
| 22809 | mingw*) |
| 22810 | # MinGW DLLs use traditional 'lib' prefix |
| 22811 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22812 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22813 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22814 | # It is most probably a Windows format PATH printed by |
| 22815 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22816 | # path with ; separators, and with drive letters. We can handle the |
| 22817 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22818 | # especially as we might pass files found there to a mingw objdump, |
| 22819 | # which wouldn't understand a cygwinified path. Ahh. |
| 22820 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22821 | else |
| 22822 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22823 | fi |
| 22824 | ;; |
| 22825 | pw32*) |
| 22826 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22827 | 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] | 22828 | ;; |
| 22829 | esac |
| 22830 | ;; |
| 22831 | |
| 22832 | *) |
| 22833 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22834 | ;; |
| 22835 | esac |
| 22836 | dynamic_linker='Win32 ld.exe' |
| 22837 | # FIXME: first we should search . and the directory the executable is in |
| 22838 | shlibpath_var=PATH |
| 22839 | ;; |
| 22840 | |
| 22841 | darwin* | rhapsody*) |
| 22842 | dynamic_linker="$host_os dyld" |
| 22843 | version_type=darwin |
| 22844 | need_lib_prefix=no |
| 22845 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22846 | 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] | 22847 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22848 | shlibpath_overrides_runpath=yes |
| 22849 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 22850 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22851 | # 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] | 22852 | if test "$GCC" = yes; then |
| 22853 | 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"` |
| 22854 | else |
| 22855 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22856 | fi |
| 22857 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22858 | ;; |
| 22859 | |
| 22860 | dgux*) |
| 22861 | version_type=linux |
| 22862 | need_lib_prefix=no |
| 22863 | need_version=no |
| 22864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22865 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22866 | shlibpath_var=LD_LIBRARY_PATH |
| 22867 | ;; |
| 22868 | |
| 22869 | freebsd1*) |
| 22870 | dynamic_linker=no |
| 22871 | ;; |
| 22872 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22873 | kfreebsd*-gnu) |
| 22874 | version_type=linux |
| 22875 | need_lib_prefix=no |
| 22876 | need_version=no |
| 22877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22878 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22879 | shlibpath_var=LD_LIBRARY_PATH |
| 22880 | shlibpath_overrides_runpath=no |
| 22881 | hardcode_into_libs=yes |
| 22882 | dynamic_linker='GNU ld.so' |
| 22883 | ;; |
| 22884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22885 | freebsd* | dragonfly*) |
| 22886 | # DragonFly does not have aout. When/if they implement a new |
| 22887 | # versioning mechanism, adjust this. |
| 22888 | if test -x /usr/bin/objformat; then |
| 22889 | objformat=`/usr/bin/objformat` |
| 22890 | else |
| 22891 | case $host_os in |
| 22892 | freebsd[123]*) objformat=aout ;; |
| 22893 | *) objformat=elf ;; |
| 22894 | esac |
| 22895 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22896 | version_type=freebsd-$objformat |
| 22897 | case $version_type in |
| 22898 | freebsd-elf*) |
| 22899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22900 | need_version=no |
| 22901 | need_lib_prefix=no |
| 22902 | ;; |
| 22903 | freebsd-*) |
| 22904 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22905 | need_version=yes |
| 22906 | ;; |
| 22907 | esac |
| 22908 | shlibpath_var=LD_LIBRARY_PATH |
| 22909 | case $host_os in |
| 22910 | freebsd2*) |
| 22911 | shlibpath_overrides_runpath=yes |
| 22912 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22913 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22914 | shlibpath_overrides_runpath=yes |
| 22915 | hardcode_into_libs=yes |
| 22916 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22917 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 22918 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22919 | shlibpath_overrides_runpath=no |
| 22920 | hardcode_into_libs=yes |
| 22921 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22922 | freebsd*) # from 4.6 on |
| 22923 | shlibpath_overrides_runpath=yes |
| 22924 | hardcode_into_libs=yes |
| 22925 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22926 | esac |
| 22927 | ;; |
| 22928 | |
| 22929 | gnu*) |
| 22930 | version_type=linux |
| 22931 | need_lib_prefix=no |
| 22932 | need_version=no |
| 22933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22934 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22935 | shlibpath_var=LD_LIBRARY_PATH |
| 22936 | hardcode_into_libs=yes |
| 22937 | ;; |
| 22938 | |
| 22939 | hpux9* | hpux10* | hpux11*) |
| 22940 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22941 | # link against other versions. |
| 22942 | version_type=sunos |
| 22943 | need_lib_prefix=no |
| 22944 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22945 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22946 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22947 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22948 | hardcode_into_libs=yes |
| 22949 | dynamic_linker="$host_os dld.so" |
| 22950 | shlibpath_var=LD_LIBRARY_PATH |
| 22951 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22953 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22954 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22955 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22956 | else |
| 22957 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22958 | fi |
| 22959 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22960 | ;; |
| 22961 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22962 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22963 | hardcode_into_libs=yes |
| 22964 | dynamic_linker="$host_os dld.sl" |
| 22965 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22966 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22968 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22969 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22970 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22971 | ;; |
| 22972 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22973 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22974 | dynamic_linker="$host_os dld.sl" |
| 22975 | shlibpath_var=SHLIB_PATH |
| 22976 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22978 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22979 | ;; |
| 22980 | esac |
| 22981 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22982 | postinstall_cmds='chmod 555 $lib' |
| 22983 | ;; |
| 22984 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22985 | interix3*) |
| 22986 | version_type=linux |
| 22987 | need_lib_prefix=no |
| 22988 | need_version=no |
| 22989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22990 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22991 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 22992 | shlibpath_var=LD_LIBRARY_PATH |
| 22993 | shlibpath_overrides_runpath=no |
| 22994 | hardcode_into_libs=yes |
| 22995 | ;; |
| 22996 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22997 | irix5* | irix6* | nonstopux*) |
| 22998 | case $host_os in |
| 22999 | nonstopux*) version_type=nonstopux ;; |
| 23000 | *) |
| 23001 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 23002 | version_type=linux |
| 23003 | else |
| 23004 | version_type=irix |
| 23005 | fi ;; |
| 23006 | esac |
| 23007 | need_lib_prefix=no |
| 23008 | need_version=no |
| 23009 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23011 | case $host_os in |
| 23012 | irix5* | nonstopux*) |
| 23013 | libsuff= shlibsuff= |
| 23014 | ;; |
| 23015 | *) |
| 23016 | case $LD in # libtool.m4 will add one of these switches to LD |
| 23017 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 23018 | libsuff= shlibsuff= libmagic=32-bit;; |
| 23019 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 23020 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 23021 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 23022 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 23023 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 23024 | esac |
| 23025 | ;; |
| 23026 | esac |
| 23027 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 23028 | shlibpath_overrides_runpath=no |
| 23029 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 23030 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 23031 | hardcode_into_libs=yes |
| 23032 | ;; |
| 23033 | |
| 23034 | # No shared lib support for Linux oldld, aout, or coff. |
| 23035 | linux*oldld* | linux*aout* | linux*coff*) |
| 23036 | dynamic_linker=no |
| 23037 | ;; |
| 23038 | |
| 23039 | # This must be Linux ELF. |
| 23040 | linux*) |
| 23041 | version_type=linux |
| 23042 | need_lib_prefix=no |
| 23043 | need_version=no |
| 23044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23045 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23046 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 23047 | shlibpath_var=LD_LIBRARY_PATH |
| 23048 | shlibpath_overrides_runpath=no |
| 23049 | # This implies no fast_install, which is unacceptable. |
| 23050 | # Some rework will be needed to allow for fast_install |
| 23051 | # before this can be enabled. |
| 23052 | hardcode_into_libs=yes |
| 23053 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23054 | # Append ld.so.conf contents to the search path |
| 23055 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23056 | 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] | 23057 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 23058 | fi |
| 23059 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23060 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 23061 | # powerpc, because MkLinux only supported shared libraries with the |
| 23062 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 23063 | # most powerpc-linux boxes support dynamic linking these days and |
| 23064 | # people can always --disable-shared, the test was removed, and we |
| 23065 | # assume the GNU/Linux dynamic linker is in use. |
| 23066 | dynamic_linker='GNU/Linux ld.so' |
| 23067 | ;; |
| 23068 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23069 | knetbsd*-gnu) |
| 23070 | version_type=linux |
| 23071 | need_lib_prefix=no |
| 23072 | need_version=no |
| 23073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23074 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23075 | shlibpath_var=LD_LIBRARY_PATH |
| 23076 | shlibpath_overrides_runpath=no |
| 23077 | hardcode_into_libs=yes |
| 23078 | dynamic_linker='GNU ld.so' |
| 23079 | ;; |
| 23080 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23081 | netbsd*) |
| 23082 | version_type=sunos |
| 23083 | need_lib_prefix=no |
| 23084 | need_version=no |
| 23085 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23087 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23088 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23089 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23090 | 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] | 23091 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23092 | dynamic_linker='NetBSD ld.elf_so' |
| 23093 | fi |
| 23094 | shlibpath_var=LD_LIBRARY_PATH |
| 23095 | shlibpath_overrides_runpath=yes |
| 23096 | hardcode_into_libs=yes |
| 23097 | ;; |
| 23098 | |
| 23099 | newsos6) |
| 23100 | version_type=linux |
| 23101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23102 | shlibpath_var=LD_LIBRARY_PATH |
| 23103 | shlibpath_overrides_runpath=yes |
| 23104 | ;; |
| 23105 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23106 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23107 | version_type=linux |
| 23108 | need_lib_prefix=no |
| 23109 | need_version=no |
| 23110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23111 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23112 | shlibpath_var=LD_LIBRARY_PATH |
| 23113 | shlibpath_overrides_runpath=yes |
| 23114 | ;; |
| 23115 | |
| 23116 | openbsd*) |
| 23117 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23118 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23119 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23120 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23121 | case $host_os in |
| 23122 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23123 | *) need_version=no ;; |
| 23124 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23126 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23127 | shlibpath_var=LD_LIBRARY_PATH |
| 23128 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23129 | case $host_os in |
| 23130 | openbsd2.[89] | openbsd2.[89].*) |
| 23131 | shlibpath_overrides_runpath=no |
| 23132 | ;; |
| 23133 | *) |
| 23134 | shlibpath_overrides_runpath=yes |
| 23135 | ;; |
| 23136 | esac |
| 23137 | else |
| 23138 | shlibpath_overrides_runpath=yes |
| 23139 | fi |
| 23140 | ;; |
| 23141 | |
| 23142 | os2*) |
| 23143 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23144 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23145 | need_lib_prefix=no |
| 23146 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23147 | dynamic_linker='OS/2 ld.exe' |
| 23148 | shlibpath_var=LIBPATH |
| 23149 | ;; |
| 23150 | |
| 23151 | osf3* | osf4* | osf5*) |
| 23152 | version_type=osf |
| 23153 | need_lib_prefix=no |
| 23154 | need_version=no |
| 23155 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23157 | shlibpath_var=LD_LIBRARY_PATH |
| 23158 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23159 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23160 | ;; |
| 23161 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23162 | solaris*) |
| 23163 | version_type=linux |
| 23164 | need_lib_prefix=no |
| 23165 | need_version=no |
| 23166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23167 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23168 | shlibpath_var=LD_LIBRARY_PATH |
| 23169 | shlibpath_overrides_runpath=yes |
| 23170 | hardcode_into_libs=yes |
| 23171 | # ldd complains unless libraries are executable |
| 23172 | postinstall_cmds='chmod +x $lib' |
| 23173 | ;; |
| 23174 | |
| 23175 | sunos4*) |
| 23176 | version_type=sunos |
| 23177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23178 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23179 | shlibpath_var=LD_LIBRARY_PATH |
| 23180 | shlibpath_overrides_runpath=yes |
| 23181 | if test "$with_gnu_ld" = yes; then |
| 23182 | need_lib_prefix=no |
| 23183 | fi |
| 23184 | need_version=yes |
| 23185 | ;; |
| 23186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23187 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23188 | version_type=linux |
| 23189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23190 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23191 | shlibpath_var=LD_LIBRARY_PATH |
| 23192 | case $host_vendor in |
| 23193 | sni) |
| 23194 | shlibpath_overrides_runpath=no |
| 23195 | need_lib_prefix=no |
| 23196 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23197 | runpath_var=LD_RUN_PATH |
| 23198 | ;; |
| 23199 | siemens) |
| 23200 | need_lib_prefix=no |
| 23201 | ;; |
| 23202 | motorola) |
| 23203 | need_lib_prefix=no |
| 23204 | need_version=no |
| 23205 | shlibpath_overrides_runpath=no |
| 23206 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23207 | ;; |
| 23208 | esac |
| 23209 | ;; |
| 23210 | |
| 23211 | sysv4*MP*) |
| 23212 | if test -d /usr/nec ;then |
| 23213 | version_type=linux |
| 23214 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23215 | soname_spec='$libname${shared_ext}.$major' |
| 23216 | shlibpath_var=LD_LIBRARY_PATH |
| 23217 | fi |
| 23218 | ;; |
| 23219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23220 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23221 | version_type=freebsd-elf |
| 23222 | need_lib_prefix=no |
| 23223 | need_version=no |
| 23224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23225 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23226 | shlibpath_var=LD_LIBRARY_PATH |
| 23227 | hardcode_into_libs=yes |
| 23228 | if test "$with_gnu_ld" = yes; then |
| 23229 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23230 | shlibpath_overrides_runpath=no |
| 23231 | else |
| 23232 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23233 | shlibpath_overrides_runpath=yes |
| 23234 | case $host_os in |
| 23235 | sco3.2v5*) |
| 23236 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23237 | ;; |
| 23238 | esac |
| 23239 | fi |
| 23240 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23241 | ;; |
| 23242 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23243 | uts4*) |
| 23244 | version_type=linux |
| 23245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23246 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23247 | shlibpath_var=LD_LIBRARY_PATH |
| 23248 | ;; |
| 23249 | |
| 23250 | *) |
| 23251 | dynamic_linker=no |
| 23252 | ;; |
| 23253 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23254 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23255 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23256 | test "$dynamic_linker" = no && can_build_shared=no |
| 23257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23258 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23259 | if test "$GCC" = yes; then |
| 23260 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23261 | fi |
| 23262 | |
| 23263 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23264 | 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] | 23265 | hardcode_action_F77= |
| 23266 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23267 | test -n "$runpath_var_F77" || \ |
| 23268 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23269 | |
| 23270 | # We can hardcode non-existant directories. |
| 23271 | if test "$hardcode_direct_F77" != no && |
| 23272 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23273 | # have to relink, otherwise we might link with an installed library |
| 23274 | # when we should be linking with a yet-to-be-installed one |
| 23275 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23276 | test "$hardcode_minus_L_F77" != no; then |
| 23277 | # Linking always hardcodes the temporary library directory. |
| 23278 | hardcode_action_F77=relink |
| 23279 | else |
| 23280 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23281 | hardcode_action_F77=immediate |
| 23282 | fi |
| 23283 | else |
| 23284 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23285 | # directories. |
| 23286 | hardcode_action_F77=unsupported |
| 23287 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23288 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23289 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23290 | |
| 23291 | if test "$hardcode_action_F77" = relink; then |
| 23292 | # Fast installation is not supported |
| 23293 | enable_fast_install=no |
| 23294 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23295 | test "$enable_shared" = no; then |
| 23296 | # Fast installation is not necessary |
| 23297 | enable_fast_install=needless |
| 23298 | fi |
| 23299 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23300 | |
| 23301 | # The else clause should only fire when bootstrapping the |
| 23302 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23303 | # with your package, and you will get complaints that there are |
| 23304 | # no rules to generate ltmain.sh. |
| 23305 | if test -f "$ltmain"; then |
| 23306 | # See if we are running on zsh, and set the options which allow our commands through |
| 23307 | # without removal of \ escapes. |
| 23308 | if test -n "${ZSH_VERSION+set}" ; then |
| 23309 | setopt NO_GLOB_SUBST |
| 23310 | fi |
| 23311 | # Now quote all the things that may contain metacharacters while being |
| 23312 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23313 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23314 | 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] | 23315 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23316 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23317 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23318 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23319 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23320 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23321 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23322 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23323 | compiler_F77 \ |
| 23324 | CC_F77 \ |
| 23325 | LD_F77 \ |
| 23326 | lt_prog_compiler_wl_F77 \ |
| 23327 | lt_prog_compiler_pic_F77 \ |
| 23328 | lt_prog_compiler_static_F77 \ |
| 23329 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23330 | export_dynamic_flag_spec_F77 \ |
| 23331 | thread_safe_flag_spec_F77 \ |
| 23332 | whole_archive_flag_spec_F77 \ |
| 23333 | enable_shared_with_static_runtimes_F77 \ |
| 23334 | old_archive_cmds_F77 \ |
| 23335 | old_archive_from_new_cmds_F77 \ |
| 23336 | predep_objects_F77 \ |
| 23337 | postdep_objects_F77 \ |
| 23338 | predeps_F77 \ |
| 23339 | postdeps_F77 \ |
| 23340 | compiler_lib_search_path_F77 \ |
| 23341 | archive_cmds_F77 \ |
| 23342 | archive_expsym_cmds_F77 \ |
| 23343 | postinstall_cmds_F77 \ |
| 23344 | postuninstall_cmds_F77 \ |
| 23345 | old_archive_from_expsyms_cmds_F77 \ |
| 23346 | allow_undefined_flag_F77 \ |
| 23347 | no_undefined_flag_F77 \ |
| 23348 | export_symbols_cmds_F77 \ |
| 23349 | hardcode_libdir_flag_spec_F77 \ |
| 23350 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23351 | hardcode_libdir_separator_F77 \ |
| 23352 | hardcode_automatic_F77 \ |
| 23353 | module_cmds_F77 \ |
| 23354 | module_expsym_cmds_F77 \ |
| 23355 | lt_cv_prog_compiler_c_o_F77 \ |
| 23356 | exclude_expsyms_F77 \ |
| 23357 | include_expsyms_F77; do |
| 23358 | |
| 23359 | case $var in |
| 23360 | old_archive_cmds_F77 | \ |
| 23361 | old_archive_from_new_cmds_F77 | \ |
| 23362 | archive_cmds_F77 | \ |
| 23363 | archive_expsym_cmds_F77 | \ |
| 23364 | module_cmds_F77 | \ |
| 23365 | module_expsym_cmds_F77 | \ |
| 23366 | old_archive_from_expsyms_cmds_F77 | \ |
| 23367 | export_symbols_cmds_F77 | \ |
| 23368 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23369 | postinstall_cmds | postuninstall_cmds | \ |
| 23370 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23371 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23372 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23373 | 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] | 23374 | ;; |
| 23375 | *) |
| 23376 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23377 | ;; |
| 23378 | esac |
| 23379 | done |
| 23380 | |
| 23381 | case $lt_echo in |
| 23382 | *'\$0 --fallback-echo"') |
| 23383 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23384 | ;; |
| 23385 | esac |
| 23386 | |
| 23387 | cfgfile="$ofile" |
| 23388 | |
| 23389 | cat <<__EOF__ >> "$cfgfile" |
| 23390 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23391 | |
| 23392 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23393 | |
| 23394 | # Shell to use when invoking shell scripts. |
| 23395 | SHELL=$lt_SHELL |
| 23396 | |
| 23397 | # Whether or not to build shared libraries. |
| 23398 | build_libtool_libs=$enable_shared |
| 23399 | |
| 23400 | # Whether or not to build static libraries. |
| 23401 | build_old_libs=$enable_static |
| 23402 | |
| 23403 | # Whether or not to add -lc for building shared libraries. |
| 23404 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23405 | |
| 23406 | # Whether or not to disallow shared libs when runtime libs are static |
| 23407 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23408 | |
| 23409 | # Whether or not to optimize for fast installation. |
| 23410 | fast_install=$enable_fast_install |
| 23411 | |
| 23412 | # The host system. |
| 23413 | host_alias=$host_alias |
| 23414 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23415 | host_os=$host_os |
| 23416 | |
| 23417 | # The build system. |
| 23418 | build_alias=$build_alias |
| 23419 | build=$build |
| 23420 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23421 | |
| 23422 | # An echo program that does not interpret backslashes. |
| 23423 | echo=$lt_echo |
| 23424 | |
| 23425 | # The archiver. |
| 23426 | AR=$lt_AR |
| 23427 | AR_FLAGS=$lt_AR_FLAGS |
| 23428 | |
| 23429 | # A C compiler. |
| 23430 | LTCC=$lt_LTCC |
| 23431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23432 | # LTCC compiler flags. |
| 23433 | LTCFLAGS=$lt_LTCFLAGS |
| 23434 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23435 | # A language-specific compiler. |
| 23436 | CC=$lt_compiler_F77 |
| 23437 | |
| 23438 | # Is the compiler the GNU C compiler? |
| 23439 | with_gcc=$GCC_F77 |
| 23440 | |
| 23441 | # An ERE matcher. |
| 23442 | EGREP=$lt_EGREP |
| 23443 | |
| 23444 | # The linker used to build libraries. |
| 23445 | LD=$lt_LD_F77 |
| 23446 | |
| 23447 | # Whether we need hard or soft links. |
| 23448 | LN_S=$lt_LN_S |
| 23449 | |
| 23450 | # A BSD-compatible nm program. |
| 23451 | NM=$lt_NM |
| 23452 | |
| 23453 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23454 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23455 | |
| 23456 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23457 | MAGIC_CMD=$MAGIC_CMD |
| 23458 | |
| 23459 | # Used on cygwin: DLL creation program. |
| 23460 | DLLTOOL="$DLLTOOL" |
| 23461 | |
| 23462 | # Used on cygwin: object dumper. |
| 23463 | OBJDUMP="$OBJDUMP" |
| 23464 | |
| 23465 | # Used on cygwin: assembler. |
| 23466 | AS="$AS" |
| 23467 | |
| 23468 | # The name of the directory that contains temporary libtool files. |
| 23469 | objdir=$objdir |
| 23470 | |
| 23471 | # How to create reloadable object files. |
| 23472 | reload_flag=$lt_reload_flag |
| 23473 | reload_cmds=$lt_reload_cmds |
| 23474 | |
| 23475 | # How to pass a linker flag through the compiler. |
| 23476 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23477 | |
| 23478 | # Object file suffix (normally "o"). |
| 23479 | objext="$ac_objext" |
| 23480 | |
| 23481 | # Old archive suffix (normally "a"). |
| 23482 | libext="$libext" |
| 23483 | |
| 23484 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23485 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23486 | |
| 23487 | # Executable file suffix (normally ""). |
| 23488 | exeext="$exeext" |
| 23489 | |
| 23490 | # Additional compiler flags for building library objects. |
| 23491 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23492 | pic_mode=$pic_mode |
| 23493 | |
| 23494 | # What is the maximum length of a command? |
| 23495 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23496 | |
| 23497 | # Does compiler simultaneously support -c and -o options? |
| 23498 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23500 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23501 | need_locks=$lt_need_locks |
| 23502 | |
| 23503 | # Do we need the lib prefix for modules? |
| 23504 | need_lib_prefix=$need_lib_prefix |
| 23505 | |
| 23506 | # Do we need a version for libraries? |
| 23507 | need_version=$need_version |
| 23508 | |
| 23509 | # Whether dlopen is supported. |
| 23510 | dlopen_support=$enable_dlopen |
| 23511 | |
| 23512 | # Whether dlopen of programs is supported. |
| 23513 | dlopen_self=$enable_dlopen_self |
| 23514 | |
| 23515 | # Whether dlopen of statically linked programs is supported. |
| 23516 | dlopen_self_static=$enable_dlopen_self_static |
| 23517 | |
| 23518 | # Compiler flag to prevent dynamic linking. |
| 23519 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23520 | |
| 23521 | # Compiler flag to turn off builtin functions. |
| 23522 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23523 | |
| 23524 | # Compiler flag to allow reflexive dlopens. |
| 23525 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23526 | |
| 23527 | # Compiler flag to generate shared objects directly from archives. |
| 23528 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23529 | |
| 23530 | # Compiler flag to generate thread-safe objects. |
| 23531 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23532 | |
| 23533 | # Library versioning type. |
| 23534 | version_type=$version_type |
| 23535 | |
| 23536 | # Format of library name prefix. |
| 23537 | libname_spec=$lt_libname_spec |
| 23538 | |
| 23539 | # List of archive names. First name is the real one, the rest are links. |
| 23540 | # The last name is the one that the linker finds with -lNAME. |
| 23541 | library_names_spec=$lt_library_names_spec |
| 23542 | |
| 23543 | # The coded name of the library, if different from the real name. |
| 23544 | soname_spec=$lt_soname_spec |
| 23545 | |
| 23546 | # Commands used to build and install an old-style archive. |
| 23547 | RANLIB=$lt_RANLIB |
| 23548 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23549 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23550 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23551 | |
| 23552 | # Create an old-style archive from a shared archive. |
| 23553 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23554 | |
| 23555 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23556 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23557 | |
| 23558 | # Commands used to build and install a shared archive. |
| 23559 | archive_cmds=$lt_archive_cmds_F77 |
| 23560 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23561 | postinstall_cmds=$lt_postinstall_cmds |
| 23562 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23563 | |
| 23564 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23565 | module_cmds=$lt_module_cmds_F77 |
| 23566 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23567 | |
| 23568 | # Commands to strip libraries. |
| 23569 | old_striplib=$lt_old_striplib |
| 23570 | striplib=$lt_striplib |
| 23571 | |
| 23572 | # Dependencies to place before the objects being linked to create a |
| 23573 | # shared library. |
| 23574 | predep_objects=$lt_predep_objects_F77 |
| 23575 | |
| 23576 | # Dependencies to place after the objects being linked to create a |
| 23577 | # shared library. |
| 23578 | postdep_objects=$lt_postdep_objects_F77 |
| 23579 | |
| 23580 | # Dependencies to place before the objects being linked to create a |
| 23581 | # shared library. |
| 23582 | predeps=$lt_predeps_F77 |
| 23583 | |
| 23584 | # Dependencies to place after the objects being linked to create a |
| 23585 | # shared library. |
| 23586 | postdeps=$lt_postdeps_F77 |
| 23587 | |
| 23588 | # The library search path used internally by the compiler when linking |
| 23589 | # a shared library. |
| 23590 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23591 | |
| 23592 | # Method to check whether dependent libraries are shared objects. |
| 23593 | deplibs_check_method=$lt_deplibs_check_method |
| 23594 | |
| 23595 | # Command to use when deplibs_check_method == file_magic. |
| 23596 | file_magic_cmd=$lt_file_magic_cmd |
| 23597 | |
| 23598 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23599 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23600 | |
| 23601 | # Flag that forces no undefined symbols. |
| 23602 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23603 | |
| 23604 | # Commands used to finish a libtool library installation in a directory. |
| 23605 | finish_cmds=$lt_finish_cmds |
| 23606 | |
| 23607 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23608 | finish_eval=$lt_finish_eval |
| 23609 | |
| 23610 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23611 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23612 | |
| 23613 | # Transform the output of nm in a proper C declaration |
| 23614 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23615 | |
| 23616 | # Transform the output of nm in a C name address pair |
| 23617 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23618 | |
| 23619 | # This is the shared library runtime path variable. |
| 23620 | runpath_var=$runpath_var |
| 23621 | |
| 23622 | # This is the shared library path variable. |
| 23623 | shlibpath_var=$shlibpath_var |
| 23624 | |
| 23625 | # Is shlibpath searched before the hard-coded library search path? |
| 23626 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23627 | |
| 23628 | # How to hardcode a shared library path into an executable. |
| 23629 | hardcode_action=$hardcode_action_F77 |
| 23630 | |
| 23631 | # Whether we should hardcode library paths into libraries. |
| 23632 | hardcode_into_libs=$hardcode_into_libs |
| 23633 | |
| 23634 | # Flag to hardcode \$libdir into a binary during linking. |
| 23635 | # This must work even if \$libdir does not exist. |
| 23636 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23637 | |
| 23638 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23639 | # a binary during linking. This must work even if \$libdir does |
| 23640 | # not exist. |
| 23641 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23642 | |
| 23643 | # Whether we need a single -rpath flag with a separated argument. |
| 23644 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23645 | |
| 23646 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23647 | # resulting binary. |
| 23648 | hardcode_direct=$hardcode_direct_F77 |
| 23649 | |
| 23650 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23651 | # resulting binary. |
| 23652 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23653 | |
| 23654 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23655 | # the resulting binary. |
| 23656 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23657 | |
| 23658 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23659 | # and all subsequent libraries and executables linked against it. |
| 23660 | hardcode_automatic=$hardcode_automatic_F77 |
| 23661 | |
| 23662 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23663 | # restored at relink time. |
| 23664 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23665 | |
| 23666 | # Whether libtool must link a program against all its dependency libraries. |
| 23667 | link_all_deplibs=$link_all_deplibs_F77 |
| 23668 | |
| 23669 | # Compile-time system search path for libraries |
| 23670 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23671 | |
| 23672 | # Run-time system search path for libraries |
| 23673 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23674 | |
| 23675 | # Fix the shell variable \$srcfile for the compiler. |
| 23676 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23677 | |
| 23678 | # Set to yes if exported symbols are required. |
| 23679 | always_export_symbols=$always_export_symbols_F77 |
| 23680 | |
| 23681 | # The commands to list exported symbols. |
| 23682 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23683 | |
| 23684 | # The commands to extract the exported symbol list from a shared archive. |
| 23685 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23686 | |
| 23687 | # Symbols that should not be listed in the preloaded symbols. |
| 23688 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23689 | |
| 23690 | # Symbols that must always be exported. |
| 23691 | include_expsyms=$lt_include_expsyms_F77 |
| 23692 | |
| 23693 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23694 | |
| 23695 | __EOF__ |
| 23696 | |
| 23697 | |
| 23698 | else |
| 23699 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23700 | # `config.status --recheck' to rerun these tests and create the |
| 23701 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23702 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23703 | if test -f "$ltmain_in"; then |
| 23704 | test -f Makefile && make "$ltmain" |
| 23705 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23706 | fi |
| 23707 | |
| 23708 | |
| 23709 | ac_ext=c |
| 23710 | ac_cpp='$CPP $CPPFLAGS' |
| 23711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23714 | |
| 23715 | CC="$lt_save_CC" |
| 23716 | |
| 23717 | else |
| 23718 | tagname="" |
| 23719 | fi |
| 23720 | ;; |
| 23721 | |
| 23722 | GCJ) |
| 23723 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23724 | ac_ext=c |
| 23725 | ac_cpp='$CPP $CPPFLAGS' |
| 23726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23729 | |
| 23730 | |
| 23731 | # Source file extension for Java test sources. |
| 23732 | ac_ext=java |
| 23733 | |
| 23734 | # Object file extension for compiled Java test sources. |
| 23735 | objext=o |
| 23736 | objext_GCJ=$objext |
| 23737 | |
| 23738 | # Code to be used in simple compile tests |
| 23739 | lt_simple_compile_test_code="class foo {}\n" |
| 23740 | |
| 23741 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23742 | 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] | 23743 | |
| 23744 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23745 | |
| 23746 | # If no C compiler was specified, use CC. |
| 23747 | LTCC=${LTCC-"$CC"} |
| 23748 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23749 | # If no C compiler flags were specified, use CFLAGS. |
| 23750 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23751 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23752 | # Allow CC to be a program name with arguments. |
| 23753 | compiler=$CC |
| 23754 | |
| 23755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23756 | # save warnings/boilerplate of simple test code |
| 23757 | ac_outfile=conftest.$ac_objext |
| 23758 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23759 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23760 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23761 | $rm conftest* |
| 23762 | |
| 23763 | ac_outfile=conftest.$ac_objext |
| 23764 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23765 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23766 | _lt_linker_boilerplate=`cat conftest.err` |
| 23767 | $rm conftest* |
| 23768 | |
| 23769 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23770 | # Allow CC to be a program name with arguments. |
| 23771 | lt_save_CC="$CC" |
| 23772 | CC=${GCJ-"gcj"} |
| 23773 | compiler=$CC |
| 23774 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23775 | for cc_temp in $compiler""; do |
| 23776 | case $cc_temp in |
| 23777 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23778 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23779 | \-*) ;; |
| 23780 | *) break;; |
| 23781 | esac |
| 23782 | done |
| 23783 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23784 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23785 | |
| 23786 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23787 | archive_cmds_need_lc_GCJ=no |
| 23788 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23789 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23790 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23791 | |
| 23792 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23793 | |
| 23794 | if test "$GCC" = yes; then |
| 23795 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23796 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23798 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23799 | 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] | 23800 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23802 | else |
| 23803 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23804 | ac_outfile=conftest.$ac_objext |
| 23805 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23806 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23807 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23808 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23809 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23810 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23811 | # The option is referenced via a variable to avoid confusing sed. |
| 23812 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23813 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23814 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23815 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 23816 | (eval echo "\"\$as_me:23816: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23817 | (eval "$lt_compile" 2>conftest.err) |
| 23818 | ac_status=$? |
| 23819 | cat conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 23820 | echo "$as_me:23820: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23821 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23822 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23823 | # So say no if there are warnings other than the usual output. |
| 23824 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23825 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23826 | 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] | 23827 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 23828 | fi |
| 23829 | fi |
| 23830 | $rm conftest* |
| 23831 | |
| 23832 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23833 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 23834 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23835 | |
| 23836 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 23837 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 23838 | else |
| 23839 | : |
| 23840 | fi |
| 23841 | |
| 23842 | fi |
| 23843 | |
| 23844 | lt_prog_compiler_wl_GCJ= |
| 23845 | lt_prog_compiler_pic_GCJ= |
| 23846 | lt_prog_compiler_static_GCJ= |
| 23847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23848 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 23849 | 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] | 23850 | |
| 23851 | if test "$GCC" = yes; then |
| 23852 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23853 | lt_prog_compiler_static_GCJ='-static' |
| 23854 | |
| 23855 | case $host_os in |
| 23856 | aix*) |
| 23857 | # All AIX code is PIC. |
| 23858 | if test "$host_cpu" = ia64; then |
| 23859 | # AIX 5 now supports IA64 processor |
| 23860 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23861 | fi |
| 23862 | ;; |
| 23863 | |
| 23864 | amigaos*) |
| 23865 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 23866 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 23867 | # like `-m68040'. |
| 23868 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 23869 | ;; |
| 23870 | |
| 23871 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23872 | # PIC is the default for these OSes. |
| 23873 | ;; |
| 23874 | |
| 23875 | mingw* | pw32* | os2*) |
| 23876 | # This hack is so that the source file can tell whether it is being |
| 23877 | # built for inclusion in a dll (and should export symbols for example). |
| 23878 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23879 | ;; |
| 23880 | |
| 23881 | darwin* | rhapsody*) |
| 23882 | # PIC is the default on this platform |
| 23883 | # Common symbols not allowed in MH_DYLIB files |
| 23884 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 23885 | ;; |
| 23886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23887 | interix3*) |
| 23888 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23889 | # Instead, we relocate shared libraries at runtime. |
| 23890 | ;; |
| 23891 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23892 | msdosdjgpp*) |
| 23893 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23894 | # on systems that don't support them. |
| 23895 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23896 | enable_shared=no |
| 23897 | ;; |
| 23898 | |
| 23899 | sysv4*MP*) |
| 23900 | if test -d /usr/nec; then |
| 23901 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 23902 | fi |
| 23903 | ;; |
| 23904 | |
| 23905 | hpux*) |
| 23906 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23907 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23908 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23909 | hppa*64*|ia64*) |
| 23910 | # +Z the default |
| 23911 | ;; |
| 23912 | *) |
| 23913 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23914 | ;; |
| 23915 | esac |
| 23916 | ;; |
| 23917 | |
| 23918 | *) |
| 23919 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23920 | ;; |
| 23921 | esac |
| 23922 | else |
| 23923 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 23924 | case $host_os in |
| 23925 | aix*) |
| 23926 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23927 | if test "$host_cpu" = ia64; then |
| 23928 | # AIX 5 now supports IA64 processor |
| 23929 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23930 | else |
| 23931 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 23932 | fi |
| 23933 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23934 | darwin*) |
| 23935 | # PIC is the default on this platform |
| 23936 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23937 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23938 | xlc*) |
| 23939 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 23940 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23941 | ;; |
| 23942 | esac |
| 23943 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23944 | |
| 23945 | mingw* | pw32* | os2*) |
| 23946 | # This hack is so that the source file can tell whether it is being |
| 23947 | # built for inclusion in a dll (and should export symbols for example). |
| 23948 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23949 | ;; |
| 23950 | |
| 23951 | hpux9* | hpux10* | hpux11*) |
| 23952 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23953 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23954 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23955 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23956 | hppa*64*|ia64*) |
| 23957 | # +Z the default |
| 23958 | ;; |
| 23959 | *) |
| 23960 | lt_prog_compiler_pic_GCJ='+Z' |
| 23961 | ;; |
| 23962 | esac |
| 23963 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23964 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 23965 | ;; |
| 23966 | |
| 23967 | irix5* | irix6* | nonstopux*) |
| 23968 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23969 | # PIC (with -KPIC) is the default. |
| 23970 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23971 | ;; |
| 23972 | |
| 23973 | newsos6) |
| 23974 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23975 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23976 | ;; |
| 23977 | |
| 23978 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23979 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23980 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23981 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23982 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23983 | lt_prog_compiler_static_GCJ='-static' |
| 23984 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23985 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 23986 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23987 | # which looks to be a dead project) |
| 23988 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23989 | lt_prog_compiler_pic_GCJ='-fpic' |
| 23990 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23991 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23992 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23993 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23994 | # All Alpha code is PIC. |
| 23995 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23996 | ;; |
| 23997 | esac |
| 23998 | ;; |
| 23999 | |
| 24000 | osf3* | osf4* | osf5*) |
| 24001 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24002 | # All OSF/1 code is PIC. |
| 24003 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24004 | ;; |
| 24005 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24006 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24007 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24008 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24009 | case $cc_basename in |
| 24010 | f77* | f90* | f95*) |
| 24011 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 24012 | *) |
| 24013 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 24014 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24015 | ;; |
| 24016 | |
| 24017 | sunos4*) |
| 24018 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 24019 | lt_prog_compiler_pic_GCJ='-PIC' |
| 24020 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24021 | ;; |
| 24022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24023 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24024 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24025 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24026 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24027 | ;; |
| 24028 | |
| 24029 | sysv4*MP*) |
| 24030 | if test -d /usr/nec ;then |
| 24031 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 24032 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24033 | fi |
| 24034 | ;; |
| 24035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24036 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 24037 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24038 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24039 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24040 | ;; |
| 24041 | |
| 24042 | unicos*) |
| 24043 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24044 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24045 | ;; |
| 24046 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24047 | uts4*) |
| 24048 | lt_prog_compiler_pic_GCJ='-pic' |
| 24049 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24050 | ;; |
| 24051 | |
| 24052 | *) |
| 24053 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24054 | ;; |
| 24055 | esac |
| 24056 | fi |
| 24057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24058 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 24059 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24060 | |
| 24061 | # |
| 24062 | # Check to make sure the PIC flag actually works. |
| 24063 | # |
| 24064 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24066 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 24067 | 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] | 24068 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 24069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24070 | else |
| 24071 | lt_prog_compiler_pic_works_GCJ=no |
| 24072 | ac_outfile=conftest.$ac_objext |
| 24073 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24074 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 24075 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24076 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24077 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24078 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24079 | # The option is referenced via a variable to avoid confusing sed. |
| 24080 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24081 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24082 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24083 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 24084 | (eval echo "\"\$as_me:24084: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24085 | (eval "$lt_compile" 2>conftest.err) |
| 24086 | ac_status=$? |
| 24087 | cat conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 24088 | echo "$as_me:24088: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24089 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24090 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24091 | # So say no if there are warnings other than the usual output. |
| 24092 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24093 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24094 | 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] | 24095 | lt_prog_compiler_pic_works_GCJ=yes |
| 24096 | fi |
| 24097 | fi |
| 24098 | $rm conftest* |
| 24099 | |
| 24100 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24101 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24102 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24103 | |
| 24104 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24105 | case $lt_prog_compiler_pic_GCJ in |
| 24106 | "" | " "*) ;; |
| 24107 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24108 | esac |
| 24109 | else |
| 24110 | lt_prog_compiler_pic_GCJ= |
| 24111 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24112 | fi |
| 24113 | |
| 24114 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24115 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24116 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24117 | *djgpp*) |
| 24118 | lt_prog_compiler_pic_GCJ= |
| 24119 | ;; |
| 24120 | *) |
| 24121 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24122 | ;; |
| 24123 | esac |
| 24124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24125 | # |
| 24126 | # Check to make sure the static flag actually works. |
| 24127 | # |
| 24128 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24129 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24130 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24131 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24133 | else |
| 24134 | lt_prog_compiler_static_works_GCJ=no |
| 24135 | save_LDFLAGS="$LDFLAGS" |
| 24136 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24137 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24138 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24139 | # The linker can only warn and ignore the option if not recognized |
| 24140 | # So say no if there are warnings |
| 24141 | if test -s conftest.err; then |
| 24142 | # Append any errors to the config.log. |
| 24143 | cat conftest.err 1>&5 |
| 24144 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24145 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24146 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24147 | lt_prog_compiler_static_works_GCJ=yes |
| 24148 | fi |
| 24149 | else |
| 24150 | lt_prog_compiler_static_works_GCJ=yes |
| 24151 | fi |
| 24152 | fi |
| 24153 | $rm conftest* |
| 24154 | LDFLAGS="$save_LDFLAGS" |
| 24155 | |
| 24156 | fi |
| 24157 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24158 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24159 | |
| 24160 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24161 | : |
| 24162 | else |
| 24163 | lt_prog_compiler_static_GCJ= |
| 24164 | fi |
| 24165 | |
| 24166 | |
| 24167 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24168 | 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] | 24169 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24171 | else |
| 24172 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24173 | $rm -r conftest 2>/dev/null |
| 24174 | mkdir conftest |
| 24175 | cd conftest |
| 24176 | mkdir out |
| 24177 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24178 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24179 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24180 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24181 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24182 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24183 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24184 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24185 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24186 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24187 | -e 's:$: $lt_compiler_flag:'` |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 24188 | (eval echo "\"\$as_me:24188: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24189 | (eval "$lt_compile" 2>out/conftest.err) |
| 24190 | ac_status=$? |
| 24191 | cat out/conftest.err >&5 |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 24192 | echo "$as_me:24192: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24193 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24194 | then |
| 24195 | # The compiler can only warn and ignore the option if not recognized |
| 24196 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24197 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24198 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24199 | 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] | 24200 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24201 | fi |
| 24202 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24203 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24204 | $rm conftest* |
| 24205 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24206 | # template instantiation |
| 24207 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24208 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24209 | cd .. |
| 24210 | rmdir conftest |
| 24211 | $rm conftest* |
| 24212 | |
| 24213 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24214 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24215 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24216 | |
| 24217 | |
| 24218 | hard_links="nottested" |
| 24219 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24220 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24221 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24222 | 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] | 24223 | hard_links=yes |
| 24224 | $rm conftest* |
| 24225 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24226 | touch conftest.a |
| 24227 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24228 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24229 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24230 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24231 | if test "$hard_links" = no; then |
| 24232 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24233 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24234 | need_locks=warn |
| 24235 | fi |
| 24236 | else |
| 24237 | need_locks=no |
| 24238 | fi |
| 24239 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24240 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24241 | 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] | 24242 | |
| 24243 | runpath_var= |
| 24244 | allow_undefined_flag_GCJ= |
| 24245 | enable_shared_with_static_runtimes_GCJ=no |
| 24246 | archive_cmds_GCJ= |
| 24247 | archive_expsym_cmds_GCJ= |
| 24248 | old_archive_From_new_cmds_GCJ= |
| 24249 | old_archive_from_expsyms_cmds_GCJ= |
| 24250 | export_dynamic_flag_spec_GCJ= |
| 24251 | whole_archive_flag_spec_GCJ= |
| 24252 | thread_safe_flag_spec_GCJ= |
| 24253 | hardcode_libdir_flag_spec_GCJ= |
| 24254 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24255 | hardcode_libdir_separator_GCJ= |
| 24256 | hardcode_direct_GCJ=no |
| 24257 | hardcode_minus_L_GCJ=no |
| 24258 | hardcode_shlibpath_var_GCJ=unsupported |
| 24259 | link_all_deplibs_GCJ=unknown |
| 24260 | hardcode_automatic_GCJ=no |
| 24261 | module_cmds_GCJ= |
| 24262 | module_expsym_cmds_GCJ= |
| 24263 | always_export_symbols_GCJ=no |
| 24264 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24265 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24266 | # included in the symbol list |
| 24267 | include_expsyms_GCJ= |
| 24268 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24269 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24270 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24271 | # as well as any symbol that contains `d'. |
| 24272 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24273 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24274 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24275 | # the symbol is explicitly referenced. Since portable code cannot |
| 24276 | # rely on this symbol name, it's probably fine to never include it in |
| 24277 | # preloaded symbol tables. |
| 24278 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24279 | # Just being paranoid about ensuring that cc_basename is set. |
| 24280 | for cc_temp in $compiler""; do |
| 24281 | case $cc_temp in |
| 24282 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24283 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24284 | \-*) ;; |
| 24285 | *) break;; |
| 24286 | esac |
| 24287 | done |
| 24288 | 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] | 24289 | |
| 24290 | case $host_os in |
| 24291 | cygwin* | mingw* | pw32*) |
| 24292 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24293 | # When not using gcc, we currently assume that we are using |
| 24294 | # Microsoft Visual C++. |
| 24295 | if test "$GCC" != yes; then |
| 24296 | with_gnu_ld=no |
| 24297 | fi |
| 24298 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24299 | interix*) |
| 24300 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24301 | with_gnu_ld=yes |
| 24302 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24303 | openbsd*) |
| 24304 | with_gnu_ld=no |
| 24305 | ;; |
| 24306 | esac |
| 24307 | |
| 24308 | ld_shlibs_GCJ=yes |
| 24309 | if test "$with_gnu_ld" = yes; then |
| 24310 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24311 | wlarc='${wl}' |
| 24312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24313 | # Set some defaults for GNU ld with shared library support. These |
| 24314 | # are reset later if shared libraries are not supported. Putting them |
| 24315 | # here allows them to be overridden if necessary. |
| 24316 | runpath_var=LD_RUN_PATH |
| 24317 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24318 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24319 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24320 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24321 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24322 | else |
| 24323 | whole_archive_flag_spec_GCJ= |
| 24324 | fi |
| 24325 | supports_anon_versioning=no |
| 24326 | case `$LD -v 2>/dev/null` in |
| 24327 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24328 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24329 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24330 | *\ 2.11.*) ;; # other 2.11 versions |
| 24331 | *) supports_anon_versioning=yes ;; |
| 24332 | esac |
| 24333 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24334 | # See if GNU ld supports shared libraries. |
| 24335 | case $host_os in |
| 24336 | aix3* | aix4* | aix5*) |
| 24337 | # On AIX/PPC, the GNU linker is very broken |
| 24338 | if test "$host_cpu" != ia64; then |
| 24339 | ld_shlibs_GCJ=no |
| 24340 | cat <<EOF 1>&2 |
| 24341 | |
| 24342 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24343 | *** to be unable to reliably create shared libraries on AIX. |
| 24344 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24345 | *** really care for shared libraries, you may want to modify your PATH |
| 24346 | *** so that a non-GNU linker is found, and then restart. |
| 24347 | |
| 24348 | EOF |
| 24349 | fi |
| 24350 | ;; |
| 24351 | |
| 24352 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24353 | 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] | 24354 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24355 | hardcode_minus_L_GCJ=yes |
| 24356 | |
| 24357 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24358 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24359 | # to version 4, is to share data among multiple programs linked |
| 24360 | # with the same dynamic library. Since this doesn't match the |
| 24361 | # behavior of shared libraries on other platforms, we can't use |
| 24362 | # them. |
| 24363 | ld_shlibs_GCJ=no |
| 24364 | ;; |
| 24365 | |
| 24366 | beos*) |
| 24367 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24368 | allow_undefined_flag_GCJ=unsupported |
| 24369 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24370 | # support --undefined. This deserves some investigation. FIXME |
| 24371 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24372 | else |
| 24373 | ld_shlibs_GCJ=no |
| 24374 | fi |
| 24375 | ;; |
| 24376 | |
| 24377 | cygwin* | mingw* | pw32*) |
| 24378 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24379 | # as there is no search path for DLLs. |
| 24380 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24381 | allow_undefined_flag_GCJ=unsupported |
| 24382 | always_export_symbols_GCJ=no |
| 24383 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24384 | 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] | 24385 | |
| 24386 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24387 | 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] | 24388 | # If the export-symbols file already is a .def file (1st line |
| 24389 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24390 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24391 | cp $export_symbols $output_objdir/$soname.def; |
| 24392 | else |
| 24393 | echo EXPORTS > $output_objdir/$soname.def; |
| 24394 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24395 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24396 | $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] | 24397 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24398 | ld_shlibs_GCJ=no |
| 24399 | fi |
| 24400 | ;; |
| 24401 | |
| 24402 | interix3*) |
| 24403 | hardcode_direct_GCJ=no |
| 24404 | hardcode_shlibpath_var_GCJ=no |
| 24405 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24406 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24407 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24408 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24409 | # default) and relocated if they conflict, which is a slow very memory |
| 24410 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24411 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24412 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24413 | 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' |
| 24414 | 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' |
| 24415 | ;; |
| 24416 | |
| 24417 | linux*) |
| 24418 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24419 | tmp_addflag= |
| 24420 | case $cc_basename,$host_cpu in |
| 24421 | pgcc*) # Portland Group C compiler |
| 24422 | 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' |
| 24423 | tmp_addflag=' $pic_flag' |
| 24424 | ;; |
| 24425 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24426 | 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' |
| 24427 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24428 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24429 | tmp_addflag=' -i_dynamic' ;; |
| 24430 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24431 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24432 | ifc* | ifort*) # Intel Fortran compiler |
| 24433 | tmp_addflag=' -nofor_main' ;; |
| 24434 | esac |
| 24435 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24436 | |
| 24437 | if test $supports_anon_versioning = yes; then |
| 24438 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24439 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24440 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24441 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24442 | fi |
| 24443 | else |
| 24444 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24445 | fi |
| 24446 | ;; |
| 24447 | |
| 24448 | netbsd*) |
| 24449 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24450 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24451 | wlarc= |
| 24452 | else |
| 24453 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24454 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24455 | fi |
| 24456 | ;; |
| 24457 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24458 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24459 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24460 | ld_shlibs_GCJ=no |
| 24461 | cat <<EOF 1>&2 |
| 24462 | |
| 24463 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24464 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24465 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24466 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24467 | *** your PATH or compiler configuration so that the native linker is |
| 24468 | *** used, and then restart. |
| 24469 | |
| 24470 | EOF |
| 24471 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24472 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24473 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24474 | else |
| 24475 | ld_shlibs_GCJ=no |
| 24476 | fi |
| 24477 | ;; |
| 24478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24479 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24480 | case `$LD -v 2>&1` in |
| 24481 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24482 | ld_shlibs_GCJ=no |
| 24483 | cat <<_LT_EOF 1>&2 |
| 24484 | |
| 24485 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24486 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24487 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24488 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24489 | *** your PATH or compiler configuration so that the native linker is |
| 24490 | *** used, and then restart. |
| 24491 | |
| 24492 | _LT_EOF |
| 24493 | ;; |
| 24494 | *) |
| 24495 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24496 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24497 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24498 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24499 | else |
| 24500 | ld_shlibs_GCJ=no |
| 24501 | fi |
| 24502 | ;; |
| 24503 | esac |
| 24504 | ;; |
| 24505 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24506 | sunos4*) |
| 24507 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24508 | wlarc= |
| 24509 | hardcode_direct_GCJ=yes |
| 24510 | hardcode_shlibpath_var_GCJ=no |
| 24511 | ;; |
| 24512 | |
| 24513 | *) |
| 24514 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24515 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24516 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24517 | else |
| 24518 | ld_shlibs_GCJ=no |
| 24519 | fi |
| 24520 | ;; |
| 24521 | esac |
| 24522 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24523 | if test "$ld_shlibs_GCJ" = no; then |
| 24524 | runpath_var= |
| 24525 | hardcode_libdir_flag_spec_GCJ= |
| 24526 | export_dynamic_flag_spec_GCJ= |
| 24527 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24528 | fi |
| 24529 | else |
| 24530 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24531 | case $host_os in |
| 24532 | aix3*) |
| 24533 | allow_undefined_flag_GCJ=unsupported |
| 24534 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24535 | 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] | 24536 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24537 | # are no directories specified by -L. |
| 24538 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24539 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24540 | # Neither direct hardcoding nor static linking is supported with a |
| 24541 | # broken collect2. |
| 24542 | hardcode_direct_GCJ=unsupported |
| 24543 | fi |
| 24544 | ;; |
| 24545 | |
| 24546 | aix4* | aix5*) |
| 24547 | if test "$host_cpu" = ia64; then |
| 24548 | # On IA64, the linker does run time linking by default, so we don't |
| 24549 | # have to do anything special. |
| 24550 | aix_use_runtimelinking=no |
| 24551 | exp_sym_flag='-Bexport' |
| 24552 | no_entry_flag="" |
| 24553 | else |
| 24554 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24555 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24556 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24557 | 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' |
| 24558 | else |
| 24559 | 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' |
| 24560 | fi |
| 24561 | aix_use_runtimelinking=no |
| 24562 | |
| 24563 | # Test if we are trying to use run time linking or normal |
| 24564 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24565 | # need to do runtime linking. |
| 24566 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24567 | for ld_flag in $LDFLAGS; do |
| 24568 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24569 | aix_use_runtimelinking=yes |
| 24570 | break |
| 24571 | fi |
| 24572 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24573 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24574 | esac |
| 24575 | |
| 24576 | exp_sym_flag='-bexport' |
| 24577 | no_entry_flag='-bnoentry' |
| 24578 | fi |
| 24579 | |
| 24580 | # When large executables or shared objects are built, AIX ld can |
| 24581 | # have problems creating the table of contents. If linking a library |
| 24582 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24583 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24584 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24585 | |
| 24586 | archive_cmds_GCJ='' |
| 24587 | hardcode_direct_GCJ=yes |
| 24588 | hardcode_libdir_separator_GCJ=':' |
| 24589 | link_all_deplibs_GCJ=yes |
| 24590 | |
| 24591 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24592 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24593 | # We only want to do this on AIX 4.2 and lower, the check |
| 24594 | # below for broken collect2 doesn't work under 4.3+ |
| 24595 | collect2name=`${CC} -print-prog-name=collect2` |
| 24596 | if test -f "$collect2name" && \ |
| 24597 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24598 | then |
| 24599 | # We have reworked collect2 |
| 24600 | hardcode_direct_GCJ=yes |
| 24601 | else |
| 24602 | # We have old collect2 |
| 24603 | hardcode_direct_GCJ=unsupported |
| 24604 | # It fails to find uninstalled libraries when the uninstalled |
| 24605 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24606 | # to unsupported forces relinking |
| 24607 | hardcode_minus_L_GCJ=yes |
| 24608 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24609 | hardcode_libdir_separator_GCJ= |
| 24610 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24611 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24612 | esac |
| 24613 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24614 | if test "$aix_use_runtimelinking" = yes; then |
| 24615 | shared_flag="$shared_flag "'${wl}-G' |
| 24616 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24617 | else |
| 24618 | # not using gcc |
| 24619 | if test "$host_cpu" = ia64; then |
| 24620 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24621 | # chokes on -Wl,-G. The following line is correct: |
| 24622 | shared_flag='-G' |
| 24623 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24624 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24625 | shared_flag='${wl}-G' |
| 24626 | else |
| 24627 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24628 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24629 | fi |
| 24630 | fi |
| 24631 | |
| 24632 | # It seems that -bexpall does not export symbols beginning with |
| 24633 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24634 | always_export_symbols_GCJ=yes |
| 24635 | if test "$aix_use_runtimelinking" = yes; then |
| 24636 | # Warning - without using the other runtime loading flags (-brtl), |
| 24637 | # -berok will link without error, but may produce a broken library. |
| 24638 | allow_undefined_flag_GCJ='-berok' |
| 24639 | # Determine the default libpath from the value encoded in an empty executable. |
| 24640 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24641 | /* confdefs.h. */ |
| 24642 | _ACEOF |
| 24643 | cat confdefs.h >>conftest.$ac_ext |
| 24644 | cat >>conftest.$ac_ext <<_ACEOF |
| 24645 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24646 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24647 | int |
| 24648 | main () |
| 24649 | { |
| 24650 | |
| 24651 | ; |
| 24652 | return 0; |
| 24653 | } |
| 24654 | _ACEOF |
| 24655 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24656 | if { (ac_try="$ac_link" |
| 24657 | case "(($ac_try" in |
| 24658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24659 | *) ac_try_echo=$ac_try;; |
| 24660 | esac |
| 24661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24662 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24663 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24665 | rm -f conftest.er1 |
| 24666 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24668 | (exit $ac_status); } && |
| 24669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24670 | { (case "(($ac_try" in |
| 24671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24672 | *) ac_try_echo=$ac_try;; |
| 24673 | esac |
| 24674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24675 | (eval "$ac_try") 2>&5 |
| 24676 | ac_status=$? |
| 24677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24678 | (exit $ac_status); }; } && |
| 24679 | { ac_try='test -s conftest$ac_exeext' |
| 24680 | { (case "(($ac_try" in |
| 24681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24682 | *) ac_try_echo=$ac_try;; |
| 24683 | esac |
| 24684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24685 | (eval "$ac_try") 2>&5 |
| 24686 | ac_status=$? |
| 24687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24688 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24689 | |
| 24690 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24691 | }'` |
| 24692 | # Check for a 64-bit object if we didn't find anything. |
| 24693 | 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; } |
| 24694 | }'`; fi |
| 24695 | else |
| 24696 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24698 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24699 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24700 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24701 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24702 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24703 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24704 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24705 | |
| 24706 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24707 | 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] | 24708 | else |
| 24709 | if test "$host_cpu" = ia64; then |
| 24710 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24711 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24712 | 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] | 24713 | else |
| 24714 | # Determine the default libpath from the value encoded in an empty executable. |
| 24715 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24716 | /* confdefs.h. */ |
| 24717 | _ACEOF |
| 24718 | cat confdefs.h >>conftest.$ac_ext |
| 24719 | cat >>conftest.$ac_ext <<_ACEOF |
| 24720 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24721 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24722 | int |
| 24723 | main () |
| 24724 | { |
| 24725 | |
| 24726 | ; |
| 24727 | return 0; |
| 24728 | } |
| 24729 | _ACEOF |
| 24730 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24731 | if { (ac_try="$ac_link" |
| 24732 | case "(($ac_try" in |
| 24733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24734 | *) ac_try_echo=$ac_try;; |
| 24735 | esac |
| 24736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24737 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24738 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24740 | rm -f conftest.er1 |
| 24741 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24743 | (exit $ac_status); } && |
| 24744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24745 | { (case "(($ac_try" in |
| 24746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24747 | *) ac_try_echo=$ac_try;; |
| 24748 | esac |
| 24749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24750 | (eval "$ac_try") 2>&5 |
| 24751 | ac_status=$? |
| 24752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24753 | (exit $ac_status); }; } && |
| 24754 | { ac_try='test -s conftest$ac_exeext' |
| 24755 | { (case "(($ac_try" in |
| 24756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24757 | *) ac_try_echo=$ac_try;; |
| 24758 | esac |
| 24759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24760 | (eval "$ac_try") 2>&5 |
| 24761 | ac_status=$? |
| 24762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24763 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24764 | |
| 24765 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24766 | }'` |
| 24767 | # Check for a 64-bit object if we didn't find anything. |
| 24768 | 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; } |
| 24769 | }'`; fi |
| 24770 | else |
| 24771 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24774 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24775 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24776 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24777 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24778 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24779 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24780 | |
| 24781 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24782 | # Warning - without using the other run time loading flags, |
| 24783 | # -berok will link without error, but may produce a broken library. |
| 24784 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24785 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24786 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24787 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24788 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24789 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24790 | 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] | 24791 | fi |
| 24792 | fi |
| 24793 | ;; |
| 24794 | |
| 24795 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24796 | 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] | 24797 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24798 | hardcode_minus_L_GCJ=yes |
| 24799 | # see comment about different semantics on the GNU ld section |
| 24800 | ld_shlibs_GCJ=no |
| 24801 | ;; |
| 24802 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24803 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24804 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24805 | ;; |
| 24806 | |
| 24807 | cygwin* | mingw* | pw32*) |
| 24808 | # When not using gcc, we currently assume that we are using |
| 24809 | # Microsoft Visual C++. |
| 24810 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24811 | # no search path for DLLs. |
| 24812 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24813 | allow_undefined_flag_GCJ=unsupported |
| 24814 | # Tell ltmain to make .lib files, not .a files. |
| 24815 | libext=lib |
| 24816 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24817 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24818 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24819 | 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] | 24820 | # The linker will automatically build a .lib file if we build a DLL. |
| 24821 | old_archive_From_new_cmds_GCJ='true' |
| 24822 | # FIXME: Should let the user specify the lib program. |
| 24823 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24824 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24825 | enable_shared_with_static_runtimes_GCJ=yes |
| 24826 | ;; |
| 24827 | |
| 24828 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24829 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24830 | rhapsody* | darwin1.[012]) |
| 24831 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 24832 | ;; |
| 24833 | *) # Darwin 1.3 on |
| 24834 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24835 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24836 | else |
| 24837 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24838 | 10.[012]) |
| 24839 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24840 | ;; |
| 24841 | 10.*) |
| 24842 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 24843 | ;; |
| 24844 | esac |
| 24845 | fi |
| 24846 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24847 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24848 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24849 | hardcode_direct_GCJ=no |
| 24850 | hardcode_automatic_GCJ=yes |
| 24851 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24852 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24853 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24854 | if test "$GCC" = yes ; then |
| 24855 | output_verbose_link_cmd='echo' |
| 24856 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 24857 | 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] | 24858 | # 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] | 24859 | 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}' |
| 24860 | 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] | 24861 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24862 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24863 | xlc*) |
| 24864 | output_verbose_link_cmd='echo' |
| 24865 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 24866 | 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] | 24867 | # 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] | 24868 | 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}' |
| 24869 | 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] | 24870 | ;; |
| 24871 | *) |
| 24872 | ld_shlibs_GCJ=no |
| 24873 | ;; |
| 24874 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24875 | fi |
| 24876 | ;; |
| 24877 | |
| 24878 | dgux*) |
| 24879 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24880 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24881 | hardcode_shlibpath_var_GCJ=no |
| 24882 | ;; |
| 24883 | |
| 24884 | freebsd1*) |
| 24885 | ld_shlibs_GCJ=no |
| 24886 | ;; |
| 24887 | |
| 24888 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 24889 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 24890 | # does not break anything, and helps significantly (at the cost of a little |
| 24891 | # extra space). |
| 24892 | freebsd2.2*) |
| 24893 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 24894 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24895 | hardcode_direct_GCJ=yes |
| 24896 | hardcode_shlibpath_var_GCJ=no |
| 24897 | ;; |
| 24898 | |
| 24899 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 24900 | freebsd2*) |
| 24901 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24902 | hardcode_direct_GCJ=yes |
| 24903 | hardcode_minus_L_GCJ=yes |
| 24904 | hardcode_shlibpath_var_GCJ=no |
| 24905 | ;; |
| 24906 | |
| 24907 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24908 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24909 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 24910 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24911 | hardcode_direct_GCJ=yes |
| 24912 | hardcode_shlibpath_var_GCJ=no |
| 24913 | ;; |
| 24914 | |
| 24915 | hpux9*) |
| 24916 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24917 | 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] | 24918 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24919 | 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] | 24920 | fi |
| 24921 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24922 | hardcode_libdir_separator_GCJ=: |
| 24923 | hardcode_direct_GCJ=yes |
| 24924 | |
| 24925 | # hardcode_minus_L: Not really in the search PATH, |
| 24926 | # but as the default location of the library. |
| 24927 | hardcode_minus_L_GCJ=yes |
| 24928 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24929 | ;; |
| 24930 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24931 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24932 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24933 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24934 | else |
| 24935 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 24936 | fi |
| 24937 | if test "$with_gnu_ld" = no; then |
| 24938 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24939 | hardcode_libdir_separator_GCJ=: |
| 24940 | |
| 24941 | hardcode_direct_GCJ=yes |
| 24942 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24943 | |
| 24944 | # hardcode_minus_L: Not really in the search PATH, |
| 24945 | # but as the default location of the library. |
| 24946 | hardcode_minus_L_GCJ=yes |
| 24947 | fi |
| 24948 | ;; |
| 24949 | |
| 24950 | hpux11*) |
| 24951 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 24952 | case $host_cpu in |
| 24953 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24954 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24955 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24956 | ia64*) |
| 24957 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 24958 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24959 | *) |
| 24960 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24961 | ;; |
| 24962 | esac |
| 24963 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24964 | case $host_cpu in |
| 24965 | hppa*64*) |
| 24966 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24967 | ;; |
| 24968 | ia64*) |
| 24969 | 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] | 24970 | ;; |
| 24971 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24972 | 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] | 24973 | ;; |
| 24974 | esac |
| 24975 | fi |
| 24976 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24977 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24978 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24980 | case $host_cpu in |
| 24981 | hppa*64*|ia64*) |
| 24982 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 24983 | hardcode_direct_GCJ=no |
| 24984 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24985 | ;; |
| 24986 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24987 | hardcode_direct_GCJ=yes |
| 24988 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24989 | |
| 24990 | # hardcode_minus_L: Not really in the search PATH, |
| 24991 | # but as the default location of the library. |
| 24992 | hardcode_minus_L_GCJ=yes |
| 24993 | ;; |
| 24994 | esac |
| 24995 | fi |
| 24996 | ;; |
| 24997 | |
| 24998 | irix5* | irix6* | nonstopux*) |
| 24999 | if test "$GCC" = yes; then |
| 25000 | 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' |
| 25001 | else |
| 25002 | 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' |
| 25003 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 25004 | fi |
| 25005 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25006 | hardcode_libdir_separator_GCJ=: |
| 25007 | link_all_deplibs_GCJ=yes |
| 25008 | ;; |
| 25009 | |
| 25010 | netbsd*) |
| 25011 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25012 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 25013 | else |
| 25014 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 25015 | fi |
| 25016 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25017 | hardcode_direct_GCJ=yes |
| 25018 | hardcode_shlibpath_var_GCJ=no |
| 25019 | ;; |
| 25020 | |
| 25021 | newsos6) |
| 25022 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25023 | hardcode_direct_GCJ=yes |
| 25024 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25025 | hardcode_libdir_separator_GCJ=: |
| 25026 | hardcode_shlibpath_var_GCJ=no |
| 25027 | ;; |
| 25028 | |
| 25029 | openbsd*) |
| 25030 | hardcode_direct_GCJ=yes |
| 25031 | hardcode_shlibpath_var_GCJ=no |
| 25032 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25033 | 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] | 25034 | 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] | 25035 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25036 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25037 | else |
| 25038 | case $host_os in |
| 25039 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 25040 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25041 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25042 | ;; |
| 25043 | *) |
| 25044 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25045 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25046 | ;; |
| 25047 | esac |
| 25048 | fi |
| 25049 | ;; |
| 25050 | |
| 25051 | os2*) |
| 25052 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25053 | hardcode_minus_L_GCJ=yes |
| 25054 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25055 | 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] | 25056 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 25057 | ;; |
| 25058 | |
| 25059 | osf3*) |
| 25060 | if test "$GCC" = yes; then |
| 25061 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25062 | 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' |
| 25063 | else |
| 25064 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25065 | 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' |
| 25066 | fi |
| 25067 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25068 | hardcode_libdir_separator_GCJ=: |
| 25069 | ;; |
| 25070 | |
| 25071 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25072 | if test "$GCC" = yes; then |
| 25073 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25074 | 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' |
| 25075 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25076 | else |
| 25077 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25078 | 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] | 25079 | 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] | 25080 | $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] | 25081 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25082 | # Both c and cxx compiler support -rpath directly |
| 25083 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 25084 | fi |
| 25085 | hardcode_libdir_separator_GCJ=: |
| 25086 | ;; |
| 25087 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25088 | solaris*) |
| 25089 | no_undefined_flag_GCJ=' -z text' |
| 25090 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25091 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25092 | 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] | 25093 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25094 | $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] | 25095 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25096 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25097 | 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] | 25098 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25099 | $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] | 25100 | fi |
| 25101 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25102 | hardcode_shlibpath_var_GCJ=no |
| 25103 | case $host_os in |
| 25104 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25105 | *) |
| 25106 | # The compiler driver will combine linker options so we |
| 25107 | # cannot just pass the convience library names through |
| 25108 | # without $wl, iff we do not link with $LD. |
| 25109 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25110 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25111 | case $wlarc in |
| 25112 | '') |
| 25113 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25114 | *) |
| 25115 | 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' ;; |
| 25116 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25117 | esac |
| 25118 | link_all_deplibs_GCJ=yes |
| 25119 | ;; |
| 25120 | |
| 25121 | sunos4*) |
| 25122 | if test "x$host_vendor" = xsequent; then |
| 25123 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25124 | # files that make .init and .fini sections work. |
| 25125 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25126 | else |
| 25127 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25128 | fi |
| 25129 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25130 | hardcode_direct_GCJ=yes |
| 25131 | hardcode_minus_L_GCJ=yes |
| 25132 | hardcode_shlibpath_var_GCJ=no |
| 25133 | ;; |
| 25134 | |
| 25135 | sysv4) |
| 25136 | case $host_vendor in |
| 25137 | sni) |
| 25138 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25139 | hardcode_direct_GCJ=yes # is this really true??? |
| 25140 | ;; |
| 25141 | siemens) |
| 25142 | ## LD is ld it makes a PLAMLIB |
| 25143 | ## CC just makes a GrossModule. |
| 25144 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25145 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25146 | hardcode_direct_GCJ=no |
| 25147 | ;; |
| 25148 | motorola) |
| 25149 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25150 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25151 | ;; |
| 25152 | esac |
| 25153 | runpath_var='LD_RUN_PATH' |
| 25154 | hardcode_shlibpath_var_GCJ=no |
| 25155 | ;; |
| 25156 | |
| 25157 | sysv4.3*) |
| 25158 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25159 | hardcode_shlibpath_var_GCJ=no |
| 25160 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25161 | ;; |
| 25162 | |
| 25163 | sysv4*MP*) |
| 25164 | if test -d /usr/nec; then |
| 25165 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25166 | hardcode_shlibpath_var_GCJ=no |
| 25167 | runpath_var=LD_RUN_PATH |
| 25168 | hardcode_runpath_var=yes |
| 25169 | ld_shlibs_GCJ=yes |
| 25170 | fi |
| 25171 | ;; |
| 25172 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25173 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25174 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25175 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25176 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25177 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25178 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25179 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25180 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25181 | 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] | 25182 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25183 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25184 | 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] | 25185 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25186 | ;; |
| 25187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25188 | sysv5* | sco3.2v5* | sco5v6*) |
| 25189 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25190 | # link with -lc, and that would cause any symbols used from libc to |
| 25191 | # always be unresolved, which means just about no library would |
| 25192 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25193 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25194 | # as -z defs. |
| 25195 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25196 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25197 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25198 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25199 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25200 | hardcode_libdir_separator_GCJ=':' |
| 25201 | link_all_deplibs_GCJ=yes |
| 25202 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25203 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25204 | |
| 25205 | if test "$GCC" = yes; then |
| 25206 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25207 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25208 | else |
| 25209 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25210 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25211 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25212 | ;; |
| 25213 | |
| 25214 | uts4*) |
| 25215 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25216 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25217 | hardcode_shlibpath_var_GCJ=no |
| 25218 | ;; |
| 25219 | |
| 25220 | *) |
| 25221 | ld_shlibs_GCJ=no |
| 25222 | ;; |
| 25223 | esac |
| 25224 | fi |
| 25225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25226 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25227 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25228 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25229 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25230 | # |
| 25231 | # Do we need to explicitly link libc? |
| 25232 | # |
| 25233 | case "x$archive_cmds_need_lc_GCJ" in |
| 25234 | x|xyes) |
| 25235 | # Assume -lc should be added |
| 25236 | archive_cmds_need_lc_GCJ=yes |
| 25237 | |
| 25238 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25239 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25240 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25241 | # FIXME: we may have to deal with multi-command sequences. |
| 25242 | ;; |
| 25243 | '$CC '*) |
| 25244 | # Test whether the compiler implicitly links with -lc since on some |
| 25245 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25246 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25247 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25248 | 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] | 25249 | $rm conftest* |
| 25250 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25251 | |
| 25252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25253 | (eval $ac_compile) 2>&5 |
| 25254 | ac_status=$? |
| 25255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25256 | (exit $ac_status); } 2>conftest.err; then |
| 25257 | soname=conftest |
| 25258 | lib=conftest |
| 25259 | libobjs=conftest.$ac_objext |
| 25260 | deplibs= |
| 25261 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25262 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25263 | compiler_flags=-v |
| 25264 | linker_flags=-v |
| 25265 | verstring= |
| 25266 | output_objdir=. |
| 25267 | libname=conftest |
| 25268 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25269 | allow_undefined_flag_GCJ= |
| 25270 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25271 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25272 | ac_status=$? |
| 25273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25274 | (exit $ac_status); } |
| 25275 | then |
| 25276 | archive_cmds_need_lc_GCJ=no |
| 25277 | else |
| 25278 | archive_cmds_need_lc_GCJ=yes |
| 25279 | fi |
| 25280 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25281 | else |
| 25282 | cat conftest.err 1>&5 |
| 25283 | fi |
| 25284 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25285 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25286 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25287 | ;; |
| 25288 | esac |
| 25289 | fi |
| 25290 | ;; |
| 25291 | esac |
| 25292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25293 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25294 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25295 | library_names_spec= |
| 25296 | libname_spec='lib$name' |
| 25297 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25298 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25299 | postinstall_cmds= |
| 25300 | postuninstall_cmds= |
| 25301 | finish_cmds= |
| 25302 | finish_eval= |
| 25303 | shlibpath_var= |
| 25304 | shlibpath_overrides_runpath=unknown |
| 25305 | version_type=none |
| 25306 | dynamic_linker="$host_os ld.so" |
| 25307 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25308 | if test "$GCC" = yes; then |
| 25309 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25310 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25311 | # if the path contains ";" then we assume it to be the separator |
| 25312 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25313 | # assumed that no part of a normal pathname contains ";" but that should |
| 25314 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25315 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25316 | else |
| 25317 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25318 | fi |
| 25319 | else |
| 25320 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25321 | fi |
| 25322 | need_lib_prefix=unknown |
| 25323 | hardcode_into_libs=no |
| 25324 | |
| 25325 | # when you set need_version to no, make sure it does not cause -set_version |
| 25326 | # flags to be left without arguments |
| 25327 | need_version=unknown |
| 25328 | |
| 25329 | case $host_os in |
| 25330 | aix3*) |
| 25331 | version_type=linux |
| 25332 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25333 | shlibpath_var=LIBPATH |
| 25334 | |
| 25335 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25336 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25337 | ;; |
| 25338 | |
| 25339 | aix4* | aix5*) |
| 25340 | version_type=linux |
| 25341 | need_lib_prefix=no |
| 25342 | need_version=no |
| 25343 | hardcode_into_libs=yes |
| 25344 | if test "$host_cpu" = ia64; then |
| 25345 | # AIX 5 supports IA64 |
| 25346 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25347 | shlibpath_var=LD_LIBRARY_PATH |
| 25348 | else |
| 25349 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25350 | # for dependence libraries. The import file would start with |
| 25351 | # the line `#! .'. This would cause the generated library to |
| 25352 | # depend on `.', always an invalid library. This was fixed in |
| 25353 | # development snapshots of GCC prior to 3.0. |
| 25354 | case $host_os in |
| 25355 | aix4 | aix4.[01] | aix4.[01].*) |
| 25356 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25357 | echo ' yes ' |
| 25358 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25359 | : |
| 25360 | else |
| 25361 | can_build_shared=no |
| 25362 | fi |
| 25363 | ;; |
| 25364 | esac |
| 25365 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25366 | # soname into executable. Probably we can add versioning support to |
| 25367 | # collect2, so additional links can be useful in future. |
| 25368 | if test "$aix_use_runtimelinking" = yes; then |
| 25369 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25370 | # instead of lib<name>.a to let people know that these are not |
| 25371 | # typical AIX shared libraries. |
| 25372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25373 | else |
| 25374 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25375 | # and later when we are not doing run time linking. |
| 25376 | library_names_spec='${libname}${release}.a $libname.a' |
| 25377 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25378 | fi |
| 25379 | shlibpath_var=LIBPATH |
| 25380 | fi |
| 25381 | ;; |
| 25382 | |
| 25383 | amigaos*) |
| 25384 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25385 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25386 | 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] | 25387 | ;; |
| 25388 | |
| 25389 | beos*) |
| 25390 | library_names_spec='${libname}${shared_ext}' |
| 25391 | dynamic_linker="$host_os ld.so" |
| 25392 | shlibpath_var=LIBRARY_PATH |
| 25393 | ;; |
| 25394 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25395 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25396 | version_type=linux |
| 25397 | need_version=no |
| 25398 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25399 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25400 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25401 | shlibpath_var=LD_LIBRARY_PATH |
| 25402 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25403 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25404 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25405 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25406 | # libtool to hard-code these into programs |
| 25407 | ;; |
| 25408 | |
| 25409 | cygwin* | mingw* | pw32*) |
| 25410 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25411 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25412 | need_version=no |
| 25413 | need_lib_prefix=no |
| 25414 | |
| 25415 | case $GCC,$host_os in |
| 25416 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25417 | library_names_spec='$libname.dll.a' |
| 25418 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25419 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25420 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25421 | dldir=$destdir/`dirname \$dlpath`~ |
| 25422 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25423 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25424 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25425 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25426 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25427 | $rm \$dlpath' |
| 25428 | shlibpath_overrides_runpath=yes |
| 25429 | |
| 25430 | case $host_os in |
| 25431 | cygwin*) |
| 25432 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25433 | 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] | 25434 | 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] | 25435 | ;; |
| 25436 | mingw*) |
| 25437 | # MinGW DLLs use traditional 'lib' prefix |
| 25438 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25439 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25440 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25441 | # It is most probably a Windows format PATH printed by |
| 25442 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25443 | # path with ; separators, and with drive letters. We can handle the |
| 25444 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25445 | # especially as we might pass files found there to a mingw objdump, |
| 25446 | # which wouldn't understand a cygwinified path. Ahh. |
| 25447 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25448 | else |
| 25449 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25450 | fi |
| 25451 | ;; |
| 25452 | pw32*) |
| 25453 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25454 | 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] | 25455 | ;; |
| 25456 | esac |
| 25457 | ;; |
| 25458 | |
| 25459 | *) |
| 25460 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25461 | ;; |
| 25462 | esac |
| 25463 | dynamic_linker='Win32 ld.exe' |
| 25464 | # FIXME: first we should search . and the directory the executable is in |
| 25465 | shlibpath_var=PATH |
| 25466 | ;; |
| 25467 | |
| 25468 | darwin* | rhapsody*) |
| 25469 | dynamic_linker="$host_os dyld" |
| 25470 | version_type=darwin |
| 25471 | need_lib_prefix=no |
| 25472 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25473 | 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] | 25474 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25475 | shlibpath_overrides_runpath=yes |
| 25476 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25477 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25478 | # 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] | 25479 | if test "$GCC" = yes; then |
| 25480 | 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"` |
| 25481 | else |
| 25482 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25483 | fi |
| 25484 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25485 | ;; |
| 25486 | |
| 25487 | dgux*) |
| 25488 | version_type=linux |
| 25489 | need_lib_prefix=no |
| 25490 | need_version=no |
| 25491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25492 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25493 | shlibpath_var=LD_LIBRARY_PATH |
| 25494 | ;; |
| 25495 | |
| 25496 | freebsd1*) |
| 25497 | dynamic_linker=no |
| 25498 | ;; |
| 25499 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25500 | kfreebsd*-gnu) |
| 25501 | version_type=linux |
| 25502 | need_lib_prefix=no |
| 25503 | need_version=no |
| 25504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25505 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25506 | shlibpath_var=LD_LIBRARY_PATH |
| 25507 | shlibpath_overrides_runpath=no |
| 25508 | hardcode_into_libs=yes |
| 25509 | dynamic_linker='GNU ld.so' |
| 25510 | ;; |
| 25511 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25512 | freebsd* | dragonfly*) |
| 25513 | # DragonFly does not have aout. When/if they implement a new |
| 25514 | # versioning mechanism, adjust this. |
| 25515 | if test -x /usr/bin/objformat; then |
| 25516 | objformat=`/usr/bin/objformat` |
| 25517 | else |
| 25518 | case $host_os in |
| 25519 | freebsd[123]*) objformat=aout ;; |
| 25520 | *) objformat=elf ;; |
| 25521 | esac |
| 25522 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25523 | version_type=freebsd-$objformat |
| 25524 | case $version_type in |
| 25525 | freebsd-elf*) |
| 25526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25527 | need_version=no |
| 25528 | need_lib_prefix=no |
| 25529 | ;; |
| 25530 | freebsd-*) |
| 25531 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25532 | need_version=yes |
| 25533 | ;; |
| 25534 | esac |
| 25535 | shlibpath_var=LD_LIBRARY_PATH |
| 25536 | case $host_os in |
| 25537 | freebsd2*) |
| 25538 | shlibpath_overrides_runpath=yes |
| 25539 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25540 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25541 | shlibpath_overrides_runpath=yes |
| 25542 | hardcode_into_libs=yes |
| 25543 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25544 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25545 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25546 | shlibpath_overrides_runpath=no |
| 25547 | hardcode_into_libs=yes |
| 25548 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25549 | freebsd*) # from 4.6 on |
| 25550 | shlibpath_overrides_runpath=yes |
| 25551 | hardcode_into_libs=yes |
| 25552 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25553 | esac |
| 25554 | ;; |
| 25555 | |
| 25556 | gnu*) |
| 25557 | version_type=linux |
| 25558 | need_lib_prefix=no |
| 25559 | need_version=no |
| 25560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25561 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25562 | shlibpath_var=LD_LIBRARY_PATH |
| 25563 | hardcode_into_libs=yes |
| 25564 | ;; |
| 25565 | |
| 25566 | hpux9* | hpux10* | hpux11*) |
| 25567 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25568 | # link against other versions. |
| 25569 | version_type=sunos |
| 25570 | need_lib_prefix=no |
| 25571 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25572 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25573 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25574 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25575 | hardcode_into_libs=yes |
| 25576 | dynamic_linker="$host_os dld.so" |
| 25577 | shlibpath_var=LD_LIBRARY_PATH |
| 25578 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25580 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25581 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25582 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25583 | else |
| 25584 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25585 | fi |
| 25586 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25587 | ;; |
| 25588 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25589 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25590 | hardcode_into_libs=yes |
| 25591 | dynamic_linker="$host_os dld.sl" |
| 25592 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25593 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25595 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25596 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25597 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25598 | ;; |
| 25599 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25600 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25601 | dynamic_linker="$host_os dld.sl" |
| 25602 | shlibpath_var=SHLIB_PATH |
| 25603 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25605 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25606 | ;; |
| 25607 | esac |
| 25608 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25609 | postinstall_cmds='chmod 555 $lib' |
| 25610 | ;; |
| 25611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25612 | interix3*) |
| 25613 | version_type=linux |
| 25614 | need_lib_prefix=no |
| 25615 | need_version=no |
| 25616 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25617 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25618 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25619 | shlibpath_var=LD_LIBRARY_PATH |
| 25620 | shlibpath_overrides_runpath=no |
| 25621 | hardcode_into_libs=yes |
| 25622 | ;; |
| 25623 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25624 | irix5* | irix6* | nonstopux*) |
| 25625 | case $host_os in |
| 25626 | nonstopux*) version_type=nonstopux ;; |
| 25627 | *) |
| 25628 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25629 | version_type=linux |
| 25630 | else |
| 25631 | version_type=irix |
| 25632 | fi ;; |
| 25633 | esac |
| 25634 | need_lib_prefix=no |
| 25635 | need_version=no |
| 25636 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25638 | case $host_os in |
| 25639 | irix5* | nonstopux*) |
| 25640 | libsuff= shlibsuff= |
| 25641 | ;; |
| 25642 | *) |
| 25643 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25644 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25645 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25646 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25647 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25648 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25649 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25650 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25651 | esac |
| 25652 | ;; |
| 25653 | esac |
| 25654 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25655 | shlibpath_overrides_runpath=no |
| 25656 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25657 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25658 | hardcode_into_libs=yes |
| 25659 | ;; |
| 25660 | |
| 25661 | # No shared lib support for Linux oldld, aout, or coff. |
| 25662 | linux*oldld* | linux*aout* | linux*coff*) |
| 25663 | dynamic_linker=no |
| 25664 | ;; |
| 25665 | |
| 25666 | # This must be Linux ELF. |
| 25667 | linux*) |
| 25668 | version_type=linux |
| 25669 | need_lib_prefix=no |
| 25670 | need_version=no |
| 25671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25672 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25673 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25674 | shlibpath_var=LD_LIBRARY_PATH |
| 25675 | shlibpath_overrides_runpath=no |
| 25676 | # This implies no fast_install, which is unacceptable. |
| 25677 | # Some rework will be needed to allow for fast_install |
| 25678 | # before this can be enabled. |
| 25679 | hardcode_into_libs=yes |
| 25680 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25681 | # Append ld.so.conf contents to the search path |
| 25682 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25683 | 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] | 25684 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25685 | fi |
| 25686 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25687 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25688 | # powerpc, because MkLinux only supported shared libraries with the |
| 25689 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25690 | # most powerpc-linux boxes support dynamic linking these days and |
| 25691 | # people can always --disable-shared, the test was removed, and we |
| 25692 | # assume the GNU/Linux dynamic linker is in use. |
| 25693 | dynamic_linker='GNU/Linux ld.so' |
| 25694 | ;; |
| 25695 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25696 | knetbsd*-gnu) |
| 25697 | version_type=linux |
| 25698 | need_lib_prefix=no |
| 25699 | need_version=no |
| 25700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25701 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25702 | shlibpath_var=LD_LIBRARY_PATH |
| 25703 | shlibpath_overrides_runpath=no |
| 25704 | hardcode_into_libs=yes |
| 25705 | dynamic_linker='GNU ld.so' |
| 25706 | ;; |
| 25707 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25708 | netbsd*) |
| 25709 | version_type=sunos |
| 25710 | need_lib_prefix=no |
| 25711 | need_version=no |
| 25712 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25714 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25715 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25716 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25717 | 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] | 25718 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25719 | dynamic_linker='NetBSD ld.elf_so' |
| 25720 | fi |
| 25721 | shlibpath_var=LD_LIBRARY_PATH |
| 25722 | shlibpath_overrides_runpath=yes |
| 25723 | hardcode_into_libs=yes |
| 25724 | ;; |
| 25725 | |
| 25726 | newsos6) |
| 25727 | version_type=linux |
| 25728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25729 | shlibpath_var=LD_LIBRARY_PATH |
| 25730 | shlibpath_overrides_runpath=yes |
| 25731 | ;; |
| 25732 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25733 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25734 | version_type=linux |
| 25735 | need_lib_prefix=no |
| 25736 | need_version=no |
| 25737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25738 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25739 | shlibpath_var=LD_LIBRARY_PATH |
| 25740 | shlibpath_overrides_runpath=yes |
| 25741 | ;; |
| 25742 | |
| 25743 | openbsd*) |
| 25744 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25745 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25746 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25747 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25748 | case $host_os in |
| 25749 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25750 | *) need_version=no ;; |
| 25751 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25753 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25754 | shlibpath_var=LD_LIBRARY_PATH |
| 25755 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25756 | case $host_os in |
| 25757 | openbsd2.[89] | openbsd2.[89].*) |
| 25758 | shlibpath_overrides_runpath=no |
| 25759 | ;; |
| 25760 | *) |
| 25761 | shlibpath_overrides_runpath=yes |
| 25762 | ;; |
| 25763 | esac |
| 25764 | else |
| 25765 | shlibpath_overrides_runpath=yes |
| 25766 | fi |
| 25767 | ;; |
| 25768 | |
| 25769 | os2*) |
| 25770 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25771 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25772 | need_lib_prefix=no |
| 25773 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25774 | dynamic_linker='OS/2 ld.exe' |
| 25775 | shlibpath_var=LIBPATH |
| 25776 | ;; |
| 25777 | |
| 25778 | osf3* | osf4* | osf5*) |
| 25779 | version_type=osf |
| 25780 | need_lib_prefix=no |
| 25781 | need_version=no |
| 25782 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25784 | shlibpath_var=LD_LIBRARY_PATH |
| 25785 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25786 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25787 | ;; |
| 25788 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25789 | solaris*) |
| 25790 | version_type=linux |
| 25791 | need_lib_prefix=no |
| 25792 | need_version=no |
| 25793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25794 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25795 | shlibpath_var=LD_LIBRARY_PATH |
| 25796 | shlibpath_overrides_runpath=yes |
| 25797 | hardcode_into_libs=yes |
| 25798 | # ldd complains unless libraries are executable |
| 25799 | postinstall_cmds='chmod +x $lib' |
| 25800 | ;; |
| 25801 | |
| 25802 | sunos4*) |
| 25803 | version_type=sunos |
| 25804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25805 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25806 | shlibpath_var=LD_LIBRARY_PATH |
| 25807 | shlibpath_overrides_runpath=yes |
| 25808 | if test "$with_gnu_ld" = yes; then |
| 25809 | need_lib_prefix=no |
| 25810 | fi |
| 25811 | need_version=yes |
| 25812 | ;; |
| 25813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25814 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25815 | version_type=linux |
| 25816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25817 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25818 | shlibpath_var=LD_LIBRARY_PATH |
| 25819 | case $host_vendor in |
| 25820 | sni) |
| 25821 | shlibpath_overrides_runpath=no |
| 25822 | need_lib_prefix=no |
| 25823 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 25824 | runpath_var=LD_RUN_PATH |
| 25825 | ;; |
| 25826 | siemens) |
| 25827 | need_lib_prefix=no |
| 25828 | ;; |
| 25829 | motorola) |
| 25830 | need_lib_prefix=no |
| 25831 | need_version=no |
| 25832 | shlibpath_overrides_runpath=no |
| 25833 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 25834 | ;; |
| 25835 | esac |
| 25836 | ;; |
| 25837 | |
| 25838 | sysv4*MP*) |
| 25839 | if test -d /usr/nec ;then |
| 25840 | version_type=linux |
| 25841 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 25842 | soname_spec='$libname${shared_ext}.$major' |
| 25843 | shlibpath_var=LD_LIBRARY_PATH |
| 25844 | fi |
| 25845 | ;; |
| 25846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25847 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 25848 | version_type=freebsd-elf |
| 25849 | need_lib_prefix=no |
| 25850 | need_version=no |
| 25851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25852 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25853 | shlibpath_var=LD_LIBRARY_PATH |
| 25854 | hardcode_into_libs=yes |
| 25855 | if test "$with_gnu_ld" = yes; then |
| 25856 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 25857 | shlibpath_overrides_runpath=no |
| 25858 | else |
| 25859 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 25860 | shlibpath_overrides_runpath=yes |
| 25861 | case $host_os in |
| 25862 | sco3.2v5*) |
| 25863 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 25864 | ;; |
| 25865 | esac |
| 25866 | fi |
| 25867 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 25868 | ;; |
| 25869 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25870 | uts4*) |
| 25871 | version_type=linux |
| 25872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25873 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25874 | shlibpath_var=LD_LIBRARY_PATH |
| 25875 | ;; |
| 25876 | |
| 25877 | *) |
| 25878 | dynamic_linker=no |
| 25879 | ;; |
| 25880 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25881 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 25882 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25883 | test "$dynamic_linker" = no && can_build_shared=no |
| 25884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25885 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 25886 | if test "$GCC" = yes; then |
| 25887 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 25888 | fi |
| 25889 | |
| 25890 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 25891 | 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] | 25892 | hardcode_action_GCJ= |
| 25893 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 25894 | test -n "$runpath_var_GCJ" || \ |
| 25895 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 25896 | |
| 25897 | # We can hardcode non-existant directories. |
| 25898 | if test "$hardcode_direct_GCJ" != no && |
| 25899 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 25900 | # have to relink, otherwise we might link with an installed library |
| 25901 | # when we should be linking with a yet-to-be-installed one |
| 25902 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 25903 | test "$hardcode_minus_L_GCJ" != no; then |
| 25904 | # Linking always hardcodes the temporary library directory. |
| 25905 | hardcode_action_GCJ=relink |
| 25906 | else |
| 25907 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 25908 | hardcode_action_GCJ=immediate |
| 25909 | fi |
| 25910 | else |
| 25911 | # We cannot hardcode anything, or else we can only hardcode existing |
| 25912 | # directories. |
| 25913 | hardcode_action_GCJ=unsupported |
| 25914 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25915 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 25916 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25917 | |
| 25918 | if test "$hardcode_action_GCJ" = relink; then |
| 25919 | # Fast installation is not supported |
| 25920 | enable_fast_install=no |
| 25921 | elif test "$shlibpath_overrides_runpath" = yes || |
| 25922 | test "$enable_shared" = no; then |
| 25923 | # Fast installation is not necessary |
| 25924 | enable_fast_install=needless |
| 25925 | fi |
| 25926 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25927 | |
| 25928 | # The else clause should only fire when bootstrapping the |
| 25929 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25930 | # with your package, and you will get complaints that there are |
| 25931 | # no rules to generate ltmain.sh. |
| 25932 | if test -f "$ltmain"; then |
| 25933 | # See if we are running on zsh, and set the options which allow our commands through |
| 25934 | # without removal of \ escapes. |
| 25935 | if test -n "${ZSH_VERSION+set}" ; then |
| 25936 | setopt NO_GLOB_SUBST |
| 25937 | fi |
| 25938 | # Now quote all the things that may contain metacharacters while being |
| 25939 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25940 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25941 | 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] | 25942 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25943 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25944 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25945 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25946 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25947 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25948 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25949 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25950 | compiler_GCJ \ |
| 25951 | CC_GCJ \ |
| 25952 | LD_GCJ \ |
| 25953 | lt_prog_compiler_wl_GCJ \ |
| 25954 | lt_prog_compiler_pic_GCJ \ |
| 25955 | lt_prog_compiler_static_GCJ \ |
| 25956 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 25957 | export_dynamic_flag_spec_GCJ \ |
| 25958 | thread_safe_flag_spec_GCJ \ |
| 25959 | whole_archive_flag_spec_GCJ \ |
| 25960 | enable_shared_with_static_runtimes_GCJ \ |
| 25961 | old_archive_cmds_GCJ \ |
| 25962 | old_archive_from_new_cmds_GCJ \ |
| 25963 | predep_objects_GCJ \ |
| 25964 | postdep_objects_GCJ \ |
| 25965 | predeps_GCJ \ |
| 25966 | postdeps_GCJ \ |
| 25967 | compiler_lib_search_path_GCJ \ |
| 25968 | archive_cmds_GCJ \ |
| 25969 | archive_expsym_cmds_GCJ \ |
| 25970 | postinstall_cmds_GCJ \ |
| 25971 | postuninstall_cmds_GCJ \ |
| 25972 | old_archive_from_expsyms_cmds_GCJ \ |
| 25973 | allow_undefined_flag_GCJ \ |
| 25974 | no_undefined_flag_GCJ \ |
| 25975 | export_symbols_cmds_GCJ \ |
| 25976 | hardcode_libdir_flag_spec_GCJ \ |
| 25977 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 25978 | hardcode_libdir_separator_GCJ \ |
| 25979 | hardcode_automatic_GCJ \ |
| 25980 | module_cmds_GCJ \ |
| 25981 | module_expsym_cmds_GCJ \ |
| 25982 | lt_cv_prog_compiler_c_o_GCJ \ |
| 25983 | exclude_expsyms_GCJ \ |
| 25984 | include_expsyms_GCJ; do |
| 25985 | |
| 25986 | case $var in |
| 25987 | old_archive_cmds_GCJ | \ |
| 25988 | old_archive_from_new_cmds_GCJ | \ |
| 25989 | archive_cmds_GCJ | \ |
| 25990 | archive_expsym_cmds_GCJ | \ |
| 25991 | module_cmds_GCJ | \ |
| 25992 | module_expsym_cmds_GCJ | \ |
| 25993 | old_archive_from_expsyms_cmds_GCJ | \ |
| 25994 | export_symbols_cmds_GCJ | \ |
| 25995 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25996 | postinstall_cmds | postuninstall_cmds | \ |
| 25997 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25998 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25999 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26000 | 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] | 26001 | ;; |
| 26002 | *) |
| 26003 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26004 | ;; |
| 26005 | esac |
| 26006 | done |
| 26007 | |
| 26008 | case $lt_echo in |
| 26009 | *'\$0 --fallback-echo"') |
| 26010 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26011 | ;; |
| 26012 | esac |
| 26013 | |
| 26014 | cfgfile="$ofile" |
| 26015 | |
| 26016 | cat <<__EOF__ >> "$cfgfile" |
| 26017 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26018 | |
| 26019 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26020 | |
| 26021 | # Shell to use when invoking shell scripts. |
| 26022 | SHELL=$lt_SHELL |
| 26023 | |
| 26024 | # Whether or not to build shared libraries. |
| 26025 | build_libtool_libs=$enable_shared |
| 26026 | |
| 26027 | # Whether or not to build static libraries. |
| 26028 | build_old_libs=$enable_static |
| 26029 | |
| 26030 | # Whether or not to add -lc for building shared libraries. |
| 26031 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 26032 | |
| 26033 | # Whether or not to disallow shared libs when runtime libs are static |
| 26034 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 26035 | |
| 26036 | # Whether or not to optimize for fast installation. |
| 26037 | fast_install=$enable_fast_install |
| 26038 | |
| 26039 | # The host system. |
| 26040 | host_alias=$host_alias |
| 26041 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26042 | host_os=$host_os |
| 26043 | |
| 26044 | # The build system. |
| 26045 | build_alias=$build_alias |
| 26046 | build=$build |
| 26047 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26048 | |
| 26049 | # An echo program that does not interpret backslashes. |
| 26050 | echo=$lt_echo |
| 26051 | |
| 26052 | # The archiver. |
| 26053 | AR=$lt_AR |
| 26054 | AR_FLAGS=$lt_AR_FLAGS |
| 26055 | |
| 26056 | # A C compiler. |
| 26057 | LTCC=$lt_LTCC |
| 26058 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26059 | # LTCC compiler flags. |
| 26060 | LTCFLAGS=$lt_LTCFLAGS |
| 26061 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26062 | # A language-specific compiler. |
| 26063 | CC=$lt_compiler_GCJ |
| 26064 | |
| 26065 | # Is the compiler the GNU C compiler? |
| 26066 | with_gcc=$GCC_GCJ |
| 26067 | |
| 26068 | # An ERE matcher. |
| 26069 | EGREP=$lt_EGREP |
| 26070 | |
| 26071 | # The linker used to build libraries. |
| 26072 | LD=$lt_LD_GCJ |
| 26073 | |
| 26074 | # Whether we need hard or soft links. |
| 26075 | LN_S=$lt_LN_S |
| 26076 | |
| 26077 | # A BSD-compatible nm program. |
| 26078 | NM=$lt_NM |
| 26079 | |
| 26080 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26081 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26082 | |
| 26083 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26084 | MAGIC_CMD=$MAGIC_CMD |
| 26085 | |
| 26086 | # Used on cygwin: DLL creation program. |
| 26087 | DLLTOOL="$DLLTOOL" |
| 26088 | |
| 26089 | # Used on cygwin: object dumper. |
| 26090 | OBJDUMP="$OBJDUMP" |
| 26091 | |
| 26092 | # Used on cygwin: assembler. |
| 26093 | AS="$AS" |
| 26094 | |
| 26095 | # The name of the directory that contains temporary libtool files. |
| 26096 | objdir=$objdir |
| 26097 | |
| 26098 | # How to create reloadable object files. |
| 26099 | reload_flag=$lt_reload_flag |
| 26100 | reload_cmds=$lt_reload_cmds |
| 26101 | |
| 26102 | # How to pass a linker flag through the compiler. |
| 26103 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26104 | |
| 26105 | # Object file suffix (normally "o"). |
| 26106 | objext="$ac_objext" |
| 26107 | |
| 26108 | # Old archive suffix (normally "a"). |
| 26109 | libext="$libext" |
| 26110 | |
| 26111 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26112 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26113 | |
| 26114 | # Executable file suffix (normally ""). |
| 26115 | exeext="$exeext" |
| 26116 | |
| 26117 | # Additional compiler flags for building library objects. |
| 26118 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26119 | pic_mode=$pic_mode |
| 26120 | |
| 26121 | # What is the maximum length of a command? |
| 26122 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26123 | |
| 26124 | # Does compiler simultaneously support -c and -o options? |
| 26125 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26126 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26127 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26128 | need_locks=$lt_need_locks |
| 26129 | |
| 26130 | # Do we need the lib prefix for modules? |
| 26131 | need_lib_prefix=$need_lib_prefix |
| 26132 | |
| 26133 | # Do we need a version for libraries? |
| 26134 | need_version=$need_version |
| 26135 | |
| 26136 | # Whether dlopen is supported. |
| 26137 | dlopen_support=$enable_dlopen |
| 26138 | |
| 26139 | # Whether dlopen of programs is supported. |
| 26140 | dlopen_self=$enable_dlopen_self |
| 26141 | |
| 26142 | # Whether dlopen of statically linked programs is supported. |
| 26143 | dlopen_self_static=$enable_dlopen_self_static |
| 26144 | |
| 26145 | # Compiler flag to prevent dynamic linking. |
| 26146 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26147 | |
| 26148 | # Compiler flag to turn off builtin functions. |
| 26149 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26150 | |
| 26151 | # Compiler flag to allow reflexive dlopens. |
| 26152 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26153 | |
| 26154 | # Compiler flag to generate shared objects directly from archives. |
| 26155 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26156 | |
| 26157 | # Compiler flag to generate thread-safe objects. |
| 26158 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26159 | |
| 26160 | # Library versioning type. |
| 26161 | version_type=$version_type |
| 26162 | |
| 26163 | # Format of library name prefix. |
| 26164 | libname_spec=$lt_libname_spec |
| 26165 | |
| 26166 | # List of archive names. First name is the real one, the rest are links. |
| 26167 | # The last name is the one that the linker finds with -lNAME. |
| 26168 | library_names_spec=$lt_library_names_spec |
| 26169 | |
| 26170 | # The coded name of the library, if different from the real name. |
| 26171 | soname_spec=$lt_soname_spec |
| 26172 | |
| 26173 | # Commands used to build and install an old-style archive. |
| 26174 | RANLIB=$lt_RANLIB |
| 26175 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26176 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26177 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26178 | |
| 26179 | # Create an old-style archive from a shared archive. |
| 26180 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26181 | |
| 26182 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26183 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26184 | |
| 26185 | # Commands used to build and install a shared archive. |
| 26186 | archive_cmds=$lt_archive_cmds_GCJ |
| 26187 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26188 | postinstall_cmds=$lt_postinstall_cmds |
| 26189 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26190 | |
| 26191 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26192 | module_cmds=$lt_module_cmds_GCJ |
| 26193 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26194 | |
| 26195 | # Commands to strip libraries. |
| 26196 | old_striplib=$lt_old_striplib |
| 26197 | striplib=$lt_striplib |
| 26198 | |
| 26199 | # Dependencies to place before the objects being linked to create a |
| 26200 | # shared library. |
| 26201 | predep_objects=$lt_predep_objects_GCJ |
| 26202 | |
| 26203 | # Dependencies to place after the objects being linked to create a |
| 26204 | # shared library. |
| 26205 | postdep_objects=$lt_postdep_objects_GCJ |
| 26206 | |
| 26207 | # Dependencies to place before the objects being linked to create a |
| 26208 | # shared library. |
| 26209 | predeps=$lt_predeps_GCJ |
| 26210 | |
| 26211 | # Dependencies to place after the objects being linked to create a |
| 26212 | # shared library. |
| 26213 | postdeps=$lt_postdeps_GCJ |
| 26214 | |
| 26215 | # The library search path used internally by the compiler when linking |
| 26216 | # a shared library. |
| 26217 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26218 | |
| 26219 | # Method to check whether dependent libraries are shared objects. |
| 26220 | deplibs_check_method=$lt_deplibs_check_method |
| 26221 | |
| 26222 | # Command to use when deplibs_check_method == file_magic. |
| 26223 | file_magic_cmd=$lt_file_magic_cmd |
| 26224 | |
| 26225 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26226 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26227 | |
| 26228 | # Flag that forces no undefined symbols. |
| 26229 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26230 | |
| 26231 | # Commands used to finish a libtool library installation in a directory. |
| 26232 | finish_cmds=$lt_finish_cmds |
| 26233 | |
| 26234 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26235 | finish_eval=$lt_finish_eval |
| 26236 | |
| 26237 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26238 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26239 | |
| 26240 | # Transform the output of nm in a proper C declaration |
| 26241 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26242 | |
| 26243 | # Transform the output of nm in a C name address pair |
| 26244 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26245 | |
| 26246 | # This is the shared library runtime path variable. |
| 26247 | runpath_var=$runpath_var |
| 26248 | |
| 26249 | # This is the shared library path variable. |
| 26250 | shlibpath_var=$shlibpath_var |
| 26251 | |
| 26252 | # Is shlibpath searched before the hard-coded library search path? |
| 26253 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26254 | |
| 26255 | # How to hardcode a shared library path into an executable. |
| 26256 | hardcode_action=$hardcode_action_GCJ |
| 26257 | |
| 26258 | # Whether we should hardcode library paths into libraries. |
| 26259 | hardcode_into_libs=$hardcode_into_libs |
| 26260 | |
| 26261 | # Flag to hardcode \$libdir into a binary during linking. |
| 26262 | # This must work even if \$libdir does not exist. |
| 26263 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26264 | |
| 26265 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26266 | # a binary during linking. This must work even if \$libdir does |
| 26267 | # not exist. |
| 26268 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26269 | |
| 26270 | # Whether we need a single -rpath flag with a separated argument. |
| 26271 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26272 | |
| 26273 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26274 | # resulting binary. |
| 26275 | hardcode_direct=$hardcode_direct_GCJ |
| 26276 | |
| 26277 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26278 | # resulting binary. |
| 26279 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26280 | |
| 26281 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26282 | # the resulting binary. |
| 26283 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26284 | |
| 26285 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26286 | # and all subsequent libraries and executables linked against it. |
| 26287 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26288 | |
| 26289 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26290 | # restored at relink time. |
| 26291 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26292 | |
| 26293 | # Whether libtool must link a program against all its dependency libraries. |
| 26294 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26295 | |
| 26296 | # Compile-time system search path for libraries |
| 26297 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26298 | |
| 26299 | # Run-time system search path for libraries |
| 26300 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26301 | |
| 26302 | # Fix the shell variable \$srcfile for the compiler. |
| 26303 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26304 | |
| 26305 | # Set to yes if exported symbols are required. |
| 26306 | always_export_symbols=$always_export_symbols_GCJ |
| 26307 | |
| 26308 | # The commands to list exported symbols. |
| 26309 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26310 | |
| 26311 | # The commands to extract the exported symbol list from a shared archive. |
| 26312 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26313 | |
| 26314 | # Symbols that should not be listed in the preloaded symbols. |
| 26315 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26316 | |
| 26317 | # Symbols that must always be exported. |
| 26318 | include_expsyms=$lt_include_expsyms_GCJ |
| 26319 | |
| 26320 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26321 | |
| 26322 | __EOF__ |
| 26323 | |
| 26324 | |
| 26325 | else |
| 26326 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26327 | # `config.status --recheck' to rerun these tests and create the |
| 26328 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26329 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26330 | if test -f "$ltmain_in"; then |
| 26331 | test -f Makefile && make "$ltmain" |
| 26332 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26333 | fi |
| 26334 | |
| 26335 | |
| 26336 | ac_ext=c |
| 26337 | ac_cpp='$CPP $CPPFLAGS' |
| 26338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26341 | |
| 26342 | CC="$lt_save_CC" |
| 26343 | |
| 26344 | else |
| 26345 | tagname="" |
| 26346 | fi |
| 26347 | ;; |
| 26348 | |
| 26349 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26350 | ac_ext=c |
| 26351 | ac_cpp='$CPP $CPPFLAGS' |
| 26352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26355 | |
| 26356 | |
| 26357 | # Source file extension for RC test sources. |
| 26358 | ac_ext=rc |
| 26359 | |
| 26360 | # Object file extension for compiled RC test sources. |
| 26361 | objext=o |
| 26362 | objext_RC=$objext |
| 26363 | |
| 26364 | # Code to be used in simple compile tests |
| 26365 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26366 | |
| 26367 | # Code to be used in simple link tests |
| 26368 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26369 | |
| 26370 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26371 | |
| 26372 | # If no C compiler was specified, use CC. |
| 26373 | LTCC=${LTCC-"$CC"} |
| 26374 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26375 | # If no C compiler flags were specified, use CFLAGS. |
| 26376 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26377 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26378 | # Allow CC to be a program name with arguments. |
| 26379 | compiler=$CC |
| 26380 | |
| 26381 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26382 | # save warnings/boilerplate of simple test code |
| 26383 | ac_outfile=conftest.$ac_objext |
| 26384 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26385 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26386 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26387 | $rm conftest* |
| 26388 | |
| 26389 | ac_outfile=conftest.$ac_objext |
| 26390 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26391 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26392 | _lt_linker_boilerplate=`cat conftest.err` |
| 26393 | $rm conftest* |
| 26394 | |
| 26395 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26396 | # Allow CC to be a program name with arguments. |
| 26397 | lt_save_CC="$CC" |
| 26398 | CC=${RC-"windres"} |
| 26399 | compiler=$CC |
| 26400 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26401 | for cc_temp in $compiler""; do |
| 26402 | case $cc_temp in |
| 26403 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26404 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26405 | \-*) ;; |
| 26406 | *) break;; |
| 26407 | esac |
| 26408 | done |
| 26409 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26410 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26411 | lt_cv_prog_compiler_c_o_RC=yes |
| 26412 | |
| 26413 | # The else clause should only fire when bootstrapping the |
| 26414 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26415 | # with your package, and you will get complaints that there are |
| 26416 | # no rules to generate ltmain.sh. |
| 26417 | if test -f "$ltmain"; then |
| 26418 | # See if we are running on zsh, and set the options which allow our commands through |
| 26419 | # without removal of \ escapes. |
| 26420 | if test -n "${ZSH_VERSION+set}" ; then |
| 26421 | setopt NO_GLOB_SUBST |
| 26422 | fi |
| 26423 | # Now quote all the things that may contain metacharacters while being |
| 26424 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26425 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26426 | 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] | 26427 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26428 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26429 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26430 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26431 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26432 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26433 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26434 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26435 | compiler_RC \ |
| 26436 | CC_RC \ |
| 26437 | LD_RC \ |
| 26438 | lt_prog_compiler_wl_RC \ |
| 26439 | lt_prog_compiler_pic_RC \ |
| 26440 | lt_prog_compiler_static_RC \ |
| 26441 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26442 | export_dynamic_flag_spec_RC \ |
| 26443 | thread_safe_flag_spec_RC \ |
| 26444 | whole_archive_flag_spec_RC \ |
| 26445 | enable_shared_with_static_runtimes_RC \ |
| 26446 | old_archive_cmds_RC \ |
| 26447 | old_archive_from_new_cmds_RC \ |
| 26448 | predep_objects_RC \ |
| 26449 | postdep_objects_RC \ |
| 26450 | predeps_RC \ |
| 26451 | postdeps_RC \ |
| 26452 | compiler_lib_search_path_RC \ |
| 26453 | archive_cmds_RC \ |
| 26454 | archive_expsym_cmds_RC \ |
| 26455 | postinstall_cmds_RC \ |
| 26456 | postuninstall_cmds_RC \ |
| 26457 | old_archive_from_expsyms_cmds_RC \ |
| 26458 | allow_undefined_flag_RC \ |
| 26459 | no_undefined_flag_RC \ |
| 26460 | export_symbols_cmds_RC \ |
| 26461 | hardcode_libdir_flag_spec_RC \ |
| 26462 | hardcode_libdir_flag_spec_ld_RC \ |
| 26463 | hardcode_libdir_separator_RC \ |
| 26464 | hardcode_automatic_RC \ |
| 26465 | module_cmds_RC \ |
| 26466 | module_expsym_cmds_RC \ |
| 26467 | lt_cv_prog_compiler_c_o_RC \ |
| 26468 | exclude_expsyms_RC \ |
| 26469 | include_expsyms_RC; do |
| 26470 | |
| 26471 | case $var in |
| 26472 | old_archive_cmds_RC | \ |
| 26473 | old_archive_from_new_cmds_RC | \ |
| 26474 | archive_cmds_RC | \ |
| 26475 | archive_expsym_cmds_RC | \ |
| 26476 | module_cmds_RC | \ |
| 26477 | module_expsym_cmds_RC | \ |
| 26478 | old_archive_from_expsyms_cmds_RC | \ |
| 26479 | export_symbols_cmds_RC | \ |
| 26480 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26481 | postinstall_cmds | postuninstall_cmds | \ |
| 26482 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26483 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26484 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26485 | 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] | 26486 | ;; |
| 26487 | *) |
| 26488 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26489 | ;; |
| 26490 | esac |
| 26491 | done |
| 26492 | |
| 26493 | case $lt_echo in |
| 26494 | *'\$0 --fallback-echo"') |
| 26495 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26496 | ;; |
| 26497 | esac |
| 26498 | |
| 26499 | cfgfile="$ofile" |
| 26500 | |
| 26501 | cat <<__EOF__ >> "$cfgfile" |
| 26502 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26503 | |
| 26504 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26505 | |
| 26506 | # Shell to use when invoking shell scripts. |
| 26507 | SHELL=$lt_SHELL |
| 26508 | |
| 26509 | # Whether or not to build shared libraries. |
| 26510 | build_libtool_libs=$enable_shared |
| 26511 | |
| 26512 | # Whether or not to build static libraries. |
| 26513 | build_old_libs=$enable_static |
| 26514 | |
| 26515 | # Whether or not to add -lc for building shared libraries. |
| 26516 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26517 | |
| 26518 | # Whether or not to disallow shared libs when runtime libs are static |
| 26519 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26520 | |
| 26521 | # Whether or not to optimize for fast installation. |
| 26522 | fast_install=$enable_fast_install |
| 26523 | |
| 26524 | # The host system. |
| 26525 | host_alias=$host_alias |
| 26526 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26527 | host_os=$host_os |
| 26528 | |
| 26529 | # The build system. |
| 26530 | build_alias=$build_alias |
| 26531 | build=$build |
| 26532 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26533 | |
| 26534 | # An echo program that does not interpret backslashes. |
| 26535 | echo=$lt_echo |
| 26536 | |
| 26537 | # The archiver. |
| 26538 | AR=$lt_AR |
| 26539 | AR_FLAGS=$lt_AR_FLAGS |
| 26540 | |
| 26541 | # A C compiler. |
| 26542 | LTCC=$lt_LTCC |
| 26543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26544 | # LTCC compiler flags. |
| 26545 | LTCFLAGS=$lt_LTCFLAGS |
| 26546 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26547 | # A language-specific compiler. |
| 26548 | CC=$lt_compiler_RC |
| 26549 | |
| 26550 | # Is the compiler the GNU C compiler? |
| 26551 | with_gcc=$GCC_RC |
| 26552 | |
| 26553 | # An ERE matcher. |
| 26554 | EGREP=$lt_EGREP |
| 26555 | |
| 26556 | # The linker used to build libraries. |
| 26557 | LD=$lt_LD_RC |
| 26558 | |
| 26559 | # Whether we need hard or soft links. |
| 26560 | LN_S=$lt_LN_S |
| 26561 | |
| 26562 | # A BSD-compatible nm program. |
| 26563 | NM=$lt_NM |
| 26564 | |
| 26565 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26566 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26567 | |
| 26568 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26569 | MAGIC_CMD=$MAGIC_CMD |
| 26570 | |
| 26571 | # Used on cygwin: DLL creation program. |
| 26572 | DLLTOOL="$DLLTOOL" |
| 26573 | |
| 26574 | # Used on cygwin: object dumper. |
| 26575 | OBJDUMP="$OBJDUMP" |
| 26576 | |
| 26577 | # Used on cygwin: assembler. |
| 26578 | AS="$AS" |
| 26579 | |
| 26580 | # The name of the directory that contains temporary libtool files. |
| 26581 | objdir=$objdir |
| 26582 | |
| 26583 | # How to create reloadable object files. |
| 26584 | reload_flag=$lt_reload_flag |
| 26585 | reload_cmds=$lt_reload_cmds |
| 26586 | |
| 26587 | # How to pass a linker flag through the compiler. |
| 26588 | wl=$lt_lt_prog_compiler_wl_RC |
| 26589 | |
| 26590 | # Object file suffix (normally "o"). |
| 26591 | objext="$ac_objext" |
| 26592 | |
| 26593 | # Old archive suffix (normally "a"). |
| 26594 | libext="$libext" |
| 26595 | |
| 26596 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26597 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26598 | |
| 26599 | # Executable file suffix (normally ""). |
| 26600 | exeext="$exeext" |
| 26601 | |
| 26602 | # Additional compiler flags for building library objects. |
| 26603 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26604 | pic_mode=$pic_mode |
| 26605 | |
| 26606 | # What is the maximum length of a command? |
| 26607 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26608 | |
| 26609 | # Does compiler simultaneously support -c and -o options? |
| 26610 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26612 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26613 | need_locks=$lt_need_locks |
| 26614 | |
| 26615 | # Do we need the lib prefix for modules? |
| 26616 | need_lib_prefix=$need_lib_prefix |
| 26617 | |
| 26618 | # Do we need a version for libraries? |
| 26619 | need_version=$need_version |
| 26620 | |
| 26621 | # Whether dlopen is supported. |
| 26622 | dlopen_support=$enable_dlopen |
| 26623 | |
| 26624 | # Whether dlopen of programs is supported. |
| 26625 | dlopen_self=$enable_dlopen_self |
| 26626 | |
| 26627 | # Whether dlopen of statically linked programs is supported. |
| 26628 | dlopen_self_static=$enable_dlopen_self_static |
| 26629 | |
| 26630 | # Compiler flag to prevent dynamic linking. |
| 26631 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26632 | |
| 26633 | # Compiler flag to turn off builtin functions. |
| 26634 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26635 | |
| 26636 | # Compiler flag to allow reflexive dlopens. |
| 26637 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26638 | |
| 26639 | # Compiler flag to generate shared objects directly from archives. |
| 26640 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26641 | |
| 26642 | # Compiler flag to generate thread-safe objects. |
| 26643 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26644 | |
| 26645 | # Library versioning type. |
| 26646 | version_type=$version_type |
| 26647 | |
| 26648 | # Format of library name prefix. |
| 26649 | libname_spec=$lt_libname_spec |
| 26650 | |
| 26651 | # List of archive names. First name is the real one, the rest are links. |
| 26652 | # The last name is the one that the linker finds with -lNAME. |
| 26653 | library_names_spec=$lt_library_names_spec |
| 26654 | |
| 26655 | # The coded name of the library, if different from the real name. |
| 26656 | soname_spec=$lt_soname_spec |
| 26657 | |
| 26658 | # Commands used to build and install an old-style archive. |
| 26659 | RANLIB=$lt_RANLIB |
| 26660 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26661 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26662 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26663 | |
| 26664 | # Create an old-style archive from a shared archive. |
| 26665 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26666 | |
| 26667 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26668 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26669 | |
| 26670 | # Commands used to build and install a shared archive. |
| 26671 | archive_cmds=$lt_archive_cmds_RC |
| 26672 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26673 | postinstall_cmds=$lt_postinstall_cmds |
| 26674 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26675 | |
| 26676 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26677 | module_cmds=$lt_module_cmds_RC |
| 26678 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26679 | |
| 26680 | # Commands to strip libraries. |
| 26681 | old_striplib=$lt_old_striplib |
| 26682 | striplib=$lt_striplib |
| 26683 | |
| 26684 | # Dependencies to place before the objects being linked to create a |
| 26685 | # shared library. |
| 26686 | predep_objects=$lt_predep_objects_RC |
| 26687 | |
| 26688 | # Dependencies to place after the objects being linked to create a |
| 26689 | # shared library. |
| 26690 | postdep_objects=$lt_postdep_objects_RC |
| 26691 | |
| 26692 | # Dependencies to place before the objects being linked to create a |
| 26693 | # shared library. |
| 26694 | predeps=$lt_predeps_RC |
| 26695 | |
| 26696 | # Dependencies to place after the objects being linked to create a |
| 26697 | # shared library. |
| 26698 | postdeps=$lt_postdeps_RC |
| 26699 | |
| 26700 | # The library search path used internally by the compiler when linking |
| 26701 | # a shared library. |
| 26702 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26703 | |
| 26704 | # Method to check whether dependent libraries are shared objects. |
| 26705 | deplibs_check_method=$lt_deplibs_check_method |
| 26706 | |
| 26707 | # Command to use when deplibs_check_method == file_magic. |
| 26708 | file_magic_cmd=$lt_file_magic_cmd |
| 26709 | |
| 26710 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26711 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26712 | |
| 26713 | # Flag that forces no undefined symbols. |
| 26714 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26715 | |
| 26716 | # Commands used to finish a libtool library installation in a directory. |
| 26717 | finish_cmds=$lt_finish_cmds |
| 26718 | |
| 26719 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26720 | finish_eval=$lt_finish_eval |
| 26721 | |
| 26722 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26723 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26724 | |
| 26725 | # Transform the output of nm in a proper C declaration |
| 26726 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26727 | |
| 26728 | # Transform the output of nm in a C name address pair |
| 26729 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26730 | |
| 26731 | # This is the shared library runtime path variable. |
| 26732 | runpath_var=$runpath_var |
| 26733 | |
| 26734 | # This is the shared library path variable. |
| 26735 | shlibpath_var=$shlibpath_var |
| 26736 | |
| 26737 | # Is shlibpath searched before the hard-coded library search path? |
| 26738 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26739 | |
| 26740 | # How to hardcode a shared library path into an executable. |
| 26741 | hardcode_action=$hardcode_action_RC |
| 26742 | |
| 26743 | # Whether we should hardcode library paths into libraries. |
| 26744 | hardcode_into_libs=$hardcode_into_libs |
| 26745 | |
| 26746 | # Flag to hardcode \$libdir into a binary during linking. |
| 26747 | # This must work even if \$libdir does not exist. |
| 26748 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26749 | |
| 26750 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26751 | # a binary during linking. This must work even if \$libdir does |
| 26752 | # not exist. |
| 26753 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26754 | |
| 26755 | # Whether we need a single -rpath flag with a separated argument. |
| 26756 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26757 | |
| 26758 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26759 | # resulting binary. |
| 26760 | hardcode_direct=$hardcode_direct_RC |
| 26761 | |
| 26762 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26763 | # resulting binary. |
| 26764 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26765 | |
| 26766 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26767 | # the resulting binary. |
| 26768 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26769 | |
| 26770 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26771 | # and all subsequent libraries and executables linked against it. |
| 26772 | hardcode_automatic=$hardcode_automatic_RC |
| 26773 | |
| 26774 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26775 | # restored at relink time. |
| 26776 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26777 | |
| 26778 | # Whether libtool must link a program against all its dependency libraries. |
| 26779 | link_all_deplibs=$link_all_deplibs_RC |
| 26780 | |
| 26781 | # Compile-time system search path for libraries |
| 26782 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26783 | |
| 26784 | # Run-time system search path for libraries |
| 26785 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26786 | |
| 26787 | # Fix the shell variable \$srcfile for the compiler. |
| 26788 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26789 | |
| 26790 | # Set to yes if exported symbols are required. |
| 26791 | always_export_symbols=$always_export_symbols_RC |
| 26792 | |
| 26793 | # The commands to list exported symbols. |
| 26794 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26795 | |
| 26796 | # The commands to extract the exported symbol list from a shared archive. |
| 26797 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26798 | |
| 26799 | # Symbols that should not be listed in the preloaded symbols. |
| 26800 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26801 | |
| 26802 | # Symbols that must always be exported. |
| 26803 | include_expsyms=$lt_include_expsyms_RC |
| 26804 | |
| 26805 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26806 | |
| 26807 | __EOF__ |
| 26808 | |
| 26809 | |
| 26810 | else |
| 26811 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26812 | # `config.status --recheck' to rerun these tests and create the |
| 26813 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26814 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26815 | if test -f "$ltmain_in"; then |
| 26816 | test -f Makefile && make "$ltmain" |
| 26817 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26818 | fi |
| 26819 | |
| 26820 | |
| 26821 | ac_ext=c |
| 26822 | ac_cpp='$CPP $CPPFLAGS' |
| 26823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26826 | |
| 26827 | CC="$lt_save_CC" |
| 26828 | |
| 26829 | ;; |
| 26830 | |
| 26831 | *) |
| 26832 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 26833 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 26834 | { (exit 1); exit 1; }; } |
| 26835 | ;; |
| 26836 | esac |
| 26837 | |
| 26838 | # Append the new tag name to the list of available tags. |
| 26839 | if test -n "$tagname" ; then |
| 26840 | available_tags="$available_tags $tagname" |
| 26841 | fi |
| 26842 | fi |
| 26843 | done |
| 26844 | IFS="$lt_save_ifs" |
| 26845 | |
| 26846 | # Now substitute the updated list of available tags. |
| 26847 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 26848 | mv "${ofile}T" "$ofile" |
| 26849 | chmod +x "$ofile" |
| 26850 | else |
| 26851 | rm -f "${ofile}T" |
| 26852 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 26853 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 26854 | { (exit 1); exit 1; }; } |
| 26855 | fi |
| 26856 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26857 | |
| 26858 | |
| 26859 | |
| 26860 | # This can be used to rebuild libtool when needed |
| 26861 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 26862 | |
| 26863 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26864 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26865 | |
| 26866 | # Prevent multiple expansion |
| 26867 | |
| 26868 | |
| 26869 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26870 | |
| 26871 | |
| 26872 | |
| 26873 | |
| 26874 | |
| 26875 | |
| 26876 | |
| 26877 | |
| 26878 | |
| 26879 | |
| 26880 | |
| 26881 | |
| 26882 | |
| 26883 | |
| 26884 | |
| 26885 | |
| 26886 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26887 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 26888 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 26889 | |
| 26890 | cat >>confdefs.h <<\_ACEOF |
| 26891 | #define CAN_DLOPEN_SELF 1 |
| 26892 | _ACEOF |
| 26893 | |
| 26894 | fi |
| 26895 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26896 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26897 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 26898 | LLVMGXX="llvm-g++${EXEEXT}" |
| 26899 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 26900 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26901 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26903 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 26904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26905 | else |
| 26906 | case $LLVMGCC in |
| 26907 | [\\/]* | ?:[\\/]*) |
| 26908 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 26909 | ;; |
| 26910 | *) |
| 26911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26912 | for as_dir in $PATH |
| 26913 | do |
| 26914 | IFS=$as_save_IFS |
| 26915 | test -z "$as_dir" && as_dir=. |
| 26916 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 26917 | 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] | 26918 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 26919 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26920 | break 2 |
| 26921 | fi |
| 26922 | done |
| 26923 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26924 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26925 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26926 | ;; |
| 26927 | esac |
| 26928 | fi |
| 26929 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26930 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26931 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 26932 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26933 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26934 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26935 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26936 | fi |
| 26937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26938 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26939 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 26940 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26941 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26943 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 26944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26945 | else |
| 26946 | case $LLVMGXX in |
| 26947 | [\\/]* | ?:[\\/]*) |
| 26948 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 26949 | ;; |
| 26950 | *) |
| 26951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26952 | for as_dir in $PATH |
| 26953 | do |
| 26954 | IFS=$as_save_IFS |
| 26955 | test -z "$as_dir" && as_dir=. |
| 26956 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 26957 | 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] | 26958 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 26959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26960 | break 2 |
| 26961 | fi |
| 26962 | done |
| 26963 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26964 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26965 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26966 | ;; |
| 26967 | esac |
| 26968 | fi |
| 26969 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26970 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26971 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 26972 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26973 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26974 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26975 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26976 | fi |
| 26977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26978 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26979 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 26980 | if test -z "$LLVMGCC"; then |
| 26981 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 26982 | fi |
| 26983 | if test -z "$LLVMGXX"; then |
| 26984 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
| 26985 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26986 | LLVMGCC=$LLVMGCC |
| 26987 | |
| 26988 | LLVMGXX=$LLVMGXX |
| 26989 | |
| 26990 | fi |
| 26991 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26992 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 26993 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26994 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26995 | ICC=no |
| 26996 | IXX=no |
| 26997 | case $CC in |
| 26998 | icc*|icpc*) |
| 26999 | ICC=yes |
| 27000 | IXX=yes |
| 27001 | ;; |
| 27002 | *) |
| 27003 | ;; |
| 27004 | esac |
| 27005 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 27006 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 27007 | then |
| 27008 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 27009 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 27010 | { (exit 1); exit 1; }; } |
| 27011 | fi |
| 27012 | |
| 27013 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 27014 | then |
| 27015 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 27016 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 27017 | { (exit 1); exit 1; }; } |
| 27018 | fi |
| 27019 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27020 | if test "$GCC" = "yes" |
| 27021 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27022 | cat >conftest.$ac_ext <<_ACEOF |
| 27023 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 27024 | #error Unsupported GCC version |
| 27025 | #endif |
| 27026 | |
| 27027 | _ACEOF |
| 27028 | rm -f conftest.$ac_objext |
| 27029 | if { (ac_try="$ac_compile" |
| 27030 | case "(($ac_try" in |
| 27031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27032 | *) ac_try_echo=$ac_try;; |
| 27033 | esac |
| 27034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27035 | (eval "$ac_compile") 2>conftest.er1 |
| 27036 | ac_status=$? |
| 27037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27038 | rm -f conftest.er1 |
| 27039 | cat conftest.err >&5 |
| 27040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27041 | (exit $ac_status); } && |
| 27042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27043 | { (case "(($ac_try" in |
| 27044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27045 | *) ac_try_echo=$ac_try;; |
| 27046 | esac |
| 27047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27048 | (eval "$ac_try") 2>&5 |
| 27049 | ac_status=$? |
| 27050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27051 | (exit $ac_status); }; } && |
| 27052 | { ac_try='test -s conftest.$ac_objext' |
| 27053 | { (case "(($ac_try" in |
| 27054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27055 | *) ac_try_echo=$ac_try;; |
| 27056 | esac |
| 27057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27058 | (eval "$ac_try") 2>&5 |
| 27059 | ac_status=$? |
| 27060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27061 | (exit $ac_status); }; }; then |
| 27062 | : |
| 27063 | else |
| 27064 | echo "$as_me: failed program was:" >&5 |
| 27065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27066 | |
| 27067 | { { 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] | 27068 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 27069 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27070 | fi |
| 27071 | |
| 27072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27073 | fi |
| 27074 | |
| 27075 | if test -z "$llvm_cv_gnu_make_command" |
| 27076 | then |
| 27077 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 27078 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 27079 | { (exit 1); exit 1; }; } |
| 27080 | fi |
| 27081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27082 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 27083 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27084 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27085 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27087 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 27088 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27089 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 27090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27091 | else |
| 27092 | ac_check_lib_save_LIBS=$LIBS |
| 27093 | LIBS="-lelf $LIBS" |
| 27094 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27095 | /* confdefs.h. */ |
| 27096 | _ACEOF |
| 27097 | cat confdefs.h >>conftest.$ac_ext |
| 27098 | cat >>conftest.$ac_ext <<_ACEOF |
| 27099 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27100 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27101 | /* Override any GCC internal prototype to avoid an error. |
| 27102 | Use char because int might match the return type of a GCC |
| 27103 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27104 | #ifdef __cplusplus |
| 27105 | extern "C" |
| 27106 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27107 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27108 | int |
| 27109 | main () |
| 27110 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27111 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27112 | ; |
| 27113 | return 0; |
| 27114 | } |
| 27115 | _ACEOF |
| 27116 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27117 | if { (ac_try="$ac_link" |
| 27118 | case "(($ac_try" in |
| 27119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27120 | *) ac_try_echo=$ac_try;; |
| 27121 | esac |
| 27122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27123 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27124 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27126 | rm -f conftest.er1 |
| 27127 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27129 | (exit $ac_status); } && |
| 27130 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27131 | { (case "(($ac_try" in |
| 27132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27133 | *) ac_try_echo=$ac_try;; |
| 27134 | esac |
| 27135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27136 | (eval "$ac_try") 2>&5 |
| 27137 | ac_status=$? |
| 27138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27139 | (exit $ac_status); }; } && |
| 27140 | { ac_try='test -s conftest$ac_exeext' |
| 27141 | { (case "(($ac_try" in |
| 27142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27143 | *) ac_try_echo=$ac_try;; |
| 27144 | esac |
| 27145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27146 | (eval "$ac_try") 2>&5 |
| 27147 | ac_status=$? |
| 27148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27149 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27150 | ac_cv_lib_elf_elf_begin=yes |
| 27151 | else |
| 27152 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27154 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27155 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27156 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27157 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27158 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27159 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27160 | LIBS=$ac_check_lib_save_LIBS |
| 27161 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27162 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 27163 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27164 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 27165 | cat >>confdefs.h <<_ACEOF |
| 27166 | #define HAVE_LIBELF 1 |
| 27167 | _ACEOF |
| 27168 | |
| 27169 | LIBS="-lelf $LIBS" |
| 27170 | |
| 27171 | fi |
| 27172 | |
| 27173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27174 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27175 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27176 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27178 | else |
| 27179 | ac_check_lib_save_LIBS=$LIBS |
| 27180 | LIBS="-lm $LIBS" |
| 27181 | cat >conftest.$ac_ext <<_ACEOF |
| 27182 | /* confdefs.h. */ |
| 27183 | _ACEOF |
| 27184 | cat confdefs.h >>conftest.$ac_ext |
| 27185 | cat >>conftest.$ac_ext <<_ACEOF |
| 27186 | /* end confdefs.h. */ |
| 27187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27188 | /* Override any GCC internal prototype to avoid an error. |
| 27189 | Use char because int might match the return type of a GCC |
| 27190 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27191 | #ifdef __cplusplus |
| 27192 | extern "C" |
| 27193 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27194 | char sin (); |
| 27195 | int |
| 27196 | main () |
| 27197 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27198 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27199 | ; |
| 27200 | return 0; |
| 27201 | } |
| 27202 | _ACEOF |
| 27203 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27204 | if { (ac_try="$ac_link" |
| 27205 | case "(($ac_try" in |
| 27206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27207 | *) ac_try_echo=$ac_try;; |
| 27208 | esac |
| 27209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27210 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27211 | ac_status=$? |
| 27212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27213 | rm -f conftest.er1 |
| 27214 | cat conftest.err >&5 |
| 27215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27216 | (exit $ac_status); } && |
| 27217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27218 | { (case "(($ac_try" in |
| 27219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27220 | *) ac_try_echo=$ac_try;; |
| 27221 | esac |
| 27222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27223 | (eval "$ac_try") 2>&5 |
| 27224 | ac_status=$? |
| 27225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27226 | (exit $ac_status); }; } && |
| 27227 | { ac_try='test -s conftest$ac_exeext' |
| 27228 | { (case "(($ac_try" in |
| 27229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27230 | *) ac_try_echo=$ac_try;; |
| 27231 | esac |
| 27232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27233 | (eval "$ac_try") 2>&5 |
| 27234 | ac_status=$? |
| 27235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27236 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27237 | ac_cv_lib_m_sin=yes |
| 27238 | else |
| 27239 | echo "$as_me: failed program was:" >&5 |
| 27240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27242 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27244 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27245 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27246 | conftest$ac_exeext conftest.$ac_ext |
| 27247 | LIBS=$ac_check_lib_save_LIBS |
| 27248 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27249 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27250 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27251 | if test $ac_cv_lib_m_sin = yes; then |
| 27252 | cat >>confdefs.h <<_ACEOF |
| 27253 | #define HAVE_LIBM 1 |
| 27254 | _ACEOF |
| 27255 | |
| 27256 | LIBS="-lm $LIBS" |
| 27257 | |
| 27258 | fi |
| 27259 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27260 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27262 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27263 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27264 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27266 | else |
| 27267 | ac_check_lib_save_LIBS=$LIBS |
| 27268 | LIBS="-limagehlp $LIBS" |
| 27269 | cat >conftest.$ac_ext <<_ACEOF |
| 27270 | /* confdefs.h. */ |
| 27271 | _ACEOF |
| 27272 | cat confdefs.h >>conftest.$ac_ext |
| 27273 | cat >>conftest.$ac_ext <<_ACEOF |
| 27274 | /* end confdefs.h. */ |
| 27275 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27276 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27277 | int |
| 27278 | main () |
| 27279 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27280 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27281 | ; |
| 27282 | return 0; |
| 27283 | } |
| 27284 | _ACEOF |
| 27285 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27286 | if { (ac_try="$ac_link" |
| 27287 | case "(($ac_try" in |
| 27288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27289 | *) ac_try_echo=$ac_try;; |
| 27290 | esac |
| 27291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27292 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27293 | ac_status=$? |
| 27294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27295 | rm -f conftest.er1 |
| 27296 | cat conftest.err >&5 |
| 27297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27298 | (exit $ac_status); } && |
| 27299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27300 | { (case "(($ac_try" in |
| 27301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27302 | *) ac_try_echo=$ac_try;; |
| 27303 | esac |
| 27304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27305 | (eval "$ac_try") 2>&5 |
| 27306 | ac_status=$? |
| 27307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27308 | (exit $ac_status); }; } && |
| 27309 | { ac_try='test -s conftest$ac_exeext' |
| 27310 | { (case "(($ac_try" in |
| 27311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27312 | *) ac_try_echo=$ac_try;; |
| 27313 | esac |
| 27314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27315 | (eval "$ac_try") 2>&5 |
| 27316 | ac_status=$? |
| 27317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27318 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27319 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27320 | else |
| 27321 | echo "$as_me: failed program was:" >&5 |
| 27322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27324 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27325 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27326 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27327 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27328 | conftest$ac_exeext conftest.$ac_ext |
| 27329 | LIBS=$ac_check_lib_save_LIBS |
| 27330 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27331 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27332 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27333 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27334 | cat >>confdefs.h <<_ACEOF |
| 27335 | #define HAVE_LIBIMAGEHLP 1 |
| 27336 | _ACEOF |
| 27337 | |
| 27338 | LIBS="-limagehlp $LIBS" |
| 27339 | |
| 27340 | fi |
| 27341 | |
| 27342 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27343 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27344 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27345 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27347 | else |
| 27348 | ac_check_lib_save_LIBS=$LIBS |
| 27349 | LIBS="-lpsapi $LIBS" |
| 27350 | cat >conftest.$ac_ext <<_ACEOF |
| 27351 | /* confdefs.h. */ |
| 27352 | _ACEOF |
| 27353 | cat confdefs.h >>conftest.$ac_ext |
| 27354 | cat >>conftest.$ac_ext <<_ACEOF |
| 27355 | /* end confdefs.h. */ |
| 27356 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27357 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27358 | int |
| 27359 | main () |
| 27360 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27361 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27362 | ; |
| 27363 | return 0; |
| 27364 | } |
| 27365 | _ACEOF |
| 27366 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27367 | if { (ac_try="$ac_link" |
| 27368 | case "(($ac_try" in |
| 27369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27370 | *) ac_try_echo=$ac_try;; |
| 27371 | esac |
| 27372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27373 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27374 | ac_status=$? |
| 27375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27376 | rm -f conftest.er1 |
| 27377 | cat conftest.err >&5 |
| 27378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27379 | (exit $ac_status); } && |
| 27380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27381 | { (case "(($ac_try" in |
| 27382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27383 | *) ac_try_echo=$ac_try;; |
| 27384 | esac |
| 27385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27386 | (eval "$ac_try") 2>&5 |
| 27387 | ac_status=$? |
| 27388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27389 | (exit $ac_status); }; } && |
| 27390 | { ac_try='test -s conftest$ac_exeext' |
| 27391 | { (case "(($ac_try" in |
| 27392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27393 | *) ac_try_echo=$ac_try;; |
| 27394 | esac |
| 27395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27396 | (eval "$ac_try") 2>&5 |
| 27397 | ac_status=$? |
| 27398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27399 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27400 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27401 | else |
| 27402 | echo "$as_me: failed program was:" >&5 |
| 27403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27405 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27406 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27407 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27408 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27409 | conftest$ac_exeext conftest.$ac_ext |
| 27410 | LIBS=$ac_check_lib_save_LIBS |
| 27411 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27412 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27413 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27414 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27415 | cat >>confdefs.h <<_ACEOF |
| 27416 | #define HAVE_LIBPSAPI 1 |
| 27417 | _ACEOF |
| 27418 | |
| 27419 | LIBS="-lpsapi $LIBS" |
| 27420 | |
| 27421 | fi |
| 27422 | |
| 27423 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27424 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27425 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27426 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27427 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27429 | else |
| 27430 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27431 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27432 | /* confdefs.h. */ |
| 27433 | _ACEOF |
| 27434 | cat confdefs.h >>conftest.$ac_ext |
| 27435 | cat >>conftest.$ac_ext <<_ACEOF |
| 27436 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27437 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27438 | /* Override any GCC internal prototype to avoid an error. |
| 27439 | Use char because int might match the return type of a GCC |
| 27440 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27441 | #ifdef __cplusplus |
| 27442 | extern "C" |
| 27443 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27444 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27445 | int |
| 27446 | main () |
| 27447 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27448 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27449 | ; |
| 27450 | return 0; |
| 27451 | } |
| 27452 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27453 | for ac_lib in '' dl; do |
| 27454 | if test -z "$ac_lib"; then |
| 27455 | ac_res="none required" |
| 27456 | else |
| 27457 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27458 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27459 | fi |
| 27460 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27461 | if { (ac_try="$ac_link" |
| 27462 | case "(($ac_try" in |
| 27463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27464 | *) ac_try_echo=$ac_try;; |
| 27465 | esac |
| 27466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27467 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27468 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27470 | rm -f conftest.er1 |
| 27471 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27473 | (exit $ac_status); } && |
| 27474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27475 | { (case "(($ac_try" in |
| 27476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27477 | *) ac_try_echo=$ac_try;; |
| 27478 | esac |
| 27479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27480 | (eval "$ac_try") 2>&5 |
| 27481 | ac_status=$? |
| 27482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27483 | (exit $ac_status); }; } && |
| 27484 | { ac_try='test -s conftest$ac_exeext' |
| 27485 | { (case "(($ac_try" in |
| 27486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27487 | *) ac_try_echo=$ac_try;; |
| 27488 | esac |
| 27489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27490 | (eval "$ac_try") 2>&5 |
| 27491 | ac_status=$? |
| 27492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27493 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27494 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27495 | else |
| 27496 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27499 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27500 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27501 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27502 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27503 | conftest$ac_exeext |
| 27504 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27505 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27506 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27507 | done |
| 27508 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27509 | : |
| 27510 | else |
| 27511 | ac_cv_search_dlopen=no |
| 27512 | fi |
| 27513 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27514 | LIBS=$ac_func_search_save_LIBS |
| 27515 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27516 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27517 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27518 | ac_res=$ac_cv_search_dlopen |
| 27519 | if test "$ac_res" != no; then |
| 27520 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27521 | |
| 27522 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27523 | #define HAVE_DLOPEN 1 |
| 27524 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27525 | |
| 27526 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27527 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27528 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27529 | fi |
| 27530 | |
| 27531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27532 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27533 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27534 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27536 | else |
| 27537 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27538 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27539 | /* confdefs.h. */ |
| 27540 | _ACEOF |
| 27541 | cat confdefs.h >>conftest.$ac_ext |
| 27542 | cat >>conftest.$ac_ext <<_ACEOF |
| 27543 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27544 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27545 | /* Override any GCC internal prototype to avoid an error. |
| 27546 | Use char because int might match the return type of a GCC |
| 27547 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27548 | #ifdef __cplusplus |
| 27549 | extern "C" |
| 27550 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27551 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27552 | int |
| 27553 | main () |
| 27554 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27555 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27556 | ; |
| 27557 | return 0; |
| 27558 | } |
| 27559 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27560 | for ac_lib in '' malloc; do |
| 27561 | if test -z "$ac_lib"; then |
| 27562 | ac_res="none required" |
| 27563 | else |
| 27564 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27565 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27566 | fi |
| 27567 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27568 | if { (ac_try="$ac_link" |
| 27569 | case "(($ac_try" in |
| 27570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27571 | *) ac_try_echo=$ac_try;; |
| 27572 | esac |
| 27573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27574 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27575 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27577 | rm -f conftest.er1 |
| 27578 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27580 | (exit $ac_status); } && |
| 27581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27582 | { (case "(($ac_try" in |
| 27583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27584 | *) ac_try_echo=$ac_try;; |
| 27585 | esac |
| 27586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27587 | (eval "$ac_try") 2>&5 |
| 27588 | ac_status=$? |
| 27589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27590 | (exit $ac_status); }; } && |
| 27591 | { ac_try='test -s conftest$ac_exeext' |
| 27592 | { (case "(($ac_try" in |
| 27593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27594 | *) ac_try_echo=$ac_try;; |
| 27595 | esac |
| 27596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27597 | (eval "$ac_try") 2>&5 |
| 27598 | ac_status=$? |
| 27599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27600 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27601 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27602 | else |
| 27603 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27606 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27607 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27608 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27609 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27610 | conftest$ac_exeext |
| 27611 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27612 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27613 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27614 | done |
| 27615 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27616 | : |
| 27617 | else |
| 27618 | ac_cv_search_mallinfo=no |
| 27619 | fi |
| 27620 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27621 | LIBS=$ac_func_search_save_LIBS |
| 27622 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27623 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27624 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27625 | ac_res=$ac_cv_search_mallinfo |
| 27626 | if test "$ac_res" != no; then |
| 27627 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27628 | |
| 27629 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27630 | #define HAVE_MALLINFO 1 |
| 27631 | _ACEOF |
| 27632 | |
| 27633 | fi |
| 27634 | |
| 27635 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27636 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27637 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27638 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27639 | 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] | 27640 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27642 | else |
| 27643 | ac_check_lib_save_LIBS=$LIBS |
| 27644 | LIBS="-lpthread $LIBS" |
| 27645 | cat >conftest.$ac_ext <<_ACEOF |
| 27646 | /* confdefs.h. */ |
| 27647 | _ACEOF |
| 27648 | cat confdefs.h >>conftest.$ac_ext |
| 27649 | cat >>conftest.$ac_ext <<_ACEOF |
| 27650 | /* end confdefs.h. */ |
| 27651 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27652 | /* Override any GCC internal prototype to avoid an error. |
| 27653 | Use char because int might match the return type of a GCC |
| 27654 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27655 | #ifdef __cplusplus |
| 27656 | extern "C" |
| 27657 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27658 | char pthread_mutex_init (); |
| 27659 | int |
| 27660 | main () |
| 27661 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27662 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27663 | ; |
| 27664 | return 0; |
| 27665 | } |
| 27666 | _ACEOF |
| 27667 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27668 | if { (ac_try="$ac_link" |
| 27669 | case "(($ac_try" in |
| 27670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27671 | *) ac_try_echo=$ac_try;; |
| 27672 | esac |
| 27673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27674 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27675 | ac_status=$? |
| 27676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27677 | rm -f conftest.er1 |
| 27678 | cat conftest.err >&5 |
| 27679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27680 | (exit $ac_status); } && |
| 27681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27682 | { (case "(($ac_try" in |
| 27683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27684 | *) ac_try_echo=$ac_try;; |
| 27685 | esac |
| 27686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27687 | (eval "$ac_try") 2>&5 |
| 27688 | ac_status=$? |
| 27689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27690 | (exit $ac_status); }; } && |
| 27691 | { ac_try='test -s conftest$ac_exeext' |
| 27692 | { (case "(($ac_try" in |
| 27693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27694 | *) ac_try_echo=$ac_try;; |
| 27695 | esac |
| 27696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27697 | (eval "$ac_try") 2>&5 |
| 27698 | ac_status=$? |
| 27699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27700 | (exit $ac_status); }; }; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27701 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27702 | else |
| 27703 | echo "$as_me: failed program was:" >&5 |
| 27704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27705 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27706 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27707 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27708 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27709 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27710 | conftest$ac_exeext conftest.$ac_ext |
| 27711 | LIBS=$ac_check_lib_save_LIBS |
| 27712 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27713 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27714 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27715 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27716 | cat >>confdefs.h <<_ACEOF |
| 27717 | #define HAVE_LIBPTHREAD 1 |
| 27718 | _ACEOF |
| 27719 | |
| 27720 | LIBS="-lpthread $LIBS" |
| 27721 | |
| 27722 | fi |
| 27723 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27724 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27725 | 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] | 27726 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27728 | else |
| 27729 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27730 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27731 | /* confdefs.h. */ |
| 27732 | _ACEOF |
| 27733 | cat confdefs.h >>conftest.$ac_ext |
| 27734 | cat >>conftest.$ac_ext <<_ACEOF |
| 27735 | /* end confdefs.h. */ |
| 27736 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27737 | /* Override any GCC internal prototype to avoid an error. |
| 27738 | Use char because int might match the return type of a GCC |
| 27739 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27740 | #ifdef __cplusplus |
| 27741 | extern "C" |
| 27742 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27743 | char pthread_mutex_lock (); |
| 27744 | int |
| 27745 | main () |
| 27746 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27747 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27748 | ; |
| 27749 | return 0; |
| 27750 | } |
| 27751 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27752 | for ac_lib in '' pthread; do |
| 27753 | if test -z "$ac_lib"; then |
| 27754 | ac_res="none required" |
| 27755 | else |
| 27756 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27757 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27758 | fi |
| 27759 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27760 | if { (ac_try="$ac_link" |
| 27761 | case "(($ac_try" in |
| 27762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27763 | *) ac_try_echo=$ac_try;; |
| 27764 | esac |
| 27765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27766 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27767 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27769 | rm -f conftest.er1 |
| 27770 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27772 | (exit $ac_status); } && |
| 27773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27774 | { (case "(($ac_try" in |
| 27775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27776 | *) ac_try_echo=$ac_try;; |
| 27777 | esac |
| 27778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27779 | (eval "$ac_try") 2>&5 |
| 27780 | ac_status=$? |
| 27781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27782 | (exit $ac_status); }; } && |
| 27783 | { ac_try='test -s conftest$ac_exeext' |
| 27784 | { (case "(($ac_try" in |
| 27785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27786 | *) ac_try_echo=$ac_try;; |
| 27787 | esac |
| 27788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27789 | (eval "$ac_try") 2>&5 |
| 27790 | ac_status=$? |
| 27791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27792 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27793 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27794 | else |
| 27795 | echo "$as_me: failed program was:" >&5 |
| 27796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27798 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27799 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27800 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27801 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27802 | conftest$ac_exeext |
| 27803 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27804 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27805 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27806 | done |
| 27807 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27808 | : |
| 27809 | else |
| 27810 | ac_cv_search_pthread_mutex_lock=no |
| 27811 | fi |
| 27812 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27813 | LIBS=$ac_func_search_save_LIBS |
| 27814 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27815 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 27816 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 27817 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 27818 | if test "$ac_res" != no; then |
| 27819 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27820 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 27821 | cat >>confdefs.h <<\_ACEOF |
| 27822 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 27823 | _ACEOF |
| 27824 | |
| 27825 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27826 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27827 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 27828 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27829 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27830 | # Check whether --with-udis86 was given. |
| 27831 | if test "${with_udis86+set}" = set; then |
| 27832 | withval=$with_udis86; |
| 27833 | USE_UDIS86=1 |
| 27834 | |
| 27835 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 27836 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27837 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 27838 | esac |
| 27839 | |
| 27840 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 27841 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 27842 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 27843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27844 | else |
| 27845 | ac_check_lib_save_LIBS=$LIBS |
| 27846 | LIBS="-ludis86 $LIBS" |
| 27847 | cat >conftest.$ac_ext <<_ACEOF |
| 27848 | /* confdefs.h. */ |
| 27849 | _ACEOF |
| 27850 | cat confdefs.h >>conftest.$ac_ext |
| 27851 | cat >>conftest.$ac_ext <<_ACEOF |
| 27852 | /* end confdefs.h. */ |
| 27853 | |
| 27854 | /* Override any GCC internal prototype to avoid an error. |
| 27855 | Use char because int might match the return type of a GCC |
| 27856 | builtin and then its argument prototype would still apply. */ |
| 27857 | #ifdef __cplusplus |
| 27858 | extern "C" |
| 27859 | #endif |
| 27860 | char ud_init (); |
| 27861 | int |
| 27862 | main () |
| 27863 | { |
| 27864 | return ud_init (); |
| 27865 | ; |
| 27866 | return 0; |
| 27867 | } |
| 27868 | _ACEOF |
| 27869 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27870 | if { (ac_try="$ac_link" |
| 27871 | case "(($ac_try" in |
| 27872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27873 | *) ac_try_echo=$ac_try;; |
| 27874 | esac |
| 27875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27876 | (eval "$ac_link") 2>conftest.er1 |
| 27877 | ac_status=$? |
| 27878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27879 | rm -f conftest.er1 |
| 27880 | cat conftest.err >&5 |
| 27881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27882 | (exit $ac_status); } && |
| 27883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27884 | { (case "(($ac_try" in |
| 27885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27886 | *) ac_try_echo=$ac_try;; |
| 27887 | esac |
| 27888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27889 | (eval "$ac_try") 2>&5 |
| 27890 | ac_status=$? |
| 27891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27892 | (exit $ac_status); }; } && |
| 27893 | { ac_try='test -s conftest$ac_exeext' |
| 27894 | { (case "(($ac_try" in |
| 27895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27896 | *) ac_try_echo=$ac_try;; |
| 27897 | esac |
| 27898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27899 | (eval "$ac_try") 2>&5 |
| 27900 | ac_status=$? |
| 27901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27902 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27903 | ac_cv_lib_udis86_ud_init=yes |
| 27904 | else |
| 27905 | echo "$as_me: failed program was:" >&5 |
| 27906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27907 | |
| 27908 | ac_cv_lib_udis86_ud_init=no |
| 27909 | fi |
| 27910 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27911 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27912 | conftest$ac_exeext conftest.$ac_ext |
| 27913 | LIBS=$ac_check_lib_save_LIBS |
| 27914 | fi |
| 27915 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 27916 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 27917 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 27918 | cat >>confdefs.h <<_ACEOF |
| 27919 | #define HAVE_LIBUDIS86 1 |
| 27920 | _ACEOF |
| 27921 | |
| 27922 | LIBS="-ludis86 $LIBS" |
| 27923 | |
| 27924 | else |
| 27925 | |
| 27926 | echo "Error! You need to have libudis86 around." |
| 27927 | exit -1 |
| 27928 | |
| 27929 | fi |
| 27930 | |
| 27931 | |
| 27932 | else |
| 27933 | USE_UDIS86=0 |
| 27934 | |
| 27935 | fi |
| 27936 | |
| 27937 | |
| 27938 | cat >>confdefs.h <<_ACEOF |
| 27939 | #define USE_UDIS86 $USE_UDIS86 |
| 27940 | _ACEOF |
| 27941 | |
| 27942 | |
| 27943 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27944 | |
| 27945 | |
| 27946 | |
| 27947 | |
| 27948 | |
| 27949 | ac_header_dirent=no |
| 27950 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 27951 | 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] | 27952 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 27953 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 27954 | 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] | 27955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27956 | else |
| 27957 | cat >conftest.$ac_ext <<_ACEOF |
| 27958 | /* confdefs.h. */ |
| 27959 | _ACEOF |
| 27960 | cat confdefs.h >>conftest.$ac_ext |
| 27961 | cat >>conftest.$ac_ext <<_ACEOF |
| 27962 | /* end confdefs.h. */ |
| 27963 | #include <sys/types.h> |
| 27964 | #include <$ac_hdr> |
| 27965 | |
| 27966 | int |
| 27967 | main () |
| 27968 | { |
| 27969 | if ((DIR *) 0) |
| 27970 | return 0; |
| 27971 | ; |
| 27972 | return 0; |
| 27973 | } |
| 27974 | _ACEOF |
| 27975 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27976 | if { (ac_try="$ac_compile" |
| 27977 | case "(($ac_try" in |
| 27978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27979 | *) ac_try_echo=$ac_try;; |
| 27980 | esac |
| 27981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27982 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27983 | ac_status=$? |
| 27984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27985 | rm -f conftest.er1 |
| 27986 | cat conftest.err >&5 |
| 27987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27988 | (exit $ac_status); } && |
| 27989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27990 | { (case "(($ac_try" in |
| 27991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27992 | *) ac_try_echo=$ac_try;; |
| 27993 | esac |
| 27994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27995 | (eval "$ac_try") 2>&5 |
| 27996 | ac_status=$? |
| 27997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27998 | (exit $ac_status); }; } && |
| 27999 | { ac_try='test -s conftest.$ac_objext' |
| 28000 | { (case "(($ac_try" in |
| 28001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28002 | *) ac_try_echo=$ac_try;; |
| 28003 | esac |
| 28004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28005 | (eval "$ac_try") 2>&5 |
| 28006 | ac_status=$? |
| 28007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28008 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28009 | eval "$as_ac_Header=yes" |
| 28010 | else |
| 28011 | echo "$as_me: failed program was:" >&5 |
| 28012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28014 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28015 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28016 | |
| 28017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28019 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28020 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28021 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28022 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28023 | cat >>confdefs.h <<_ACEOF |
| 28024 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 28025 | _ACEOF |
| 28026 | |
| 28027 | ac_header_dirent=$ac_hdr; break |
| 28028 | fi |
| 28029 | |
| 28030 | done |
| 28031 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 28032 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28033 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28034 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28035 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28037 | else |
| 28038 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28039 | cat >conftest.$ac_ext <<_ACEOF |
| 28040 | /* confdefs.h. */ |
| 28041 | _ACEOF |
| 28042 | cat confdefs.h >>conftest.$ac_ext |
| 28043 | cat >>conftest.$ac_ext <<_ACEOF |
| 28044 | /* end confdefs.h. */ |
| 28045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28046 | /* Override any GCC internal prototype to avoid an error. |
| 28047 | Use char because int might match the return type of a GCC |
| 28048 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28049 | #ifdef __cplusplus |
| 28050 | extern "C" |
| 28051 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28052 | char opendir (); |
| 28053 | int |
| 28054 | main () |
| 28055 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28056 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28057 | ; |
| 28058 | return 0; |
| 28059 | } |
| 28060 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28061 | for ac_lib in '' dir; do |
| 28062 | if test -z "$ac_lib"; then |
| 28063 | ac_res="none required" |
| 28064 | else |
| 28065 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28066 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28067 | fi |
| 28068 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28069 | if { (ac_try="$ac_link" |
| 28070 | case "(($ac_try" in |
| 28071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28072 | *) ac_try_echo=$ac_try;; |
| 28073 | esac |
| 28074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28075 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28076 | ac_status=$? |
| 28077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28078 | rm -f conftest.er1 |
| 28079 | cat conftest.err >&5 |
| 28080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28081 | (exit $ac_status); } && |
| 28082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28083 | { (case "(($ac_try" in |
| 28084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28085 | *) ac_try_echo=$ac_try;; |
| 28086 | esac |
| 28087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28088 | (eval "$ac_try") 2>&5 |
| 28089 | ac_status=$? |
| 28090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28091 | (exit $ac_status); }; } && |
| 28092 | { ac_try='test -s conftest$ac_exeext' |
| 28093 | { (case "(($ac_try" in |
| 28094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28095 | *) ac_try_echo=$ac_try;; |
| 28096 | esac |
| 28097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28098 | (eval "$ac_try") 2>&5 |
| 28099 | ac_status=$? |
| 28100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28101 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28102 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28103 | else |
| 28104 | echo "$as_me: failed program was:" >&5 |
| 28105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28107 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28108 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28109 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28110 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28111 | conftest$ac_exeext |
| 28112 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28113 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28114 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28115 | done |
| 28116 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28117 | : |
| 28118 | else |
| 28119 | ac_cv_search_opendir=no |
| 28120 | fi |
| 28121 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28122 | LIBS=$ac_func_search_save_LIBS |
| 28123 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28124 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28125 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28126 | ac_res=$ac_cv_search_opendir |
| 28127 | if test "$ac_res" != no; then |
| 28128 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28129 | |
| 28130 | fi |
| 28131 | |
| 28132 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28133 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28134 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28135 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28137 | else |
| 28138 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28139 | cat >conftest.$ac_ext <<_ACEOF |
| 28140 | /* confdefs.h. */ |
| 28141 | _ACEOF |
| 28142 | cat confdefs.h >>conftest.$ac_ext |
| 28143 | cat >>conftest.$ac_ext <<_ACEOF |
| 28144 | /* end confdefs.h. */ |
| 28145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28146 | /* Override any GCC internal prototype to avoid an error. |
| 28147 | Use char because int might match the return type of a GCC |
| 28148 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28149 | #ifdef __cplusplus |
| 28150 | extern "C" |
| 28151 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28152 | char opendir (); |
| 28153 | int |
| 28154 | main () |
| 28155 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28156 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28157 | ; |
| 28158 | return 0; |
| 28159 | } |
| 28160 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28161 | for ac_lib in '' x; do |
| 28162 | if test -z "$ac_lib"; then |
| 28163 | ac_res="none required" |
| 28164 | else |
| 28165 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28166 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28167 | fi |
| 28168 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28169 | if { (ac_try="$ac_link" |
| 28170 | case "(($ac_try" in |
| 28171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28172 | *) ac_try_echo=$ac_try;; |
| 28173 | esac |
| 28174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28175 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28176 | ac_status=$? |
| 28177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28178 | rm -f conftest.er1 |
| 28179 | cat conftest.err >&5 |
| 28180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28181 | (exit $ac_status); } && |
| 28182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28183 | { (case "(($ac_try" in |
| 28184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28185 | *) ac_try_echo=$ac_try;; |
| 28186 | esac |
| 28187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28188 | (eval "$ac_try") 2>&5 |
| 28189 | ac_status=$? |
| 28190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28191 | (exit $ac_status); }; } && |
| 28192 | { ac_try='test -s conftest$ac_exeext' |
| 28193 | { (case "(($ac_try" in |
| 28194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28195 | *) ac_try_echo=$ac_try;; |
| 28196 | esac |
| 28197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28198 | (eval "$ac_try") 2>&5 |
| 28199 | ac_status=$? |
| 28200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28201 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28202 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28203 | else |
| 28204 | echo "$as_me: failed program was:" >&5 |
| 28205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28207 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28208 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28209 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28210 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28211 | conftest$ac_exeext |
| 28212 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28213 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28214 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28215 | done |
| 28216 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28217 | : |
| 28218 | else |
| 28219 | ac_cv_search_opendir=no |
| 28220 | fi |
| 28221 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28222 | LIBS=$ac_func_search_save_LIBS |
| 28223 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28224 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28225 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28226 | ac_res=$ac_cv_search_opendir |
| 28227 | if test "$ac_res" != no; then |
| 28228 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28229 | |
| 28230 | fi |
| 28231 | |
| 28232 | fi |
| 28233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28234 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 28235 | 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] | 28236 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 28237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28238 | else |
| 28239 | ac_ext=c |
| 28240 | ac_cpp='$CPP $CPPFLAGS' |
| 28241 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28242 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28243 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28244 | |
| 28245 | cat >conftest.$ac_ext <<_ACEOF |
| 28246 | /* confdefs.h. */ |
| 28247 | _ACEOF |
| 28248 | cat confdefs.h >>conftest.$ac_ext |
| 28249 | cat >>conftest.$ac_ext <<_ACEOF |
| 28250 | /* end confdefs.h. */ |
| 28251 | #include <sys/mman.h> |
| 28252 | #include <unistd.h> |
| 28253 | #include <fcntl.h> |
| 28254 | int |
| 28255 | main () |
| 28256 | { |
| 28257 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 28258 | ; |
| 28259 | return 0; |
| 28260 | } |
| 28261 | _ACEOF |
| 28262 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28263 | if { (ac_try="$ac_compile" |
| 28264 | case "(($ac_try" in |
| 28265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28266 | *) ac_try_echo=$ac_try;; |
| 28267 | esac |
| 28268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28269 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28270 | ac_status=$? |
| 28271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28272 | rm -f conftest.er1 |
| 28273 | cat conftest.err >&5 |
| 28274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28275 | (exit $ac_status); } && |
| 28276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28277 | { (case "(($ac_try" in |
| 28278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28279 | *) ac_try_echo=$ac_try;; |
| 28280 | esac |
| 28281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28282 | (eval "$ac_try") 2>&5 |
| 28283 | ac_status=$? |
| 28284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28285 | (exit $ac_status); }; } && |
| 28286 | { ac_try='test -s conftest.$ac_objext' |
| 28287 | { (case "(($ac_try" in |
| 28288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28289 | *) ac_try_echo=$ac_try;; |
| 28290 | esac |
| 28291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28292 | (eval "$ac_try") 2>&5 |
| 28293 | ac_status=$? |
| 28294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28295 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28296 | ac_cv_header_mmap_anon=yes |
| 28297 | else |
| 28298 | echo "$as_me: failed program was:" >&5 |
| 28299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28301 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28302 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28303 | |
| 28304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28305 | ac_ext=c |
| 28306 | ac_cpp='$CPP $CPPFLAGS' |
| 28307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28310 | |
| 28311 | |
| 28312 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28313 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 28314 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28315 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 28316 | |
| 28317 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 28318 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28319 | _ACEOF |
| 28320 | |
| 28321 | fi |
| 28322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28323 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 28324 | 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] | 28325 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 28326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28327 | else |
| 28328 | cat >conftest.$ac_ext <<_ACEOF |
| 28329 | /* confdefs.h. */ |
| 28330 | _ACEOF |
| 28331 | cat confdefs.h >>conftest.$ac_ext |
| 28332 | cat >>conftest.$ac_ext <<_ACEOF |
| 28333 | /* end confdefs.h. */ |
| 28334 | #include <sys/types.h> |
| 28335 | #include <sys/stat.h> |
| 28336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28337 | #if defined S_ISBLK && defined S_IFDIR |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28338 | # if S_ISBLK (S_IFDIR) |
| 28339 | You lose. |
| 28340 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28341 | #endif |
| 28342 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28343 | #if defined S_ISBLK && defined S_IFCHR |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28344 | # if S_ISBLK (S_IFCHR) |
| 28345 | You lose. |
| 28346 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28347 | #endif |
| 28348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28349 | #if defined S_ISLNK && defined S_IFREG |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28350 | # if S_ISLNK (S_IFREG) |
| 28351 | You lose. |
| 28352 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28353 | #endif |
| 28354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28355 | #if defined S_ISSOCK && defined S_IFREG |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28356 | # if S_ISSOCK (S_IFREG) |
| 28357 | You lose. |
| 28358 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28359 | #endif |
| 28360 | |
| 28361 | _ACEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28363 | $EGREP "You lose" >/dev/null 2>&1; then |
| 28364 | ac_cv_header_stat_broken=yes |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28365 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28366 | ac_cv_header_stat_broken=no |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28367 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28368 | rm -f conftest* |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28369 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28370 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28371 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 28372 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28373 | if test $ac_cv_header_stat_broken = yes; then |
| 28374 | |
| 28375 | cat >>confdefs.h <<\_ACEOF |
| 28376 | #define STAT_MACROS_BROKEN 1 |
| 28377 | _ACEOF |
| 28378 | |
| 28379 | fi |
| 28380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28381 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 28382 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28383 | if test "${ac_cv_header_stdc+set}" = set; then |
| 28384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28385 | else |
| 28386 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28387 | /* confdefs.h. */ |
| 28388 | _ACEOF |
| 28389 | cat confdefs.h >>conftest.$ac_ext |
| 28390 | cat >>conftest.$ac_ext <<_ACEOF |
| 28391 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28392 | #include <stdlib.h> |
| 28393 | #include <stdarg.h> |
| 28394 | #include <string.h> |
| 28395 | #include <float.h> |
| 28396 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28397 | int |
| 28398 | main () |
| 28399 | { |
| 28400 | |
| 28401 | ; |
| 28402 | return 0; |
| 28403 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28404 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28405 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28406 | if { (ac_try="$ac_compile" |
| 28407 | case "(($ac_try" in |
| 28408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28409 | *) ac_try_echo=$ac_try;; |
| 28410 | esac |
| 28411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28412 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28413 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28415 | rm -f conftest.er1 |
| 28416 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28418 | (exit $ac_status); } && |
| 28419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28420 | { (case "(($ac_try" in |
| 28421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28422 | *) ac_try_echo=$ac_try;; |
| 28423 | esac |
| 28424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28425 | (eval "$ac_try") 2>&5 |
| 28426 | ac_status=$? |
| 28427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28428 | (exit $ac_status); }; } && |
| 28429 | { ac_try='test -s conftest.$ac_objext' |
| 28430 | { (case "(($ac_try" in |
| 28431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28432 | *) ac_try_echo=$ac_try;; |
| 28433 | esac |
| 28434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28435 | (eval "$ac_try") 2>&5 |
| 28436 | ac_status=$? |
| 28437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28438 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28439 | ac_cv_header_stdc=yes |
| 28440 | else |
| 28441 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28444 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28445 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28446 | |
| 28447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28448 | |
| 28449 | if test $ac_cv_header_stdc = yes; then |
| 28450 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28451 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28452 | /* confdefs.h. */ |
| 28453 | _ACEOF |
| 28454 | cat confdefs.h >>conftest.$ac_ext |
| 28455 | cat >>conftest.$ac_ext <<_ACEOF |
| 28456 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28457 | #include <string.h> |
| 28458 | |
| 28459 | _ACEOF |
| 28460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28461 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28462 | : |
| 28463 | else |
| 28464 | ac_cv_header_stdc=no |
| 28465 | fi |
| 28466 | rm -f conftest* |
| 28467 | |
| 28468 | fi |
| 28469 | |
| 28470 | if test $ac_cv_header_stdc = yes; then |
| 28471 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28472 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28473 | /* confdefs.h. */ |
| 28474 | _ACEOF |
| 28475 | cat confdefs.h >>conftest.$ac_ext |
| 28476 | cat >>conftest.$ac_ext <<_ACEOF |
| 28477 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28478 | #include <stdlib.h> |
| 28479 | |
| 28480 | _ACEOF |
| 28481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28482 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28483 | : |
| 28484 | else |
| 28485 | ac_cv_header_stdc=no |
| 28486 | fi |
| 28487 | rm -f conftest* |
| 28488 | |
| 28489 | fi |
| 28490 | |
| 28491 | if test $ac_cv_header_stdc = yes; then |
| 28492 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28493 | if test "$cross_compiling" = yes; then |
| 28494 | : |
| 28495 | else |
| 28496 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28497 | /* confdefs.h. */ |
| 28498 | _ACEOF |
| 28499 | cat confdefs.h >>conftest.$ac_ext |
| 28500 | cat >>conftest.$ac_ext <<_ACEOF |
| 28501 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28502 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28503 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28504 | #if ((' ' & 0x0FF) == 0x020) |
| 28505 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28506 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28507 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28508 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28509 | (('a' <= (c) && (c) <= 'i') \ |
| 28510 | || ('j' <= (c) && (c) <= 'r') \ |
| 28511 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28512 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28513 | #endif |
| 28514 | |
| 28515 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28516 | int |
| 28517 | main () |
| 28518 | { |
| 28519 | int i; |
| 28520 | for (i = 0; i < 256; i++) |
| 28521 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28522 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28523 | return 2; |
| 28524 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28525 | } |
| 28526 | _ACEOF |
| 28527 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28528 | if { (ac_try="$ac_link" |
| 28529 | case "(($ac_try" in |
| 28530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28531 | *) ac_try_echo=$ac_try;; |
| 28532 | esac |
| 28533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28534 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28535 | ac_status=$? |
| 28536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28537 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28538 | { (case "(($ac_try" in |
| 28539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28540 | *) ac_try_echo=$ac_try;; |
| 28541 | esac |
| 28542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28543 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28544 | ac_status=$? |
| 28545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28546 | (exit $ac_status); }; }; then |
| 28547 | : |
| 28548 | else |
| 28549 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28550 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28552 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28553 | ( exit $ac_status ) |
| 28554 | ac_cv_header_stdc=no |
| 28555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28556 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28557 | fi |
| 28558 | |
| 28559 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28560 | fi |
| 28561 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28562 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28563 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28564 | if test $ac_cv_header_stdc = yes; then |
| 28565 | |
| 28566 | cat >>confdefs.h <<\_ACEOF |
| 28567 | #define STDC_HEADERS 1 |
| 28568 | _ACEOF |
| 28569 | |
| 28570 | fi |
| 28571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28572 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28573 | 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] | 28574 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28576 | else |
| 28577 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28578 | /* confdefs.h. */ |
| 28579 | _ACEOF |
| 28580 | cat confdefs.h >>conftest.$ac_ext |
| 28581 | cat >>conftest.$ac_ext <<_ACEOF |
| 28582 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28583 | #include <sys/types.h> |
| 28584 | #include <sys/wait.h> |
| 28585 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28586 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28587 | #endif |
| 28588 | #ifndef WIFEXITED |
| 28589 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28590 | #endif |
| 28591 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28592 | int |
| 28593 | main () |
| 28594 | { |
| 28595 | int s; |
| 28596 | wait (&s); |
| 28597 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28598 | ; |
| 28599 | return 0; |
| 28600 | } |
| 28601 | _ACEOF |
| 28602 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28603 | if { (ac_try="$ac_compile" |
| 28604 | case "(($ac_try" in |
| 28605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28606 | *) ac_try_echo=$ac_try;; |
| 28607 | esac |
| 28608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28609 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28610 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28612 | rm -f conftest.er1 |
| 28613 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28615 | (exit $ac_status); } && |
| 28616 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28617 | { (case "(($ac_try" in |
| 28618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28619 | *) ac_try_echo=$ac_try;; |
| 28620 | esac |
| 28621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28622 | (eval "$ac_try") 2>&5 |
| 28623 | ac_status=$? |
| 28624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28625 | (exit $ac_status); }; } && |
| 28626 | { ac_try='test -s conftest.$ac_objext' |
| 28627 | { (case "(($ac_try" in |
| 28628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28629 | *) ac_try_echo=$ac_try;; |
| 28630 | esac |
| 28631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28632 | (eval "$ac_try") 2>&5 |
| 28633 | ac_status=$? |
| 28634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28635 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28636 | ac_cv_header_sys_wait_h=yes |
| 28637 | else |
| 28638 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28640 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28641 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28642 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28643 | |
| 28644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28645 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28646 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28647 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28648 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28649 | |
| 28650 | cat >>confdefs.h <<\_ACEOF |
| 28651 | #define HAVE_SYS_WAIT_H 1 |
| 28652 | _ACEOF |
| 28653 | |
| 28654 | fi |
| 28655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28656 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28657 | 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] | 28658 | if test "${ac_cv_header_time+set}" = set; then |
| 28659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28660 | else |
| 28661 | cat >conftest.$ac_ext <<_ACEOF |
| 28662 | /* confdefs.h. */ |
| 28663 | _ACEOF |
| 28664 | cat confdefs.h >>conftest.$ac_ext |
| 28665 | cat >>conftest.$ac_ext <<_ACEOF |
| 28666 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28667 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28668 | #include <sys/time.h> |
| 28669 | #include <time.h> |
| 28670 | |
| 28671 | int |
| 28672 | main () |
| 28673 | { |
| 28674 | if ((struct tm *) 0) |
| 28675 | return 0; |
| 28676 | ; |
| 28677 | return 0; |
| 28678 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28679 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28680 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28681 | if { (ac_try="$ac_compile" |
| 28682 | case "(($ac_try" in |
| 28683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28684 | *) ac_try_echo=$ac_try;; |
| 28685 | esac |
| 28686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28687 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28688 | ac_status=$? |
| 28689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28690 | rm -f conftest.er1 |
| 28691 | cat conftest.err >&5 |
| 28692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28693 | (exit $ac_status); } && |
| 28694 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28695 | { (case "(($ac_try" in |
| 28696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28697 | *) ac_try_echo=$ac_try;; |
| 28698 | esac |
| 28699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28700 | (eval "$ac_try") 2>&5 |
| 28701 | ac_status=$? |
| 28702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28703 | (exit $ac_status); }; } && |
| 28704 | { ac_try='test -s conftest.$ac_objext' |
| 28705 | { (case "(($ac_try" in |
| 28706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28707 | *) ac_try_echo=$ac_try;; |
| 28708 | esac |
| 28709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28710 | (eval "$ac_try") 2>&5 |
| 28711 | ac_status=$? |
| 28712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28713 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28714 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28715 | else |
| 28716 | echo "$as_me: failed program was:" >&5 |
| 28717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28718 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28719 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28720 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28721 | |
| 28722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28723 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28724 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28725 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28726 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28727 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28728 | cat >>confdefs.h <<\_ACEOF |
| 28729 | #define TIME_WITH_SYS_TIME 1 |
| 28730 | _ACEOF |
| 28731 | |
| 28732 | fi |
| 28733 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28734 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28735 | |
| 28736 | |
| 28737 | |
| 28738 | |
| 28739 | |
| 28740 | |
| 28741 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28742 | do |
| 28743 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28744 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28745 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28746 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28747 | 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] | 28748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28749 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28750 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28751 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28752 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28753 | else |
| 28754 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28755 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28756 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28757 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28758 | /* confdefs.h. */ |
| 28759 | _ACEOF |
| 28760 | cat confdefs.h >>conftest.$ac_ext |
| 28761 | cat >>conftest.$ac_ext <<_ACEOF |
| 28762 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28763 | $ac_includes_default |
| 28764 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28765 | _ACEOF |
| 28766 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28767 | if { (ac_try="$ac_compile" |
| 28768 | case "(($ac_try" in |
| 28769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28770 | *) ac_try_echo=$ac_try;; |
| 28771 | esac |
| 28772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28773 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28774 | ac_status=$? |
| 28775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28776 | rm -f conftest.er1 |
| 28777 | cat conftest.err >&5 |
| 28778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28779 | (exit $ac_status); } && |
| 28780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28781 | { (case "(($ac_try" in |
| 28782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28783 | *) ac_try_echo=$ac_try;; |
| 28784 | esac |
| 28785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28786 | (eval "$ac_try") 2>&5 |
| 28787 | ac_status=$? |
| 28788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28789 | (exit $ac_status); }; } && |
| 28790 | { ac_try='test -s conftest.$ac_objext' |
| 28791 | { (case "(($ac_try" in |
| 28792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28793 | *) ac_try_echo=$ac_try;; |
| 28794 | esac |
| 28795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28796 | (eval "$ac_try") 2>&5 |
| 28797 | ac_status=$? |
| 28798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28799 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28800 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28801 | else |
| 28802 | echo "$as_me: failed program was:" >&5 |
| 28803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28805 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28806 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28807 | |
| 28808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28809 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28810 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28811 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28812 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28813 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28814 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28815 | cat >conftest.$ac_ext <<_ACEOF |
| 28816 | /* confdefs.h. */ |
| 28817 | _ACEOF |
| 28818 | cat confdefs.h >>conftest.$ac_ext |
| 28819 | cat >>conftest.$ac_ext <<_ACEOF |
| 28820 | /* end confdefs.h. */ |
| 28821 | #include <$ac_header> |
| 28822 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28823 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28824 | case "(($ac_try" in |
| 28825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28826 | *) ac_try_echo=$ac_try;; |
| 28827 | esac |
| 28828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28829 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28830 | ac_status=$? |
| 28831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28832 | rm -f conftest.er1 |
| 28833 | cat conftest.err >&5 |
| 28834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28835 | (exit $ac_status); } >/dev/null; then |
| 28836 | if test -s conftest.err; then |
| 28837 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28838 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28839 | else |
| 28840 | ac_cpp_err= |
| 28841 | fi |
| 28842 | else |
| 28843 | ac_cpp_err=yes |
| 28844 | fi |
| 28845 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28846 | ac_header_preproc=yes |
| 28847 | else |
| 28848 | echo "$as_me: failed program was:" >&5 |
| 28849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28850 | |
| 28851 | ac_header_preproc=no |
| 28852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28853 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28854 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28855 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28856 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28857 | |
| 28858 | # So? What about this header? |
| 28859 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28860 | yes:no: ) |
| 28861 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28862 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28863 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28864 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28865 | ac_header_preproc=yes |
| 28866 | ;; |
| 28867 | no:yes:* ) |
| 28868 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28869 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28870 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28871 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28872 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28873 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28874 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28875 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28876 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28877 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28878 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28879 | 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] | 28880 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28881 | ## ----------------------------------- ## |
| 28882 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28883 | ## ----------------------------------- ## |
| 28884 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28885 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28886 | ;; |
| 28887 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28888 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28890 | 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] | 28891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28892 | else |
| 28893 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28894 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28895 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28897 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28898 | |
| 28899 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28900 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28901 | cat >>confdefs.h <<_ACEOF |
| 28902 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28903 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28904 | |
| 28905 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28906 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28907 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28908 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28909 | |
| 28910 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28911 | |
| 28912 | |
| 28913 | |
| 28914 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28915 | 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] | 28916 | do |
| 28917 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28919 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28921 | 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] | 28922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28923 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28924 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28925 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28926 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28927 | else |
| 28928 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28929 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28930 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28931 | cat >conftest.$ac_ext <<_ACEOF |
| 28932 | /* confdefs.h. */ |
| 28933 | _ACEOF |
| 28934 | cat confdefs.h >>conftest.$ac_ext |
| 28935 | cat >>conftest.$ac_ext <<_ACEOF |
| 28936 | /* end confdefs.h. */ |
| 28937 | $ac_includes_default |
| 28938 | #include <$ac_header> |
| 28939 | _ACEOF |
| 28940 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28941 | if { (ac_try="$ac_compile" |
| 28942 | case "(($ac_try" in |
| 28943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28944 | *) ac_try_echo=$ac_try;; |
| 28945 | esac |
| 28946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28947 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28948 | ac_status=$? |
| 28949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28950 | rm -f conftest.er1 |
| 28951 | cat conftest.err >&5 |
| 28952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28953 | (exit $ac_status); } && |
| 28954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28955 | { (case "(($ac_try" in |
| 28956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28957 | *) ac_try_echo=$ac_try;; |
| 28958 | esac |
| 28959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28960 | (eval "$ac_try") 2>&5 |
| 28961 | ac_status=$? |
| 28962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28963 | (exit $ac_status); }; } && |
| 28964 | { ac_try='test -s conftest.$ac_objext' |
| 28965 | { (case "(($ac_try" in |
| 28966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28967 | *) ac_try_echo=$ac_try;; |
| 28968 | esac |
| 28969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28970 | (eval "$ac_try") 2>&5 |
| 28971 | ac_status=$? |
| 28972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28973 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28974 | ac_header_compiler=yes |
| 28975 | else |
| 28976 | echo "$as_me: failed program was:" >&5 |
| 28977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28978 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28979 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28980 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28981 | |
| 28982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28983 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28984 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28985 | |
| 28986 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28987 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28988 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28989 | cat >conftest.$ac_ext <<_ACEOF |
| 28990 | /* confdefs.h. */ |
| 28991 | _ACEOF |
| 28992 | cat confdefs.h >>conftest.$ac_ext |
| 28993 | cat >>conftest.$ac_ext <<_ACEOF |
| 28994 | /* end confdefs.h. */ |
| 28995 | #include <$ac_header> |
| 28996 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28997 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28998 | case "(($ac_try" in |
| 28999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29000 | *) ac_try_echo=$ac_try;; |
| 29001 | esac |
| 29002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29003 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29004 | ac_status=$? |
| 29005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29006 | rm -f conftest.er1 |
| 29007 | cat conftest.err >&5 |
| 29008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29009 | (exit $ac_status); } >/dev/null; then |
| 29010 | if test -s conftest.err; then |
| 29011 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29012 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29013 | else |
| 29014 | ac_cpp_err= |
| 29015 | fi |
| 29016 | else |
| 29017 | ac_cpp_err=yes |
| 29018 | fi |
| 29019 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29020 | ac_header_preproc=yes |
| 29021 | else |
| 29022 | echo "$as_me: failed program was:" >&5 |
| 29023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29024 | |
| 29025 | ac_header_preproc=no |
| 29026 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29027 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29028 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29029 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29030 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29031 | |
| 29032 | # So? What about this header? |
| 29033 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29034 | yes:no: ) |
| 29035 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29036 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29038 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29039 | ac_header_preproc=yes |
| 29040 | ;; |
| 29041 | no:yes:* ) |
| 29042 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29043 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29044 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29045 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29046 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29047 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29048 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29049 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29052 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29053 | 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] | 29054 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29055 | ## ----------------------------------- ## |
| 29056 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29057 | ## ----------------------------------- ## |
| 29058 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29059 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29060 | ;; |
| 29061 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29062 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29064 | 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] | 29065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29066 | else |
| 29067 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29068 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29069 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29070 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29071 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29072 | |
| 29073 | fi |
| 29074 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29075 | cat >>confdefs.h <<_ACEOF |
| 29076 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29077 | _ACEOF |
| 29078 | |
| 29079 | fi |
| 29080 | |
| 29081 | done |
| 29082 | |
| 29083 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29084 | for ac_header in windows.h |
| 29085 | do |
| 29086 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29087 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29088 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29090 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29092 | fi |
| 29093 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29094 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29095 | echo "${ECHO_T}$ac_res" >&6; } |
| 29096 | else |
| 29097 | # Is the header compilable? |
| 29098 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29099 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 29100 | cat >conftest.$ac_ext <<_ACEOF |
| 29101 | /* confdefs.h. */ |
| 29102 | _ACEOF |
| 29103 | cat confdefs.h >>conftest.$ac_ext |
| 29104 | cat >>conftest.$ac_ext <<_ACEOF |
| 29105 | /* end confdefs.h. */ |
| 29106 | $ac_includes_default |
| 29107 | #include <$ac_header> |
| 29108 | _ACEOF |
| 29109 | rm -f conftest.$ac_objext |
| 29110 | if { (ac_try="$ac_compile" |
| 29111 | case "(($ac_try" in |
| 29112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29113 | *) ac_try_echo=$ac_try;; |
| 29114 | esac |
| 29115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29116 | (eval "$ac_compile") 2>conftest.er1 |
| 29117 | ac_status=$? |
| 29118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29119 | rm -f conftest.er1 |
| 29120 | cat conftest.err >&5 |
| 29121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29122 | (exit $ac_status); } && |
| 29123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29124 | { (case "(($ac_try" in |
| 29125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29126 | *) ac_try_echo=$ac_try;; |
| 29127 | esac |
| 29128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29129 | (eval "$ac_try") 2>&5 |
| 29130 | ac_status=$? |
| 29131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29132 | (exit $ac_status); }; } && |
| 29133 | { ac_try='test -s conftest.$ac_objext' |
| 29134 | { (case "(($ac_try" in |
| 29135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29136 | *) ac_try_echo=$ac_try;; |
| 29137 | esac |
| 29138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29139 | (eval "$ac_try") 2>&5 |
| 29140 | ac_status=$? |
| 29141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29142 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29143 | ac_header_compiler=yes |
| 29144 | else |
| 29145 | echo "$as_me: failed program was:" >&5 |
| 29146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29147 | |
| 29148 | ac_header_compiler=no |
| 29149 | fi |
| 29150 | |
| 29151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29152 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29153 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 29154 | |
| 29155 | # Is the header present? |
| 29156 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29157 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 29158 | cat >conftest.$ac_ext <<_ACEOF |
| 29159 | /* confdefs.h. */ |
| 29160 | _ACEOF |
| 29161 | cat confdefs.h >>conftest.$ac_ext |
| 29162 | cat >>conftest.$ac_ext <<_ACEOF |
| 29163 | /* end confdefs.h. */ |
| 29164 | #include <$ac_header> |
| 29165 | _ACEOF |
| 29166 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29167 | case "(($ac_try" in |
| 29168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29169 | *) ac_try_echo=$ac_try;; |
| 29170 | esac |
| 29171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29172 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 29173 | ac_status=$? |
| 29174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29175 | rm -f conftest.er1 |
| 29176 | cat conftest.err >&5 |
| 29177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29178 | (exit $ac_status); } >/dev/null; then |
| 29179 | if test -s conftest.err; then |
| 29180 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29181 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29182 | else |
| 29183 | ac_cpp_err= |
| 29184 | fi |
| 29185 | else |
| 29186 | ac_cpp_err=yes |
| 29187 | fi |
| 29188 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29189 | ac_header_preproc=yes |
| 29190 | else |
| 29191 | echo "$as_me: failed program was:" >&5 |
| 29192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29193 | |
| 29194 | ac_header_preproc=no |
| 29195 | fi |
| 29196 | |
| 29197 | rm -f conftest.err conftest.$ac_ext |
| 29198 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29199 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 29200 | |
| 29201 | # So? What about this header? |
| 29202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29203 | yes:no: ) |
| 29204 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29205 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29207 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29208 | ac_header_preproc=yes |
| 29209 | ;; |
| 29210 | no:yes:* ) |
| 29211 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29212 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29213 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29214 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29215 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29216 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29217 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29218 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29219 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29220 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29221 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29222 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 29223 | ( cat <<\_ASBOX |
| 29224 | ## ----------------------------------- ## |
| 29225 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29226 | ## ----------------------------------- ## |
| 29227 | _ASBOX |
| 29228 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29229 | ;; |
| 29230 | esac |
| 29231 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29235 | else |
| 29236 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29237 | fi |
| 29238 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29239 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29240 | echo "${ECHO_T}$ac_res" >&6; } |
| 29241 | |
| 29242 | fi |
| 29243 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29244 | cat >>confdefs.h <<_ACEOF |
| 29245 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29246 | _ACEOF |
| 29247 | |
| 29248 | fi |
| 29249 | |
| 29250 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29251 | |
| 29252 | |
| 29253 | |
| 29254 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29255 | |
| 29256 | 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] | 29257 | do |
| 29258 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29259 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29260 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29261 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29262 | 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] | 29263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29264 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29265 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29266 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29267 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29268 | else |
| 29269 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29270 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29271 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29272 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29273 | /* confdefs.h. */ |
| 29274 | _ACEOF |
| 29275 | cat confdefs.h >>conftest.$ac_ext |
| 29276 | cat >>conftest.$ac_ext <<_ACEOF |
| 29277 | /* end confdefs.h. */ |
| 29278 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29279 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29280 | _ACEOF |
| 29281 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29282 | if { (ac_try="$ac_compile" |
| 29283 | case "(($ac_try" in |
| 29284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29285 | *) ac_try_echo=$ac_try;; |
| 29286 | esac |
| 29287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29288 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29289 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29291 | rm -f conftest.er1 |
| 29292 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29294 | (exit $ac_status); } && |
| 29295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29296 | { (case "(($ac_try" in |
| 29297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29298 | *) ac_try_echo=$ac_try;; |
| 29299 | esac |
| 29300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29301 | (eval "$ac_try") 2>&5 |
| 29302 | ac_status=$? |
| 29303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29304 | (exit $ac_status); }; } && |
| 29305 | { ac_try='test -s conftest.$ac_objext' |
| 29306 | { (case "(($ac_try" in |
| 29307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29308 | *) ac_try_echo=$ac_try;; |
| 29309 | esac |
| 29310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29311 | (eval "$ac_try") 2>&5 |
| 29312 | ac_status=$? |
| 29313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29314 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29315 | ac_header_compiler=yes |
| 29316 | else |
| 29317 | echo "$as_me: failed program was:" >&5 |
| 29318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29320 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29321 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29322 | |
| 29323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29324 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29325 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29326 | |
| 29327 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29328 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29329 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29330 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29331 | /* confdefs.h. */ |
| 29332 | _ACEOF |
| 29333 | cat confdefs.h >>conftest.$ac_ext |
| 29334 | cat >>conftest.$ac_ext <<_ACEOF |
| 29335 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29336 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29337 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29338 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29339 | case "(($ac_try" in |
| 29340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29341 | *) ac_try_echo=$ac_try;; |
| 29342 | esac |
| 29343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29344 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29345 | ac_status=$? |
| 29346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29347 | rm -f conftest.er1 |
| 29348 | cat conftest.err >&5 |
| 29349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29350 | (exit $ac_status); } >/dev/null; then |
| 29351 | if test -s conftest.err; then |
| 29352 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29353 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29354 | else |
| 29355 | ac_cpp_err= |
| 29356 | fi |
| 29357 | else |
| 29358 | ac_cpp_err=yes |
| 29359 | fi |
| 29360 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29361 | ac_header_preproc=yes |
| 29362 | else |
| 29363 | echo "$as_me: failed program was:" >&5 |
| 29364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29365 | |
| 29366 | ac_header_preproc=no |
| 29367 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29368 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29369 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29370 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29371 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29372 | |
| 29373 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29374 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29375 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29376 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29377 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29378 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29379 | 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] | 29380 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29381 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29382 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29383 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29384 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29385 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29386 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29387 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29388 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29389 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29390 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29391 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29392 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29393 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29394 | 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] | 29395 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29396 | ## ----------------------------------- ## |
| 29397 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29398 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29399 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29400 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29401 | ;; |
| 29402 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29403 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29404 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29405 | 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] | 29406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29407 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29408 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29409 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29410 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29411 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29412 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29413 | |
| 29414 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29415 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29416 | cat >>confdefs.h <<_ACEOF |
| 29417 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29418 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29419 | |
| 29420 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29421 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29422 | done |
| 29423 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29424 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29425 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 29426 | |
| 29427 | 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] | 29428 | do |
| 29429 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29430 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29431 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29433 | 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] | 29434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29435 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29436 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29437 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29438 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29439 | else |
| 29440 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29441 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29442 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29443 | cat >conftest.$ac_ext <<_ACEOF |
| 29444 | /* confdefs.h. */ |
| 29445 | _ACEOF |
| 29446 | cat confdefs.h >>conftest.$ac_ext |
| 29447 | cat >>conftest.$ac_ext <<_ACEOF |
| 29448 | /* end confdefs.h. */ |
| 29449 | $ac_includes_default |
| 29450 | #include <$ac_header> |
| 29451 | _ACEOF |
| 29452 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29453 | if { (ac_try="$ac_compile" |
| 29454 | case "(($ac_try" in |
| 29455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29456 | *) ac_try_echo=$ac_try;; |
| 29457 | esac |
| 29458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29459 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29460 | ac_status=$? |
| 29461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29462 | rm -f conftest.er1 |
| 29463 | cat conftest.err >&5 |
| 29464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29465 | (exit $ac_status); } && |
| 29466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29467 | { (case "(($ac_try" in |
| 29468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29469 | *) ac_try_echo=$ac_try;; |
| 29470 | esac |
| 29471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29472 | (eval "$ac_try") 2>&5 |
| 29473 | ac_status=$? |
| 29474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29475 | (exit $ac_status); }; } && |
| 29476 | { ac_try='test -s conftest.$ac_objext' |
| 29477 | { (case "(($ac_try" in |
| 29478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29479 | *) ac_try_echo=$ac_try;; |
| 29480 | esac |
| 29481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29482 | (eval "$ac_try") 2>&5 |
| 29483 | ac_status=$? |
| 29484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29485 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29486 | ac_header_compiler=yes |
| 29487 | else |
| 29488 | echo "$as_me: failed program was:" >&5 |
| 29489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29491 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29492 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29493 | |
| 29494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29495 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29496 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29497 | |
| 29498 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29499 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29500 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29501 | cat >conftest.$ac_ext <<_ACEOF |
| 29502 | /* confdefs.h. */ |
| 29503 | _ACEOF |
| 29504 | cat confdefs.h >>conftest.$ac_ext |
| 29505 | cat >>conftest.$ac_ext <<_ACEOF |
| 29506 | /* end confdefs.h. */ |
| 29507 | #include <$ac_header> |
| 29508 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29509 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29510 | case "(($ac_try" in |
| 29511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29512 | *) ac_try_echo=$ac_try;; |
| 29513 | esac |
| 29514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29515 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29516 | ac_status=$? |
| 29517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29518 | rm -f conftest.er1 |
| 29519 | cat conftest.err >&5 |
| 29520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29521 | (exit $ac_status); } >/dev/null; then |
| 29522 | if test -s conftest.err; then |
| 29523 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29524 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29525 | else |
| 29526 | ac_cpp_err= |
| 29527 | fi |
| 29528 | else |
| 29529 | ac_cpp_err=yes |
| 29530 | fi |
| 29531 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29532 | ac_header_preproc=yes |
| 29533 | else |
| 29534 | echo "$as_me: failed program was:" >&5 |
| 29535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29536 | |
| 29537 | ac_header_preproc=no |
| 29538 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29539 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29540 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29541 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29542 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29543 | |
| 29544 | # So? What about this header? |
| 29545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29546 | yes:no: ) |
| 29547 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29548 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29550 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29551 | ac_header_preproc=yes |
| 29552 | ;; |
| 29553 | no:yes:* ) |
| 29554 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29555 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29556 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29557 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29558 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29559 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29560 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29561 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29563 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29564 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29565 | 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] | 29566 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29567 | ## ----------------------------------- ## |
| 29568 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29569 | ## ----------------------------------- ## |
| 29570 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29571 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29572 | ;; |
| 29573 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29574 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29576 | 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] | 29577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29578 | else |
| 29579 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29580 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29581 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29582 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29583 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29584 | |
| 29585 | fi |
| 29586 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29587 | cat >>confdefs.h <<_ACEOF |
| 29588 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29589 | _ACEOF |
| 29590 | |
| 29591 | fi |
| 29592 | |
| 29593 | done |
| 29594 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29595 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29596 | |
| 29597 | for ac_header in pthread.h |
| 29598 | do |
| 29599 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29600 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29601 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29603 | 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] | 29604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29605 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29606 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29607 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29608 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29609 | else |
| 29610 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29611 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29612 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29613 | cat >conftest.$ac_ext <<_ACEOF |
| 29614 | /* confdefs.h. */ |
| 29615 | _ACEOF |
| 29616 | cat confdefs.h >>conftest.$ac_ext |
| 29617 | cat >>conftest.$ac_ext <<_ACEOF |
| 29618 | /* end confdefs.h. */ |
| 29619 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29620 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29621 | _ACEOF |
| 29622 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29623 | if { (ac_try="$ac_compile" |
| 29624 | case "(($ac_try" in |
| 29625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29626 | *) ac_try_echo=$ac_try;; |
| 29627 | esac |
| 29628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29629 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29630 | ac_status=$? |
| 29631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29632 | rm -f conftest.er1 |
| 29633 | cat conftest.err >&5 |
| 29634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29635 | (exit $ac_status); } && |
| 29636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29637 | { (case "(($ac_try" in |
| 29638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29639 | *) ac_try_echo=$ac_try;; |
| 29640 | esac |
| 29641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29642 | (eval "$ac_try") 2>&5 |
| 29643 | ac_status=$? |
| 29644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29645 | (exit $ac_status); }; } && |
| 29646 | { ac_try='test -s conftest.$ac_objext' |
| 29647 | { (case "(($ac_try" in |
| 29648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29649 | *) ac_try_echo=$ac_try;; |
| 29650 | esac |
| 29651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29652 | (eval "$ac_try") 2>&5 |
| 29653 | ac_status=$? |
| 29654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29655 | (exit $ac_status); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29656 | ac_header_compiler=yes |
| 29657 | else |
| 29658 | echo "$as_me: failed program was:" >&5 |
| 29659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29661 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29662 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29663 | |
| 29664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29665 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29666 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29667 | |
| 29668 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29669 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29670 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29671 | cat >conftest.$ac_ext <<_ACEOF |
| 29672 | /* confdefs.h. */ |
| 29673 | _ACEOF |
| 29674 | cat confdefs.h >>conftest.$ac_ext |
| 29675 | cat >>conftest.$ac_ext <<_ACEOF |
| 29676 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29677 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29678 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29679 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29680 | case "(($ac_try" in |
| 29681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29682 | *) ac_try_echo=$ac_try;; |
| 29683 | esac |
| 29684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29685 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29686 | ac_status=$? |
| 29687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29688 | rm -f conftest.er1 |
| 29689 | cat conftest.err >&5 |
| 29690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29691 | (exit $ac_status); } >/dev/null; then |
| 29692 | if test -s conftest.err; then |
| 29693 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29694 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29695 | else |
| 29696 | ac_cpp_err= |
| 29697 | fi |
| 29698 | else |
| 29699 | ac_cpp_err=yes |
| 29700 | fi |
| 29701 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29702 | ac_header_preproc=yes |
| 29703 | else |
| 29704 | echo "$as_me: failed program was:" >&5 |
| 29705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29706 | |
| 29707 | ac_header_preproc=no |
| 29708 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29709 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29710 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29711 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29712 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29713 | |
| 29714 | # So? What about this header? |
| 29715 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29716 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29717 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29718 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29720 | 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] | 29721 | ac_header_preproc=yes |
| 29722 | ;; |
| 29723 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29724 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29725 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29726 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29727 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29728 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29729 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29730 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29731 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29732 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29733 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29734 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29735 | 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] | 29736 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29737 | ## ----------------------------------- ## |
| 29738 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29739 | ## ----------------------------------- ## |
| 29740 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29741 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29742 | ;; |
| 29743 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29744 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29745 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29746 | 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] | 29747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29748 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29749 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29750 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29751 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29752 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29753 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29754 | |
| 29755 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29756 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29757 | cat >>confdefs.h <<_ACEOF |
| 29758 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29759 | _ACEOF |
| 29760 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29761 | |
| 29762 | else |
| 29763 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29764 | |
| 29765 | fi |
| 29766 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29767 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29768 | |
| 29769 | else |
| 29770 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29771 | |
| 29772 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29773 | |
| 29774 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29775 | |
| 29776 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 29777 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 29778 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 29779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29780 | else |
| 29781 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29782 | ac_ext=cpp |
| 29783 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29784 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29785 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29786 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29787 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29788 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29789 | if test "$cross_compiling" = yes; then |
| 29790 | ac_cv_huge_val_sanity=yes |
| 29791 | else |
| 29792 | cat >conftest.$ac_ext <<_ACEOF |
| 29793 | /* confdefs.h. */ |
| 29794 | _ACEOF |
| 29795 | cat confdefs.h >>conftest.$ac_ext |
| 29796 | cat >>conftest.$ac_ext <<_ACEOF |
| 29797 | /* end confdefs.h. */ |
| 29798 | #include <math.h> |
| 29799 | int |
| 29800 | main () |
| 29801 | { |
| 29802 | double x = HUGE_VAL; return x != x; |
| 29803 | ; |
| 29804 | return 0; |
| 29805 | } |
| 29806 | _ACEOF |
| 29807 | rm -f conftest$ac_exeext |
| 29808 | if { (ac_try="$ac_link" |
| 29809 | case "(($ac_try" in |
| 29810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29811 | *) ac_try_echo=$ac_try;; |
| 29812 | esac |
| 29813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29814 | (eval "$ac_link") 2>&5 |
| 29815 | ac_status=$? |
| 29816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29817 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29818 | { (case "(($ac_try" in |
| 29819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29820 | *) ac_try_echo=$ac_try;; |
| 29821 | esac |
| 29822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29823 | (eval "$ac_try") 2>&5 |
| 29824 | ac_status=$? |
| 29825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29826 | (exit $ac_status); }; }; then |
| 29827 | ac_cv_huge_val_sanity=yes |
| 29828 | else |
| 29829 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29830 | echo "$as_me: failed program was:" >&5 |
| 29831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29832 | |
| 29833 | ( exit $ac_status ) |
| 29834 | ac_cv_huge_val_sanity=no |
| 29835 | fi |
| 29836 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29837 | fi |
| 29838 | |
| 29839 | |
| 29840 | ac_ext=c |
| 29841 | ac_cpp='$CPP $CPPFLAGS' |
| 29842 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29843 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29844 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29845 | |
| 29846 | |
| 29847 | fi |
| 29848 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 29849 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 29850 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 29851 | |
| 29852 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29853 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 29854 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29855 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 29856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29857 | else |
| 29858 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29859 | /* confdefs.h. */ |
| 29860 | _ACEOF |
| 29861 | cat confdefs.h >>conftest.$ac_ext |
| 29862 | cat >>conftest.$ac_ext <<_ACEOF |
| 29863 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29864 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29865 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29866 | int |
| 29867 | main () |
| 29868 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29869 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29870 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29871 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29872 | return 0; |
| 29873 | ; |
| 29874 | return 0; |
| 29875 | } |
| 29876 | _ACEOF |
| 29877 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29878 | if { (ac_try="$ac_compile" |
| 29879 | case "(($ac_try" in |
| 29880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29881 | *) ac_try_echo=$ac_try;; |
| 29882 | esac |
| 29883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29884 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29885 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29887 | rm -f conftest.er1 |
| 29888 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29890 | (exit $ac_status); } && |
| 29891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29892 | { (case "(($ac_try" in |
| 29893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29894 | *) ac_try_echo=$ac_try;; |
| 29895 | esac |
| 29896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29897 | (eval "$ac_try") 2>&5 |
| 29898 | ac_status=$? |
| 29899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29900 | (exit $ac_status); }; } && |
| 29901 | { ac_try='test -s conftest.$ac_objext' |
| 29902 | { (case "(($ac_try" in |
| 29903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29904 | *) ac_try_echo=$ac_try;; |
| 29905 | esac |
| 29906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29907 | (eval "$ac_try") 2>&5 |
| 29908 | ac_status=$? |
| 29909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29910 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29911 | ac_cv_type_pid_t=yes |
| 29912 | else |
| 29913 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29916 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29917 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29918 | |
| 29919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29920 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29921 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 29922 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29923 | if test $ac_cv_type_pid_t = yes; then |
| 29924 | : |
| 29925 | else |
| 29926 | |
| 29927 | cat >>confdefs.h <<_ACEOF |
| 29928 | #define pid_t int |
| 29929 | _ACEOF |
| 29930 | |
| 29931 | fi |
| 29932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29933 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 29934 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29935 | if test "${ac_cv_type_size_t+set}" = set; then |
| 29936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29937 | else |
| 29938 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29939 | /* confdefs.h. */ |
| 29940 | _ACEOF |
| 29941 | cat confdefs.h >>conftest.$ac_ext |
| 29942 | cat >>conftest.$ac_ext <<_ACEOF |
| 29943 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29944 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29945 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29946 | int |
| 29947 | main () |
| 29948 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29949 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29950 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29951 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29952 | return 0; |
| 29953 | ; |
| 29954 | return 0; |
| 29955 | } |
| 29956 | _ACEOF |
| 29957 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29958 | if { (ac_try="$ac_compile" |
| 29959 | case "(($ac_try" in |
| 29960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29961 | *) ac_try_echo=$ac_try;; |
| 29962 | esac |
| 29963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29964 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29965 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29967 | rm -f conftest.er1 |
| 29968 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29970 | (exit $ac_status); } && |
| 29971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29972 | { (case "(($ac_try" in |
| 29973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29974 | *) ac_try_echo=$ac_try;; |
| 29975 | esac |
| 29976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29977 | (eval "$ac_try") 2>&5 |
| 29978 | ac_status=$? |
| 29979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29980 | (exit $ac_status); }; } && |
| 29981 | { ac_try='test -s conftest.$ac_objext' |
| 29982 | { (case "(($ac_try" in |
| 29983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29984 | *) ac_try_echo=$ac_try;; |
| 29985 | esac |
| 29986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29987 | (eval "$ac_try") 2>&5 |
| 29988 | ac_status=$? |
| 29989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29990 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29991 | ac_cv_type_size_t=yes |
| 29992 | else |
| 29993 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29996 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29997 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29998 | |
| 29999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30000 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30001 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 30002 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30003 | if test $ac_cv_type_size_t = yes; then |
| 30004 | : |
| 30005 | else |
| 30006 | |
| 30007 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30008 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30009 | _ACEOF |
| 30010 | |
| 30011 | fi |
| 30012 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30013 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 30014 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30015 | if test "${ac_cv_type_signal+set}" = set; then |
| 30016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30017 | else |
| 30018 | cat >conftest.$ac_ext <<_ACEOF |
| 30019 | /* confdefs.h. */ |
| 30020 | _ACEOF |
| 30021 | cat confdefs.h >>conftest.$ac_ext |
| 30022 | cat >>conftest.$ac_ext <<_ACEOF |
| 30023 | /* end confdefs.h. */ |
| 30024 | #include <sys/types.h> |
| 30025 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30026 | |
| 30027 | int |
| 30028 | main () |
| 30029 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30030 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30031 | ; |
| 30032 | return 0; |
| 30033 | } |
| 30034 | _ACEOF |
| 30035 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30036 | if { (ac_try="$ac_compile" |
| 30037 | case "(($ac_try" in |
| 30038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30039 | *) ac_try_echo=$ac_try;; |
| 30040 | esac |
| 30041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30042 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30043 | ac_status=$? |
| 30044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30045 | rm -f conftest.er1 |
| 30046 | cat conftest.err >&5 |
| 30047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30048 | (exit $ac_status); } && |
| 30049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30050 | { (case "(($ac_try" in |
| 30051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30052 | *) ac_try_echo=$ac_try;; |
| 30053 | esac |
| 30054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30055 | (eval "$ac_try") 2>&5 |
| 30056 | ac_status=$? |
| 30057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30058 | (exit $ac_status); }; } && |
| 30059 | { ac_try='test -s conftest.$ac_objext' |
| 30060 | { (case "(($ac_try" in |
| 30061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30062 | *) ac_try_echo=$ac_try;; |
| 30063 | esac |
| 30064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30065 | (eval "$ac_try") 2>&5 |
| 30066 | ac_status=$? |
| 30067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30068 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30069 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30070 | else |
| 30071 | echo "$as_me: failed program was:" >&5 |
| 30072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30074 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30075 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30076 | |
| 30077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30078 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30079 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 30080 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30081 | |
| 30082 | cat >>confdefs.h <<_ACEOF |
| 30083 | #define RETSIGTYPE $ac_cv_type_signal |
| 30084 | _ACEOF |
| 30085 | |
| 30086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30087 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 30088 | 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] | 30089 | if test "${ac_cv_struct_tm+set}" = set; then |
| 30090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30091 | else |
| 30092 | cat >conftest.$ac_ext <<_ACEOF |
| 30093 | /* confdefs.h. */ |
| 30094 | _ACEOF |
| 30095 | cat confdefs.h >>conftest.$ac_ext |
| 30096 | cat >>conftest.$ac_ext <<_ACEOF |
| 30097 | /* end confdefs.h. */ |
| 30098 | #include <sys/types.h> |
| 30099 | #include <time.h> |
| 30100 | |
| 30101 | int |
| 30102 | main () |
| 30103 | { |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30104 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30105 | ; |
| 30106 | return 0; |
| 30107 | } |
| 30108 | _ACEOF |
| 30109 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30110 | if { (ac_try="$ac_compile" |
| 30111 | case "(($ac_try" in |
| 30112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30113 | *) ac_try_echo=$ac_try;; |
| 30114 | esac |
| 30115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30116 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30117 | ac_status=$? |
| 30118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30119 | rm -f conftest.er1 |
| 30120 | cat conftest.err >&5 |
| 30121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30122 | (exit $ac_status); } && |
| 30123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30124 | { (case "(($ac_try" in |
| 30125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30126 | *) ac_try_echo=$ac_try;; |
| 30127 | esac |
| 30128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30129 | (eval "$ac_try") 2>&5 |
| 30130 | ac_status=$? |
| 30131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30132 | (exit $ac_status); }; } && |
| 30133 | { ac_try='test -s conftest.$ac_objext' |
| 30134 | { (case "(($ac_try" in |
| 30135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30136 | *) ac_try_echo=$ac_try;; |
| 30137 | esac |
| 30138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30139 | (eval "$ac_try") 2>&5 |
| 30140 | ac_status=$? |
| 30141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30142 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30143 | ac_cv_struct_tm=time.h |
| 30144 | else |
| 30145 | echo "$as_me: failed program was:" >&5 |
| 30146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30147 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30148 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30149 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30150 | |
| 30151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30152 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30153 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 30154 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30155 | if test $ac_cv_struct_tm = sys/time.h; then |
| 30156 | |
| 30157 | cat >>confdefs.h <<\_ACEOF |
| 30158 | #define TM_IN_SYS_TIME 1 |
| 30159 | _ACEOF |
| 30160 | |
| 30161 | fi |
| 30162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30163 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 30164 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30165 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 30166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30167 | else |
| 30168 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30169 | /* confdefs.h. */ |
| 30170 | _ACEOF |
| 30171 | cat confdefs.h >>conftest.$ac_ext |
| 30172 | cat >>conftest.$ac_ext <<_ACEOF |
| 30173 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30174 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30175 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30176 | int |
| 30177 | main () |
| 30178 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30179 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30180 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30181 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30182 | return 0; |
| 30183 | ; |
| 30184 | return 0; |
| 30185 | } |
| 30186 | _ACEOF |
| 30187 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30188 | if { (ac_try="$ac_compile" |
| 30189 | case "(($ac_try" in |
| 30190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30191 | *) ac_try_echo=$ac_try;; |
| 30192 | esac |
| 30193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30194 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30195 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30197 | rm -f conftest.er1 |
| 30198 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30200 | (exit $ac_status); } && |
| 30201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30202 | { (case "(($ac_try" in |
| 30203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30204 | *) ac_try_echo=$ac_try;; |
| 30205 | esac |
| 30206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30207 | (eval "$ac_try") 2>&5 |
| 30208 | ac_status=$? |
| 30209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30210 | (exit $ac_status); }; } && |
| 30211 | { ac_try='test -s conftest.$ac_objext' |
| 30212 | { (case "(($ac_try" in |
| 30213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30214 | *) ac_try_echo=$ac_try;; |
| 30215 | esac |
| 30216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30217 | (eval "$ac_try") 2>&5 |
| 30218 | ac_status=$? |
| 30219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30220 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30221 | ac_cv_type_int64_t=yes |
| 30222 | else |
| 30223 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30226 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30227 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30228 | |
| 30229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30230 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30231 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 30232 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30233 | if test $ac_cv_type_int64_t = yes; then |
| 30234 | |
| 30235 | cat >>confdefs.h <<_ACEOF |
| 30236 | #define HAVE_INT64_T 1 |
| 30237 | _ACEOF |
| 30238 | |
| 30239 | |
| 30240 | else |
| 30241 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 30242 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 30243 | { (exit 1); exit 1; }; } |
| 30244 | fi |
| 30245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30246 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 30247 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30248 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 30249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30250 | else |
| 30251 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30252 | /* confdefs.h. */ |
| 30253 | _ACEOF |
| 30254 | cat confdefs.h >>conftest.$ac_ext |
| 30255 | cat >>conftest.$ac_ext <<_ACEOF |
| 30256 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30257 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30258 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30259 | int |
| 30260 | main () |
| 30261 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30262 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30263 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30264 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30265 | return 0; |
| 30266 | ; |
| 30267 | return 0; |
| 30268 | } |
| 30269 | _ACEOF |
| 30270 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30271 | if { (ac_try="$ac_compile" |
| 30272 | case "(($ac_try" in |
| 30273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30274 | *) ac_try_echo=$ac_try;; |
| 30275 | esac |
| 30276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30277 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30278 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30280 | rm -f conftest.er1 |
| 30281 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30283 | (exit $ac_status); } && |
| 30284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30285 | { (case "(($ac_try" in |
| 30286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30287 | *) ac_try_echo=$ac_try;; |
| 30288 | esac |
| 30289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30290 | (eval "$ac_try") 2>&5 |
| 30291 | ac_status=$? |
| 30292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30293 | (exit $ac_status); }; } && |
| 30294 | { ac_try='test -s conftest.$ac_objext' |
| 30295 | { (case "(($ac_try" in |
| 30296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30297 | *) ac_try_echo=$ac_try;; |
| 30298 | esac |
| 30299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30300 | (eval "$ac_try") 2>&5 |
| 30301 | ac_status=$? |
| 30302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30303 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30304 | ac_cv_type_uint64_t=yes |
| 30305 | else |
| 30306 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30308 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30309 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30310 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30311 | |
| 30312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30313 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30314 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 30315 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30316 | if test $ac_cv_type_uint64_t = yes; then |
| 30317 | |
| 30318 | cat >>confdefs.h <<_ACEOF |
| 30319 | #define HAVE_UINT64_T 1 |
| 30320 | _ACEOF |
| 30321 | |
| 30322 | |
| 30323 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30324 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 30325 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30326 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 30327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30328 | else |
| 30329 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30330 | /* confdefs.h. */ |
| 30331 | _ACEOF |
| 30332 | cat confdefs.h >>conftest.$ac_ext |
| 30333 | cat >>conftest.$ac_ext <<_ACEOF |
| 30334 | /* end confdefs.h. */ |
| 30335 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30336 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30337 | int |
| 30338 | main () |
| 30339 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30340 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30341 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30342 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30343 | return 0; |
| 30344 | ; |
| 30345 | return 0; |
| 30346 | } |
| 30347 | _ACEOF |
| 30348 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30349 | if { (ac_try="$ac_compile" |
| 30350 | case "(($ac_try" in |
| 30351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30352 | *) ac_try_echo=$ac_try;; |
| 30353 | esac |
| 30354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30355 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30356 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30358 | rm -f conftest.er1 |
| 30359 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30361 | (exit $ac_status); } && |
| 30362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30363 | { (case "(($ac_try" in |
| 30364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30365 | *) ac_try_echo=$ac_try;; |
| 30366 | esac |
| 30367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30368 | (eval "$ac_try") 2>&5 |
| 30369 | ac_status=$? |
| 30370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30371 | (exit $ac_status); }; } && |
| 30372 | { ac_try='test -s conftest.$ac_objext' |
| 30373 | { (case "(($ac_try" in |
| 30374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30375 | *) ac_try_echo=$ac_try;; |
| 30376 | esac |
| 30377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30378 | (eval "$ac_try") 2>&5 |
| 30379 | ac_status=$? |
| 30380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30381 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30382 | ac_cv_type_u_int64_t=yes |
| 30383 | else |
| 30384 | echo "$as_me: failed program was:" >&5 |
| 30385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30387 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30388 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30389 | |
| 30390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30391 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30392 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 30393 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30394 | if test $ac_cv_type_u_int64_t = yes; then |
| 30395 | |
| 30396 | cat >>confdefs.h <<_ACEOF |
| 30397 | #define HAVE_U_INT64_T 1 |
| 30398 | _ACEOF |
| 30399 | |
| 30400 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 30401 | else |
| 30402 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 30403 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 30404 | { (exit 1); exit 1; }; } |
| 30405 | fi |
| 30406 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30407 | fi |
| 30408 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30409 | |
| 30410 | |
| 30411 | |
| 30412 | |
| 30413 | |
| 30414 | |
| 30415 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 30416 | |
| 30417 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30418 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30419 | do |
| 30420 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30421 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30422 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30423 | 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] | 30424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30425 | else |
| 30426 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30427 | /* confdefs.h. */ |
| 30428 | _ACEOF |
| 30429 | cat confdefs.h >>conftest.$ac_ext |
| 30430 | cat >>conftest.$ac_ext <<_ACEOF |
| 30431 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30432 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30433 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30434 | #define $ac_func innocuous_$ac_func |
| 30435 | |
| 30436 | /* System header to define __stub macros and hopefully few prototypes, |
| 30437 | which can conflict with char $ac_func (); below. |
| 30438 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30439 | <limits.h> exists even on freestanding compilers. */ |
| 30440 | |
| 30441 | #ifdef __STDC__ |
| 30442 | # include <limits.h> |
| 30443 | #else |
| 30444 | # include <assert.h> |
| 30445 | #endif |
| 30446 | |
| 30447 | #undef $ac_func |
| 30448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30449 | /* Override any GCC internal prototype to avoid an error. |
| 30450 | Use char because int might match the return type of a GCC |
| 30451 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30452 | #ifdef __cplusplus |
| 30453 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30454 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30455 | char $ac_func (); |
| 30456 | /* The GNU C library defines this for functions which it implements |
| 30457 | to always fail with ENOSYS. Some functions are actually named |
| 30458 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30459 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30460 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30461 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30462 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30463 | int |
| 30464 | main () |
| 30465 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30466 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30467 | ; |
| 30468 | return 0; |
| 30469 | } |
| 30470 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30471 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30472 | if { (ac_try="$ac_link" |
| 30473 | case "(($ac_try" in |
| 30474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30475 | *) ac_try_echo=$ac_try;; |
| 30476 | esac |
| 30477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30478 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30479 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30481 | rm -f conftest.er1 |
| 30482 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30484 | (exit $ac_status); } && |
| 30485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30486 | { (case "(($ac_try" in |
| 30487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30488 | *) ac_try_echo=$ac_try;; |
| 30489 | esac |
| 30490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30491 | (eval "$ac_try") 2>&5 |
| 30492 | ac_status=$? |
| 30493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30494 | (exit $ac_status); }; } && |
| 30495 | { ac_try='test -s conftest$ac_exeext' |
| 30496 | { (case "(($ac_try" in |
| 30497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30498 | *) ac_try_echo=$ac_try;; |
| 30499 | esac |
| 30500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30501 | (eval "$ac_try") 2>&5 |
| 30502 | ac_status=$? |
| 30503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30504 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30505 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30506 | else |
| 30507 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30510 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30511 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30512 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30513 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30514 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30515 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30516 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30517 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30518 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30519 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30520 | cat >>confdefs.h <<_ACEOF |
| 30521 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30522 | _ACEOF |
| 30523 | |
| 30524 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30525 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30526 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30527 | |
| 30528 | |
| 30529 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30530 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30531 | for ac_func in powf fmodf strtof round |
| 30532 | do |
| 30533 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30534 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30535 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30536 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30538 | else |
| 30539 | cat >conftest.$ac_ext <<_ACEOF |
| 30540 | /* confdefs.h. */ |
| 30541 | _ACEOF |
| 30542 | cat confdefs.h >>conftest.$ac_ext |
| 30543 | cat >>conftest.$ac_ext <<_ACEOF |
| 30544 | /* end confdefs.h. */ |
| 30545 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30546 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30547 | #define $ac_func innocuous_$ac_func |
| 30548 | |
| 30549 | /* System header to define __stub macros and hopefully few prototypes, |
| 30550 | which can conflict with char $ac_func (); below. |
| 30551 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30552 | <limits.h> exists even on freestanding compilers. */ |
| 30553 | |
| 30554 | #ifdef __STDC__ |
| 30555 | # include <limits.h> |
| 30556 | #else |
| 30557 | # include <assert.h> |
| 30558 | #endif |
| 30559 | |
| 30560 | #undef $ac_func |
| 30561 | |
| 30562 | /* Override any GCC internal prototype to avoid an error. |
| 30563 | Use char because int might match the return type of a GCC |
| 30564 | builtin and then its argument prototype would still apply. */ |
| 30565 | #ifdef __cplusplus |
| 30566 | extern "C" |
| 30567 | #endif |
| 30568 | char $ac_func (); |
| 30569 | /* The GNU C library defines this for functions which it implements |
| 30570 | to always fail with ENOSYS. Some functions are actually named |
| 30571 | something starting with __ and the normal name is an alias. */ |
| 30572 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30573 | choke me |
| 30574 | #endif |
| 30575 | |
| 30576 | int |
| 30577 | main () |
| 30578 | { |
| 30579 | return $ac_func (); |
| 30580 | ; |
| 30581 | return 0; |
| 30582 | } |
| 30583 | _ACEOF |
| 30584 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30585 | if { (ac_try="$ac_link" |
| 30586 | case "(($ac_try" in |
| 30587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30588 | *) ac_try_echo=$ac_try;; |
| 30589 | esac |
| 30590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30591 | (eval "$ac_link") 2>conftest.er1 |
| 30592 | ac_status=$? |
| 30593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30594 | rm -f conftest.er1 |
| 30595 | cat conftest.err >&5 |
| 30596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30597 | (exit $ac_status); } && |
| 30598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30599 | { (case "(($ac_try" in |
| 30600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30601 | *) ac_try_echo=$ac_try;; |
| 30602 | esac |
| 30603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30604 | (eval "$ac_try") 2>&5 |
| 30605 | ac_status=$? |
| 30606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30607 | (exit $ac_status); }; } && |
| 30608 | { ac_try='test -s conftest$ac_exeext' |
| 30609 | { (case "(($ac_try" in |
| 30610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30611 | *) ac_try_echo=$ac_try;; |
| 30612 | esac |
| 30613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30614 | (eval "$ac_try") 2>&5 |
| 30615 | ac_status=$? |
| 30616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30617 | (exit $ac_status); }; }; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30618 | eval "$as_ac_var=yes" |
| 30619 | else |
| 30620 | echo "$as_me: failed program was:" >&5 |
| 30621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30622 | |
| 30623 | eval "$as_ac_var=no" |
| 30624 | fi |
| 30625 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30626 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30627 | conftest$ac_exeext conftest.$ac_ext |
| 30628 | fi |
| 30629 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30630 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30631 | echo "${ECHO_T}$ac_res" >&6; } |
| 30632 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30633 | cat >>confdefs.h <<_ACEOF |
| 30634 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30635 | _ACEOF |
| 30636 | |
| 30637 | fi |
| 30638 | done |
| 30639 | |
| 30640 | |
| 30641 | |
| 30642 | |
| 30643 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30644 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30645 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 30646 | do |
| 30647 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30648 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30649 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30650 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30652 | else |
| 30653 | cat >conftest.$ac_ext <<_ACEOF |
| 30654 | /* confdefs.h. */ |
| 30655 | _ACEOF |
| 30656 | cat confdefs.h >>conftest.$ac_ext |
| 30657 | cat >>conftest.$ac_ext <<_ACEOF |
| 30658 | /* end confdefs.h. */ |
| 30659 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30660 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30661 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30662 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30663 | /* System header to define __stub macros and hopefully few prototypes, |
| 30664 | which can conflict with char $ac_func (); below. |
| 30665 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30666 | <limits.h> exists even on freestanding compilers. */ |
| 30667 | |
| 30668 | #ifdef __STDC__ |
| 30669 | # include <limits.h> |
| 30670 | #else |
| 30671 | # include <assert.h> |
| 30672 | #endif |
| 30673 | |
| 30674 | #undef $ac_func |
| 30675 | |
| 30676 | /* Override any GCC internal prototype to avoid an error. |
| 30677 | Use char because int might match the return type of a GCC |
| 30678 | builtin and then its argument prototype would still apply. */ |
| 30679 | #ifdef __cplusplus |
| 30680 | extern "C" |
| 30681 | #endif |
| 30682 | char $ac_func (); |
| 30683 | /* The GNU C library defines this for functions which it implements |
| 30684 | to always fail with ENOSYS. Some functions are actually named |
| 30685 | something starting with __ and the normal name is an alias. */ |
| 30686 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30687 | choke me |
| 30688 | #endif |
| 30689 | |
| 30690 | int |
| 30691 | main () |
| 30692 | { |
| 30693 | return $ac_func (); |
| 30694 | ; |
| 30695 | return 0; |
| 30696 | } |
| 30697 | _ACEOF |
| 30698 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30699 | if { (ac_try="$ac_link" |
| 30700 | case "(($ac_try" in |
| 30701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30702 | *) ac_try_echo=$ac_try;; |
| 30703 | esac |
| 30704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30705 | (eval "$ac_link") 2>conftest.er1 |
| 30706 | ac_status=$? |
| 30707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30708 | rm -f conftest.er1 |
| 30709 | cat conftest.err >&5 |
| 30710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30711 | (exit $ac_status); } && |
| 30712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30713 | { (case "(($ac_try" in |
| 30714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30715 | *) ac_try_echo=$ac_try;; |
| 30716 | esac |
| 30717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30718 | (eval "$ac_try") 2>&5 |
| 30719 | ac_status=$? |
| 30720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30721 | (exit $ac_status); }; } && |
| 30722 | { ac_try='test -s conftest$ac_exeext' |
| 30723 | { (case "(($ac_try" in |
| 30724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30725 | *) ac_try_echo=$ac_try;; |
| 30726 | esac |
| 30727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30728 | (eval "$ac_try") 2>&5 |
| 30729 | ac_status=$? |
| 30730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30731 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30732 | eval "$as_ac_var=yes" |
| 30733 | else |
| 30734 | echo "$as_me: failed program was:" >&5 |
| 30735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30736 | |
| 30737 | eval "$as_ac_var=no" |
| 30738 | fi |
| 30739 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30740 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30741 | conftest$ac_exeext conftest.$ac_ext |
| 30742 | fi |
| 30743 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30744 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30745 | echo "${ECHO_T}$ac_res" >&6; } |
| 30746 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30747 | cat >>confdefs.h <<_ACEOF |
| 30748 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30749 | _ACEOF |
| 30750 | |
| 30751 | fi |
| 30752 | done |
| 30753 | |
| 30754 | |
| 30755 | |
| 30756 | |
| 30757 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30758 | do |
| 30759 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30760 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30761 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30762 | 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] | 30763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30764 | else |
| 30765 | cat >conftest.$ac_ext <<_ACEOF |
| 30766 | /* confdefs.h. */ |
| 30767 | _ACEOF |
| 30768 | cat confdefs.h >>conftest.$ac_ext |
| 30769 | cat >>conftest.$ac_ext <<_ACEOF |
| 30770 | /* end confdefs.h. */ |
| 30771 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30772 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30773 | #define $ac_func innocuous_$ac_func |
| 30774 | |
| 30775 | /* System header to define __stub macros and hopefully few prototypes, |
| 30776 | which can conflict with char $ac_func (); below. |
| 30777 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30778 | <limits.h> exists even on freestanding compilers. */ |
| 30779 | |
| 30780 | #ifdef __STDC__ |
| 30781 | # include <limits.h> |
| 30782 | #else |
| 30783 | # include <assert.h> |
| 30784 | #endif |
| 30785 | |
| 30786 | #undef $ac_func |
| 30787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30788 | /* Override any GCC internal prototype to avoid an error. |
| 30789 | Use char because int might match the return type of a GCC |
| 30790 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30791 | #ifdef __cplusplus |
| 30792 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30793 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30794 | char $ac_func (); |
| 30795 | /* The GNU C library defines this for functions which it implements |
| 30796 | to always fail with ENOSYS. Some functions are actually named |
| 30797 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30798 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30799 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30800 | #endif |
| 30801 | |
| 30802 | int |
| 30803 | main () |
| 30804 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30805 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30806 | ; |
| 30807 | return 0; |
| 30808 | } |
| 30809 | _ACEOF |
| 30810 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30811 | if { (ac_try="$ac_link" |
| 30812 | case "(($ac_try" in |
| 30813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30814 | *) ac_try_echo=$ac_try;; |
| 30815 | esac |
| 30816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30817 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30818 | ac_status=$? |
| 30819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30820 | rm -f conftest.er1 |
| 30821 | cat conftest.err >&5 |
| 30822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30823 | (exit $ac_status); } && |
| 30824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30825 | { (case "(($ac_try" in |
| 30826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30827 | *) ac_try_echo=$ac_try;; |
| 30828 | esac |
| 30829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30830 | (eval "$ac_try") 2>&5 |
| 30831 | ac_status=$? |
| 30832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30833 | (exit $ac_status); }; } && |
| 30834 | { ac_try='test -s conftest$ac_exeext' |
| 30835 | { (case "(($ac_try" in |
| 30836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30837 | *) ac_try_echo=$ac_try;; |
| 30838 | esac |
| 30839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30840 | (eval "$ac_try") 2>&5 |
| 30841 | ac_status=$? |
| 30842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30843 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30844 | eval "$as_ac_var=yes" |
| 30845 | else |
| 30846 | echo "$as_me: failed program was:" >&5 |
| 30847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30849 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30850 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30851 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30852 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30853 | conftest$ac_exeext conftest.$ac_ext |
| 30854 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30855 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30856 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30857 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30858 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30859 | cat >>confdefs.h <<_ACEOF |
| 30860 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30861 | _ACEOF |
| 30862 | |
| 30863 | fi |
| 30864 | done |
| 30865 | |
| 30866 | |
| 30867 | |
| 30868 | |
| 30869 | |
| 30870 | |
| 30871 | |
| 30872 | |
| 30873 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30874 | do |
| 30875 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30876 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30877 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30878 | 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] | 30879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30880 | else |
| 30881 | cat >conftest.$ac_ext <<_ACEOF |
| 30882 | /* confdefs.h. */ |
| 30883 | _ACEOF |
| 30884 | cat confdefs.h >>conftest.$ac_ext |
| 30885 | cat >>conftest.$ac_ext <<_ACEOF |
| 30886 | /* end confdefs.h. */ |
| 30887 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30889 | #define $ac_func innocuous_$ac_func |
| 30890 | |
| 30891 | /* System header to define __stub macros and hopefully few prototypes, |
| 30892 | which can conflict with char $ac_func (); below. |
| 30893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30894 | <limits.h> exists even on freestanding compilers. */ |
| 30895 | |
| 30896 | #ifdef __STDC__ |
| 30897 | # include <limits.h> |
| 30898 | #else |
| 30899 | # include <assert.h> |
| 30900 | #endif |
| 30901 | |
| 30902 | #undef $ac_func |
| 30903 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30904 | /* Override any GCC internal prototype to avoid an error. |
| 30905 | Use char because int might match the return type of a GCC |
| 30906 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30907 | #ifdef __cplusplus |
| 30908 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30909 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30910 | char $ac_func (); |
| 30911 | /* The GNU C library defines this for functions which it implements |
| 30912 | to always fail with ENOSYS. Some functions are actually named |
| 30913 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30914 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30915 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30916 | #endif |
| 30917 | |
| 30918 | int |
| 30919 | main () |
| 30920 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30921 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30922 | ; |
| 30923 | return 0; |
| 30924 | } |
| 30925 | _ACEOF |
| 30926 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30927 | if { (ac_try="$ac_link" |
| 30928 | case "(($ac_try" in |
| 30929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30930 | *) ac_try_echo=$ac_try;; |
| 30931 | esac |
| 30932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30933 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30934 | ac_status=$? |
| 30935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30936 | rm -f conftest.er1 |
| 30937 | cat conftest.err >&5 |
| 30938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30939 | (exit $ac_status); } && |
| 30940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30941 | { (case "(($ac_try" in |
| 30942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30943 | *) ac_try_echo=$ac_try;; |
| 30944 | esac |
| 30945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30946 | (eval "$ac_try") 2>&5 |
| 30947 | ac_status=$? |
| 30948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30949 | (exit $ac_status); }; } && |
| 30950 | { ac_try='test -s conftest$ac_exeext' |
| 30951 | { (case "(($ac_try" in |
| 30952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30953 | *) ac_try_echo=$ac_try;; |
| 30954 | esac |
| 30955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30956 | (eval "$ac_try") 2>&5 |
| 30957 | ac_status=$? |
| 30958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30959 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30960 | eval "$as_ac_var=yes" |
| 30961 | else |
| 30962 | echo "$as_me: failed program was:" >&5 |
| 30963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30964 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30965 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30966 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30967 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30968 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30969 | conftest$ac_exeext conftest.$ac_ext |
| 30970 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30971 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30972 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30973 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30974 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30975 | cat >>confdefs.h <<_ACEOF |
| 30976 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30977 | _ACEOF |
| 30978 | |
| 30979 | fi |
| 30980 | done |
| 30981 | |
| 30982 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 30983 | |
| 30984 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30985 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 30986 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30987 | do |
| 30988 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30989 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30990 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30991 | 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] | 30992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30993 | else |
| 30994 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30995 | /* confdefs.h. */ |
| 30996 | _ACEOF |
| 30997 | cat confdefs.h >>conftest.$ac_ext |
| 30998 | cat >>conftest.$ac_ext <<_ACEOF |
| 30999 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31000 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31001 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31002 | #define $ac_func innocuous_$ac_func |
| 31003 | |
| 31004 | /* System header to define __stub macros and hopefully few prototypes, |
| 31005 | which can conflict with char $ac_func (); below. |
| 31006 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31007 | <limits.h> exists even on freestanding compilers. */ |
| 31008 | |
| 31009 | #ifdef __STDC__ |
| 31010 | # include <limits.h> |
| 31011 | #else |
| 31012 | # include <assert.h> |
| 31013 | #endif |
| 31014 | |
| 31015 | #undef $ac_func |
| 31016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31017 | /* Override any GCC internal prototype to avoid an error. |
| 31018 | Use char because int might match the return type of a GCC |
| 31019 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31020 | #ifdef __cplusplus |
| 31021 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31022 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31023 | char $ac_func (); |
| 31024 | /* The GNU C library defines this for functions which it implements |
| 31025 | to always fail with ENOSYS. Some functions are actually named |
| 31026 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31027 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31028 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31029 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31031 | int |
| 31032 | main () |
| 31033 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31034 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31035 | ; |
| 31036 | return 0; |
| 31037 | } |
| 31038 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31039 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31040 | if { (ac_try="$ac_link" |
| 31041 | case "(($ac_try" in |
| 31042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31043 | *) ac_try_echo=$ac_try;; |
| 31044 | esac |
| 31045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31046 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31047 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31049 | rm -f conftest.er1 |
| 31050 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31052 | (exit $ac_status); } && |
| 31053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31054 | { (case "(($ac_try" in |
| 31055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31056 | *) ac_try_echo=$ac_try;; |
| 31057 | esac |
| 31058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31059 | (eval "$ac_try") 2>&5 |
| 31060 | ac_status=$? |
| 31061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31062 | (exit $ac_status); }; } && |
| 31063 | { ac_try='test -s conftest$ac_exeext' |
| 31064 | { (case "(($ac_try" in |
| 31065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31066 | *) ac_try_echo=$ac_try;; |
| 31067 | esac |
| 31068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31069 | (eval "$ac_try") 2>&5 |
| 31070 | ac_status=$? |
| 31071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31072 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31073 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31074 | else |
| 31075 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31078 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31080 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31081 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31082 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31083 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31084 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31085 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31086 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31087 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31088 | cat >>confdefs.h <<_ACEOF |
| 31089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31090 | _ACEOF |
| 31091 | |
| 31092 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31093 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31094 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31095 | |
| 31096 | |
| 31097 | |
| 31098 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 31099 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31100 | do |
| 31101 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31102 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31103 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31104 | 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] | 31105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31106 | else |
| 31107 | cat >conftest.$ac_ext <<_ACEOF |
| 31108 | /* confdefs.h. */ |
| 31109 | _ACEOF |
| 31110 | cat confdefs.h >>conftest.$ac_ext |
| 31111 | cat >>conftest.$ac_ext <<_ACEOF |
| 31112 | /* end confdefs.h. */ |
| 31113 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31115 | #define $ac_func innocuous_$ac_func |
| 31116 | |
| 31117 | /* System header to define __stub macros and hopefully few prototypes, |
| 31118 | which can conflict with char $ac_func (); below. |
| 31119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31120 | <limits.h> exists even on freestanding compilers. */ |
| 31121 | |
| 31122 | #ifdef __STDC__ |
| 31123 | # include <limits.h> |
| 31124 | #else |
| 31125 | # include <assert.h> |
| 31126 | #endif |
| 31127 | |
| 31128 | #undef $ac_func |
| 31129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31130 | /* Override any GCC internal prototype to avoid an error. |
| 31131 | Use char because int might match the return type of a GCC |
| 31132 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31133 | #ifdef __cplusplus |
| 31134 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31135 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31136 | char $ac_func (); |
| 31137 | /* The GNU C library defines this for functions which it implements |
| 31138 | to always fail with ENOSYS. Some functions are actually named |
| 31139 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31140 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31141 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31142 | #endif |
| 31143 | |
| 31144 | int |
| 31145 | main () |
| 31146 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31147 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31148 | ; |
| 31149 | return 0; |
| 31150 | } |
| 31151 | _ACEOF |
| 31152 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31153 | if { (ac_try="$ac_link" |
| 31154 | case "(($ac_try" in |
| 31155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31156 | *) ac_try_echo=$ac_try;; |
| 31157 | esac |
| 31158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31159 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31160 | ac_status=$? |
| 31161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31162 | rm -f conftest.er1 |
| 31163 | cat conftest.err >&5 |
| 31164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31165 | (exit $ac_status); } && |
| 31166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31167 | { (case "(($ac_try" in |
| 31168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31169 | *) ac_try_echo=$ac_try;; |
| 31170 | esac |
| 31171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31172 | (eval "$ac_try") 2>&5 |
| 31173 | ac_status=$? |
| 31174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31175 | (exit $ac_status); }; } && |
| 31176 | { ac_try='test -s conftest$ac_exeext' |
| 31177 | { (case "(($ac_try" in |
| 31178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31179 | *) ac_try_echo=$ac_try;; |
| 31180 | esac |
| 31181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31182 | (eval "$ac_try") 2>&5 |
| 31183 | ac_status=$? |
| 31184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31185 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31186 | eval "$as_ac_var=yes" |
| 31187 | else |
| 31188 | echo "$as_me: failed program was:" >&5 |
| 31189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31191 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31193 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31194 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31195 | conftest$ac_exeext conftest.$ac_ext |
| 31196 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31197 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31198 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31199 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31200 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31201 | cat >>confdefs.h <<_ACEOF |
| 31202 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31203 | _ACEOF |
| 31204 | |
| 31205 | fi |
| 31206 | done |
| 31207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31208 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 31209 | 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] | 31210 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31212 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31213 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31214 | ac_cpp='$CPP $CPPFLAGS' |
| 31215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31218 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31219 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31220 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31221 | else |
| 31222 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31223 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31224 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31225 | _ACEOF |
| 31226 | cat confdefs.h >>conftest.$ac_ext |
| 31227 | cat >>conftest.$ac_ext <<_ACEOF |
| 31228 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31229 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31230 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31231 | #include <stdlib.h> |
| 31232 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31233 | int |
| 31234 | main () |
| 31235 | { |
| 31236 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31237 | volatile double A, B; |
| 31238 | char Buffer[100]; |
| 31239 | A = 1; |
| 31240 | A /= 10.0; |
| 31241 | sprintf(Buffer, "%a", A); |
| 31242 | B = atof(Buffer); |
| 31243 | if (A != B) |
| 31244 | return (1); |
| 31245 | if (A != 0x1.999999999999ap-4) |
| 31246 | return (1); |
| 31247 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31248 | ; |
| 31249 | return 0; |
| 31250 | } |
| 31251 | _ACEOF |
| 31252 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31253 | if { (ac_try="$ac_link" |
| 31254 | case "(($ac_try" in |
| 31255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31256 | *) ac_try_echo=$ac_try;; |
| 31257 | esac |
| 31258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31259 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31260 | ac_status=$? |
| 31261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31262 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31263 | { (case "(($ac_try" in |
| 31264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31265 | *) ac_try_echo=$ac_try;; |
| 31266 | esac |
| 31267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31268 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31269 | ac_status=$? |
| 31270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31271 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31272 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31273 | else |
| 31274 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31275 | echo "$as_me: failed program was:" >&5 |
| 31276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31277 | |
| 31278 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31279 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31280 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31281 | 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] | 31282 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31283 | |
| 31284 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31285 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31286 | ac_cpp='$CPP $CPPFLAGS' |
| 31287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31290 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31292 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 31293 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31294 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31295 | |
| 31296 | cat >>confdefs.h <<\_ACEOF |
| 31297 | #define HAVE_PRINTF_A 1 |
| 31298 | _ACEOF |
| 31299 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31300 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31301 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31302 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 31303 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31304 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 31305 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31306 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31308 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31309 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31310 | /* confdefs.h. */ |
| 31311 | _ACEOF |
| 31312 | cat confdefs.h >>conftest.$ac_ext |
| 31313 | cat >>conftest.$ac_ext <<_ACEOF |
| 31314 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31315 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31316 | int |
| 31317 | main () |
| 31318 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31319 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31320 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31321 | ; |
| 31322 | return 0; |
| 31323 | } |
| 31324 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31325 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31326 | if { (ac_try="$ac_link" |
| 31327 | case "(($ac_try" in |
| 31328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31329 | *) ac_try_echo=$ac_try;; |
| 31330 | esac |
| 31331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31332 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31333 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31335 | rm -f conftest.er1 |
| 31336 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31338 | (exit $ac_status); } && |
| 31339 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31340 | { (case "(($ac_try" in |
| 31341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31342 | *) ac_try_echo=$ac_try;; |
| 31343 | esac |
| 31344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31345 | (eval "$ac_try") 2>&5 |
| 31346 | ac_status=$? |
| 31347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31348 | (exit $ac_status); }; } && |
| 31349 | { ac_try='test -s conftest$ac_exeext' |
| 31350 | { (case "(($ac_try" in |
| 31351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31352 | *) ac_try_echo=$ac_try;; |
| 31353 | esac |
| 31354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31355 | (eval "$ac_try") 2>&5 |
| 31356 | ac_status=$? |
| 31357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31358 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31359 | ac_cv_working_alloca_h=yes |
| 31360 | else |
| 31361 | echo "$as_me: failed program was:" >&5 |
| 31362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31364 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31365 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31366 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31367 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31368 | conftest$ac_exeext conftest.$ac_ext |
| 31369 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31370 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 31371 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31372 | if test $ac_cv_working_alloca_h = yes; then |
| 31373 | |
| 31374 | cat >>confdefs.h <<\_ACEOF |
| 31375 | #define HAVE_ALLOCA_H 1 |
| 31376 | _ACEOF |
| 31377 | |
| 31378 | fi |
| 31379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31380 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 31381 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31382 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 31383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31384 | else |
| 31385 | cat >conftest.$ac_ext <<_ACEOF |
| 31386 | /* confdefs.h. */ |
| 31387 | _ACEOF |
| 31388 | cat confdefs.h >>conftest.$ac_ext |
| 31389 | cat >>conftest.$ac_ext <<_ACEOF |
| 31390 | /* end confdefs.h. */ |
| 31391 | #ifdef __GNUC__ |
| 31392 | # define alloca __builtin_alloca |
| 31393 | #else |
| 31394 | # ifdef _MSC_VER |
| 31395 | # include <malloc.h> |
| 31396 | # define alloca _alloca |
| 31397 | # else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31398 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31399 | # include <alloca.h> |
| 31400 | # else |
| 31401 | # ifdef _AIX |
| 31402 | #pragma alloca |
| 31403 | # else |
| 31404 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 31405 | char *alloca (); |
| 31406 | # endif |
| 31407 | # endif |
| 31408 | # endif |
| 31409 | # endif |
| 31410 | #endif |
| 31411 | |
| 31412 | int |
| 31413 | main () |
| 31414 | { |
| 31415 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31416 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31417 | ; |
| 31418 | return 0; |
| 31419 | } |
| 31420 | _ACEOF |
| 31421 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31422 | if { (ac_try="$ac_link" |
| 31423 | case "(($ac_try" in |
| 31424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31425 | *) ac_try_echo=$ac_try;; |
| 31426 | esac |
| 31427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31428 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31429 | ac_status=$? |
| 31430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31431 | rm -f conftest.er1 |
| 31432 | cat conftest.err >&5 |
| 31433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31434 | (exit $ac_status); } && |
| 31435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31436 | { (case "(($ac_try" in |
| 31437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31438 | *) ac_try_echo=$ac_try;; |
| 31439 | esac |
| 31440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31441 | (eval "$ac_try") 2>&5 |
| 31442 | ac_status=$? |
| 31443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31444 | (exit $ac_status); }; } && |
| 31445 | { ac_try='test -s conftest$ac_exeext' |
| 31446 | { (case "(($ac_try" in |
| 31447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31448 | *) ac_try_echo=$ac_try;; |
| 31449 | esac |
| 31450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31451 | (eval "$ac_try") 2>&5 |
| 31452 | ac_status=$? |
| 31453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31454 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31455 | ac_cv_func_alloca_works=yes |
| 31456 | else |
| 31457 | echo "$as_me: failed program was:" >&5 |
| 31458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31459 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31460 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31461 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31462 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31463 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31464 | conftest$ac_exeext conftest.$ac_ext |
| 31465 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31466 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 31467 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31468 | |
| 31469 | if test $ac_cv_func_alloca_works = yes; then |
| 31470 | |
| 31471 | cat >>confdefs.h <<\_ACEOF |
| 31472 | #define HAVE_ALLOCA 1 |
| 31473 | _ACEOF |
| 31474 | |
| 31475 | else |
| 31476 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 31477 | # that cause trouble. Some versions do not even contain alloca or |
| 31478 | # contain a buggy version. If you still want to use their alloca, |
| 31479 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 31480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31481 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31482 | |
| 31483 | cat >>confdefs.h <<\_ACEOF |
| 31484 | #define C_ALLOCA 1 |
| 31485 | _ACEOF |
| 31486 | |
| 31487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31488 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 31489 | 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] | 31490 | if test "${ac_cv_os_cray+set}" = set; then |
| 31491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31492 | else |
| 31493 | cat >conftest.$ac_ext <<_ACEOF |
| 31494 | /* confdefs.h. */ |
| 31495 | _ACEOF |
| 31496 | cat confdefs.h >>conftest.$ac_ext |
| 31497 | cat >>conftest.$ac_ext <<_ACEOF |
| 31498 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31499 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31500 | webecray |
| 31501 | #else |
| 31502 | wenotbecray |
| 31503 | #endif |
| 31504 | |
| 31505 | _ACEOF |
| 31506 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31507 | $EGREP "webecray" >/dev/null 2>&1; then |
| 31508 | ac_cv_os_cray=yes |
| 31509 | else |
| 31510 | ac_cv_os_cray=no |
| 31511 | fi |
| 31512 | rm -f conftest* |
| 31513 | |
| 31514 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31515 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 31516 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31517 | if test $ac_cv_os_cray = yes; then |
| 31518 | for ac_func in _getb67 GETB67 getb67; do |
| 31519 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31520 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31521 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31522 | 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] | 31523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31524 | else |
| 31525 | cat >conftest.$ac_ext <<_ACEOF |
| 31526 | /* confdefs.h. */ |
| 31527 | _ACEOF |
| 31528 | cat confdefs.h >>conftest.$ac_ext |
| 31529 | cat >>conftest.$ac_ext <<_ACEOF |
| 31530 | /* end confdefs.h. */ |
| 31531 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31533 | #define $ac_func innocuous_$ac_func |
| 31534 | |
| 31535 | /* System header to define __stub macros and hopefully few prototypes, |
| 31536 | which can conflict with char $ac_func (); below. |
| 31537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31538 | <limits.h> exists even on freestanding compilers. */ |
| 31539 | |
| 31540 | #ifdef __STDC__ |
| 31541 | # include <limits.h> |
| 31542 | #else |
| 31543 | # include <assert.h> |
| 31544 | #endif |
| 31545 | |
| 31546 | #undef $ac_func |
| 31547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31548 | /* Override any GCC internal prototype to avoid an error. |
| 31549 | Use char because int might match the return type of a GCC |
| 31550 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31551 | #ifdef __cplusplus |
| 31552 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31553 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31554 | char $ac_func (); |
| 31555 | /* The GNU C library defines this for functions which it implements |
| 31556 | to always fail with ENOSYS. Some functions are actually named |
| 31557 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31558 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31559 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31560 | #endif |
| 31561 | |
| 31562 | int |
| 31563 | main () |
| 31564 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31565 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31566 | ; |
| 31567 | return 0; |
| 31568 | } |
| 31569 | _ACEOF |
| 31570 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31571 | if { (ac_try="$ac_link" |
| 31572 | case "(($ac_try" in |
| 31573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31574 | *) ac_try_echo=$ac_try;; |
| 31575 | esac |
| 31576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31577 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31578 | ac_status=$? |
| 31579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31580 | rm -f conftest.er1 |
| 31581 | cat conftest.err >&5 |
| 31582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31583 | (exit $ac_status); } && |
| 31584 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31585 | { (case "(($ac_try" in |
| 31586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31587 | *) ac_try_echo=$ac_try;; |
| 31588 | esac |
| 31589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31590 | (eval "$ac_try") 2>&5 |
| 31591 | ac_status=$? |
| 31592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31593 | (exit $ac_status); }; } && |
| 31594 | { ac_try='test -s conftest$ac_exeext' |
| 31595 | { (case "(($ac_try" in |
| 31596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31597 | *) ac_try_echo=$ac_try;; |
| 31598 | esac |
| 31599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31600 | (eval "$ac_try") 2>&5 |
| 31601 | ac_status=$? |
| 31602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31603 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31604 | eval "$as_ac_var=yes" |
| 31605 | else |
| 31606 | echo "$as_me: failed program was:" >&5 |
| 31607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31609 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31610 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31611 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31612 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31613 | conftest$ac_exeext conftest.$ac_ext |
| 31614 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31615 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31616 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31617 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31618 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31619 | |
| 31620 | cat >>confdefs.h <<_ACEOF |
| 31621 | #define CRAY_STACKSEG_END $ac_func |
| 31622 | _ACEOF |
| 31623 | |
| 31624 | break |
| 31625 | fi |
| 31626 | |
| 31627 | done |
| 31628 | fi |
| 31629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31630 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 31631 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31632 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 31633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31634 | else |
| 31635 | if test "$cross_compiling" = yes; then |
| 31636 | ac_cv_c_stack_direction=0 |
| 31637 | else |
| 31638 | cat >conftest.$ac_ext <<_ACEOF |
| 31639 | /* confdefs.h. */ |
| 31640 | _ACEOF |
| 31641 | cat confdefs.h >>conftest.$ac_ext |
| 31642 | cat >>conftest.$ac_ext <<_ACEOF |
| 31643 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31644 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31645 | int |
| 31646 | find_stack_direction () |
| 31647 | { |
| 31648 | static char *addr = 0; |
| 31649 | auto char dummy; |
| 31650 | if (addr == 0) |
| 31651 | { |
| 31652 | addr = &dummy; |
| 31653 | return find_stack_direction (); |
| 31654 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31655 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31656 | return (&dummy > addr) ? 1 : -1; |
| 31657 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31658 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31659 | int |
| 31660 | main () |
| 31661 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31662 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31663 | } |
| 31664 | _ACEOF |
| 31665 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31666 | if { (ac_try="$ac_link" |
| 31667 | case "(($ac_try" in |
| 31668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31669 | *) ac_try_echo=$ac_try;; |
| 31670 | esac |
| 31671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31672 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31673 | ac_status=$? |
| 31674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31676 | { (case "(($ac_try" in |
| 31677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31678 | *) ac_try_echo=$ac_try;; |
| 31679 | esac |
| 31680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31681 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31682 | ac_status=$? |
| 31683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31684 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31685 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31686 | else |
| 31687 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31688 | echo "$as_me: failed program was:" >&5 |
| 31689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31690 | |
| 31691 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31692 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31693 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31694 | 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] | 31695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31696 | |
| 31697 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31698 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31699 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 31700 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31701 | |
| 31702 | cat >>confdefs.h <<_ACEOF |
| 31703 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 31704 | _ACEOF |
| 31705 | |
| 31706 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31707 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31708 | |
| 31709 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31710 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 31711 | 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] | 31712 | if test "${ac_cv_func_rand48+set}" = set; then |
| 31713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31714 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31715 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31716 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31717 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31718 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31719 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31720 | |
| 31721 | cat >conftest.$ac_ext <<_ACEOF |
| 31722 | /* confdefs.h. */ |
| 31723 | _ACEOF |
| 31724 | cat confdefs.h >>conftest.$ac_ext |
| 31725 | cat >>conftest.$ac_ext <<_ACEOF |
| 31726 | /* end confdefs.h. */ |
| 31727 | #include <stdlib.h> |
| 31728 | int |
| 31729 | main () |
| 31730 | { |
| 31731 | srand48(0);lrand48();drand48(); |
| 31732 | ; |
| 31733 | return 0; |
| 31734 | } |
| 31735 | _ACEOF |
| 31736 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31737 | if { (ac_try="$ac_compile" |
| 31738 | case "(($ac_try" in |
| 31739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31740 | *) ac_try_echo=$ac_try;; |
| 31741 | esac |
| 31742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31743 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31744 | ac_status=$? |
| 31745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31746 | rm -f conftest.er1 |
| 31747 | cat conftest.err >&5 |
| 31748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31749 | (exit $ac_status); } && |
| 31750 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31751 | { (case "(($ac_try" in |
| 31752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31753 | *) ac_try_echo=$ac_try;; |
| 31754 | esac |
| 31755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31756 | (eval "$ac_try") 2>&5 |
| 31757 | ac_status=$? |
| 31758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31759 | (exit $ac_status); }; } && |
| 31760 | { ac_try='test -s conftest.$ac_objext' |
| 31761 | { (case "(($ac_try" in |
| 31762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31763 | *) ac_try_echo=$ac_try;; |
| 31764 | esac |
| 31765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31766 | (eval "$ac_try") 2>&5 |
| 31767 | ac_status=$? |
| 31768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31769 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31770 | ac_cv_func_rand48=yes |
| 31771 | else |
| 31772 | echo "$as_me: failed program was:" >&5 |
| 31773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31775 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31776 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31777 | |
| 31778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31779 | ac_ext=c |
| 31780 | ac_cpp='$CPP $CPPFLAGS' |
| 31781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31784 | |
| 31785 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31786 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 31787 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31788 | |
| 31789 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 31790 | |
| 31791 | cat >>confdefs.h <<\_ACEOF |
| 31792 | #define HAVE_RAND48 1 |
| 31793 | _ACEOF |
| 31794 | |
| 31795 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31796 | |
| 31797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31798 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 31799 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31800 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 31801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31802 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31803 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31804 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31805 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31806 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31807 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31808 | |
| 31809 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31810 | /* confdefs.h. */ |
| 31811 | _ACEOF |
| 31812 | cat confdefs.h >>conftest.$ac_ext |
| 31813 | cat >>conftest.$ac_ext <<_ACEOF |
| 31814 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31815 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31816 | int |
| 31817 | main () |
| 31818 | { |
| 31819 | using namespace Outer::Inner; return i; |
| 31820 | ; |
| 31821 | return 0; |
| 31822 | } |
| 31823 | _ACEOF |
| 31824 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31825 | if { (ac_try="$ac_compile" |
| 31826 | case "(($ac_try" in |
| 31827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31828 | *) ac_try_echo=$ac_try;; |
| 31829 | esac |
| 31830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31831 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31832 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31834 | rm -f conftest.er1 |
| 31835 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31837 | (exit $ac_status); } && |
| 31838 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31839 | { (case "(($ac_try" in |
| 31840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31841 | *) ac_try_echo=$ac_try;; |
| 31842 | esac |
| 31843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31844 | (eval "$ac_try") 2>&5 |
| 31845 | ac_status=$? |
| 31846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31847 | (exit $ac_status); }; } && |
| 31848 | { ac_try='test -s conftest.$ac_objext' |
| 31849 | { (case "(($ac_try" in |
| 31850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31851 | *) ac_try_echo=$ac_try;; |
| 31852 | esac |
| 31853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31854 | (eval "$ac_try") 2>&5 |
| 31855 | ac_status=$? |
| 31856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31857 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31858 | ac_cv_cxx_namespaces=yes |
| 31859 | else |
| 31860 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31863 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31864 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31865 | |
| 31866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31867 | ac_ext=c |
| 31868 | ac_cpp='$CPP $CPPFLAGS' |
| 31869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31872 | |
| 31873 | |
| 31874 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31875 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 31876 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31877 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 31878 | |
| 31879 | cat >>confdefs.h <<\_ACEOF |
| 31880 | #define HAVE_NAMESPACES |
| 31881 | _ACEOF |
| 31882 | |
| 31883 | fi |
| 31884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31885 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 31886 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31887 | if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31889 | else |
| 31890 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31891 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31892 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31893 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31894 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31895 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31896 | |
| 31897 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31898 | /* confdefs.h. */ |
| 31899 | _ACEOF |
| 31900 | cat confdefs.h >>conftest.$ac_ext |
| 31901 | cat >>conftest.$ac_ext <<_ACEOF |
| 31902 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31903 | #include <ext/hash_map> |
| 31904 | #ifdef HAVE_NAMESPACES |
| 31905 | using namespace std; |
| 31906 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31907 | int |
| 31908 | main () |
| 31909 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31910 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31911 | ; |
| 31912 | return 0; |
| 31913 | } |
| 31914 | _ACEOF |
| 31915 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31916 | if { (ac_try="$ac_compile" |
| 31917 | case "(($ac_try" in |
| 31918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31919 | *) ac_try_echo=$ac_try;; |
| 31920 | esac |
| 31921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31922 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31923 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31925 | rm -f conftest.er1 |
| 31926 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31928 | (exit $ac_status); } && |
| 31929 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31930 | { (case "(($ac_try" in |
| 31931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31932 | *) ac_try_echo=$ac_try;; |
| 31933 | esac |
| 31934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31935 | (eval "$ac_try") 2>&5 |
| 31936 | ac_status=$? |
| 31937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31938 | (exit $ac_status); }; } && |
| 31939 | { ac_try='test -s conftest.$ac_objext' |
| 31940 | { (case "(($ac_try" in |
| 31941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31942 | *) ac_try_echo=$ac_try;; |
| 31943 | esac |
| 31944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31945 | (eval "$ac_try") 2>&5 |
| 31946 | ac_status=$? |
| 31947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31948 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31949 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31950 | else |
| 31951 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31953 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31954 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31955 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31956 | |
| 31957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31958 | ac_ext=c |
| 31959 | ac_cpp='$CPP $CPPFLAGS' |
| 31960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31963 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31964 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31965 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 31966 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31967 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 31968 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31969 | |
| 31970 | cat >>confdefs.h <<\_ACEOF |
| 31971 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 31972 | _ACEOF |
| 31973 | |
| 31974 | else |
| 31975 | |
| 31976 | cat >>confdefs.h <<\_ACEOF |
| 31977 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 31978 | _ACEOF |
| 31979 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31980 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31982 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 31983 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31984 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 31985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31986 | else |
| 31987 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31988 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31989 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31990 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31991 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31992 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31993 | |
| 31994 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31995 | /* confdefs.h. */ |
| 31996 | _ACEOF |
| 31997 | cat confdefs.h >>conftest.$ac_ext |
| 31998 | cat >>conftest.$ac_ext <<_ACEOF |
| 31999 | /* end confdefs.h. */ |
| 32000 | #include <ext/hash_map> |
| 32001 | #ifdef HAVE_NAMESPACES |
| 32002 | using namespace __gnu_cxx; |
| 32003 | #endif |
| 32004 | int |
| 32005 | main () |
| 32006 | { |
| 32007 | hash_map<int,int> t; |
| 32008 | ; |
| 32009 | return 0; |
| 32010 | } |
| 32011 | _ACEOF |
| 32012 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32013 | if { (ac_try="$ac_compile" |
| 32014 | case "(($ac_try" in |
| 32015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32016 | *) ac_try_echo=$ac_try;; |
| 32017 | esac |
| 32018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32019 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32020 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32022 | rm -f conftest.er1 |
| 32023 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32025 | (exit $ac_status); } && |
| 32026 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32027 | { (case "(($ac_try" in |
| 32028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32029 | *) ac_try_echo=$ac_try;; |
| 32030 | esac |
| 32031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32032 | (eval "$ac_try") 2>&5 |
| 32033 | ac_status=$? |
| 32034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32035 | (exit $ac_status); }; } && |
| 32036 | { ac_try='test -s conftest.$ac_objext' |
| 32037 | { (case "(($ac_try" in |
| 32038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32039 | *) ac_try_echo=$ac_try;; |
| 32040 | esac |
| 32041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32042 | (eval "$ac_try") 2>&5 |
| 32043 | ac_status=$? |
| 32044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32045 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32046 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 32047 | else |
| 32048 | echo "$as_me: failed program was:" >&5 |
| 32049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32051 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32052 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32053 | |
| 32054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32055 | ac_ext=c |
| 32056 | ac_cpp='$CPP $CPPFLAGS' |
| 32057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32060 | |
| 32061 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32062 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 32063 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32064 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 32065 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32066 | |
| 32067 | cat >>confdefs.h <<\_ACEOF |
| 32068 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 32069 | _ACEOF |
| 32070 | |
| 32071 | else |
| 32072 | |
| 32073 | cat >>confdefs.h <<\_ACEOF |
| 32074 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 32075 | _ACEOF |
| 32076 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32077 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32079 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 32080 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32081 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 32082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32083 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32084 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32085 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32086 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32087 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32088 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32089 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32090 | |
| 32091 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32092 | /* confdefs.h. */ |
| 32093 | _ACEOF |
| 32094 | cat confdefs.h >>conftest.$ac_ext |
| 32095 | cat >>conftest.$ac_ext <<_ACEOF |
| 32096 | /* end confdefs.h. */ |
| 32097 | #include <hash_map> |
| 32098 | int |
| 32099 | main () |
| 32100 | { |
| 32101 | hash_map<int,int> t; |
| 32102 | ; |
| 32103 | return 0; |
| 32104 | } |
| 32105 | _ACEOF |
| 32106 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32107 | if { (ac_try="$ac_compile" |
| 32108 | case "(($ac_try" in |
| 32109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32110 | *) ac_try_echo=$ac_try;; |
| 32111 | esac |
| 32112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32113 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32114 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32116 | rm -f conftest.er1 |
| 32117 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32119 | (exit $ac_status); } && |
| 32120 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32121 | { (case "(($ac_try" in |
| 32122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32123 | *) ac_try_echo=$ac_try;; |
| 32124 | esac |
| 32125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32126 | (eval "$ac_try") 2>&5 |
| 32127 | ac_status=$? |
| 32128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32129 | (exit $ac_status); }; } && |
| 32130 | { ac_try='test -s conftest.$ac_objext' |
| 32131 | { (case "(($ac_try" in |
| 32132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32133 | *) ac_try_echo=$ac_try;; |
| 32134 | esac |
| 32135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32136 | (eval "$ac_try") 2>&5 |
| 32137 | ac_status=$? |
| 32138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32139 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32140 | ac_cv_cxx_have_global_hash_map=yes |
| 32141 | else |
| 32142 | echo "$as_me: failed program was:" >&5 |
| 32143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32144 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32145 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32146 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32147 | |
| 32148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32149 | ac_ext=c |
| 32150 | ac_cpp='$CPP $CPPFLAGS' |
| 32151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32154 | |
| 32155 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32156 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 32157 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32158 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 32159 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32160 | |
| 32161 | cat >>confdefs.h <<\_ACEOF |
| 32162 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 32163 | _ACEOF |
| 32164 | |
| 32165 | else |
| 32166 | |
| 32167 | cat >>confdefs.h <<\_ACEOF |
| 32168 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 32169 | _ACEOF |
| 32170 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32171 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32172 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32173 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 32174 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32175 | if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32177 | else |
| 32178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32179 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32180 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32181 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32182 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32183 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32184 | |
| 32185 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32186 | /* confdefs.h. */ |
| 32187 | _ACEOF |
| 32188 | cat confdefs.h >>conftest.$ac_ext |
| 32189 | cat >>conftest.$ac_ext <<_ACEOF |
| 32190 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32191 | #include <ext/hash_set> |
| 32192 | #ifdef HAVE_NAMESPACES |
| 32193 | using namespace std; |
| 32194 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32195 | int |
| 32196 | main () |
| 32197 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32198 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32199 | ; |
| 32200 | return 0; |
| 32201 | } |
| 32202 | _ACEOF |
| 32203 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32204 | if { (ac_try="$ac_compile" |
| 32205 | case "(($ac_try" in |
| 32206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32207 | *) ac_try_echo=$ac_try;; |
| 32208 | esac |
| 32209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32210 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32211 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32213 | rm -f conftest.er1 |
| 32214 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32216 | (exit $ac_status); } && |
| 32217 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32218 | { (case "(($ac_try" in |
| 32219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32220 | *) ac_try_echo=$ac_try;; |
| 32221 | esac |
| 32222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32223 | (eval "$ac_try") 2>&5 |
| 32224 | ac_status=$? |
| 32225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32226 | (exit $ac_status); }; } && |
| 32227 | { ac_try='test -s conftest.$ac_objext' |
| 32228 | { (case "(($ac_try" in |
| 32229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32230 | *) ac_try_echo=$ac_try;; |
| 32231 | esac |
| 32232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32233 | (eval "$ac_try") 2>&5 |
| 32234 | ac_status=$? |
| 32235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32236 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32237 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32238 | else |
| 32239 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32242 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32244 | |
| 32245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32246 | ac_ext=c |
| 32247 | ac_cpp='$CPP $CPPFLAGS' |
| 32248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32251 | |
| 32252 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32253 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 32254 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32255 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 32256 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32257 | |
| 32258 | cat >>confdefs.h <<\_ACEOF |
| 32259 | #define HAVE_STD_EXT_HASH_SET 1 |
| 32260 | _ACEOF |
| 32261 | |
| 32262 | else |
| 32263 | |
| 32264 | cat >>confdefs.h <<\_ACEOF |
| 32265 | #define HAVE_STD_EXT_HASH_SET 0 |
| 32266 | _ACEOF |
| 32267 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32268 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32270 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 32271 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32272 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 32273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32274 | else |
| 32275 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32276 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32277 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32278 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32279 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32280 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32281 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32282 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32283 | /* confdefs.h. */ |
| 32284 | _ACEOF |
| 32285 | cat confdefs.h >>conftest.$ac_ext |
| 32286 | cat >>conftest.$ac_ext <<_ACEOF |
| 32287 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32288 | #include <ext/hash_set> |
| 32289 | #ifdef HAVE_NAMESPACES |
| 32290 | using namespace __gnu_cxx; |
| 32291 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32292 | int |
| 32293 | main () |
| 32294 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32295 | hash_set<int> t; |
| 32296 | ; |
| 32297 | return 0; |
| 32298 | } |
| 32299 | _ACEOF |
| 32300 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32301 | if { (ac_try="$ac_compile" |
| 32302 | case "(($ac_try" in |
| 32303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32304 | *) ac_try_echo=$ac_try;; |
| 32305 | esac |
| 32306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32307 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32308 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32310 | rm -f conftest.er1 |
| 32311 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32313 | (exit $ac_status); } && |
| 32314 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32315 | { (case "(($ac_try" in |
| 32316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32317 | *) ac_try_echo=$ac_try;; |
| 32318 | esac |
| 32319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32320 | (eval "$ac_try") 2>&5 |
| 32321 | ac_status=$? |
| 32322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32323 | (exit $ac_status); }; } && |
| 32324 | { ac_try='test -s conftest.$ac_objext' |
| 32325 | { (case "(($ac_try" in |
| 32326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32327 | *) ac_try_echo=$ac_try;; |
| 32328 | esac |
| 32329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32330 | (eval "$ac_try") 2>&5 |
| 32331 | ac_status=$? |
| 32332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32333 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32334 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 32335 | else |
| 32336 | echo "$as_me: failed program was:" >&5 |
| 32337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32339 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32340 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32341 | |
| 32342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32343 | ac_ext=c |
| 32344 | ac_cpp='$CPP $CPPFLAGS' |
| 32345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32348 | |
| 32349 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32350 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 32351 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32352 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 32353 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32354 | |
| 32355 | cat >>confdefs.h <<\_ACEOF |
| 32356 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 32357 | _ACEOF |
| 32358 | |
| 32359 | else |
| 32360 | |
| 32361 | cat >>confdefs.h <<\_ACEOF |
| 32362 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 32363 | _ACEOF |
| 32364 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32365 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32366 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32367 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 32368 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32369 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 32370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32371 | else |
| 32372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32373 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32374 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32375 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32376 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32377 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32378 | |
| 32379 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32380 | /* confdefs.h. */ |
| 32381 | _ACEOF |
| 32382 | cat confdefs.h >>conftest.$ac_ext |
| 32383 | cat >>conftest.$ac_ext <<_ACEOF |
| 32384 | /* end confdefs.h. */ |
| 32385 | #include <hash_set> |
| 32386 | int |
| 32387 | main () |
| 32388 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32389 | hash_set<int> t; return 0; |
| 32390 | ; |
| 32391 | return 0; |
| 32392 | } |
| 32393 | _ACEOF |
| 32394 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32395 | if { (ac_try="$ac_compile" |
| 32396 | case "(($ac_try" in |
| 32397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32398 | *) ac_try_echo=$ac_try;; |
| 32399 | esac |
| 32400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32401 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32402 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32404 | rm -f conftest.er1 |
| 32405 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32407 | (exit $ac_status); } && |
| 32408 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32409 | { (case "(($ac_try" in |
| 32410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32411 | *) ac_try_echo=$ac_try;; |
| 32412 | esac |
| 32413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32414 | (eval "$ac_try") 2>&5 |
| 32415 | ac_status=$? |
| 32416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32417 | (exit $ac_status); }; } && |
| 32418 | { ac_try='test -s conftest.$ac_objext' |
| 32419 | { (case "(($ac_try" in |
| 32420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32421 | *) ac_try_echo=$ac_try;; |
| 32422 | esac |
| 32423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32424 | (eval "$ac_try") 2>&5 |
| 32425 | ac_status=$? |
| 32426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32427 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32428 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32429 | else |
| 32430 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32432 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32433 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32435 | |
| 32436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32437 | ac_ext=c |
| 32438 | ac_cpp='$CPP $CPPFLAGS' |
| 32439 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32440 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32441 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32442 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32443 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32444 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 32445 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32446 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 32447 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32448 | |
| 32449 | cat >>confdefs.h <<\_ACEOF |
| 32450 | #define HAVE_GLOBAL_HASH_SET 1 |
| 32451 | _ACEOF |
| 32452 | |
| 32453 | else |
| 32454 | |
| 32455 | cat >>confdefs.h <<\_ACEOF |
| 32456 | #define HAVE_GLOBAL_HASH_SET 0 |
| 32457 | _ACEOF |
| 32458 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32459 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32460 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32461 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 32462 | 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] | 32463 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 32464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32465 | else |
| 32466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32467 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32468 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32469 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32470 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32471 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32472 | |
| 32473 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32474 | /* confdefs.h. */ |
| 32475 | _ACEOF |
| 32476 | cat confdefs.h >>conftest.$ac_ext |
| 32477 | cat >>conftest.$ac_ext <<_ACEOF |
| 32478 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32479 | #include <iterator> |
| 32480 | #ifdef HAVE_NAMESPACES |
| 32481 | using namespace std; |
| 32482 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32483 | int |
| 32484 | main () |
| 32485 | { |
| 32486 | iterator<int,int,int> t; return 0; |
| 32487 | ; |
| 32488 | return 0; |
| 32489 | } |
| 32490 | _ACEOF |
| 32491 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32492 | if { (ac_try="$ac_compile" |
| 32493 | case "(($ac_try" in |
| 32494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32495 | *) ac_try_echo=$ac_try;; |
| 32496 | esac |
| 32497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32498 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32499 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32501 | rm -f conftest.er1 |
| 32502 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32504 | (exit $ac_status); } && |
| 32505 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32506 | { (case "(($ac_try" in |
| 32507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32508 | *) ac_try_echo=$ac_try;; |
| 32509 | esac |
| 32510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32511 | (eval "$ac_try") 2>&5 |
| 32512 | ac_status=$? |
| 32513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32514 | (exit $ac_status); }; } && |
| 32515 | { ac_try='test -s conftest.$ac_objext' |
| 32516 | { (case "(($ac_try" in |
| 32517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32518 | *) ac_try_echo=$ac_try;; |
| 32519 | esac |
| 32520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32521 | (eval "$ac_try") 2>&5 |
| 32522 | ac_status=$? |
| 32523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32524 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32525 | ac_cv_cxx_have_std_iterator=yes |
| 32526 | else |
| 32527 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32529 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32530 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32531 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32532 | |
| 32533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32534 | ac_ext=c |
| 32535 | ac_cpp='$CPP $CPPFLAGS' |
| 32536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32539 | |
| 32540 | |
| 32541 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32542 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 32543 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32544 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 32545 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32546 | |
| 32547 | cat >>confdefs.h <<\_ACEOF |
| 32548 | #define HAVE_STD_ITERATOR 1 |
| 32549 | _ACEOF |
| 32550 | |
| 32551 | else |
| 32552 | |
| 32553 | cat >>confdefs.h <<\_ACEOF |
| 32554 | #define HAVE_STD_ITERATOR 0 |
| 32555 | _ACEOF |
| 32556 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32557 | fi |
| 32558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32559 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 32560 | 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] | 32561 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 32562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32563 | else |
| 32564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32565 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32566 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32567 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32568 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32569 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32570 | |
| 32571 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32572 | /* confdefs.h. */ |
| 32573 | _ACEOF |
| 32574 | cat confdefs.h >>conftest.$ac_ext |
| 32575 | cat >>conftest.$ac_ext <<_ACEOF |
| 32576 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32577 | #include <iterator> |
| 32578 | #ifdef HAVE_NAMESPACES |
| 32579 | using namespace std; |
| 32580 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32581 | int |
| 32582 | main () |
| 32583 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32584 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32585 | ; |
| 32586 | return 0; |
| 32587 | } |
| 32588 | _ACEOF |
| 32589 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32590 | if { (ac_try="$ac_compile" |
| 32591 | case "(($ac_try" in |
| 32592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32593 | *) ac_try_echo=$ac_try;; |
| 32594 | esac |
| 32595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32596 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32597 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32599 | rm -f conftest.er1 |
| 32600 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32602 | (exit $ac_status); } && |
| 32603 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32604 | { (case "(($ac_try" in |
| 32605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32606 | *) ac_try_echo=$ac_try;; |
| 32607 | esac |
| 32608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32609 | (eval "$ac_try") 2>&5 |
| 32610 | ac_status=$? |
| 32611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32612 | (exit $ac_status); }; } && |
| 32613 | { ac_try='test -s conftest.$ac_objext' |
| 32614 | { (case "(($ac_try" in |
| 32615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32616 | *) ac_try_echo=$ac_try;; |
| 32617 | esac |
| 32618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32619 | (eval "$ac_try") 2>&5 |
| 32620 | ac_status=$? |
| 32621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32622 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32623 | ac_cv_cxx_have_bi_iterator=yes |
| 32624 | else |
| 32625 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32627 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32628 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32629 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32630 | |
| 32631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32632 | ac_ext=c |
| 32633 | ac_cpp='$CPP $CPPFLAGS' |
| 32634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32637 | |
| 32638 | |
| 32639 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32640 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 32641 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32642 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 32643 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32644 | |
| 32645 | cat >>confdefs.h <<\_ACEOF |
| 32646 | #define HAVE_BI_ITERATOR 1 |
| 32647 | _ACEOF |
| 32648 | |
| 32649 | else |
| 32650 | |
| 32651 | cat >>confdefs.h <<\_ACEOF |
| 32652 | #define HAVE_BI_ITERATOR 0 |
| 32653 | _ACEOF |
| 32654 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32655 | fi |
| 32656 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32657 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 32658 | 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] | 32659 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 32660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32661 | else |
| 32662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32663 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32664 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32665 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32666 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32667 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32668 | |
| 32669 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32670 | /* confdefs.h. */ |
| 32671 | _ACEOF |
| 32672 | cat confdefs.h >>conftest.$ac_ext |
| 32673 | cat >>conftest.$ac_ext <<_ACEOF |
| 32674 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32675 | #include <iterator> |
| 32676 | #ifdef HAVE_NAMESPACES |
| 32677 | using namespace std; |
| 32678 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32679 | int |
| 32680 | main () |
| 32681 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32682 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32683 | ; |
| 32684 | return 0; |
| 32685 | } |
| 32686 | _ACEOF |
| 32687 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32688 | if { (ac_try="$ac_compile" |
| 32689 | case "(($ac_try" in |
| 32690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32691 | *) ac_try_echo=$ac_try;; |
| 32692 | esac |
| 32693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32694 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32695 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32697 | rm -f conftest.er1 |
| 32698 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32700 | (exit $ac_status); } && |
| 32701 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32702 | { (case "(($ac_try" in |
| 32703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32704 | *) ac_try_echo=$ac_try;; |
| 32705 | esac |
| 32706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32707 | (eval "$ac_try") 2>&5 |
| 32708 | ac_status=$? |
| 32709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32710 | (exit $ac_status); }; } && |
| 32711 | { ac_try='test -s conftest.$ac_objext' |
| 32712 | { (case "(($ac_try" in |
| 32713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32714 | *) ac_try_echo=$ac_try;; |
| 32715 | esac |
| 32716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32717 | (eval "$ac_try") 2>&5 |
| 32718 | ac_status=$? |
| 32719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32720 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32721 | ac_cv_cxx_have_fwd_iterator=yes |
| 32722 | else |
| 32723 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32725 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32726 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32727 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32728 | |
| 32729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32730 | ac_ext=c |
| 32731 | ac_cpp='$CPP $CPPFLAGS' |
| 32732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32735 | |
| 32736 | |
| 32737 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32738 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 32739 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32740 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 32741 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32742 | |
| 32743 | cat >>confdefs.h <<\_ACEOF |
| 32744 | #define HAVE_FWD_ITERATOR 1 |
| 32745 | _ACEOF |
| 32746 | |
| 32747 | else |
| 32748 | |
| 32749 | cat >>confdefs.h <<\_ACEOF |
| 32750 | #define HAVE_FWD_ITERATOR 0 |
| 32751 | _ACEOF |
| 32752 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32753 | fi |
| 32754 | |
| 32755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32756 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 32757 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32758 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 32759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32760 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32761 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32762 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32763 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32764 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32765 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32766 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32767 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32768 | /* confdefs.h. */ |
| 32769 | _ACEOF |
| 32770 | cat confdefs.h >>conftest.$ac_ext |
| 32771 | cat >>conftest.$ac_ext <<_ACEOF |
| 32772 | /* end confdefs.h. */ |
| 32773 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32774 | int |
| 32775 | main () |
| 32776 | { |
| 32777 | float f; isnan(f); |
| 32778 | ; |
| 32779 | return 0; |
| 32780 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32781 | _ACEOF |
| 32782 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32783 | if { (ac_try="$ac_compile" |
| 32784 | case "(($ac_try" in |
| 32785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32786 | *) ac_try_echo=$ac_try;; |
| 32787 | esac |
| 32788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32789 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32790 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32792 | rm -f conftest.er1 |
| 32793 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32795 | (exit $ac_status); } && |
| 32796 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32797 | { (case "(($ac_try" in |
| 32798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32799 | *) ac_try_echo=$ac_try;; |
| 32800 | esac |
| 32801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32802 | (eval "$ac_try") 2>&5 |
| 32803 | ac_status=$? |
| 32804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32805 | (exit $ac_status); }; } && |
| 32806 | { ac_try='test -s conftest.$ac_objext' |
| 32807 | { (case "(($ac_try" in |
| 32808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32809 | *) ac_try_echo=$ac_try;; |
| 32810 | esac |
| 32811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32812 | (eval "$ac_try") 2>&5 |
| 32813 | ac_status=$? |
| 32814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32815 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32816 | ac_cv_func_isnan_in_math_h=yes |
| 32817 | else |
| 32818 | echo "$as_me: failed program was:" >&5 |
| 32819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32821 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32822 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32823 | |
| 32824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32825 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32826 | ac_cpp='$CPP $CPPFLAGS' |
| 32827 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32828 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32829 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32830 | |
| 32831 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32832 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 32833 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32834 | |
| 32835 | |
| 32836 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32837 | |
| 32838 | cat >>confdefs.h <<\_ACEOF |
| 32839 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 32840 | _ACEOF |
| 32841 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32842 | fi |
| 32843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32844 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 32845 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32846 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 32847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32848 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32849 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32850 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32851 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32852 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32853 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32854 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32855 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32856 | /* confdefs.h. */ |
| 32857 | _ACEOF |
| 32858 | cat confdefs.h >>conftest.$ac_ext |
| 32859 | cat >>conftest.$ac_ext <<_ACEOF |
| 32860 | /* end confdefs.h. */ |
| 32861 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32862 | int |
| 32863 | main () |
| 32864 | { |
| 32865 | float f; isnan(f); |
| 32866 | ; |
| 32867 | return 0; |
| 32868 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32869 | _ACEOF |
| 32870 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32871 | if { (ac_try="$ac_compile" |
| 32872 | case "(($ac_try" in |
| 32873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32874 | *) ac_try_echo=$ac_try;; |
| 32875 | esac |
| 32876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32877 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32878 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32880 | rm -f conftest.er1 |
| 32881 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32883 | (exit $ac_status); } && |
| 32884 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32885 | { (case "(($ac_try" in |
| 32886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32887 | *) ac_try_echo=$ac_try;; |
| 32888 | esac |
| 32889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32890 | (eval "$ac_try") 2>&5 |
| 32891 | ac_status=$? |
| 32892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32893 | (exit $ac_status); }; } && |
| 32894 | { ac_try='test -s conftest.$ac_objext' |
| 32895 | { (case "(($ac_try" in |
| 32896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32897 | *) ac_try_echo=$ac_try;; |
| 32898 | esac |
| 32899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32900 | (eval "$ac_try") 2>&5 |
| 32901 | ac_status=$? |
| 32902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32903 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32904 | ac_cv_func_isnan_in_cmath=yes |
| 32905 | else |
| 32906 | echo "$as_me: failed program was:" >&5 |
| 32907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32909 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32910 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32911 | |
| 32912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32913 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32914 | ac_cpp='$CPP $CPPFLAGS' |
| 32915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32918 | |
| 32919 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32920 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 32921 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32922 | |
| 32923 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32924 | |
| 32925 | cat >>confdefs.h <<\_ACEOF |
| 32926 | #define HAVE_ISNAN_IN_CMATH 1 |
| 32927 | _ACEOF |
| 32928 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32929 | fi |
| 32930 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32931 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 32932 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32933 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 32934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32935 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32936 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32937 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32938 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32939 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32940 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32941 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32942 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32943 | /* confdefs.h. */ |
| 32944 | _ACEOF |
| 32945 | cat confdefs.h >>conftest.$ac_ext |
| 32946 | cat >>conftest.$ac_ext <<_ACEOF |
| 32947 | /* end confdefs.h. */ |
| 32948 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32949 | int |
| 32950 | main () |
| 32951 | { |
| 32952 | float f; std::isnan(f); |
| 32953 | ; |
| 32954 | return 0; |
| 32955 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32956 | _ACEOF |
| 32957 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32958 | if { (ac_try="$ac_compile" |
| 32959 | case "(($ac_try" in |
| 32960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32961 | *) ac_try_echo=$ac_try;; |
| 32962 | esac |
| 32963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32964 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32965 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32967 | rm -f conftest.er1 |
| 32968 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32970 | (exit $ac_status); } && |
| 32971 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32972 | { (case "(($ac_try" in |
| 32973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32974 | *) ac_try_echo=$ac_try;; |
| 32975 | esac |
| 32976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32977 | (eval "$ac_try") 2>&5 |
| 32978 | ac_status=$? |
| 32979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32980 | (exit $ac_status); }; } && |
| 32981 | { ac_try='test -s conftest.$ac_objext' |
| 32982 | { (case "(($ac_try" in |
| 32983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32984 | *) ac_try_echo=$ac_try;; |
| 32985 | esac |
| 32986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32987 | (eval "$ac_try") 2>&5 |
| 32988 | ac_status=$? |
| 32989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32990 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32991 | ac_cv_func_std_isnan_in_cmath=yes |
| 32992 | else |
| 32993 | echo "$as_me: failed program was:" >&5 |
| 32994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32996 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32997 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32998 | |
| 32999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33000 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33001 | ac_cpp='$CPP $CPPFLAGS' |
| 33002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33005 | |
| 33006 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33007 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 33008 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33009 | |
| 33010 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33011 | |
| 33012 | cat >>confdefs.h <<\_ACEOF |
| 33013 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 33014 | _ACEOF |
| 33015 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33016 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33017 | |
| 33018 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33019 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 33020 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33021 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 33022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33023 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33024 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33025 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33026 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33027 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33028 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33029 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33030 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33031 | /* confdefs.h. */ |
| 33032 | _ACEOF |
| 33033 | cat confdefs.h >>conftest.$ac_ext |
| 33034 | cat >>conftest.$ac_ext <<_ACEOF |
| 33035 | /* end confdefs.h. */ |
| 33036 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33037 | int |
| 33038 | main () |
| 33039 | { |
| 33040 | float f; isinf(f); |
| 33041 | ; |
| 33042 | return 0; |
| 33043 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33044 | _ACEOF |
| 33045 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33046 | if { (ac_try="$ac_compile" |
| 33047 | case "(($ac_try" in |
| 33048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33049 | *) ac_try_echo=$ac_try;; |
| 33050 | esac |
| 33051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33052 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33053 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33055 | rm -f conftest.er1 |
| 33056 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33058 | (exit $ac_status); } && |
| 33059 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33060 | { (case "(($ac_try" in |
| 33061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33062 | *) ac_try_echo=$ac_try;; |
| 33063 | esac |
| 33064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33065 | (eval "$ac_try") 2>&5 |
| 33066 | ac_status=$? |
| 33067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33068 | (exit $ac_status); }; } && |
| 33069 | { ac_try='test -s conftest.$ac_objext' |
| 33070 | { (case "(($ac_try" in |
| 33071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33072 | *) ac_try_echo=$ac_try;; |
| 33073 | esac |
| 33074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33075 | (eval "$ac_try") 2>&5 |
| 33076 | ac_status=$? |
| 33077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33078 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33079 | ac_cv_func_isinf_in_math_h=yes |
| 33080 | else |
| 33081 | echo "$as_me: failed program was:" >&5 |
| 33082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33084 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33085 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33086 | |
| 33087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33088 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33089 | ac_cpp='$CPP $CPPFLAGS' |
| 33090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33093 | |
| 33094 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33095 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 33096 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33097 | |
| 33098 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33099 | |
| 33100 | cat >>confdefs.h <<\_ACEOF |
| 33101 | #define HAVE_ISINF_IN_MATH_H 1 |
| 33102 | _ACEOF |
| 33103 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33104 | fi |
| 33105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33106 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 33107 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33108 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 33109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33110 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33111 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33112 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33113 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33114 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33115 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33116 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33117 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33118 | /* confdefs.h. */ |
| 33119 | _ACEOF |
| 33120 | cat confdefs.h >>conftest.$ac_ext |
| 33121 | cat >>conftest.$ac_ext <<_ACEOF |
| 33122 | /* end confdefs.h. */ |
| 33123 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33124 | int |
| 33125 | main () |
| 33126 | { |
| 33127 | float f; isinf(f); |
| 33128 | ; |
| 33129 | return 0; |
| 33130 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33131 | _ACEOF |
| 33132 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33133 | if { (ac_try="$ac_compile" |
| 33134 | case "(($ac_try" in |
| 33135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33136 | *) ac_try_echo=$ac_try;; |
| 33137 | esac |
| 33138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33139 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33140 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33142 | rm -f conftest.er1 |
| 33143 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33145 | (exit $ac_status); } && |
| 33146 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33147 | { (case "(($ac_try" in |
| 33148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33149 | *) ac_try_echo=$ac_try;; |
| 33150 | esac |
| 33151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33152 | (eval "$ac_try") 2>&5 |
| 33153 | ac_status=$? |
| 33154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33155 | (exit $ac_status); }; } && |
| 33156 | { ac_try='test -s conftest.$ac_objext' |
| 33157 | { (case "(($ac_try" in |
| 33158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33159 | *) ac_try_echo=$ac_try;; |
| 33160 | esac |
| 33161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33162 | (eval "$ac_try") 2>&5 |
| 33163 | ac_status=$? |
| 33164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33165 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33166 | ac_cv_func_isinf_in_cmath=yes |
| 33167 | else |
| 33168 | echo "$as_me: failed program was:" >&5 |
| 33169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33171 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33172 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33173 | |
| 33174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33175 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33176 | ac_cpp='$CPP $CPPFLAGS' |
| 33177 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33178 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33179 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33180 | |
| 33181 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33182 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 33183 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33184 | |
| 33185 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33186 | |
| 33187 | cat >>confdefs.h <<\_ACEOF |
| 33188 | #define HAVE_ISINF_IN_CMATH 1 |
| 33189 | _ACEOF |
| 33190 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33191 | fi |
| 33192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33193 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 33194 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33195 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 33196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33197 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33198 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33199 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33200 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33201 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33202 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33203 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33204 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33205 | /* confdefs.h. */ |
| 33206 | _ACEOF |
| 33207 | cat confdefs.h >>conftest.$ac_ext |
| 33208 | cat >>conftest.$ac_ext <<_ACEOF |
| 33209 | /* end confdefs.h. */ |
| 33210 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33211 | int |
| 33212 | main () |
| 33213 | { |
| 33214 | float f; std::isinf(f)} |
| 33215 | ; |
| 33216 | return 0; |
| 33217 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33218 | _ACEOF |
| 33219 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33220 | if { (ac_try="$ac_compile" |
| 33221 | case "(($ac_try" in |
| 33222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33223 | *) ac_try_echo=$ac_try;; |
| 33224 | esac |
| 33225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33226 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33227 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33229 | rm -f conftest.er1 |
| 33230 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33232 | (exit $ac_status); } && |
| 33233 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33234 | { (case "(($ac_try" in |
| 33235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33236 | *) ac_try_echo=$ac_try;; |
| 33237 | esac |
| 33238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33239 | (eval "$ac_try") 2>&5 |
| 33240 | ac_status=$? |
| 33241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33242 | (exit $ac_status); }; } && |
| 33243 | { ac_try='test -s conftest.$ac_objext' |
| 33244 | { (case "(($ac_try" in |
| 33245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33246 | *) ac_try_echo=$ac_try;; |
| 33247 | esac |
| 33248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33249 | (eval "$ac_try") 2>&5 |
| 33250 | ac_status=$? |
| 33251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33252 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33253 | ac_cv_func_std_isinf_in_cmath=yes |
| 33254 | else |
| 33255 | echo "$as_me: failed program was:" >&5 |
| 33256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33258 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33259 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33260 | |
| 33261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33262 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33263 | ac_cpp='$CPP $CPPFLAGS' |
| 33264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33267 | |
| 33268 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33269 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 33270 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33271 | |
| 33272 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33273 | |
| 33274 | cat >>confdefs.h <<\_ACEOF |
| 33275 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 33276 | _ACEOF |
| 33277 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33278 | fi |
| 33279 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33280 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 33281 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33282 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 33283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33284 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33285 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33286 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33287 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33288 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33289 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33290 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33291 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33292 | /* confdefs.h. */ |
| 33293 | _ACEOF |
| 33294 | cat confdefs.h >>conftest.$ac_ext |
| 33295 | cat >>conftest.$ac_ext <<_ACEOF |
| 33296 | /* end confdefs.h. */ |
| 33297 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33298 | int |
| 33299 | main () |
| 33300 | { |
| 33301 | float f; finite(f); |
| 33302 | ; |
| 33303 | return 0; |
| 33304 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33305 | _ACEOF |
| 33306 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33307 | if { (ac_try="$ac_compile" |
| 33308 | case "(($ac_try" in |
| 33309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33310 | *) ac_try_echo=$ac_try;; |
| 33311 | esac |
| 33312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33313 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33314 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33316 | rm -f conftest.er1 |
| 33317 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33319 | (exit $ac_status); } && |
| 33320 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33321 | { (case "(($ac_try" in |
| 33322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33323 | *) ac_try_echo=$ac_try;; |
| 33324 | esac |
| 33325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33326 | (eval "$ac_try") 2>&5 |
| 33327 | ac_status=$? |
| 33328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33329 | (exit $ac_status); }; } && |
| 33330 | { ac_try='test -s conftest.$ac_objext' |
| 33331 | { (case "(($ac_try" in |
| 33332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33333 | *) ac_try_echo=$ac_try;; |
| 33334 | esac |
| 33335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33336 | (eval "$ac_try") 2>&5 |
| 33337 | ac_status=$? |
| 33338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33339 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33340 | ac_cv_func_finite_in_ieeefp_h=yes |
| 33341 | else |
| 33342 | echo "$as_me: failed program was:" >&5 |
| 33343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33345 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33346 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33347 | |
| 33348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33349 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33350 | ac_cpp='$CPP $CPPFLAGS' |
| 33351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33354 | |
| 33355 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33356 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 33357 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33358 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 33359 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33360 | |
| 33361 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 33362 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33363 | _ACEOF |
| 33364 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33365 | fi |
| 33366 | |
| 33367 | |
| 33368 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33369 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33370 | |
| 33371 | |
| 33372 | for ac_header in stdlib.h unistd.h |
| 33373 | do |
| 33374 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33375 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 33376 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 33377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 33378 | 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] | 33379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33380 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33381 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 33382 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33383 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33384 | else |
| 33385 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33386 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 33387 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33388 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33389 | /* confdefs.h. */ |
| 33390 | _ACEOF |
| 33391 | cat confdefs.h >>conftest.$ac_ext |
| 33392 | cat >>conftest.$ac_ext <<_ACEOF |
| 33393 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33394 | $ac_includes_default |
| 33395 | #include <$ac_header> |
| 33396 | _ACEOF |
| 33397 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33398 | if { (ac_try="$ac_compile" |
| 33399 | case "(($ac_try" in |
| 33400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33401 | *) ac_try_echo=$ac_try;; |
| 33402 | esac |
| 33403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33404 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33405 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33407 | rm -f conftest.er1 |
| 33408 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33410 | (exit $ac_status); } && |
| 33411 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33412 | { (case "(($ac_try" in |
| 33413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33414 | *) ac_try_echo=$ac_try;; |
| 33415 | esac |
| 33416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33417 | (eval "$ac_try") 2>&5 |
| 33418 | ac_status=$? |
| 33419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33420 | (exit $ac_status); }; } && |
| 33421 | { ac_try='test -s conftest.$ac_objext' |
| 33422 | { (case "(($ac_try" in |
| 33423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33424 | *) ac_try_echo=$ac_try;; |
| 33425 | esac |
| 33426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33427 | (eval "$ac_try") 2>&5 |
| 33428 | ac_status=$? |
| 33429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33430 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33431 | ac_header_compiler=yes |
| 33432 | else |
| 33433 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33436 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33437 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33438 | |
| 33439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33440 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 33441 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33442 | |
| 33443 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33444 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 33445 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33446 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33447 | /* confdefs.h. */ |
| 33448 | _ACEOF |
| 33449 | cat confdefs.h >>conftest.$ac_ext |
| 33450 | cat >>conftest.$ac_ext <<_ACEOF |
| 33451 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33452 | #include <$ac_header> |
| 33453 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33454 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 33455 | case "(($ac_try" in |
| 33456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33457 | *) ac_try_echo=$ac_try;; |
| 33458 | esac |
| 33459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33461 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33462 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33463 | rm -f conftest.er1 |
| 33464 | cat conftest.err >&5 |
| 33465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33466 | (exit $ac_status); } >/dev/null; then |
| 33467 | if test -s conftest.err; then |
| 33468 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 33469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 33470 | else |
| 33471 | ac_cpp_err= |
| 33472 | fi |
| 33473 | else |
| 33474 | ac_cpp_err=yes |
| 33475 | fi |
| 33476 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33477 | ac_header_preproc=yes |
| 33478 | else |
| 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 | ac_header_preproc=no |
| 33483 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33484 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33485 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33486 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 33487 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33488 | |
| 33489 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33490 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 33491 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33492 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 33493 | 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] | 33494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 33495 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 33496 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33497 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33498 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33499 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 33500 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33501 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 33502 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 33503 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 33504 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 33505 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 33506 | 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] | 33507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 33508 | 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] | 33509 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 33510 | 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] | 33511 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33512 | ## ----------------------------------- ## |
| 33513 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 33514 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33515 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33516 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33517 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33518 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33519 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 33520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 33521 | 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] | 33522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33523 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33524 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33525 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33526 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 33527 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33528 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33529 | |
| 33530 | fi |
| 33531 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 33532 | cat >>confdefs.h <<_ACEOF |
| 33533 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 33534 | _ACEOF |
| 33535 | |
| 33536 | fi |
| 33537 | |
| 33538 | done |
| 33539 | |
| 33540 | |
| 33541 | for ac_func in getpagesize |
| 33542 | do |
| 33543 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33544 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 33545 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 33546 | 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] | 33547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33548 | else |
| 33549 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33550 | /* confdefs.h. */ |
| 33551 | _ACEOF |
| 33552 | cat confdefs.h >>conftest.$ac_ext |
| 33553 | cat >>conftest.$ac_ext <<_ACEOF |
| 33554 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33555 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 33556 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33557 | #define $ac_func innocuous_$ac_func |
| 33558 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33559 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33560 | which can conflict with char $ac_func (); below. |
| 33561 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33562 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33563 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33564 | #ifdef __STDC__ |
| 33565 | # include <limits.h> |
| 33566 | #else |
| 33567 | # include <assert.h> |
| 33568 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33569 | |
| 33570 | #undef $ac_func |
| 33571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33572 | /* Override any GCC internal prototype to avoid an error. |
| 33573 | Use char because int might match the return type of a GCC |
| 33574 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33575 | #ifdef __cplusplus |
| 33576 | extern "C" |
| 33577 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33578 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33579 | /* The GNU C library defines this for functions which it implements |
| 33580 | to always fail with ENOSYS. Some functions are actually named |
| 33581 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33582 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33583 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33584 | #endif |
| 33585 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33586 | int |
| 33587 | main () |
| 33588 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33589 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33590 | ; |
| 33591 | return 0; |
| 33592 | } |
| 33593 | _ACEOF |
| 33594 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33595 | if { (ac_try="$ac_link" |
| 33596 | case "(($ac_try" in |
| 33597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33598 | *) ac_try_echo=$ac_try;; |
| 33599 | esac |
| 33600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33601 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33602 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33604 | rm -f conftest.er1 |
| 33605 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33607 | (exit $ac_status); } && |
| 33608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33609 | { (case "(($ac_try" in |
| 33610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33611 | *) ac_try_echo=$ac_try;; |
| 33612 | esac |
| 33613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33614 | (eval "$ac_try") 2>&5 |
| 33615 | ac_status=$? |
| 33616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33617 | (exit $ac_status); }; } && |
| 33618 | { ac_try='test -s conftest$ac_exeext' |
| 33619 | { (case "(($ac_try" in |
| 33620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33621 | *) ac_try_echo=$ac_try;; |
| 33622 | esac |
| 33623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33624 | (eval "$ac_try") 2>&5 |
| 33625 | ac_status=$? |
| 33626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33627 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33628 | eval "$as_ac_var=yes" |
| 33629 | else |
| 33630 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33633 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33634 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33635 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33636 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33637 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33638 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33639 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33640 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33641 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33642 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33643 | cat >>confdefs.h <<_ACEOF |
| 33644 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 33645 | _ACEOF |
| 33646 | |
| 33647 | fi |
| 33648 | done |
| 33649 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33650 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 33651 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33652 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 33653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33654 | else |
| 33655 | if test "$cross_compiling" = yes; then |
| 33656 | ac_cv_func_mmap_fixed_mapped=no |
| 33657 | else |
| 33658 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33659 | /* confdefs.h. */ |
| 33660 | _ACEOF |
| 33661 | cat confdefs.h >>conftest.$ac_ext |
| 33662 | cat >>conftest.$ac_ext <<_ACEOF |
| 33663 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33664 | $ac_includes_default |
| 33665 | /* malloc might have been renamed as rpl_malloc. */ |
| 33666 | #undef malloc |
| 33667 | |
| 33668 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 33669 | Here is a matrix of mmap possibilities: |
| 33670 | mmap private not fixed |
| 33671 | mmap private fixed at somewhere currently unmapped |
| 33672 | mmap private fixed at somewhere already mapped |
| 33673 | mmap shared not fixed |
| 33674 | mmap shared fixed at somewhere currently unmapped |
| 33675 | mmap shared fixed at somewhere already mapped |
| 33676 | For private mappings, we should verify that changes cannot be read() |
| 33677 | back from the file, nor mmap's back from the file at a different |
| 33678 | address. (There have been systems where private was not correctly |
| 33679 | implemented like the infamous i386 svr4.0, and systems where the |
| 33680 | VM page cache was not coherent with the file system buffer cache |
| 33681 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 33682 | For shared mappings, we should conversely verify that changes get |
| 33683 | propagated back to all the places they're supposed to be. |
| 33684 | |
| 33685 | Grep wants private fixed already mapped. |
| 33686 | The main things grep needs to know about mmap are: |
| 33687 | * does it exist and is it safe to write into the mmap'd area |
| 33688 | * how to use it (BSD variants) */ |
| 33689 | |
| 33690 | #include <fcntl.h> |
| 33691 | #include <sys/mman.h> |
| 33692 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33693 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33694 | char *malloc (); |
| 33695 | #endif |
| 33696 | |
| 33697 | /* This mess was copied from the GNU getpagesize.h. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33698 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33699 | /* Assume that all systems that can run configure have sys/param.h. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33700 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33701 | # define HAVE_SYS_PARAM_H 1 |
| 33702 | # endif |
| 33703 | |
| 33704 | # ifdef _SC_PAGESIZE |
| 33705 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 33706 | # else /* no _SC_PAGESIZE */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33707 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33708 | # include <sys/param.h> |
| 33709 | # ifdef EXEC_PAGESIZE |
| 33710 | # define getpagesize() EXEC_PAGESIZE |
| 33711 | # else /* no EXEC_PAGESIZE */ |
| 33712 | # ifdef NBPG |
| 33713 | # define getpagesize() NBPG * CLSIZE |
| 33714 | # ifndef CLSIZE |
| 33715 | # define CLSIZE 1 |
| 33716 | # endif /* no CLSIZE */ |
| 33717 | # else /* no NBPG */ |
| 33718 | # ifdef NBPC |
| 33719 | # define getpagesize() NBPC |
| 33720 | # else /* no NBPC */ |
| 33721 | # ifdef PAGESIZE |
| 33722 | # define getpagesize() PAGESIZE |
| 33723 | # endif /* PAGESIZE */ |
| 33724 | # endif /* no NBPC */ |
| 33725 | # endif /* no NBPG */ |
| 33726 | # endif /* no EXEC_PAGESIZE */ |
| 33727 | # else /* no HAVE_SYS_PARAM_H */ |
| 33728 | # define getpagesize() 8192 /* punt totally */ |
| 33729 | # endif /* no HAVE_SYS_PARAM_H */ |
| 33730 | # endif /* no _SC_PAGESIZE */ |
| 33731 | |
| 33732 | #endif /* no HAVE_GETPAGESIZE */ |
| 33733 | |
| 33734 | int |
| 33735 | main () |
| 33736 | { |
| 33737 | char *data, *data2, *data3; |
| 33738 | int i, pagesize; |
| 33739 | int fd; |
| 33740 | |
| 33741 | pagesize = getpagesize (); |
| 33742 | |
| 33743 | /* First, make a file with some known garbage in it. */ |
| 33744 | data = (char *) malloc (pagesize); |
| 33745 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33746 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33747 | for (i = 0; i < pagesize; ++i) |
| 33748 | *(data + i) = rand (); |
| 33749 | umask (0); |
| 33750 | fd = creat ("conftest.mmap", 0600); |
| 33751 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33752 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33753 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33754 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33755 | close (fd); |
| 33756 | |
| 33757 | /* Next, try to mmap the file at a fixed address which already has |
| 33758 | something else allocated at it. If we can, also make sure that |
| 33759 | we see the same garbage. */ |
| 33760 | fd = open ("conftest.mmap", O_RDWR); |
| 33761 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33762 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33763 | data2 = (char *) malloc (2 * pagesize); |
| 33764 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33765 | return 1; |
| 33766 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33767 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33768 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33769 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33770 | for (i = 0; i < pagesize; ++i) |
| 33771 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33772 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33773 | |
| 33774 | /* Finally, make sure that changes to the mapped area do not |
| 33775 | percolate back to the file as seen by read(). (This is a bug on |
| 33776 | some variants of i386 svr4.0.) */ |
| 33777 | for (i = 0; i < pagesize; ++i) |
| 33778 | *(data2 + i) = *(data2 + i) + 1; |
| 33779 | data3 = (char *) malloc (pagesize); |
| 33780 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33781 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33782 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33783 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33784 | for (i = 0; i < pagesize; ++i) |
| 33785 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33786 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33787 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33788 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33789 | } |
| 33790 | _ACEOF |
| 33791 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33792 | if { (ac_try="$ac_link" |
| 33793 | case "(($ac_try" in |
| 33794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33795 | *) ac_try_echo=$ac_try;; |
| 33796 | esac |
| 33797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33798 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33799 | ac_status=$? |
| 33800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33802 | { (case "(($ac_try" in |
| 33803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33804 | *) ac_try_echo=$ac_try;; |
| 33805 | esac |
| 33806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33807 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33808 | ac_status=$? |
| 33809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33810 | (exit $ac_status); }; }; then |
| 33811 | ac_cv_func_mmap_fixed_mapped=yes |
| 33812 | else |
| 33813 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33814 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33816 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33817 | ( exit $ac_status ) |
| 33818 | ac_cv_func_mmap_fixed_mapped=no |
| 33819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33820 | 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] | 33821 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33822 | |
| 33823 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33824 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33825 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 33826 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33827 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 33828 | |
| 33829 | cat >>confdefs.h <<\_ACEOF |
| 33830 | #define HAVE_MMAP 1 |
| 33831 | _ACEOF |
| 33832 | |
| 33833 | fi |
| 33834 | rm -f conftest.mmap |
| 33835 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33836 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33837 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33838 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 33839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33840 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33841 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33842 | ac_cpp='$CPP $CPPFLAGS' |
| 33843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33846 | |
| 33847 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33848 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33849 | else |
| 33850 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33851 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33852 | /* confdefs.h. */ |
| 33853 | _ACEOF |
| 33854 | cat confdefs.h >>conftest.$ac_ext |
| 33855 | cat >>conftest.$ac_ext <<_ACEOF |
| 33856 | /* end confdefs.h. */ |
| 33857 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33858 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33859 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33860 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33861 | |
| 33862 | int |
| 33863 | main () |
| 33864 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33865 | |
| 33866 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33867 | fd = creat ("foo",0777); |
| 33868 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 33869 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33870 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33871 | ; |
| 33872 | return 0; |
| 33873 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33874 | _ACEOF |
| 33875 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33876 | if { (ac_try="$ac_link" |
| 33877 | case "(($ac_try" in |
| 33878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33879 | *) ac_try_echo=$ac_try;; |
| 33880 | esac |
| 33881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33882 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33883 | ac_status=$? |
| 33884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33885 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33886 | { (case "(($ac_try" in |
| 33887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33888 | *) ac_try_echo=$ac_try;; |
| 33889 | esac |
| 33890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33891 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33892 | ac_status=$? |
| 33893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33894 | (exit $ac_status); }; }; then |
| 33895 | ac_cv_func_mmap_file=yes |
| 33896 | else |
| 33897 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33898 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33900 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33901 | ( exit $ac_status ) |
| 33902 | ac_cv_func_mmap_file=no |
| 33903 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33904 | 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] | 33905 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33906 | |
| 33907 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33908 | ac_ext=c |
| 33909 | ac_cpp='$CPP $CPPFLAGS' |
| 33910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33913 | |
| 33914 | |
| 33915 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33916 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 33917 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33918 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33919 | |
| 33920 | cat >>confdefs.h <<\_ACEOF |
| 33921 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33922 | _ACEOF |
| 33923 | |
| 33924 | MMAP_FILE=yes |
| 33925 | |
| 33926 | fi |
| 33927 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33928 | { 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] | 33929 | 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] | 33930 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 33931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33932 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33933 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33934 | ac_cv_need_dev_zero_for_mmap=yes |
| 33935 | else |
| 33936 | ac_cv_need_dev_zero_for_mmap=no |
| 33937 | fi |
| 33938 | |
| 33939 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33940 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 33941 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33942 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 33943 | |
| 33944 | cat >>confdefs.h <<\_ACEOF |
| 33945 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 33946 | _ACEOF |
| 33947 | |
| 33948 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33949 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33950 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 33951 | then |
| 33952 | { 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] | 33953 | 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] | 33954 | fi |
| 33955 | if test "$ac_cv_func_mmap_file" = "no" |
| 33956 | then |
| 33957 | { 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] | 33958 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33959 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33960 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33961 | |
| 33962 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 33963 | |
| 33964 | for ac_func in __dso_handle |
| 33965 | do |
| 33966 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 33967 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 33968 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 33969 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 33970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33971 | else |
| 33972 | cat >conftest.$ac_ext <<_ACEOF |
| 33973 | /* confdefs.h. */ |
| 33974 | _ACEOF |
| 33975 | cat confdefs.h >>conftest.$ac_ext |
| 33976 | cat >>conftest.$ac_ext <<_ACEOF |
| 33977 | /* end confdefs.h. */ |
| 33978 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 33979 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33980 | #define $ac_func innocuous_$ac_func |
| 33981 | |
| 33982 | /* System header to define __stub macros and hopefully few prototypes, |
| 33983 | which can conflict with char $ac_func (); below. |
| 33984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33985 | <limits.h> exists even on freestanding compilers. */ |
| 33986 | |
| 33987 | #ifdef __STDC__ |
| 33988 | # include <limits.h> |
| 33989 | #else |
| 33990 | # include <assert.h> |
| 33991 | #endif |
| 33992 | |
| 33993 | #undef $ac_func |
| 33994 | |
| 33995 | /* Override any GCC internal prototype to avoid an error. |
| 33996 | Use char because int might match the return type of a GCC |
| 33997 | builtin and then its argument prototype would still apply. */ |
| 33998 | #ifdef __cplusplus |
| 33999 | extern "C" |
| 34000 | #endif |
| 34001 | char $ac_func (); |
| 34002 | /* The GNU C library defines this for functions which it implements |
| 34003 | to always fail with ENOSYS. Some functions are actually named |
| 34004 | something starting with __ and the normal name is an alias. */ |
| 34005 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 34006 | choke me |
| 34007 | #endif |
| 34008 | |
| 34009 | int |
| 34010 | main () |
| 34011 | { |
| 34012 | return $ac_func (); |
| 34013 | ; |
| 34014 | return 0; |
| 34015 | } |
| 34016 | _ACEOF |
| 34017 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34018 | if { (ac_try="$ac_link" |
| 34019 | case "(($ac_try" in |
| 34020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34021 | *) ac_try_echo=$ac_try;; |
| 34022 | esac |
| 34023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34024 | (eval "$ac_link") 2>conftest.er1 |
| 34025 | ac_status=$? |
| 34026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34027 | rm -f conftest.er1 |
| 34028 | cat conftest.err >&5 |
| 34029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34030 | (exit $ac_status); } && |
| 34031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34032 | { (case "(($ac_try" in |
| 34033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34034 | *) ac_try_echo=$ac_try;; |
| 34035 | esac |
| 34036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34037 | (eval "$ac_try") 2>&5 |
| 34038 | ac_status=$? |
| 34039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34040 | (exit $ac_status); }; } && |
| 34041 | { ac_try='test -s conftest$ac_exeext' |
| 34042 | { (case "(($ac_try" in |
| 34043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34044 | *) ac_try_echo=$ac_try;; |
| 34045 | esac |
| 34046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34047 | (eval "$ac_try") 2>&5 |
| 34048 | ac_status=$? |
| 34049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34050 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34051 | eval "$as_ac_var=yes" |
| 34052 | else |
| 34053 | echo "$as_me: failed program was:" >&5 |
| 34054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34055 | |
| 34056 | eval "$as_ac_var=no" |
| 34057 | fi |
| 34058 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34059 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34060 | conftest$ac_exeext conftest.$ac_ext |
| 34061 | fi |
| 34062 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34063 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34064 | echo "${ECHO_T}$ac_res" >&6; } |
| 34065 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34066 | cat >>confdefs.h <<_ACEOF |
| 34067 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34068 | _ACEOF |
| 34069 | |
| 34070 | fi |
| 34071 | done |
| 34072 | |
| 34073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34074 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 34075 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34076 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 34077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34078 | else |
| 34079 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34080 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34081 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 34082 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 34083 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34084 | if test $? -eq 0 ; then |
| 34085 | llvm_cv_llvmgcc_sanity="yes" |
| 34086 | fi |
| 34087 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34088 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34089 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34090 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 34091 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34092 | |
| 34093 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34094 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 34095 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34096 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34097 | LLVMCC1=$llvmcc1path |
| 34098 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34099 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34100 | LLVMCC1PLUS=$llvmcc1pluspath |
| 34101 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34102 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 34103 | LLVMGCCDIR=$llvmgccdir |
| 34104 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 34105 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 34106 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 34107 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 34108 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 34109 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 34110 | LLVMGCC_VERSION=$llvmgccversion |
| 34111 | |
| 34112 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 34113 | |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34114 | llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'` |
| 34115 | LLVMGCC_LANGS=$llvmgcclangs |
| 34116 | |
| 34117 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 34118 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34119 | fi |
| 34120 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34121 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 34122 | |
| 34123 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34124 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34125 | # information into substitutions that will end up in Makefile.config.in |
| 34126 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 34127 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 34128 | prefix="/usr/local" |
| 34129 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34130 | eval LLVM_PREFIX="${prefix}"; |
| 34131 | eval LLVM_BINDIR="${prefix}/bin"; |
| 34132 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34133 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 34134 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 34135 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34136 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 34137 | eval LLVM_INFODIR="${prefix}/info"; |
| 34138 | eval LLVM_MANDIR="${prefix}/man"; |
| 34139 | LLVM_CONFIGTIME=`date` |
| 34140 | |
| 34141 | |
| 34142 | |
| 34143 | |
| 34144 | |
| 34145 | |
| 34146 | |
| 34147 | |
| 34148 | |
| 34149 | |
| 34150 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34151 | # Place the various directores into the config.h file as #defines so that we |
| 34152 | # can know about the installation paths within LLVM. |
| 34153 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34154 | cat >>confdefs.h <<_ACEOF |
| 34155 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 34156 | _ACEOF |
| 34157 | |
| 34158 | |
| 34159 | cat >>confdefs.h <<_ACEOF |
| 34160 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 34161 | _ACEOF |
| 34162 | |
| 34163 | |
| 34164 | cat >>confdefs.h <<_ACEOF |
| 34165 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 34166 | _ACEOF |
| 34167 | |
| 34168 | |
| 34169 | cat >>confdefs.h <<_ACEOF |
| 34170 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 34171 | _ACEOF |
| 34172 | |
| 34173 | |
| 34174 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 34175 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34176 | _ACEOF |
| 34177 | |
| 34178 | |
| 34179 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 34180 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34181 | _ACEOF |
| 34182 | |
| 34183 | |
| 34184 | cat >>confdefs.h <<_ACEOF |
| 34185 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 34186 | _ACEOF |
| 34187 | |
| 34188 | |
| 34189 | cat >>confdefs.h <<_ACEOF |
| 34190 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 34191 | _ACEOF |
| 34192 | |
| 34193 | |
| 34194 | cat >>confdefs.h <<_ACEOF |
| 34195 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 34196 | _ACEOF |
| 34197 | |
| 34198 | |
| 34199 | cat >>confdefs.h <<_ACEOF |
| 34200 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 34201 | _ACEOF |
| 34202 | |
| 34203 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 34204 | cat >>confdefs.h <<_ACEOF |
| 34205 | #define LLVM_HOSTTRIPLE "$host" |
| 34206 | _ACEOF |
| 34207 | |
| 34208 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 34209 | # Determine which bindings to build. |
| 34210 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 34211 | BINDINGS_TO_BUILD="" |
| 34212 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 34213 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 34214 | fi |
| 34215 | fi |
| 34216 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 34217 | |
| 34218 | |
| 34219 | # This isn't really configurey, but it avoids having to repeat the list in |
| 34220 | # other files. |
| 34221 | ALL_BINDINGS=ocaml |
| 34222 | |
| 34223 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 34224 | # Do any work necessary to ensure that bindings have what they need. |
| 34225 | binding_prereqs_failed=0 |
| 34226 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 34227 | case "$a_binding" in |
| 34228 | ocaml) |
| 34229 | if test "x$OCAMLC" = x ; then |
| 34230 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 34231 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 34232 | binding_prereqs_failed=1 |
| 34233 | fi |
| 34234 | if test "x$OCAMLDEP" = x ; then |
| 34235 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 34236 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 34237 | binding_prereqs_failed=1 |
| 34238 | fi |
| 34239 | if test "x$OCAMLOPT" = x ; then |
| 34240 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 34241 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 34242 | fi |
| 34243 | if test "x$with_ocaml_libdir" != xauto ; then |
| 34244 | OCAML_LIBDIR=$with_ocaml_libdir |
| 34245 | |
| 34246 | else |
| 34247 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 34248 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 34249 | then |
| 34250 | # ocaml stdlib is beneath our prefix; use stdlib |
| 34251 | OCAML_LIBDIR=$ocaml_stdlib |
| 34252 | |
| 34253 | else |
| 34254 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 34255 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 34256 | |
| 34257 | fi |
| 34258 | fi |
| 34259 | ;; |
| 34260 | esac |
| 34261 | done |
| 34262 | if test "$binding_prereqs_failed" = 1 ; then |
| 34263 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 34264 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 34265 | { (exit 1); exit 1; }; } |
| 34266 | fi |
| 34267 | |
| 34268 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34270 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34271 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34272 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34273 | |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 34274 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34275 | |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 34276 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34277 | |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 34278 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34279 | |
| 34280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34281 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34282 | |
| 34283 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34284 | ac_config_files="$ac_config_files llvm.spec" |
| 34285 | |
| 34286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34287 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34288 | |
| 34289 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34290 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 34291 | |
| 34292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34293 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34295 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34296 | |
| 34297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34298 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34299 | |
| 34300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34301 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34302 | |
| 34303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34304 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34305 | |
| 34306 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34307 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 34308 | |
| 34309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34310 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34311 | |
| 34312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34313 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34314 | |
| 34315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34316 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34317 | |
| 34318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34319 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34320 | |
| 34321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34322 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34323 | |
| 34324 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 34325 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 34326 | |
| 34327 | |
| 34328 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 34329 | |
| 34330 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34331 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34332 | cat >confcache <<\_ACEOF |
| 34333 | # This file is a shell script that caches the results of configure |
| 34334 | # tests run on this system so they can be shared between configure |
| 34335 | # scripts and configure runs, see configure's option --config-cache. |
| 34336 | # It is not useful on other systems. If it contains results you don't |
| 34337 | # want to keep, you may remove or edit it. |
| 34338 | # |
| 34339 | # config.status only pays attention to the cache file if you give it |
| 34340 | # the --recheck option to rerun configure. |
| 34341 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34342 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34343 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 34344 | # following values. |
| 34345 | |
| 34346 | _ACEOF |
| 34347 | |
| 34348 | # The following way of writing the cache mishandles newlines in values, |
| 34349 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34350 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34351 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 34352 | # 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] | 34353 | ( |
| 34354 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 34355 | eval ac_val=\$$ac_var |
| 34356 | case $ac_val in #( |
| 34357 | *${as_nl}*) |
| 34358 | case $ac_var in #( |
| 34359 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 34360 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 34361 | esac |
| 34362 | case $ac_var in #( |
| 34363 | _ | IFS | as_nl) ;; #( |
| 34364 | *) $as_unset $ac_var ;; |
| 34365 | esac ;; |
| 34366 | esac |
| 34367 | done |
| 34368 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34369 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34370 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 34371 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34372 | # `set' does not quote correctly, so add quotes (double-quote |
| 34373 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 34374 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34375 | "s/'/'\\\\''/g; |
| 34376 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34377 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34378 | *) |
| 34379 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34380 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34381 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34382 | esac | |
| 34383 | sort |
| 34384 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34385 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34386 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34387 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34388 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34389 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 34390 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34391 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 34392 | :end' >>confcache |
| 34393 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 34394 | if test -w "$cache_file"; then |
| 34395 | test "x$cache_file" != "x/dev/null" && |
| 34396 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 34397 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34398 | cat confcache >$cache_file |
| 34399 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34400 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 34401 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34402 | fi |
| 34403 | fi |
| 34404 | rm -f confcache |
| 34405 | |
| 34406 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 34407 | # Let make expand exec_prefix. |
| 34408 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 34409 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34410 | DEFS=-DHAVE_CONFIG_H |
| 34411 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34412 | ac_libobjs= |
| 34413 | ac_ltlibobjs= |
| 34414 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 34415 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34416 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 34417 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 34418 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 34419 | # will be set to the directory where LIBOBJS objects are built. |
| 34420 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 34421 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34422 | done |
| 34423 | LIBOBJS=$ac_libobjs |
| 34424 | |
| 34425 | LTLIBOBJS=$ac_ltlibobjs |
| 34426 | |
| 34427 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34428 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 34429 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34430 | Usually this means the macro was only invoked conditionally." >&5 |
| 34431 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34432 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34433 | { (exit 1); exit 1; }; } |
| 34434 | fi |
| 34435 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 34436 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34437 | Usually this means the macro was only invoked conditionally." >&5 |
| 34438 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34439 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34440 | { (exit 1); exit 1; }; } |
| 34441 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34442 | |
| 34443 | : ${CONFIG_STATUS=./config.status} |
| 34444 | ac_clean_files_save=$ac_clean_files |
| 34445 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 34446 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 34447 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 34448 | cat >$CONFIG_STATUS <<_ACEOF |
| 34449 | #! $SHELL |
| 34450 | # Generated by $as_me. |
| 34451 | # Run this file to recreate the current configuration. |
| 34452 | # Compiler output produced by configure, useful for debugging |
| 34453 | # configure, is in config.log if it exists. |
| 34454 | |
| 34455 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34456 | ac_cs_recheck=false |
| 34457 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34458 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 34459 | _ACEOF |
| 34460 | |
| 34461 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34462 | ## --------------------- ## |
| 34463 | ## M4sh Initialization. ## |
| 34464 | ## --------------------- ## |
| 34465 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34466 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34467 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 34468 | emulate sh |
| 34469 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34470 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 34471 | # is contrary to our usage. Disable this feature. |
| 34472 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34473 | setopt NO_GLOB_SUBST |
| 34474 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34475 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34476 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34477 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 34478 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34479 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34481 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34482 | # Avoid depending upon Character Ranges. |
| 34483 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 34484 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34485 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 34486 | as_cr_digits='0123456789' |
| 34487 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 34488 | |
| 34489 | # The user is always right. |
| 34490 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34491 | echo "#! /bin/sh" >conf$$.sh |
| 34492 | echo "exit 0" >>conf$$.sh |
| 34493 | chmod +x conf$$.sh |
| 34494 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34495 | PATH_SEPARATOR=';' |
| 34496 | else |
| 34497 | PATH_SEPARATOR=: |
| 34498 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34499 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34500 | fi |
| 34501 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34502 | # Support unset when possible. |
| 34503 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 34504 | as_unset=unset |
| 34505 | else |
| 34506 | as_unset=false |
| 34507 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34509 | |
| 34510 | # IFS |
| 34511 | # We need space, tab and new line, in precisely that order. Quoting is |
| 34512 | # there to prevent editors from complaining about space-tab. |
| 34513 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 34514 | # splitting by setting IFS to empty value.) |
| 34515 | as_nl=' |
| 34516 | ' |
| 34517 | IFS=" "" $as_nl" |
| 34518 | |
| 34519 | # Find who we are. Look in the path if we contain no directory separator. |
| 34520 | case $0 in |
| 34521 | *[\\/]* ) as_myself=$0 ;; |
| 34522 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34523 | for as_dir in $PATH |
| 34524 | do |
| 34525 | IFS=$as_save_IFS |
| 34526 | test -z "$as_dir" && as_dir=. |
| 34527 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 34528 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34529 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34531 | ;; |
| 34532 | esac |
| 34533 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 34534 | # in which case we are not to be found in the path. |
| 34535 | if test "x$as_myself" = x; then |
| 34536 | as_myself=$0 |
| 34537 | fi |
| 34538 | if test ! -f "$as_myself"; then |
| 34539 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 34540 | { (exit 1); exit 1; } |
| 34541 | fi |
| 34542 | |
| 34543 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34544 | for as_var in ENV MAIL MAILPATH |
| 34545 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34546 | done |
| 34547 | PS1='$ ' |
| 34548 | PS2='> ' |
| 34549 | PS4='+ ' |
| 34550 | |
| 34551 | # NLS nuisances. |
| 34552 | for as_var in \ |
| 34553 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 34554 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 34555 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34556 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34557 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 34558 | eval $as_var=C; export $as_var |
| 34559 | else |
| 34560 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34561 | fi |
| 34562 | done |
| 34563 | |
| 34564 | # Required to use basename. |
| 34565 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34566 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 34567 | as_expr=expr |
| 34568 | else |
| 34569 | as_expr=false |
| 34570 | fi |
| 34571 | |
| 34572 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 34573 | as_basename=basename |
| 34574 | else |
| 34575 | as_basename=false |
| 34576 | fi |
| 34577 | |
| 34578 | |
| 34579 | # Name of the executable. |
| 34580 | as_me=`$as_basename -- "$0" || |
| 34581 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 34582 | X"$0" : 'X\(//\)$' \| \ |
| 34583 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 34584 | echo X/"$0" | |
| 34585 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 34586 | s//\1/ |
| 34587 | q |
| 34588 | } |
| 34589 | /^X\/\(\/\/\)$/{ |
| 34590 | s//\1/ |
| 34591 | q |
| 34592 | } |
| 34593 | /^X\/\(\/\).*/{ |
| 34594 | s//\1/ |
| 34595 | q |
| 34596 | } |
| 34597 | s/.*/./; q'` |
| 34598 | |
| 34599 | # CDPATH. |
| 34600 | $as_unset CDPATH |
| 34601 | |
| 34602 | |
| 34603 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34604 | as_lineno_1=$LINENO |
| 34605 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34606 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34607 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34608 | |
| 34609 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 34610 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34611 | # line-number line after each line using $LINENO; the second 'sed' |
| 34612 | # does the real work. The second script uses 'N' to pair each |
| 34613 | # line-number line with the line containing $LINENO, and appends |
| 34614 | # trailing '-' during substitution so that $LINENO is not a special |
| 34615 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34616 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34617 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 34618 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 34619 | sed -n ' |
| 34620 | p |
| 34621 | /[$]LINENO/= |
| 34622 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34623 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34624 | s/[$]LINENO.*/&-/ |
| 34625 | t lineno |
| 34626 | b |
| 34627 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34628 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34629 | :loop |
| 34630 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34631 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34632 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34633 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34634 | chmod +x "$as_me.lineno" || |
| 34635 | { 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] | 34636 | { (exit 1); exit 1; }; } |
| 34637 | |
| 34638 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 34639 | # (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] | 34640 | # original and so on. Autoconf is especially sensitive to this). |
| 34641 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34642 | # Exit status is that of the last command. |
| 34643 | exit |
| 34644 | } |
| 34645 | |
| 34646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34647 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 34648 | as_dirname=dirname |
| 34649 | else |
| 34650 | as_dirname=false |
| 34651 | fi |
| 34652 | |
| 34653 | ECHO_C= ECHO_N= ECHO_T= |
| 34654 | case `echo -n x` in |
| 34655 | -n*) |
| 34656 | case `echo 'x\c'` in |
| 34657 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 34658 | *) ECHO_C='\c';; |
| 34659 | esac;; |
| 34660 | *) |
| 34661 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34662 | esac |
| 34663 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34664 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34665 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34666 | as_expr=expr |
| 34667 | else |
| 34668 | as_expr=false |
| 34669 | fi |
| 34670 | |
| 34671 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34672 | if test -d conf$$.dir; then |
| 34673 | rm -f conf$$.dir/conf$$.file |
| 34674 | else |
| 34675 | rm -f conf$$.dir |
| 34676 | mkdir conf$$.dir |
| 34677 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34678 | echo >conf$$.file |
| 34679 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34680 | as_ln_s='ln -s' |
| 34681 | # ... but there are two gotchas: |
| 34682 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 34683 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 34684 | # In both cases, we have to default to `cp -p'. |
| 34685 | 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] | 34686 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34687 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 34688 | as_ln_s=ln |
| 34689 | else |
| 34690 | as_ln_s='cp -p' |
| 34691 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34692 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 34693 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34694 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34695 | if mkdir -p . 2>/dev/null; then |
| 34696 | as_mkdir_p=: |
| 34697 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34698 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34699 | as_mkdir_p=false |
| 34700 | fi |
| 34701 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34702 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 34703 | # systems may use methods other than mode bits to determine executability. |
| 34704 | cat >conf$$.file <<_ASEOF |
| 34705 | #! /bin/sh |
| 34706 | exit 0 |
| 34707 | _ASEOF |
| 34708 | chmod +x conf$$.file |
| 34709 | if test -x conf$$.file >/dev/null 2>&1; then |
| 34710 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34711 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34712 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34713 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34714 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34715 | |
| 34716 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34717 | 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] | 34718 | |
| 34719 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34720 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34721 | |
| 34722 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34723 | exec 6>&1 |
| 34724 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34725 | # 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] | 34726 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34727 | # values after options handling. |
| 34728 | ac_log=" |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 34729 | This file was extended by llvm $as_me 2.4svn, which was |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34730 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34731 | |
| 34732 | CONFIG_FILES = $CONFIG_FILES |
| 34733 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 34734 | CONFIG_LINKS = $CONFIG_LINKS |
| 34735 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 34736 | $ $0 $@ |
| 34737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34738 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 34739 | " |
| 34740 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34741 | _ACEOF |
| 34742 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34743 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34744 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34745 | config_files="$ac_config_files" |
| 34746 | config_headers="$ac_config_headers" |
| 34747 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34748 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34749 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34750 | |
| 34751 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34752 | ac_cs_usage="\ |
| 34753 | \`$as_me' instantiates files from templates according to the |
| 34754 | current configuration. |
| 34755 | |
| 34756 | Usage: $0 [OPTIONS] [FILE]... |
| 34757 | |
| 34758 | -h, --help print this help, then exit |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34759 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34760 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34761 | -d, --debug don't remove temporary files |
| 34762 | --recheck update $as_me by reconfiguring in the same conditions |
| 34763 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34764 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34765 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34766 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34767 | |
| 34768 | Configuration files: |
| 34769 | $config_files |
| 34770 | |
| 34771 | Configuration headers: |
| 34772 | $config_headers |
| 34773 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34774 | Configuration commands: |
| 34775 | $config_commands |
| 34776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34777 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34778 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34779 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34780 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34781 | ac_cs_version="\\ |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 34782 | llvm config.status 2.4svn |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34783 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34784 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34785 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34786 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34787 | This config.status script is free software; the Free Software Foundation |
| 34788 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34789 | |
| 34790 | ac_pwd='$ac_pwd' |
| 34791 | srcdir='$srcdir' |
| 34792 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34793 | _ACEOF |
| 34794 | |
| 34795 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34796 | # If no file are specified by the user, then we need to provide default |
| 34797 | # value. By we need to know if files were specified by the user. |
| 34798 | ac_need_defaults=: |
| 34799 | while test $# != 0 |
| 34800 | do |
| 34801 | case $1 in |
| 34802 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34803 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 34804 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34805 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34806 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34807 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34808 | ac_option=$1 |
| 34809 | ac_optarg=$2 |
| 34810 | ac_shift=shift |
| 34811 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34812 | esac |
| 34813 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34814 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34815 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34816 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 34817 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34818 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 34819 | echo "$ac_cs_version"; exit ;; |
| 34820 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34821 | debug=: ;; |
| 34822 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34823 | $ac_shift |
| 34824 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34825 | ac_need_defaults=false;; |
| 34826 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34827 | $ac_shift |
| 34828 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34829 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34830 | --he | --h) |
| 34831 | # Conflict between --help and --header |
| 34832 | { echo "$as_me: error: ambiguous option: $1 |
| 34833 | Try \`$0 --help' for more information." >&2 |
| 34834 | { (exit 1); exit 1; }; };; |
| 34835 | --help | --hel | -h ) |
| 34836 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34837 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 34838 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 34839 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34840 | |
| 34841 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34842 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 34843 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34844 | { (exit 1); exit 1; }; } ;; |
| 34845 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34846 | *) ac_config_targets="$ac_config_targets $1" |
| 34847 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34848 | |
| 34849 | esac |
| 34850 | shift |
| 34851 | done |
| 34852 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34853 | ac_configure_extra_args= |
| 34854 | |
| 34855 | if $ac_cs_silent; then |
| 34856 | exec 6>/dev/null |
| 34857 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 34858 | fi |
| 34859 | |
| 34860 | _ACEOF |
| 34861 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34862 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34863 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 34864 | CONFIG_SHELL=$SHELL |
| 34865 | export CONFIG_SHELL |
| 34866 | 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] | 34867 | fi |
| 34868 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34869 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34870 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34871 | exec 5>>config.log |
| 34872 | { |
| 34873 | echo |
| 34874 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 34875 | ## Running $as_me. ## |
| 34876 | _ASBOX |
| 34877 | echo "$ac_log" |
| 34878 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34880 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34881 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34882 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34883 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34884 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34885 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34886 | |
| 34887 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34888 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34889 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34890 | |
| 34891 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34892 | for ac_config_target in $ac_config_targets |
| 34893 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34894 | case $ac_config_target in |
| 34895 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 34896 | "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] | 34897 | "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;; |
| 34898 | "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;; |
| 34899 | "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] | 34900 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34901 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34902 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 34903 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 34904 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 34905 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 34906 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 34907 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 34908 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34909 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34910 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 34911 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 34912 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 34913 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 34914 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 34915 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 34916 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34917 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34918 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 34919 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 34920 | { (exit 1); exit 1; }; };; |
| 34921 | esac |
| 34922 | done |
| 34923 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34924 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34925 | # If the user did not use the arguments to specify the items to instantiate, |
| 34926 | # then the envvar interface is used. Set only those that are not. |
| 34927 | # We use the long form for the default assignment because of an extremely |
| 34928 | # bizarre bug on SunOS 4.1.3. |
| 34929 | if $ac_need_defaults; then |
| 34930 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 34931 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34932 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34933 | fi |
| 34934 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34935 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34936 | # 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] | 34937 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34938 | # Hook for its removal unless debugging. |
| 34939 | # Note that there is a small window in which the directory will not be cleaned: |
| 34940 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34941 | $debug || |
| 34942 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34943 | tmp= |
| 34944 | trap 'exit_status=$? |
| 34945 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 34946 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34947 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 34948 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34949 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34950 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34951 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34952 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34953 | test -n "$tmp" && test -d "$tmp" |
| 34954 | } || |
| 34955 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34956 | tmp=./conf$$-$RANDOM |
| 34957 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34958 | } || |
| 34959 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34960 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34961 | { (exit 1); exit 1; } |
| 34962 | } |
| 34963 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34964 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34965 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34966 | # |
| 34967 | |
| 34968 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 34969 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34970 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34971 | |
| 34972 | _ACEOF |
| 34973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34974 | |
| 34975 | |
| 34976 | ac_delim='%!_!# ' |
| 34977 | for ac_last_try in false false false false false :; do |
| 34978 | cat >conf$$subs.sed <<_ACEOF |
| 34979 | SHELL!$SHELL$ac_delim |
| 34980 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 34981 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 34982 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 34983 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 34984 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 34985 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 34986 | exec_prefix!$exec_prefix$ac_delim |
| 34987 | prefix!$prefix$ac_delim |
| 34988 | program_transform_name!$program_transform_name$ac_delim |
| 34989 | bindir!$bindir$ac_delim |
| 34990 | sbindir!$sbindir$ac_delim |
| 34991 | libexecdir!$libexecdir$ac_delim |
| 34992 | datarootdir!$datarootdir$ac_delim |
| 34993 | datadir!$datadir$ac_delim |
| 34994 | sysconfdir!$sysconfdir$ac_delim |
| 34995 | sharedstatedir!$sharedstatedir$ac_delim |
| 34996 | localstatedir!$localstatedir$ac_delim |
| 34997 | includedir!$includedir$ac_delim |
| 34998 | oldincludedir!$oldincludedir$ac_delim |
| 34999 | docdir!$docdir$ac_delim |
| 35000 | infodir!$infodir$ac_delim |
| 35001 | htmldir!$htmldir$ac_delim |
| 35002 | dvidir!$dvidir$ac_delim |
| 35003 | pdfdir!$pdfdir$ac_delim |
| 35004 | psdir!$psdir$ac_delim |
| 35005 | libdir!$libdir$ac_delim |
| 35006 | localedir!$localedir$ac_delim |
| 35007 | mandir!$mandir$ac_delim |
| 35008 | DEFS!$DEFS$ac_delim |
| 35009 | ECHO_C!$ECHO_C$ac_delim |
| 35010 | ECHO_N!$ECHO_N$ac_delim |
| 35011 | ECHO_T!$ECHO_T$ac_delim |
| 35012 | LIBS!$LIBS$ac_delim |
| 35013 | build_alias!$build_alias$ac_delim |
| 35014 | host_alias!$host_alias$ac_delim |
| 35015 | target_alias!$target_alias$ac_delim |
| 35016 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 35017 | subdirs!$subdirs$ac_delim |
| 35018 | build!$build$ac_delim |
| 35019 | build_cpu!$build_cpu$ac_delim |
| 35020 | build_vendor!$build_vendor$ac_delim |
| 35021 | build_os!$build_os$ac_delim |
| 35022 | host!$host$ac_delim |
| 35023 | host_cpu!$host_cpu$ac_delim |
| 35024 | host_vendor!$host_vendor$ac_delim |
| 35025 | host_os!$host_os$ac_delim |
| 35026 | target!$target$ac_delim |
| 35027 | target_cpu!$target_cpu$ac_delim |
| 35028 | target_vendor!$target_vendor$ac_delim |
| 35029 | target_os!$target_os$ac_delim |
| 35030 | OS!$OS$ac_delim |
| 35031 | LINKALL!$LINKALL$ac_delim |
| 35032 | NOLINKALL!$NOLINKALL$ac_delim |
| 35033 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 35034 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 35035 | ARCH!$ARCH$ac_delim |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 35036 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35037 | CC!$CC$ac_delim |
| 35038 | CFLAGS!$CFLAGS$ac_delim |
| 35039 | LDFLAGS!$LDFLAGS$ac_delim |
| 35040 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 35041 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 35042 | EXEEXT!$EXEEXT$ac_delim |
| 35043 | OBJEXT!$OBJEXT$ac_delim |
| 35044 | CPP!$CPP$ac_delim |
| 35045 | GREP!$GREP$ac_delim |
| 35046 | EGREP!$EGREP$ac_delim |
| 35047 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 35048 | BUILD_CC!$BUILD_CC$ac_delim |
| 35049 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 35050 | CVSBUILD!$CVSBUILD$ac_delim |
| 35051 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 35052 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 35053 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 35054 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35055 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35056 | JIT!$JIT$ac_delim |
| 35057 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 35058 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 35059 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 35060 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35061 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 35062 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35063 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 35064 | CXX!$CXX$ac_delim |
| 35065 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 35066 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 35067 | LEX!$LEX$ac_delim |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 35068 | LEXLIB!$LEXLIB$ac_delim |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 35069 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35070 | FLEX!$FLEX$ac_delim |
| 35071 | YACC!$YACC$ac_delim |
| 35072 | YFLAGS!$YFLAGS$ac_delim |
| 35073 | BISON!$BISON$ac_delim |
| 35074 | NM!$NM$ac_delim |
| 35075 | ifGNUmake!$ifGNUmake$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35076 | _ACEOF |
| 35077 | |
| 35078 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 35079 | break |
| 35080 | elif $ac_last_try; then |
| 35081 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 35082 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 35083 | { (exit 1); exit 1; }; } |
| 35084 | else |
| 35085 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35087 | done |
| 35088 | |
| 35089 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 35090 | if test -n "$ac_eof"; then |
| 35091 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 35092 | ac_eof=`expr $ac_eof + 1` |
| 35093 | fi |
| 35094 | |
| 35095 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35096 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 35097 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 35098 | _ACEOF |
| 35099 | sed ' |
| 35100 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 35101 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 35102 | :n |
| 35103 | t n |
| 35104 | s/'"$ac_delim"'$/,g/; t |
| 35105 | s/$/\\/; p |
| 35106 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 35107 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 35108 | rm -f conf$$subs.sed |
| 35109 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35110 | CEOF$ac_eof |
| 35111 | _ACEOF |
| 35112 | |
| 35113 | |
| 35114 | ac_delim='%!_!# ' |
| 35115 | for ac_last_try in false false false false false :; do |
| 35116 | cat >conf$$subs.sed <<_ACEOF |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 35117 | LN_S!$LN_S$ac_delim |
| 35118 | CMP!$CMP$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 35119 | CP!$CP$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35120 | DATE!$DATE$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35121 | FIND!$FIND$ac_delim |
| 35122 | MKDIR!$MKDIR$ac_delim |
| 35123 | MV!$MV$ac_delim |
| 35124 | RANLIB!$RANLIB$ac_delim |
| 35125 | RM!$RM$ac_delim |
| 35126 | SED!$SED$ac_delim |
| 35127 | TAR!$TAR$ac_delim |
| 35128 | BINPWD!$BINPWD$ac_delim |
| 35129 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 35130 | DOT!$DOT$ac_delim |
| 35131 | GV!$GV$ac_delim |
| 35132 | DOTTY!$DOTTY$ac_delim |
| 35133 | PERL!$PERL$ac_delim |
| 35134 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 35135 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 35136 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 35137 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 35138 | BZIP2!$BZIP2$ac_delim |
| 35139 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35140 | GROFF!$GROFF$ac_delim |
| 35141 | GZIP!$GZIP$ac_delim |
| 35142 | POD2HTML!$POD2HTML$ac_delim |
| 35143 | POD2MAN!$POD2MAN$ac_delim |
| 35144 | RUNTEST!$RUNTEST$ac_delim |
| 35145 | TCLSH!$TCLSH$ac_delim |
| 35146 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 35147 | OCAMLC!$OCAMLC$ac_delim |
| 35148 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 35149 | OCAMLDEP!$OCAMLDEP$ac_delim |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 35150 | OCAMLDOC!$OCAMLDOC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35151 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 35152 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 35153 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 35154 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 35155 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 35156 | ECHO!$ECHO$ac_delim |
| 35157 | AR!$AR$ac_delim |
| 35158 | STRIP!$STRIP$ac_delim |
| 35159 | CXXCPP!$CXXCPP$ac_delim |
| 35160 | F77!$F77$ac_delim |
| 35161 | FFLAGS!$FFLAGS$ac_delim |
| 35162 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 35163 | LIBTOOL!$LIBTOOL$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35164 | LLVMGCC!$LLVMGCC$ac_delim |
| 35165 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 35166 | USE_UDIS86!$USE_UDIS86$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 35167 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 35168 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35169 | ALLOCA!$ALLOCA$ac_delim |
| 35170 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 35171 | LLVMCC1!$LLVMCC1$ac_delim |
| 35172 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 35173 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 35174 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35175 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 35176 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35177 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35178 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 35179 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 35180 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 35181 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 35182 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 35183 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 35184 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 35185 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 35186 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 35187 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 35188 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35189 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 35190 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35191 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35192 | LIBOBJS!$LIBOBJS$ac_delim |
| 35193 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 35194 | _ACEOF |
| 35195 | |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 35196 | 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] | 35197 | break |
| 35198 | elif $ac_last_try; then |
| 35199 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 35200 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 35201 | { (exit 1); exit 1; }; } |
| 35202 | else |
| 35203 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 35204 | fi |
| 35205 | done |
| 35206 | |
| 35207 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 35208 | if test -n "$ac_eof"; then |
| 35209 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 35210 | ac_eof=`expr $ac_eof + 1` |
| 35211 | fi |
| 35212 | |
| 35213 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35214 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 35215 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 35216 | _ACEOF |
| 35217 | sed ' |
| 35218 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 35219 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 35220 | :n |
| 35221 | t n |
| 35222 | s/'"$ac_delim"'$/,g/; t |
| 35223 | s/$/\\/; p |
| 35224 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 35225 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 35226 | rm -f conf$$subs.sed |
| 35227 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35228 | :end |
| 35229 | s/|#_!!_#|//g |
| 35230 | CEOF$ac_eof |
| 35231 | _ACEOF |
| 35232 | |
| 35233 | |
| 35234 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 35235 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 35236 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 35237 | # (actually we leave an empty line to preserve line numbers). |
| 35238 | if test "x$srcdir" = x.; then |
| 35239 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 35240 | s/:*\$(srcdir):*/:/ |
| 35241 | s/:*\${srcdir}:*/:/ |
| 35242 | s/:*@srcdir@:*/:/ |
| 35243 | s/^\([^=]*=[ ]*\):*/\1/ |
| 35244 | s/:*$// |
| 35245 | s/^[^=]*=[ ]*$// |
| 35246 | }' |
| 35247 | fi |
| 35248 | |
| 35249 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35250 | fi # test -n "$CONFIG_FILES" |
| 35251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35252 | |
| 35253 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 35254 | do |
| 35255 | case $ac_tag in |
| 35256 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 35257 | esac |
| 35258 | case $ac_mode$ac_tag in |
| 35259 | :[FHL]*:*);; |
| 35260 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 35261 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 35262 | { (exit 1); exit 1; }; };; |
| 35263 | :[FH]-) ac_tag=-:-;; |
| 35264 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 35265 | esac |
| 35266 | ac_save_IFS=$IFS |
| 35267 | IFS=: |
| 35268 | set x $ac_tag |
| 35269 | IFS=$ac_save_IFS |
| 35270 | shift |
| 35271 | ac_file=$1 |
| 35272 | shift |
| 35273 | |
| 35274 | case $ac_mode in |
| 35275 | :L) ac_source=$1;; |
| 35276 | :[FH]) |
| 35277 | ac_file_inputs= |
| 35278 | for ac_f |
| 35279 | do |
| 35280 | case $ac_f in |
| 35281 | -) ac_f="$tmp/stdin";; |
| 35282 | *) # Look for the file first in the build tree, then in the source tree |
| 35283 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 35284 | # because $ac_f cannot contain `:'. |
| 35285 | test -f "$ac_f" || |
| 35286 | case $ac_f in |
| 35287 | [\\/$]*) false;; |
| 35288 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 35289 | esac || |
| 35290 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 35291 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 35292 | { (exit 1); exit 1; }; };; |
| 35293 | esac |
| 35294 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 35295 | done |
| 35296 | |
| 35297 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 35298 | # use $as_me), people would be surprised to read: |
| 35299 | # /* config.h. Generated by config.status. */ |
| 35300 | configure_input="Generated from "`IFS=: |
| 35301 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 35302 | if test x"$ac_file" != x-; then |
| 35303 | configure_input="$ac_file. $configure_input" |
| 35304 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 35305 | echo "$as_me: creating $ac_file" >&6;} |
| 35306 | fi |
| 35307 | |
| 35308 | case $ac_tag in |
| 35309 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 35310 | esac |
| 35311 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35312 | esac |
| 35313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35314 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35315 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35316 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 35317 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35318 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35319 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35321 | s//\1/ |
| 35322 | q |
| 35323 | } |
| 35324 | /^X\(\/\/\)[^/].*/{ |
| 35325 | s//\1/ |
| 35326 | q |
| 35327 | } |
| 35328 | /^X\(\/\/\)$/{ |
| 35329 | s//\1/ |
| 35330 | q |
| 35331 | } |
| 35332 | /^X\(\/\).*/{ |
| 35333 | s//\1/ |
| 35334 | q |
| 35335 | } |
| 35336 | s/.*/./; q'` |
| 35337 | { as_dir="$ac_dir" |
| 35338 | case $as_dir in #( |
| 35339 | -*) as_dir=./$as_dir;; |
| 35340 | esac |
| 35341 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35342 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35343 | while :; do |
| 35344 | case $as_dir in #( |
| 35345 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 35346 | *) as_qdir=$as_dir;; |
| 35347 | esac |
| 35348 | as_dirs="'$as_qdir' $as_dirs" |
| 35349 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35350 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35351 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35352 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35353 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35354 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35355 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35356 | s//\1/ |
| 35357 | q |
| 35358 | } |
| 35359 | /^X\(\/\/\)[^/].*/{ |
| 35360 | s//\1/ |
| 35361 | q |
| 35362 | } |
| 35363 | /^X\(\/\/\)$/{ |
| 35364 | s//\1/ |
| 35365 | q |
| 35366 | } |
| 35367 | /^X\(\/\).*/{ |
| 35368 | s//\1/ |
| 35369 | q |
| 35370 | } |
| 35371 | s/.*/./; q'` |
| 35372 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35373 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35374 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35375 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35376 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35377 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35378 | ac_builddir=. |
| 35379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35380 | case "$ac_dir" in |
| 35381 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35382 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35383 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35384 | # A ".." for each directory in $ac_dir_suffix. |
| 35385 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35386 | case $ac_top_builddir_sub in |
| 35387 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35388 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35389 | esac ;; |
| 35390 | esac |
| 35391 | ac_abs_top_builddir=$ac_pwd |
| 35392 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35393 | # for backward compatibility: |
| 35394 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35395 | |
| 35396 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35397 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35398 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35399 | ac_top_srcdir=$ac_top_builddir_sub |
| 35400 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35401 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35402 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35403 | ac_top_srcdir=$srcdir |
| 35404 | ac_abs_top_srcdir=$srcdir ;; |
| 35405 | *) # Relative name. |
| 35406 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35407 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35408 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35409 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35410 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35411 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35413 | case $ac_mode in |
| 35414 | :F) |
| 35415 | # |
| 35416 | # CONFIG_FILE |
| 35417 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35418 | |
| 35419 | case $INSTALL in |
| 35420 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35421 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35422 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35423 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35424 | |
| 35425 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35426 | # If the template does not know about datarootdir, expand it. |
| 35427 | # FIXME: This hack should be removed a few years after 2.60. |
| 35428 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 35429 | |
| 35430 | case `sed -n '/datarootdir/ { |
| 35431 | p |
| 35432 | q |
| 35433 | } |
| 35434 | /@datadir@/p |
| 35435 | /@docdir@/p |
| 35436 | /@infodir@/p |
| 35437 | /@localedir@/p |
| 35438 | /@mandir@/p |
| 35439 | ' $ac_file_inputs` in |
| 35440 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 35441 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 35442 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 35443 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 35444 | _ACEOF |
| 35445 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35446 | ac_datarootdir_hack=' |
| 35447 | s&@datadir@&$datadir&g |
| 35448 | s&@docdir@&$docdir&g |
| 35449 | s&@infodir@&$infodir&g |
| 35450 | s&@localedir@&$localedir&g |
| 35451 | s&@mandir@&$mandir&g |
| 35452 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 35453 | esac |
| 35454 | _ACEOF |
| 35455 | |
| 35456 | # Neutralize VPATH when `$srcdir' = `.'. |
| 35457 | # Shell code in configure.ac might set extrasub. |
| 35458 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35459 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35460 | sed "$ac_vpsub |
| 35461 | $extrasub |
| 35462 | _ACEOF |
| 35463 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35464 | :t |
| 35465 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35466 | s&@configure_input@&$configure_input&;t t |
| 35467 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 35468 | s&@srcdir@&$ac_srcdir&;t t |
| 35469 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 35470 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 35471 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 35472 | s&@builddir@&$ac_builddir&;t t |
| 35473 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 35474 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 35475 | s&@INSTALL@&$ac_INSTALL&;t t |
| 35476 | $ac_datarootdir_hack |
| 35477 | " $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] | 35478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35479 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 35480 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 35481 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 35482 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35483 | which seems to be undefined. Please make sure it is defined." >&5 |
| 35484 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35485 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35487 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35488 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35489 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 35490 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35491 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35492 | ;; |
| 35493 | :H) |
| 35494 | # |
| 35495 | # CONFIG_HEADER |
| 35496 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35497 | _ACEOF |
| 35498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35499 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 35500 | # substitutes the proper values into config.h.in to produce config.h. |
| 35501 | rm -f conftest.defines conftest.tail |
| 35502 | # First, append a space to every undef/define line, to ease matching. |
| 35503 | echo 's/$/ /' >conftest.defines |
| 35504 | # Then, protect against being on the right side of a sed subst, or in |
| 35505 | # an unquoted here document, in config.status. If some macros were |
| 35506 | # called several times there might be several #defines for the same |
| 35507 | # symbol, which is useless. But do not sort them, since the last |
| 35508 | # AC_DEFINE must be honored. |
| 35509 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 35510 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 35511 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 35512 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 35513 | # just an empty string. |
| 35514 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 35515 | ac_dB='\\)[ (].*,\\1define\\2' |
| 35516 | ac_dC=' ' |
| 35517 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35519 | uniq confdefs.h | |
| 35520 | sed -n ' |
| 35521 | t rset |
| 35522 | :rset |
| 35523 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 35524 | t ok |
| 35525 | d |
| 35526 | :ok |
| 35527 | s/[\\&,]/\\&/g |
| 35528 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 35529 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 35530 | ' >>conftest.defines |
| 35531 | |
| 35532 | # Remove the space that was appended to ease matching. |
| 35533 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35534 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 35535 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35536 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 35537 | echo 's/ $// |
| 35538 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35540 | # Break up conftest.defines: |
| 35541 | ac_max_sed_lines=50 |
| 35542 | |
| 35543 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 35544 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 35545 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 35546 | # et cetera. |
| 35547 | ac_in='$ac_file_inputs' |
| 35548 | ac_out='"$tmp/out1"' |
| 35549 | ac_nxt='"$tmp/out2"' |
| 35550 | |
| 35551 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35552 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35553 | # Write a here document: |
| 35554 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35555 | # First, check the format of the line: |
| 35556 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 35557 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 35558 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 35559 | b |
| 35560 | :def |
| 35561 | _ACEOF |
| 35562 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35563 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35564 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 35565 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 35566 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 35567 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35568 | rm -f conftest.defines |
| 35569 | mv conftest.tail conftest.defines |
| 35570 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35571 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35572 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35573 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35574 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35575 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35576 | echo "/* $configure_input */" >"$tmp/config.h" |
| 35577 | cat "$ac_result" >>"$tmp/config.h" |
| 35578 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35579 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 35580 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 35581 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35582 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35583 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35584 | fi |
| 35585 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35586 | echo "/* $configure_input */" |
| 35587 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35588 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35589 | rm -f "$tmp/out12" |
| 35590 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35591 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35592 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 35593 | echo "$as_me: executing $ac_file commands" >&6;} |
| 35594 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35595 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35597 | |
| 35598 | case $ac_file$ac_mode in |
| 35599 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 35600 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 35601 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 35602 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 35603 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 35604 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 35605 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 35606 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35607 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 35608 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35609 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 35610 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 35611 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 35612 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 35613 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 35614 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 35615 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 35616 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 35617 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 35618 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35619 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
| 35620 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
| 35621 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
| 35622 | ${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] | 35623 | |
| 35624 | esac |
| 35625 | done # for ac_tag |
| 35626 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35627 | |
| 35628 | { (exit 0); exit 0; } |
| 35629 | _ACEOF |
| 35630 | chmod +x $CONFIG_STATUS |
| 35631 | ac_clean_files=$ac_clean_files_save |
| 35632 | |
| 35633 | |
| 35634 | # configure is writing to config.log, and then calls config.status. |
| 35635 | # config.status does its own redirection, appending to config.log. |
| 35636 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 35637 | # by configure, so config.status won't be able to write to it; its |
| 35638 | # output is simply discarded. So we exec the FD to /dev/null, |
| 35639 | # effectively closing config.log, so it can be properly (re)opened and |
| 35640 | # appended to by config.status. When coming back to configure, we |
| 35641 | # need to make the FD available again. |
| 35642 | if test "$no_create" != yes; then |
| 35643 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35644 | ac_config_status_args= |
| 35645 | test "$silent" = yes && |
| 35646 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35647 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35648 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35649 | exec 5>>config.log |
| 35650 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 35651 | # would make configure fail if this is the last instruction. |
| 35652 | $ac_cs_success || { (exit 1); exit 1; } |
| 35653 | fi |
| 35654 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35655 | # |
| 35656 | # CONFIG_SUBDIRS section. |
| 35657 | # |
| 35658 | if test "$no_recursion" != yes; then |
| 35659 | |
| 35660 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 35661 | ac_sub_configure_args= |
| 35662 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35663 | eval "set x $ac_configure_args" |
| 35664 | shift |
| 35665 | for ac_arg |
| 35666 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35667 | if test -n "$ac_prev"; then |
| 35668 | ac_prev= |
| 35669 | continue |
| 35670 | fi |
| 35671 | case $ac_arg in |
| 35672 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 35673 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 35674 | ac_prev=cache_file ;; |
| 35675 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 35676 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 35677 | | --c=*) |
| 35678 | ;; |
| 35679 | --config-cache | -C) |
| 35680 | ;; |
| 35681 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 35682 | ac_prev=srcdir ;; |
| 35683 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 35684 | ;; |
| 35685 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 35686 | ac_prev=prefix ;; |
| 35687 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 35688 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35689 | *) |
| 35690 | case $ac_arg in |
| 35691 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35692 | esac |
| 35693 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35694 | esac |
| 35695 | done |
| 35696 | |
| 35697 | # Always prepend --prefix to ensure using the same prefix |
| 35698 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35699 | ac_arg="--prefix=$prefix" |
| 35700 | case $ac_arg in |
| 35701 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35702 | esac |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 35703 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35704 | |
| 35705 | ac_popdir=`pwd` |
| 35706 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 35707 | |
| 35708 | # Do not complain, so a configure script can configure whichever |
| 35709 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35710 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35712 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 35713 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 35714 | echo "$ac_msg" >&6 |
| 35715 | { as_dir="$ac_dir" |
| 35716 | case $as_dir in #( |
| 35717 | -*) as_dir=./$as_dir;; |
| 35718 | esac |
| 35719 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35720 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35721 | while :; do |
| 35722 | case $as_dir in #( |
| 35723 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 35724 | *) as_qdir=$as_dir;; |
| 35725 | esac |
| 35726 | as_dirs="'$as_qdir' $as_dirs" |
| 35727 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35728 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35729 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35730 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35731 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35732 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35733 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35734 | s//\1/ |
| 35735 | q |
| 35736 | } |
| 35737 | /^X\(\/\/\)[^/].*/{ |
| 35738 | s//\1/ |
| 35739 | q |
| 35740 | } |
| 35741 | /^X\(\/\/\)$/{ |
| 35742 | s//\1/ |
| 35743 | q |
| 35744 | } |
| 35745 | /^X\(\/\).*/{ |
| 35746 | s//\1/ |
| 35747 | q |
| 35748 | } |
| 35749 | s/.*/./; q'` |
| 35750 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35751 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35752 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35753 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35754 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35755 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35756 | ac_builddir=. |
| 35757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35758 | case "$ac_dir" in |
| 35759 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35760 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35761 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35762 | # A ".." for each directory in $ac_dir_suffix. |
| 35763 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35764 | case $ac_top_builddir_sub in |
| 35765 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35766 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35767 | esac ;; |
| 35768 | esac |
| 35769 | ac_abs_top_builddir=$ac_pwd |
| 35770 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35771 | # for backward compatibility: |
| 35772 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35773 | |
| 35774 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35775 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35776 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35777 | ac_top_srcdir=$ac_top_builddir_sub |
| 35778 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35779 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35780 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35781 | ac_top_srcdir=$srcdir |
| 35782 | ac_abs_top_srcdir=$srcdir ;; |
| 35783 | *) # Relative name. |
| 35784 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35785 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35786 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35787 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35788 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35789 | |
| 35790 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35791 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35792 | |
| 35793 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35794 | if test -f "$ac_srcdir/configure.gnu"; then |
| 35795 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 35796 | elif test -f "$ac_srcdir/configure"; then |
| 35797 | ac_sub_configure=$ac_srcdir/configure |
| 35798 | elif test -f "$ac_srcdir/configure.in"; then |
| 35799 | # This should be Cygnus configure. |
| 35800 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35801 | else |
| 35802 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 35803 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 35804 | ac_sub_configure= |
| 35805 | fi |
| 35806 | |
| 35807 | # The recursion is here. |
| 35808 | if test -n "$ac_sub_configure"; then |
| 35809 | # Make the cache file name correct relative to the subdirectory. |
| 35810 | case $cache_file in |
| 35811 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35812 | *) # Relative name. |
| 35813 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35814 | esac |
| 35815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35816 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 35817 | 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] | 35818 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35819 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 35820 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35821 | { { 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] | 35822 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 35823 | { (exit 1); exit 1; }; } |
| 35824 | fi |
| 35825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35826 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35827 | done |
| 35828 | fi |
| 35829 | |