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 | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.7svn. |
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 | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
| 16 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.7svn' |
| 719 | PACKAGE_STRING='llvm 2.7svn' |
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> |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 811 | HOST_OS |
| 812 | TARGET_OS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 813 | LINKALL |
| 814 | NOLINKALL |
| 815 | LLVM_ON_UNIX |
| 816 | LLVM_ON_WIN32 |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 817 | ARCH |
| 818 | ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 819 | CC |
| 820 | CFLAGS |
| 821 | LDFLAGS |
| 822 | CPPFLAGS |
| 823 | ac_ct_CC |
| 824 | EXEEXT |
| 825 | OBJEXT |
| 826 | CPP |
| 827 | GREP |
| 828 | EGREP |
| 829 | LLVM_CROSS_COMPILING |
| 830 | BUILD_CC |
| 831 | BUILD_EXEEXT |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 832 | BUILD_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 833 | CVSBUILD |
| 834 | ENABLE_OPTIMIZED |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 835 | ENABLE_PROFILING |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 836 | DISABLE_ASSERTIONS |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 837 | ENABLE_EXPENSIVE_CHECKS |
| 838 | EXPENSIVE_CHECKS |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 839 | DEBUG_RUNTIME |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 840 | DEBUG_SYMBOLS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 841 | JIT |
| 842 | TARGET_HAS_JIT |
| 843 | ENABLE_DOXYGEN |
| 844 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 845 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | TARGETS_TO_BUILD |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 847 | LLVM_ENUM_TARGETS |
| 848 | LLVM_ENUM_ASM_PRINTERS |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 849 | LLVM_ENUM_ASM_PARSERS |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 850 | ENABLE_CBE_PRINTF_A |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 851 | OPTIMIZE_OPTION |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 852 | EXTRA_OPTIONS |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 853 | BINUTILS_INCDIR |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 854 | ENABLE_LLVMC_DYNAMIC |
| 855 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 856 | CXX |
| 857 | CXXFLAGS |
| 858 | ac_ct_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 859 | NM |
| 860 | ifGNUmake |
| 861 | LN_S |
| 862 | CMP |
| 863 | CP |
| 864 | DATE |
| 865 | FIND |
| 866 | MKDIR |
| 867 | MV |
| 868 | RANLIB |
| 869 | RM |
| 870 | SED |
| 871 | TAR |
| 872 | BINPWD |
| 873 | GRAPHVIZ |
| 874 | DOT |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 875 | FDP |
| 876 | NEATO |
| 877 | TWOPI |
| 878 | CIRCO |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 879 | GV |
| 880 | DOTTY |
| 881 | PERL |
| 882 | HAVE_PERL |
| 883 | INSTALL_PROGRAM |
| 884 | INSTALL_SCRIPT |
| 885 | INSTALL_DATA |
| 886 | BZIP2 |
| 887 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 888 | GROFF |
| 889 | GZIP |
| 890 | POD2HTML |
| 891 | POD2MAN |
| 892 | RUNTEST |
| 893 | TCLSH |
| 894 | ZIP |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 895 | OCAMLC |
| 896 | OCAMLOPT |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 897 | OCAMLDEP |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 898 | OCAMLDOC |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 899 | GAS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 900 | INSTALL_LTDL_TRUE |
| 901 | INSTALL_LTDL_FALSE |
| 902 | CONVENIENCE_LTDL_TRUE |
| 903 | CONVENIENCE_LTDL_FALSE |
| 904 | LIBADD_DL |
| 905 | ECHO |
| 906 | AR |
| 907 | STRIP |
| 908 | CXXCPP |
| 909 | F77 |
| 910 | FFLAGS |
| 911 | ac_ct_F77 |
| 912 | LIBTOOL |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 913 | LLVMGCCCOMMAND |
| 914 | LLVMGXXCOMMAND |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 915 | LLVMGCC |
| 916 | LLVMGXX |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 917 | NO_VARIADIC_MACROS |
| 918 | NO_MISSING_FIELD_INITIALIZERS |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 919 | USE_UDIS86 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 920 | USE_OPROFILE |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 921 | HAVE_PTHREAD |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 922 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 923 | ALLOCA |
| 924 | MMAP_FILE |
| 925 | LLVMCC1 |
| 926 | LLVMCC1PLUS |
| 927 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 928 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 929 | LLVMGCC_VERSION |
| 930 | LLVMGCC_MAJVERS |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 931 | LLVMGCC_LANGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 932 | SHLIBEXT |
| 933 | LLVM_PREFIX |
| 934 | LLVM_BINDIR |
| 935 | LLVM_LIBDIR |
| 936 | LLVM_DATADIR |
| 937 | LLVM_DOCSDIR |
| 938 | LLVM_ETCDIR |
| 939 | LLVM_INCLUDEDIR |
| 940 | LLVM_INFODIR |
| 941 | LLVM_MANDIR |
| 942 | LLVM_CONFIGTIME |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 943 | BINDINGS_TO_BUILD |
| 944 | ALL_BINDINGS |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 945 | OCAML_LIBDIR |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 946 | ENABLE_VISIBILITY_INLINES_HIDDEN |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 947 | RPATH |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 948 | RDYNAMIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 949 | LIBOBJS |
| 950 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 951 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 952 | ac_precious_vars='build_alias |
| 953 | host_alias |
| 954 | target_alias |
| 955 | CC |
| 956 | CFLAGS |
| 957 | LDFLAGS |
| 958 | CPPFLAGS |
| 959 | CPP |
| 960 | CXX |
| 961 | CXXFLAGS |
| 962 | CCC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 963 | CXXCPP |
| 964 | F77 |
| 965 | FFLAGS' |
| 966 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 967 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 968 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 969 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 970 | projects/test-suite |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 971 | projects/llvm-reopt |
| 972 | projects/llvm-gcc |
| 973 | projects/llvm-java |
| 974 | projects/llvm-tv |
| 975 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 976 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 977 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 978 | |
| 979 | # Initialize some variables set by options. |
| 980 | ac_init_help= |
| 981 | ac_init_version=false |
| 982 | # The variables have the same names as the options, with |
| 983 | # dashes changed to underlines. |
| 984 | cache_file=/dev/null |
| 985 | exec_prefix=NONE |
| 986 | no_create= |
| 987 | no_recursion= |
| 988 | prefix=NONE |
| 989 | program_prefix=NONE |
| 990 | program_suffix=NONE |
| 991 | program_transform_name=s,x,x, |
| 992 | silent= |
| 993 | site= |
| 994 | srcdir= |
| 995 | verbose= |
| 996 | x_includes=NONE |
| 997 | x_libraries=NONE |
| 998 | |
| 999 | # Installation directory options. |
| 1000 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1001 | # and all the variables that are supposed to be based on exec_prefix |
| 1002 | # by default will actually change. |
| 1003 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1004 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1005 | bindir='${exec_prefix}/bin' |
| 1006 | sbindir='${exec_prefix}/sbin' |
| 1007 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1008 | datarootdir='${prefix}/share' |
| 1009 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1010 | sysconfdir='${prefix}/etc' |
| 1011 | sharedstatedir='${prefix}/com' |
| 1012 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1013 | includedir='${prefix}/include' |
| 1014 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1015 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1016 | infodir='${datarootdir}/info' |
| 1017 | htmldir='${docdir}' |
| 1018 | dvidir='${docdir}' |
| 1019 | pdfdir='${docdir}' |
| 1020 | psdir='${docdir}' |
| 1021 | libdir='${exec_prefix}/lib' |
| 1022 | localedir='${datarootdir}/locale' |
| 1023 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1024 | |
| 1025 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1026 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1027 | for ac_option |
| 1028 | do |
| 1029 | # If the previous option needs an argument, assign it. |
| 1030 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1031 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1032 | ac_prev= |
| 1033 | continue |
| 1034 | fi |
| 1035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1036 | case $ac_option in |
| 1037 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1038 | *) ac_optarg=yes ;; |
| 1039 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1040 | |
| 1041 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1042 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1043 | case $ac_dashdash$ac_option in |
| 1044 | --) |
| 1045 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1046 | |
| 1047 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1048 | ac_prev=bindir ;; |
| 1049 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1050 | bindir=$ac_optarg ;; |
| 1051 | |
| 1052 | -build | --build | --buil | --bui | --bu) |
| 1053 | ac_prev=build_alias ;; |
| 1054 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1055 | build_alias=$ac_optarg ;; |
| 1056 | |
| 1057 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1058 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1059 | ac_prev=cache_file ;; |
| 1060 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1061 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1062 | cache_file=$ac_optarg ;; |
| 1063 | |
| 1064 | --config-cache | -C) |
| 1065 | cache_file=config.cache ;; |
| 1066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1067 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1068 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1069 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1070 | datadir=$ac_optarg ;; |
| 1071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1072 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1073 | | --dataroo | --dataro | --datar) |
| 1074 | ac_prev=datarootdir ;; |
| 1075 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1076 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1077 | datarootdir=$ac_optarg ;; |
| 1078 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1079 | -disable-* | --disable-*) |
| 1080 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1081 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1082 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1083 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1084 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1085 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1086 | eval enable_$ac_feature=no ;; |
| 1087 | |
| 1088 | -docdir | --docdir | --docdi | --doc | --do) |
| 1089 | ac_prev=docdir ;; |
| 1090 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1091 | docdir=$ac_optarg ;; |
| 1092 | |
| 1093 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1094 | ac_prev=dvidir ;; |
| 1095 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1096 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1097 | |
| 1098 | -enable-* | --enable-*) |
| 1099 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1100 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1101 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1102 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1103 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1104 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1105 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1106 | |
| 1107 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1108 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1109 | | --exec | --exe | --ex) |
| 1110 | ac_prev=exec_prefix ;; |
| 1111 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1112 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1113 | | --exec=* | --exe=* | --ex=*) |
| 1114 | exec_prefix=$ac_optarg ;; |
| 1115 | |
| 1116 | -gas | --gas | --ga | --g) |
| 1117 | # Obsolete; use --with-gas. |
| 1118 | with_gas=yes ;; |
| 1119 | |
| 1120 | -help | --help | --hel | --he | -h) |
| 1121 | ac_init_help=long ;; |
| 1122 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1123 | ac_init_help=recursive ;; |
| 1124 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1125 | ac_init_help=short ;; |
| 1126 | |
| 1127 | -host | --host | --hos | --ho) |
| 1128 | ac_prev=host_alias ;; |
| 1129 | -host=* | --host=* | --hos=* | --ho=*) |
| 1130 | host_alias=$ac_optarg ;; |
| 1131 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1132 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1133 | ac_prev=htmldir ;; |
| 1134 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1135 | | --ht=*) |
| 1136 | htmldir=$ac_optarg ;; |
| 1137 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1138 | -includedir | --includedir | --includedi | --included | --include \ |
| 1139 | | --includ | --inclu | --incl | --inc) |
| 1140 | ac_prev=includedir ;; |
| 1141 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1142 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1143 | includedir=$ac_optarg ;; |
| 1144 | |
| 1145 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1146 | ac_prev=infodir ;; |
| 1147 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1148 | infodir=$ac_optarg ;; |
| 1149 | |
| 1150 | -libdir | --libdir | --libdi | --libd) |
| 1151 | ac_prev=libdir ;; |
| 1152 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1153 | libdir=$ac_optarg ;; |
| 1154 | |
| 1155 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1156 | | --libexe | --libex | --libe) |
| 1157 | ac_prev=libexecdir ;; |
| 1158 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1159 | | --libexe=* | --libex=* | --libe=*) |
| 1160 | libexecdir=$ac_optarg ;; |
| 1161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1162 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1163 | ac_prev=localedir ;; |
| 1164 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1165 | localedir=$ac_optarg ;; |
| 1166 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1167 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1168 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1169 | ac_prev=localstatedir ;; |
| 1170 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1171 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1172 | localstatedir=$ac_optarg ;; |
| 1173 | |
| 1174 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1175 | ac_prev=mandir ;; |
| 1176 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1177 | mandir=$ac_optarg ;; |
| 1178 | |
| 1179 | -nfp | --nfp | --nf) |
| 1180 | # Obsolete; use --without-fp. |
| 1181 | with_fp=no ;; |
| 1182 | |
| 1183 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1184 | | --no-cr | --no-c | -n) |
| 1185 | no_create=yes ;; |
| 1186 | |
| 1187 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1188 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1189 | no_recursion=yes ;; |
| 1190 | |
| 1191 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1192 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1193 | | --oldin | --oldi | --old | --ol | --o) |
| 1194 | ac_prev=oldincludedir ;; |
| 1195 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1196 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1197 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1198 | oldincludedir=$ac_optarg ;; |
| 1199 | |
| 1200 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1201 | ac_prev=prefix ;; |
| 1202 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1203 | prefix=$ac_optarg ;; |
| 1204 | |
| 1205 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1206 | | --program-pre | --program-pr | --program-p) |
| 1207 | ac_prev=program_prefix ;; |
| 1208 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1209 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1210 | program_prefix=$ac_optarg ;; |
| 1211 | |
| 1212 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1213 | | --program-suf | --program-su | --program-s) |
| 1214 | ac_prev=program_suffix ;; |
| 1215 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1216 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1217 | program_suffix=$ac_optarg ;; |
| 1218 | |
| 1219 | -program-transform-name | --program-transform-name \ |
| 1220 | | --program-transform-nam | --program-transform-na \ |
| 1221 | | --program-transform-n | --program-transform- \ |
| 1222 | | --program-transform | --program-transfor \ |
| 1223 | | --program-transfo | --program-transf \ |
| 1224 | | --program-trans | --program-tran \ |
| 1225 | | --progr-tra | --program-tr | --program-t) |
| 1226 | ac_prev=program_transform_name ;; |
| 1227 | -program-transform-name=* | --program-transform-name=* \ |
| 1228 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1229 | | --program-transform-n=* | --program-transform-=* \ |
| 1230 | | --program-transform=* | --program-transfor=* \ |
| 1231 | | --program-transfo=* | --program-transf=* \ |
| 1232 | | --program-trans=* | --program-tran=* \ |
| 1233 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1234 | program_transform_name=$ac_optarg ;; |
| 1235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1236 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1237 | ac_prev=pdfdir ;; |
| 1238 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1239 | pdfdir=$ac_optarg ;; |
| 1240 | |
| 1241 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1242 | ac_prev=psdir ;; |
| 1243 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1244 | psdir=$ac_optarg ;; |
| 1245 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1246 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1247 | | -silent | --silent | --silen | --sile | --sil) |
| 1248 | silent=yes ;; |
| 1249 | |
| 1250 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1251 | ac_prev=sbindir ;; |
| 1252 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1253 | | --sbi=* | --sb=*) |
| 1254 | sbindir=$ac_optarg ;; |
| 1255 | |
| 1256 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1257 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1258 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1259 | | --sha | --sh) |
| 1260 | ac_prev=sharedstatedir ;; |
| 1261 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1262 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1263 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1264 | | --sha=* | --sh=*) |
| 1265 | sharedstatedir=$ac_optarg ;; |
| 1266 | |
| 1267 | -site | --site | --sit) |
| 1268 | ac_prev=site ;; |
| 1269 | -site=* | --site=* | --sit=*) |
| 1270 | site=$ac_optarg ;; |
| 1271 | |
| 1272 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1273 | ac_prev=srcdir ;; |
| 1274 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1275 | srcdir=$ac_optarg ;; |
| 1276 | |
| 1277 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1278 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1279 | ac_prev=sysconfdir ;; |
| 1280 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1281 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1282 | sysconfdir=$ac_optarg ;; |
| 1283 | |
| 1284 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1285 | ac_prev=target_alias ;; |
| 1286 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1287 | target_alias=$ac_optarg ;; |
| 1288 | |
| 1289 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1290 | verbose=yes ;; |
| 1291 | |
| 1292 | -version | --version | --versio | --versi | --vers | -V) |
| 1293 | ac_init_version=: ;; |
| 1294 | |
| 1295 | -with-* | --with-*) |
| 1296 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1297 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1298 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1299 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1300 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1301 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1302 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1303 | |
| 1304 | -without-* | --without-*) |
| 1305 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1306 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1307 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1308 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1309 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1310 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1311 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1312 | |
| 1313 | --x) |
| 1314 | # Obsolete; use --with-x. |
| 1315 | with_x=yes ;; |
| 1316 | |
| 1317 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1318 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1319 | ac_prev=x_includes ;; |
| 1320 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1321 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1322 | x_includes=$ac_optarg ;; |
| 1323 | |
| 1324 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1325 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1326 | ac_prev=x_libraries ;; |
| 1327 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1328 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1329 | x_libraries=$ac_optarg ;; |
| 1330 | |
| 1331 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1332 | Try \`$0 --help' for more information." >&2 |
| 1333 | { (exit 1); exit 1; }; } |
| 1334 | ;; |
| 1335 | |
| 1336 | *=*) |
| 1337 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1338 | # Reject names that are not valid shell variable names. |
| 1339 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1340 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1341 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1342 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1343 | export $ac_envvar ;; |
| 1344 | |
| 1345 | *) |
| 1346 | # FIXME: should be removed in autoconf 3.0. |
| 1347 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1348 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1349 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1350 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1351 | ;; |
| 1352 | |
| 1353 | esac |
| 1354 | done |
| 1355 | |
| 1356 | if test -n "$ac_prev"; then |
| 1357 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1358 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1359 | { (exit 1); exit 1; }; } |
| 1360 | fi |
| 1361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1362 | # Be sure to have absolute directory names. |
| 1363 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1364 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1365 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1366 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1367 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1368 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1369 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1370 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1371 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1372 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1373 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1374 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1375 | done |
| 1376 | |
| 1377 | # There might be people who depend on the old broken behavior: `$host' |
| 1378 | # used to hold the argument of --host etc. |
| 1379 | # FIXME: To remove some day. |
| 1380 | build=$build_alias |
| 1381 | host=$host_alias |
| 1382 | target=$target_alias |
| 1383 | |
| 1384 | # FIXME: To remove some day. |
| 1385 | if test "x$host_alias" != x; then |
| 1386 | if test "x$build_alias" = x; then |
| 1387 | cross_compiling=maybe |
| 1388 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1389 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1390 | elif test "x$build_alias" != "x$host_alias"; then |
| 1391 | cross_compiling=yes |
| 1392 | fi |
| 1393 | fi |
| 1394 | |
| 1395 | ac_tool_prefix= |
| 1396 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1397 | |
| 1398 | test "$silent" = yes && exec 6>/dev/null |
| 1399 | |
| 1400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1401 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1402 | ac_ls_di=`ls -di .` && |
| 1403 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1404 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1405 | { (exit 1); exit 1; }; } |
| 1406 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1407 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1408 | { (exit 1); exit 1; }; } |
| 1409 | |
| 1410 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1411 | # Find the source files, if location was not specified. |
| 1412 | if test -z "$srcdir"; then |
| 1413 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1414 | # Try the directory containing this script, then the parent directory. |
| 1415 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1416 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1417 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1418 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1419 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1420 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1421 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1422 | s//\1/ |
| 1423 | q |
| 1424 | } |
| 1425 | /^X\(\/\/\)[^/].*/{ |
| 1426 | s//\1/ |
| 1427 | q |
| 1428 | } |
| 1429 | /^X\(\/\/\)$/{ |
| 1430 | s//\1/ |
| 1431 | q |
| 1432 | } |
| 1433 | /^X\(\/\).*/{ |
| 1434 | s//\1/ |
| 1435 | q |
| 1436 | } |
| 1437 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1438 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1439 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1440 | srcdir=.. |
| 1441 | fi |
| 1442 | else |
| 1443 | ac_srcdir_defaulted=no |
| 1444 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1445 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1446 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1447 | { 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] | 1448 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1449 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1450 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1451 | ac_abs_confdir=`( |
| 1452 | 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] | 1453 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1454 | pwd)` |
| 1455 | # When building in place, set srcdir=. |
| 1456 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1457 | srcdir=. |
| 1458 | fi |
| 1459 | # Remove unnecessary trailing slashes from srcdir. |
| 1460 | # Double slashes in file names in object file debugging info |
| 1461 | # mess up M-x gdb in Emacs. |
| 1462 | case $srcdir in |
| 1463 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1464 | esac |
| 1465 | for ac_var in $ac_precious_vars; do |
| 1466 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1467 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1468 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1469 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1470 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | |
| 1472 | # |
| 1473 | # Report the --help message. |
| 1474 | # |
| 1475 | if test "$ac_init_help" = "long"; then |
| 1476 | # Omit some internal or obsolete options to make the list less imposing. |
| 1477 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1478 | cat <<_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1479 | \`configure' configures llvm 2.7svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1480 | |
| 1481 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1482 | |
| 1483 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1484 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1485 | |
| 1486 | Defaults for the options are specified in brackets. |
| 1487 | |
| 1488 | Configuration: |
| 1489 | -h, --help display this help and exit |
| 1490 | --help=short display options specific to this package |
| 1491 | --help=recursive display the short help of all the included packages |
| 1492 | -V, --version display version information and exit |
| 1493 | -q, --quiet, --silent do not print \`checking...' messages |
| 1494 | --cache-file=FILE cache test results in FILE [disabled] |
| 1495 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1496 | -n, --no-create do not create output files |
| 1497 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1498 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 | Installation directories: |
| 1500 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1501 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1502 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1503 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | |
| 1505 | By default, \`make install' will install all the files in |
| 1506 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1507 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1508 | for instance \`--prefix=\$HOME'. |
| 1509 | |
| 1510 | For better control, use the options below. |
| 1511 | |
| 1512 | Fine tuning of the installation directories: |
| 1513 | --bindir=DIR user executables [EPREFIX/bin] |
| 1514 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1515 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1516 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1517 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1518 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1519 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1520 | --includedir=DIR C header files [PREFIX/include] |
| 1521 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1522 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1523 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1524 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1525 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1526 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1527 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1528 | --htmldir=DIR html documentation [DOCDIR] |
| 1529 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1530 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1531 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1532 | _ACEOF |
| 1533 | |
| 1534 | cat <<\_ACEOF |
| 1535 | |
| 1536 | System types: |
| 1537 | --build=BUILD configure for building on BUILD [guessed] |
| 1538 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1539 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1540 | _ACEOF |
| 1541 | fi |
| 1542 | |
| 1543 | if test -n "$ac_init_help"; then |
| 1544 | case $ac_init_help in |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1545 | short | recursive ) echo "Configuration of llvm 2.7svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1546 | esac |
| 1547 | cat <<\_ACEOF |
| 1548 | |
| 1549 | Optional Features: |
| 1550 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1551 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1552 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1553 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1554 | --enable-assertions Compile with assertion checks enabled (default is |
| 1555 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1556 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1557 | Compile with expensive debug checks enabled (default |
| 1558 | is NO) |
| 1559 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1560 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1561 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1562 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1563 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1564 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1565 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1566 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1567 | is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1568 | --enable-targets Build specific host targets: all or |
| 1569 | target1,target2,... Valid targets are: host, x86, |
| 1570 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1571 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1572 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1573 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1574 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1575 | --enable-bindings Build specific language bindings: |
| 1576 | all,auto,none,{binding-name} (default=auto) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1577 | --enable-libffi Check for the presence of libffi (default is YES) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1578 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1579 | Win32) |
| 1580 | --enable-llvmc-dynamic-plugins |
| 1581 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1582 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1583 | --enable-shared[=PKGS] build shared libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1584 | [default=yes] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1585 | --enable-static[=PKGS] build static libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1586 | [default=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1587 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1588 | optimize for fast installation |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1589 | [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1590 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1591 | |
| 1592 | Optional Packages: |
| 1593 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1594 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1595 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1596 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1597 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1598 | searches PATH) |
| 1599 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1600 | searches PATH) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1601 | --with-optimize-option Select the compiler options to use for optimized |
| 1602 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1603 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1604 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1605 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1606 | --with-c-include-dirs Colon separated list of directories clang will |
| 1607 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 1608 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1609 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1610 | --with-cxx-include-32bit-dir |
| 1611 | 32 bit multilib dir. |
| 1612 | --with-cxx-include-64bit-dir |
| 1613 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1614 | --with-binutils-include Specify path to binutils/include/ containing |
| 1615 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1616 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1617 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1618 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1619 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1620 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1621 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1622 | --with-oprofile=<prefix> |
| 1623 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1624 | |
| 1625 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1626 | CC C compiler command |
| 1627 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1628 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1629 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1630 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1631 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1632 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1633 | CXX C++ compiler command |
| 1634 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1635 | CXXCPP C++ preprocessor |
| 1636 | F77 Fortran 77 compiler command |
| 1637 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1638 | |
| 1639 | Use these variables to override the choices made by `configure' or to help |
| 1640 | it to find libraries and programs with nonstandard names/locations. |
| 1641 | |
| 1642 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1643 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1644 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1645 | fi |
| 1646 | |
| 1647 | if test "$ac_init_help" = "recursive"; then |
| 1648 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1649 | 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] | 1650 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1651 | ac_builddir=. |
| 1652 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1653 | case "$ac_dir" in |
| 1654 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1655 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1656 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1657 | # A ".." for each directory in $ac_dir_suffix. |
| 1658 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1659 | case $ac_top_builddir_sub in |
| 1660 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1661 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1662 | esac ;; |
| 1663 | esac |
| 1664 | ac_abs_top_builddir=$ac_pwd |
| 1665 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1666 | # for backward compatibility: |
| 1667 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1668 | |
| 1669 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1670 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1671 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1672 | ac_top_srcdir=$ac_top_builddir_sub |
| 1673 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1674 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1675 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1676 | ac_top_srcdir=$srcdir |
| 1677 | ac_abs_top_srcdir=$srcdir ;; |
| 1678 | *) # Relative name. |
| 1679 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1680 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1681 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1682 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1683 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1685 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1686 | # Check for guested configure. |
| 1687 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1688 | echo && |
| 1689 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1690 | elif test -f "$ac_srcdir/configure"; then |
| 1691 | echo && |
| 1692 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1693 | else |
| 1694 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | fi || ac_status=$? |
| 1696 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1697 | done |
| 1698 | fi |
| 1699 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1700 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1701 | if $ac_init_version; then |
| 1702 | cat <<\_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1703 | llvm configure 2.7svn |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1704 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1705 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1706 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1707 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1708 | This configure script is free software; the Free Software Foundation |
| 1709 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1710 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1711 | Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1712 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1713 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1714 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1715 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1716 | This file contains any messages produced by compilers while |
| 1717 | running configure, to aid debugging if configure makes a mistake. |
| 1718 | |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1719 | It was created by llvm $as_me 2.7svn, which was |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1720 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1721 | |
| 1722 | $ $0 $@ |
| 1723 | |
| 1724 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1725 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1726 | { |
| 1727 | cat <<_ASUNAME |
| 1728 | ## --------- ## |
| 1729 | ## Platform. ## |
| 1730 | ## --------- ## |
| 1731 | |
| 1732 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1733 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1734 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1735 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1736 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1737 | |
| 1738 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1739 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1740 | |
| 1741 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1742 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1743 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1744 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1745 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1746 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1747 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1748 | |
| 1749 | _ASUNAME |
| 1750 | |
| 1751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1752 | for as_dir in $PATH |
| 1753 | do |
| 1754 | IFS=$as_save_IFS |
| 1755 | test -z "$as_dir" && as_dir=. |
| 1756 | echo "PATH: $as_dir" |
| 1757 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1758 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1759 | |
| 1760 | } >&5 |
| 1761 | |
| 1762 | cat >&5 <<_ACEOF |
| 1763 | |
| 1764 | |
| 1765 | ## ----------- ## |
| 1766 | ## Core tests. ## |
| 1767 | ## ----------- ## |
| 1768 | |
| 1769 | _ACEOF |
| 1770 | |
| 1771 | |
| 1772 | # Keep a trace of the command line. |
| 1773 | # 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] | 1774 | # 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] | 1775 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1776 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1777 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1778 | ac_configure_args0= |
| 1779 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1780 | ac_must_keep_next=false |
| 1781 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1782 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1783 | for ac_arg |
| 1784 | do |
| 1785 | case $ac_arg in |
| 1786 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1787 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1788 | | -silent | --silent | --silen | --sile | --sil) |
| 1789 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1790 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1791 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1792 | esac |
| 1793 | case $ac_pass in |
| 1794 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1795 | 2) |
| 1796 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1797 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1798 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1799 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1800 | case $ac_arg in |
| 1801 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1802 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1803 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1804 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1805 | case "$ac_configure_args0 " in |
| 1806 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1807 | esac |
| 1808 | ;; |
| 1809 | -* ) ac_must_keep_next=true ;; |
| 1810 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1811 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1812 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1813 | ;; |
| 1814 | esac |
| 1815 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1816 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1817 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1818 | $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] | 1819 | |
| 1820 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1821 | # config.log. We remove comments because anyway the quotes in there |
| 1822 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1823 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1824 | # 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] | 1825 | trap 'exit_status=$? |
| 1826 | # Save into config.log some information that might help in debugging. |
| 1827 | { |
| 1828 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1829 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1830 | cat <<\_ASBOX |
| 1831 | ## ---------------- ## |
| 1832 | ## Cache variables. ## |
| 1833 | ## ---------------- ## |
| 1834 | _ASBOX |
| 1835 | echo |
| 1836 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1837 | ( |
| 1838 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1839 | eval ac_val=\$$ac_var |
| 1840 | case $ac_val in #( |
| 1841 | *${as_nl}*) |
| 1842 | case $ac_var in #( |
| 1843 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1844 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1845 | esac |
| 1846 | case $ac_var in #( |
| 1847 | _ | IFS | as_nl) ;; #( |
| 1848 | *) $as_unset $ac_var ;; |
| 1849 | esac ;; |
| 1850 | esac |
| 1851 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1852 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1853 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1854 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1855 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1856 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1857 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1858 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1859 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1860 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1861 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1862 | esac | |
| 1863 | sort |
| 1864 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1865 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1866 | |
| 1867 | cat <<\_ASBOX |
| 1868 | ## ----------------- ## |
| 1869 | ## Output variables. ## |
| 1870 | ## ----------------- ## |
| 1871 | _ASBOX |
| 1872 | echo |
| 1873 | for ac_var in $ac_subst_vars |
| 1874 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1875 | eval ac_val=\$$ac_var |
| 1876 | case $ac_val in |
| 1877 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1878 | esac |
| 1879 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1880 | done | sort |
| 1881 | echo |
| 1882 | |
| 1883 | if test -n "$ac_subst_files"; then |
| 1884 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1885 | ## ------------------- ## |
| 1886 | ## File substitutions. ## |
| 1887 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1888 | _ASBOX |
| 1889 | echo |
| 1890 | for ac_var in $ac_subst_files |
| 1891 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1892 | eval ac_val=\$$ac_var |
| 1893 | case $ac_val in |
| 1894 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1895 | esac |
| 1896 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1897 | done | sort |
| 1898 | echo |
| 1899 | fi |
| 1900 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1901 | if test -s confdefs.h; then |
| 1902 | cat <<\_ASBOX |
| 1903 | ## ----------- ## |
| 1904 | ## confdefs.h. ## |
| 1905 | ## ----------- ## |
| 1906 | _ASBOX |
| 1907 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1908 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1909 | echo |
| 1910 | fi |
| 1911 | test "$ac_signal" != 0 && |
| 1912 | echo "$as_me: caught signal $ac_signal" |
| 1913 | echo "$as_me: exit $exit_status" |
| 1914 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1915 | rm -f core *.core core.conftest.* && |
| 1916 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1917 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1918 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1919 | for ac_signal in 1 2 13 15; do |
| 1920 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1921 | done |
| 1922 | ac_signal=0 |
| 1923 | |
| 1924 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1925 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1926 | |
| 1927 | # Predefined preprocessor variables. |
| 1928 | |
| 1929 | cat >>confdefs.h <<_ACEOF |
| 1930 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1931 | _ACEOF |
| 1932 | |
| 1933 | |
| 1934 | cat >>confdefs.h <<_ACEOF |
| 1935 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1936 | _ACEOF |
| 1937 | |
| 1938 | |
| 1939 | cat >>confdefs.h <<_ACEOF |
| 1940 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1941 | _ACEOF |
| 1942 | |
| 1943 | |
| 1944 | cat >>confdefs.h <<_ACEOF |
| 1945 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1946 | _ACEOF |
| 1947 | |
| 1948 | |
| 1949 | cat >>confdefs.h <<_ACEOF |
| 1950 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1951 | _ACEOF |
| 1952 | |
| 1953 | |
| 1954 | # Let the site file select an alternate cache file if it wants to. |
| 1955 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1956 | if test -n "$CONFIG_SITE"; then |
| 1957 | set x "$CONFIG_SITE" |
| 1958 | elif test "x$prefix" != xNONE; then |
| 1959 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1960 | else |
| 1961 | set x "$ac_default_prefix/share/config.site" \ |
| 1962 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1963 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1964 | shift |
| 1965 | for ac_site_file |
| 1966 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1967 | if test -r "$ac_site_file"; then |
| 1968 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1969 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1970 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1971 | . "$ac_site_file" |
| 1972 | fi |
| 1973 | done |
| 1974 | |
| 1975 | if test -r "$cache_file"; then |
| 1976 | # Some versions of bash will fail to source /dev/null (special |
| 1977 | # files actually), so we avoid doing that. |
| 1978 | if test -f "$cache_file"; then |
| 1979 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1980 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1981 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1982 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1983 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1984 | esac |
| 1985 | fi |
| 1986 | else |
| 1987 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1988 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1989 | >$cache_file |
| 1990 | fi |
| 1991 | |
| 1992 | # Check that the precious variables saved in the cache have kept the same |
| 1993 | # value. |
| 1994 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1995 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1996 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1997 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1998 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1999 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2000 | case $ac_old_set,$ac_new_set in |
| 2001 | set,) |
| 2002 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2003 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2004 | ac_cache_corrupted=: ;; |
| 2005 | ,set) |
| 2006 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 2007 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2008 | ac_cache_corrupted=: ;; |
| 2009 | ,);; |
| 2010 | *) |
| 2011 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2012 | { 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] | 2013 | 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] | 2014 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2015 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2016 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2017 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2018 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2019 | fi;; |
| 2020 | esac |
| 2021 | # Pass precious variables to config.status. |
| 2022 | if test "$ac_new_set" = set; then |
| 2023 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2024 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2025 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2026 | esac |
| 2027 | case " $ac_configure_args " in |
| 2028 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2029 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 2030 | esac |
| 2031 | fi |
| 2032 | done |
| 2033 | if $ac_cache_corrupted; then |
| 2034 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 2035 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2036 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 2037 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 2038 | { (exit 1); exit 1; }; } |
| 2039 | fi |
| 2040 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2041 | |
| 2042 | |
| 2043 | |
| 2044 | |
| 2045 | |
| 2046 | |
| 2047 | |
| 2048 | |
| 2049 | |
| 2050 | |
| 2051 | |
| 2052 | |
| 2053 | |
| 2054 | |
| 2055 | |
| 2056 | |
| 2057 | |
| 2058 | |
| 2059 | |
| 2060 | |
| 2061 | |
| 2062 | |
| 2063 | |
| 2064 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | ac_ext=c |
| 2066 | ac_cpp='$CPP $CPPFLAGS' |
| 2067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2070 | |
| 2071 | |
| 2072 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 2073 | LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2074 | |
| 2075 | |
| 2076 | |
| 2077 | |
| 2078 | |
| 2079 | |
| 2080 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2081 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2082 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2083 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2084 | ac_aux_dir=$ac_dir |
| 2085 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2086 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2087 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2088 | ac_aux_dir=$ac_dir |
| 2089 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2090 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2091 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2092 | ac_aux_dir=$ac_dir |
| 2093 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2094 | break |
| 2095 | fi |
| 2096 | done |
| 2097 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2098 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2099 | 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] | 2100 | { (exit 1); exit 1; }; } |
| 2101 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2102 | |
| 2103 | # These three variables are undocumented and unsupported, |
| 2104 | # and are intended to be withdrawn in a future Autoconf release. |
| 2105 | # They can cause serious problems if a builder's source tree is in a directory |
| 2106 | # whose full name contains unusual characters. |
| 2107 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2108 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2109 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2110 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2111 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2112 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2113 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2114 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2115 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2116 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2117 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2118 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2119 | fi |
| 2120 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2121 | for i in `ls ${srcdir}/projects` |
| 2122 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2123 | if test -d ${srcdir}/projects/${i} ; then |
| 2124 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2125 | CVS) ;; |
| 2126 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2127 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2128 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2129 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2130 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2131 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 2132 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 2133 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2134 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2135 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 2136 | test-suite) subdirs="$subdirs projects/test-suite" |
| 2137 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2138 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2139 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2140 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2141 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2142 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2143 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2144 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2145 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2146 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2147 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2148 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2149 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2150 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2151 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2152 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2153 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2154 | 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] | 2155 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2156 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2157 | fi |
| 2158 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2159 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2160 | |
| 2161 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2162 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2163 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2164 | 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] | 2165 | { (exit 1); exit 1; }; } |
| 2166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2167 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2168 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2169 | if test "${ac_cv_build+set}" = set; then |
| 2170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2171 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2172 | ac_build_alias=$build_alias |
| 2173 | test "x$ac_build_alias" = x && |
| 2174 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2175 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2176 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2177 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2178 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2179 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2180 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2181 | 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] | 2182 | { (exit 1); exit 1; }; } |
| 2183 | |
| 2184 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2185 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2186 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2187 | case $ac_cv_build in |
| 2188 | *-*-*) ;; |
| 2189 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2190 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2191 | { (exit 1); exit 1; }; };; |
| 2192 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2193 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2194 | ac_save_IFS=$IFS; IFS='-' |
| 2195 | set x $ac_cv_build |
| 2196 | shift |
| 2197 | build_cpu=$1 |
| 2198 | build_vendor=$2 |
| 2199 | shift; shift |
| 2200 | # Remember, the first character of IFS is used to create $*, |
| 2201 | # except with old shells: |
| 2202 | build_os=$* |
| 2203 | IFS=$ac_save_IFS |
| 2204 | 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] | 2205 | |
| 2206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2207 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2208 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2209 | if test "${ac_cv_host+set}" = set; then |
| 2210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2211 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2212 | if test "x$host_alias" = x; then |
| 2213 | ac_cv_host=$ac_cv_build |
| 2214 | else |
| 2215 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2216 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2217 | 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] | 2218 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2219 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2220 | |
| 2221 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2222 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2223 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2224 | case $ac_cv_host in |
| 2225 | *-*-*) ;; |
| 2226 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2227 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2228 | { (exit 1); exit 1; }; };; |
| 2229 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2230 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2231 | ac_save_IFS=$IFS; IFS='-' |
| 2232 | set x $ac_cv_host |
| 2233 | shift |
| 2234 | host_cpu=$1 |
| 2235 | host_vendor=$2 |
| 2236 | shift; shift |
| 2237 | # Remember, the first character of IFS is used to create $*, |
| 2238 | # except with old shells: |
| 2239 | host_os=$* |
| 2240 | IFS=$ac_save_IFS |
| 2241 | 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] | 2242 | |
| 2243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2245 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2246 | if test "${ac_cv_target+set}" = set; then |
| 2247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2248 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2249 | if test "x$target_alias" = x; then |
| 2250 | ac_cv_target=$ac_cv_host |
| 2251 | else |
| 2252 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2253 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2254 | 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] | 2255 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2256 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2257 | |
| 2258 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2259 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2260 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2261 | case $ac_cv_target in |
| 2262 | *-*-*) ;; |
| 2263 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2264 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2265 | { (exit 1); exit 1; }; };; |
| 2266 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2267 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2268 | ac_save_IFS=$IFS; IFS='-' |
| 2269 | set x $ac_cv_target |
| 2270 | shift |
| 2271 | target_cpu=$1 |
| 2272 | target_vendor=$2 |
| 2273 | shift; shift |
| 2274 | # Remember, the first character of IFS is used to create $*, |
| 2275 | # except with old shells: |
| 2276 | target_os=$* |
| 2277 | IFS=$ac_save_IFS |
| 2278 | 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] | 2279 | |
| 2280 | |
| 2281 | # The aliases save the names the user supplied, while $host etc. |
| 2282 | # will get canonicalized. |
| 2283 | test -n "$target_alias" && |
| 2284 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2285 | NONENONEs,x,x, && |
| 2286 | program_prefix=${target_alias}- |
| 2287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2288 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2289 | 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] | 2290 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2292 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2293 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2294 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2295 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2296 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2297 | llvm_cv_os_type="AIX" |
| 2298 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2299 | *-*-irix*) |
| 2300 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2301 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2302 | llvm_cv_os_type="IRIX" |
| 2303 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2304 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2305 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2306 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2307 | llvm_cv_os_type="Cygwin" |
| 2308 | llvm_cv_platform_type="Unix" ;; |
| 2309 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2310 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2311 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2312 | llvm_cv_os_type="Darwin" |
| 2313 | llvm_cv_platform_type="Unix" ;; |
| 2314 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2315 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2316 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2317 | llvm_cv_os_type="FreeBSD" |
| 2318 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2319 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2320 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2321 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2322 | llvm_cv_os_type="OpenBSD" |
| 2323 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2324 | *-*-netbsd*) |
| 2325 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2326 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2327 | llvm_cv_os_type="NetBSD" |
| 2328 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2329 | *-*-dragonfly*) |
| 2330 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2331 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2332 | llvm_cv_os_type="DragonFly" |
| 2333 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2334 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2335 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2336 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2337 | llvm_cv_os_type="HP-UX" |
| 2338 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2339 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2340 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2341 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2342 | llvm_cv_os_type="Interix" |
| 2343 | llvm_cv_platform_type="Unix" ;; |
| 2344 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2345 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2346 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2347 | llvm_cv_os_type="Linux" |
| 2348 | llvm_cv_platform_type="Unix" ;; |
| 2349 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2350 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2351 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2352 | llvm_cv_os_type="SunOS" |
| 2353 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2354 | *-*-auroraux*) |
| 2355 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2356 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2357 | llvm_cv_os_type="AuroraUX" |
| 2358 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2359 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2360 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2361 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2362 | llvm_cv_os_type="Win32" |
| 2363 | llvm_cv_platform_type="Win32" ;; |
| 2364 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2365 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2366 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2367 | llvm_cv_os_type="MingW" |
| 2368 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2369 | *-*-haiku*) |
| 2370 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2371 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2372 | llvm_cv_os_type="Haiku" |
| 2373 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2374 | *-unknown-eabi*) |
| 2375 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2376 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2377 | llvm_cv_os_type="Freestanding" |
| 2378 | llvm_cv_platform_type="Unix" ;; |
| 2379 | *-unknown-elf*) |
| 2380 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2381 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2382 | llvm_cv_os_type="Freestanding" |
| 2383 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2384 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2385 | llvm_cv_link_all_option="" |
| 2386 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2387 | llvm_cv_os_type="Unknown" |
| 2388 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2389 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2390 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2391 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2392 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2393 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2394 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2395 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2396 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2398 | else |
| 2399 | case $target in |
| 2400 | *-*-aix*) |
| 2401 | llvm_cv_target_os_type="AIX" ;; |
| 2402 | *-*-irix*) |
| 2403 | llvm_cv_target_os_type="IRIX" ;; |
| 2404 | *-*-cygwin*) |
| 2405 | llvm_cv_target_os_type="Cygwin" ;; |
| 2406 | *-*-darwin*) |
| 2407 | llvm_cv_target_os_type="Darwin" ;; |
| 2408 | *-*-freebsd*) |
| 2409 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2410 | *-*-openbsd*) |
| 2411 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2412 | *-*-netbsd*) |
| 2413 | llvm_cv_target_os_type="NetBSD" ;; |
| 2414 | *-*-dragonfly*) |
| 2415 | llvm_cv_target_os_type="DragonFly" ;; |
| 2416 | *-*-hpux*) |
| 2417 | llvm_cv_target_os_type="HP-UX" ;; |
| 2418 | *-*-interix*) |
| 2419 | llvm_cv_target_os_type="Interix" ;; |
| 2420 | *-*-linux*) |
| 2421 | llvm_cv_target_os_type="Linux" ;; |
| 2422 | *-*-solaris*) |
| 2423 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2424 | *-*-auroraux*) |
| 2425 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2426 | *-*-win32*) |
| 2427 | llvm_cv_target_os_type="Win32" ;; |
| 2428 | *-*-mingw*) |
| 2429 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2430 | *-*-haiku*) |
| 2431 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2432 | *-unknown-eabi*) |
| 2433 | llvm_cv_target_os_type="Freestanding" ;; |
| 2434 | *) |
| 2435 | llvm_cv_target_os_type="Unknown" ;; |
| 2436 | esac |
| 2437 | fi |
| 2438 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2439 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 2440 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2441 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2442 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2443 | 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] | 2444 | { (exit 1); exit 1; }; } |
| 2445 | fi |
| 2446 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2447 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2448 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2449 | HOST_OS=$llvm_cv_os_type |
| 2450 | |
| 2451 | TARGET_OS=$llvm_cv_target_os_type |
| 2452 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2453 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2454 | LINKALL=$llvm_cv_link_all_option |
| 2455 | |
| 2456 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2457 | |
| 2458 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2459 | case $llvm_cv_platform_type in |
| 2460 | Unix) |
| 2461 | |
| 2462 | cat >>confdefs.h <<\_ACEOF |
| 2463 | #define LLVM_ON_UNIX 1 |
| 2464 | _ACEOF |
| 2465 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2466 | LLVM_ON_UNIX=1 |
| 2467 | |
| 2468 | LLVM_ON_WIN32=0 |
| 2469 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2470 | ;; |
| 2471 | Win32) |
| 2472 | |
| 2473 | cat >>confdefs.h <<\_ACEOF |
| 2474 | #define LLVM_ON_WIN32 1 |
| 2475 | _ACEOF |
| 2476 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2477 | LLVM_ON_UNIX=0 |
| 2478 | |
| 2479 | LLVM_ON_WIN32=1 |
| 2480 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2481 | ;; |
| 2482 | esac |
| 2483 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2484 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2485 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2486 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2488 | else |
| 2489 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2490 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2491 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2492 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2493 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2494 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2495 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2496 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2497 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2498 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2499 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2500 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2501 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2502 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2503 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2505 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2506 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2507 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2508 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2509 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2510 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2511 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2512 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2513 | # Determine the LLVM native architecture for the target |
| 2514 | case "$llvm_cv_target_arch" in |
| 2515 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2516 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2517 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2518 | esac |
| 2519 | |
| 2520 | ARCH=$llvm_cv_target_arch |
| 2521 | |
| 2522 | |
| 2523 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2524 | ac_cpp='$CPP $CPPFLAGS' |
| 2525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2528 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2529 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2530 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2531 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2533 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2535 | else |
| 2536 | if test -n "$CC"; then |
| 2537 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2538 | else |
| 2539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2540 | for as_dir in $PATH |
| 2541 | do |
| 2542 | IFS=$as_save_IFS |
| 2543 | test -z "$as_dir" && as_dir=. |
| 2544 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2545 | 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] | 2546 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2548 | break 2 |
| 2549 | fi |
| 2550 | done |
| 2551 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2552 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2553 | |
| 2554 | fi |
| 2555 | fi |
| 2556 | CC=$ac_cv_prog_CC |
| 2557 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2558 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2559 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2560 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2561 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2562 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2563 | fi |
| 2564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2565 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2566 | fi |
| 2567 | if test -z "$ac_cv_prog_CC"; then |
| 2568 | ac_ct_CC=$CC |
| 2569 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2570 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2571 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2573 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2575 | else |
| 2576 | if test -n "$ac_ct_CC"; then |
| 2577 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2578 | else |
| 2579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2580 | for as_dir in $PATH |
| 2581 | do |
| 2582 | IFS=$as_save_IFS |
| 2583 | test -z "$as_dir" && as_dir=. |
| 2584 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2585 | 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] | 2586 | ac_cv_prog_ac_ct_CC="gcc" |
| 2587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2588 | break 2 |
| 2589 | fi |
| 2590 | done |
| 2591 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2592 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2593 | |
| 2594 | fi |
| 2595 | fi |
| 2596 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2597 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2598 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2599 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2600 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2601 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2602 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2603 | fi |
| 2604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2605 | if test "x$ac_ct_CC" = x; then |
| 2606 | CC="" |
| 2607 | else |
| 2608 | case $cross_compiling:$ac_tool_warned in |
| 2609 | yes:) |
| 2610 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2611 | whose name does not start with the host triplet. If you think this |
| 2612 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2613 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2614 | whose name does not start with the host triplet. If you think this |
| 2615 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2616 | ac_tool_warned=yes ;; |
| 2617 | esac |
| 2618 | CC=$ac_ct_CC |
| 2619 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2620 | else |
| 2621 | CC="$ac_cv_prog_CC" |
| 2622 | fi |
| 2623 | |
| 2624 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | if test -n "$ac_tool_prefix"; then |
| 2626 | # 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] | 2627 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2628 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2630 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2632 | else |
| 2633 | if test -n "$CC"; then |
| 2634 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2635 | else |
| 2636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2637 | for as_dir in $PATH |
| 2638 | do |
| 2639 | IFS=$as_save_IFS |
| 2640 | test -z "$as_dir" && as_dir=. |
| 2641 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2642 | 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] | 2643 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2645 | break 2 |
| 2646 | fi |
| 2647 | done |
| 2648 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2649 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2650 | |
| 2651 | fi |
| 2652 | fi |
| 2653 | CC=$ac_cv_prog_CC |
| 2654 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2655 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2656 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2657 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2658 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2659 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2660 | fi |
| 2661 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2662 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2663 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2664 | fi |
| 2665 | if test -z "$CC"; then |
| 2666 | # Extract the first word of "cc", so it can be a program name with args. |
| 2667 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2668 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2670 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2672 | else |
| 2673 | if test -n "$CC"; then |
| 2674 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2675 | else |
| 2676 | ac_prog_rejected=no |
| 2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2678 | for as_dir in $PATH |
| 2679 | do |
| 2680 | IFS=$as_save_IFS |
| 2681 | test -z "$as_dir" && as_dir=. |
| 2682 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2683 | 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] | 2684 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2685 | ac_prog_rejected=yes |
| 2686 | continue |
| 2687 | fi |
| 2688 | ac_cv_prog_CC="cc" |
| 2689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2690 | break 2 |
| 2691 | fi |
| 2692 | done |
| 2693 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2694 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2695 | |
| 2696 | if test $ac_prog_rejected = yes; then |
| 2697 | # We found a bogon in the path, so make sure we never use it. |
| 2698 | set dummy $ac_cv_prog_CC |
| 2699 | shift |
| 2700 | if test $# != 0; then |
| 2701 | # We chose a different compiler from the bogus one. |
| 2702 | # However, it has the same basename, so the bogon will be chosen |
| 2703 | # first if we set CC to just the basename; use the full file name. |
| 2704 | shift |
| 2705 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2706 | fi |
| 2707 | fi |
| 2708 | fi |
| 2709 | fi |
| 2710 | CC=$ac_cv_prog_CC |
| 2711 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2712 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2713 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2714 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2715 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2716 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2717 | fi |
| 2718 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2719 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2720 | fi |
| 2721 | if test -z "$CC"; then |
| 2722 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2723 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2724 | do |
| 2725 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2726 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2729 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2731 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2732 | if test -n "$CC"; then |
| 2733 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2734 | else |
| 2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2736 | for as_dir in $PATH |
| 2737 | do |
| 2738 | IFS=$as_save_IFS |
| 2739 | test -z "$as_dir" && as_dir=. |
| 2740 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2741 | 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] | 2742 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2744 | break 2 |
| 2745 | fi |
| 2746 | done |
| 2747 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2748 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2749 | |
| 2750 | fi |
| 2751 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2752 | CC=$ac_cv_prog_CC |
| 2753 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2754 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2755 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2756 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2757 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2758 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2759 | fi |
| 2760 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2761 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2762 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2763 | done |
| 2764 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2765 | if test -z "$CC"; then |
| 2766 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2767 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2768 | do |
| 2769 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2770 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2773 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2775 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2776 | if test -n "$ac_ct_CC"; then |
| 2777 | 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] | 2778 | else |
| 2779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2780 | for as_dir in $PATH |
| 2781 | do |
| 2782 | IFS=$as_save_IFS |
| 2783 | test -z "$as_dir" && as_dir=. |
| 2784 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2785 | 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] | 2786 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2788 | break 2 |
| 2789 | fi |
| 2790 | done |
| 2791 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2792 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2793 | |
| 2794 | fi |
| 2795 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2796 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2797 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2798 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2799 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2800 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2801 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2802 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2803 | fi |
| 2804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2805 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2806 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2807 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2809 | if test "x$ac_ct_CC" = x; then |
| 2810 | CC="" |
| 2811 | else |
| 2812 | case $cross_compiling:$ac_tool_warned in |
| 2813 | yes:) |
| 2814 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2815 | whose name does not start with the host triplet. If you think this |
| 2816 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2817 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2818 | whose name does not start with the host triplet. If you think this |
| 2819 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2820 | ac_tool_warned=yes ;; |
| 2821 | esac |
| 2822 | CC=$ac_ct_CC |
| 2823 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2824 | fi |
| 2825 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2826 | fi |
| 2827 | |
| 2828 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2829 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2830 | See \`config.log' for more details." >&5 |
| 2831 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2832 | See \`config.log' for more details." >&2;} |
| 2833 | { (exit 1); exit 1; }; } |
| 2834 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2835 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2836 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2837 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2838 | { (ac_try="$ac_compiler --version >&5" |
| 2839 | case "(($ac_try" in |
| 2840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2841 | *) ac_try_echo=$ac_try;; |
| 2842 | esac |
| 2843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2844 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2845 | ac_status=$? |
| 2846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2847 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2848 | { (ac_try="$ac_compiler -v >&5" |
| 2849 | case "(($ac_try" in |
| 2850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2851 | *) ac_try_echo=$ac_try;; |
| 2852 | esac |
| 2853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2854 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2855 | ac_status=$? |
| 2856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2857 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2858 | { (ac_try="$ac_compiler -V >&5" |
| 2859 | case "(($ac_try" in |
| 2860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2861 | *) ac_try_echo=$ac_try;; |
| 2862 | esac |
| 2863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2864 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2865 | ac_status=$? |
| 2866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2867 | (exit $ac_status); } |
| 2868 | |
| 2869 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2870 | /* confdefs.h. */ |
| 2871 | _ACEOF |
| 2872 | cat confdefs.h >>conftest.$ac_ext |
| 2873 | cat >>conftest.$ac_ext <<_ACEOF |
| 2874 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2875 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2876 | int |
| 2877 | main () |
| 2878 | { |
| 2879 | |
| 2880 | ; |
| 2881 | return 0; |
| 2882 | } |
| 2883 | _ACEOF |
| 2884 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2885 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2886 | # Try to create an executable without -o first, disregard a.out. |
| 2887 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2888 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2889 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2890 | 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] | 2891 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2892 | # |
| 2893 | # List of possible output files, starting from the most likely. |
| 2894 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2895 | # only as a last resort. b.out is created by i960 compilers. |
| 2896 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2897 | # |
| 2898 | # The IRIX 6 linker writes into existing files which may not be |
| 2899 | # executable, retaining their permissions. Remove them first so a |
| 2900 | # subsequent execution test works. |
| 2901 | ac_rmfiles= |
| 2902 | for ac_file in $ac_files |
| 2903 | do |
| 2904 | case $ac_file in |
| 2905 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2906 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2907 | esac |
| 2908 | done |
| 2909 | rm -f $ac_rmfiles |
| 2910 | |
| 2911 | if { (ac_try="$ac_link_default" |
| 2912 | case "(($ac_try" in |
| 2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2914 | *) ac_try_echo=$ac_try;; |
| 2915 | esac |
| 2916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2917 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2918 | ac_status=$? |
| 2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2920 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2921 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2922 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2923 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2924 | # so that the user can short-circuit this test for compilers unknown to |
| 2925 | # Autoconf. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2926 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2927 | do |
| 2928 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2929 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2930 | *.$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] | 2931 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2932 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2933 | # We found the default executable, but exeext='' is most |
| 2934 | # certainly right. |
| 2935 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2936 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2937 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2938 | then :; else |
| 2939 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2940 | fi |
| 2941 | # We set ac_cv_exeext here because the later test for it is not |
| 2942 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2943 | # argument, so we may need to know it at that point already. |
| 2944 | # Even if this section looks crufty: it has the advantage of |
| 2945 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2946 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2947 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2948 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | esac |
| 2950 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2951 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2952 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2953 | else |
| 2954 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2956 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2957 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2958 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2959 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2960 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2961 | { (exit 77); exit 77; }; } |
| 2962 | fi |
| 2963 | |
| 2964 | ac_exeext=$ac_cv_exeext |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2965 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2966 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2967 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2968 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2969 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2970 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2971 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2972 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2973 | # If not cross compiling, check that we can run a simple program. |
| 2974 | if test "$cross_compiling" != yes; then |
| 2975 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2976 | { (case "(($ac_try" in |
| 2977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2978 | *) ac_try_echo=$ac_try;; |
| 2979 | esac |
| 2980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2981 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2982 | ac_status=$? |
| 2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2984 | (exit $ac_status); }; }; then |
| 2985 | cross_compiling=no |
| 2986 | else |
| 2987 | if test "$cross_compiling" = maybe; then |
| 2988 | cross_compiling=yes |
| 2989 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2990 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2991 | If you meant to cross compile, use \`--host'. |
| 2992 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2993 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2994 | If you meant to cross compile, use \`--host'. |
| 2995 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2996 | { (exit 1); exit 1; }; } |
| 2997 | fi |
| 2998 | fi |
| 2999 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3000 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3001 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3002 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3003 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3004 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3005 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3006 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3007 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 3008 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 3009 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 3010 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3012 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 3013 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 3014 | if { (ac_try="$ac_link" |
| 3015 | case "(($ac_try" in |
| 3016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3017 | *) ac_try_echo=$ac_try;; |
| 3018 | esac |
| 3019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3020 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3021 | ac_status=$? |
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3023 | (exit $ac_status); }; then |
| 3024 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3025 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3026 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3027 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3028 | for ac_file in conftest.exe conftest conftest.*; do |
| 3029 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3030 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3031 | *.$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] | 3032 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3033 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3034 | * ) break;; |
| 3035 | esac |
| 3036 | done |
| 3037 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3038 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3039 | See \`config.log' for more details." >&5 |
| 3040 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3041 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3042 | { (exit 1); exit 1; }; } |
| 3043 | fi |
| 3044 | |
| 3045 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3046 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3047 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3048 | |
| 3049 | rm -f conftest.$ac_ext |
| 3050 | EXEEXT=$ac_cv_exeext |
| 3051 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3052 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3053 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3054 | if test "${ac_cv_objext+set}" = set; then |
| 3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3056 | else |
| 3057 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3058 | /* confdefs.h. */ |
| 3059 | _ACEOF |
| 3060 | cat confdefs.h >>conftest.$ac_ext |
| 3061 | cat >>conftest.$ac_ext <<_ACEOF |
| 3062 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3063 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3064 | int |
| 3065 | main () |
| 3066 | { |
| 3067 | |
| 3068 | ; |
| 3069 | return 0; |
| 3070 | } |
| 3071 | _ACEOF |
| 3072 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3073 | if { (ac_try="$ac_compile" |
| 3074 | case "(($ac_try" in |
| 3075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3076 | *) ac_try_echo=$ac_try;; |
| 3077 | esac |
| 3078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3079 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3080 | ac_status=$? |
| 3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3082 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3083 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3084 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3085 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3086 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3087 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3088 | break;; |
| 3089 | esac |
| 3090 | done |
| 3091 | else |
| 3092 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3094 | |
| 3095 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3096 | See \`config.log' for more details." >&5 |
| 3097 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3098 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3099 | { (exit 1); exit 1; }; } |
| 3100 | fi |
| 3101 | |
| 3102 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3103 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3104 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3105 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3106 | OBJEXT=$ac_cv_objext |
| 3107 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3108 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3109 | 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] | 3110 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3112 | else |
| 3113 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3114 | /* confdefs.h. */ |
| 3115 | _ACEOF |
| 3116 | cat confdefs.h >>conftest.$ac_ext |
| 3117 | cat >>conftest.$ac_ext <<_ACEOF |
| 3118 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3119 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3120 | int |
| 3121 | main () |
| 3122 | { |
| 3123 | #ifndef __GNUC__ |
| 3124 | choke me |
| 3125 | #endif |
| 3126 | |
| 3127 | ; |
| 3128 | return 0; |
| 3129 | } |
| 3130 | _ACEOF |
| 3131 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3132 | if { (ac_try="$ac_compile" |
| 3133 | case "(($ac_try" in |
| 3134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3135 | *) ac_try_echo=$ac_try;; |
| 3136 | esac |
| 3137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3138 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3139 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3141 | rm -f conftest.er1 |
| 3142 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3144 | (exit $ac_status); } && |
| 3145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3146 | { (case "(($ac_try" in |
| 3147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3148 | *) ac_try_echo=$ac_try;; |
| 3149 | esac |
| 3150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3151 | (eval "$ac_try") 2>&5 |
| 3152 | ac_status=$? |
| 3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3154 | (exit $ac_status); }; } && |
| 3155 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3165 | ac_compiler_gnu=yes |
| 3166 | else |
| 3167 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3170 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3171 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3172 | |
| 3173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3174 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3175 | |
| 3176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3177 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3178 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3179 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3180 | ac_test_CFLAGS=${CFLAGS+set} |
| 3181 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3182 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3183 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3184 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3186 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3187 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3188 | ac_c_werror_flag=yes |
| 3189 | ac_cv_prog_cc_g=no |
| 3190 | CFLAGS="-g" |
| 3191 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3192 | /* confdefs.h. */ |
| 3193 | _ACEOF |
| 3194 | cat confdefs.h >>conftest.$ac_ext |
| 3195 | cat >>conftest.$ac_ext <<_ACEOF |
| 3196 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3197 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3198 | int |
| 3199 | main () |
| 3200 | { |
| 3201 | |
| 3202 | ; |
| 3203 | return 0; |
| 3204 | } |
| 3205 | _ACEOF |
| 3206 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3207 | if { (ac_try="$ac_compile" |
| 3208 | case "(($ac_try" in |
| 3209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3210 | *) ac_try_echo=$ac_try;; |
| 3211 | esac |
| 3212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3213 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3214 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3216 | rm -f conftest.er1 |
| 3217 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3219 | (exit $ac_status); } && |
| 3220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3221 | { (case "(($ac_try" in |
| 3222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3223 | *) ac_try_echo=$ac_try;; |
| 3224 | esac |
| 3225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3226 | (eval "$ac_try") 2>&5 |
| 3227 | ac_status=$? |
| 3228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3229 | (exit $ac_status); }; } && |
| 3230 | { ac_try='test -s conftest.$ac_objext' |
| 3231 | { (case "(($ac_try" in |
| 3232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3233 | *) ac_try_echo=$ac_try;; |
| 3234 | esac |
| 3235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3236 | (eval "$ac_try") 2>&5 |
| 3237 | ac_status=$? |
| 3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3239 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3240 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3241 | else |
| 3242 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3245 | CFLAGS="" |
| 3246 | cat >conftest.$ac_ext <<_ACEOF |
| 3247 | /* confdefs.h. */ |
| 3248 | _ACEOF |
| 3249 | cat confdefs.h >>conftest.$ac_ext |
| 3250 | cat >>conftest.$ac_ext <<_ACEOF |
| 3251 | /* end confdefs.h. */ |
| 3252 | |
| 3253 | int |
| 3254 | main () |
| 3255 | { |
| 3256 | |
| 3257 | ; |
| 3258 | return 0; |
| 3259 | } |
| 3260 | _ACEOF |
| 3261 | rm -f conftest.$ac_objext |
| 3262 | if { (ac_try="$ac_compile" |
| 3263 | case "(($ac_try" in |
| 3264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3265 | *) ac_try_echo=$ac_try;; |
| 3266 | esac |
| 3267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3268 | (eval "$ac_compile") 2>conftest.er1 |
| 3269 | ac_status=$? |
| 3270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3271 | rm -f conftest.er1 |
| 3272 | cat conftest.err >&5 |
| 3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3274 | (exit $ac_status); } && |
| 3275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3276 | { (case "(($ac_try" in |
| 3277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3278 | *) ac_try_echo=$ac_try;; |
| 3279 | esac |
| 3280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3281 | (eval "$ac_try") 2>&5 |
| 3282 | ac_status=$? |
| 3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3284 | (exit $ac_status); }; } && |
| 3285 | { ac_try='test -s conftest.$ac_objext' |
| 3286 | { (case "(($ac_try" in |
| 3287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3288 | *) ac_try_echo=$ac_try;; |
| 3289 | esac |
| 3290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3291 | (eval "$ac_try") 2>&5 |
| 3292 | ac_status=$? |
| 3293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3294 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3295 | : |
| 3296 | else |
| 3297 | echo "$as_me: failed program was:" >&5 |
| 3298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3299 | |
| 3300 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3301 | CFLAGS="-g" |
| 3302 | cat >conftest.$ac_ext <<_ACEOF |
| 3303 | /* confdefs.h. */ |
| 3304 | _ACEOF |
| 3305 | cat confdefs.h >>conftest.$ac_ext |
| 3306 | cat >>conftest.$ac_ext <<_ACEOF |
| 3307 | /* end confdefs.h. */ |
| 3308 | |
| 3309 | int |
| 3310 | main () |
| 3311 | { |
| 3312 | |
| 3313 | ; |
| 3314 | return 0; |
| 3315 | } |
| 3316 | _ACEOF |
| 3317 | rm -f conftest.$ac_objext |
| 3318 | if { (ac_try="$ac_compile" |
| 3319 | case "(($ac_try" in |
| 3320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3321 | *) ac_try_echo=$ac_try;; |
| 3322 | esac |
| 3323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3324 | (eval "$ac_compile") 2>conftest.er1 |
| 3325 | ac_status=$? |
| 3326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3327 | rm -f conftest.er1 |
| 3328 | cat conftest.err >&5 |
| 3329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3330 | (exit $ac_status); } && |
| 3331 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3332 | { (case "(($ac_try" in |
| 3333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3334 | *) ac_try_echo=$ac_try;; |
| 3335 | esac |
| 3336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3337 | (eval "$ac_try") 2>&5 |
| 3338 | ac_status=$? |
| 3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3340 | (exit $ac_status); }; } && |
| 3341 | { ac_try='test -s conftest.$ac_objext' |
| 3342 | { (case "(($ac_try" in |
| 3343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3344 | *) ac_try_echo=$ac_try;; |
| 3345 | esac |
| 3346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3347 | (eval "$ac_try") 2>&5 |
| 3348 | ac_status=$? |
| 3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3350 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3351 | ac_cv_prog_cc_g=yes |
| 3352 | else |
| 3353 | echo "$as_me: failed program was:" >&5 |
| 3354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3355 | |
| 3356 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3357 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3358 | |
| 3359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3360 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3361 | |
| 3362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3363 | fi |
| 3364 | |
| 3365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3366 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3367 | fi |
| 3368 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3369 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3370 | if test "$ac_test_CFLAGS" = set; then |
| 3371 | CFLAGS=$ac_save_CFLAGS |
| 3372 | elif test $ac_cv_prog_cc_g = yes; then |
| 3373 | if test "$GCC" = yes; then |
| 3374 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3375 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3376 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3377 | fi |
| 3378 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3379 | if test "$GCC" = yes; then |
| 3380 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3381 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3382 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3383 | fi |
| 3384 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3385 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3386 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3387 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3389 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3390 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3391 | ac_save_CC=$CC |
| 3392 | cat >conftest.$ac_ext <<_ACEOF |
| 3393 | /* confdefs.h. */ |
| 3394 | _ACEOF |
| 3395 | cat confdefs.h >>conftest.$ac_ext |
| 3396 | cat >>conftest.$ac_ext <<_ACEOF |
| 3397 | /* end confdefs.h. */ |
| 3398 | #include <stdarg.h> |
| 3399 | #include <stdio.h> |
| 3400 | #include <sys/types.h> |
| 3401 | #include <sys/stat.h> |
| 3402 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3403 | struct buf { int x; }; |
| 3404 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3405 | static char *e (p, i) |
| 3406 | char **p; |
| 3407 | int i; |
| 3408 | { |
| 3409 | return p[i]; |
| 3410 | } |
| 3411 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3412 | { |
| 3413 | char *s; |
| 3414 | va_list v; |
| 3415 | va_start (v,p); |
| 3416 | s = g (p, va_arg (v,int)); |
| 3417 | va_end (v); |
| 3418 | return s; |
| 3419 | } |
| 3420 | |
| 3421 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3422 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3423 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3424 | 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] | 3425 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3426 | 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] | 3427 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3428 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3429 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3430 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3431 | inside strings and character constants. */ |
| 3432 | #define FOO(x) 'x' |
| 3433 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3434 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3435 | int test (int i, double x); |
| 3436 | struct s1 {int (*f) (int a);}; |
| 3437 | struct s2 {int (*f) (double a);}; |
| 3438 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3439 | int argc; |
| 3440 | char **argv; |
| 3441 | int |
| 3442 | main () |
| 3443 | { |
| 3444 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3445 | ; |
| 3446 | return 0; |
| 3447 | } |
| 3448 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3449 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3450 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3451 | do |
| 3452 | CC="$ac_save_CC $ac_arg" |
| 3453 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3454 | if { (ac_try="$ac_compile" |
| 3455 | case "(($ac_try" in |
| 3456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3457 | *) ac_try_echo=$ac_try;; |
| 3458 | esac |
| 3459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3460 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3461 | ac_status=$? |
| 3462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3463 | rm -f conftest.er1 |
| 3464 | cat conftest.err >&5 |
| 3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3466 | (exit $ac_status); } && |
| 3467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3468 | { (case "(($ac_try" in |
| 3469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3470 | *) ac_try_echo=$ac_try;; |
| 3471 | esac |
| 3472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3473 | (eval "$ac_try") 2>&5 |
| 3474 | ac_status=$? |
| 3475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3476 | (exit $ac_status); }; } && |
| 3477 | { ac_try='test -s conftest.$ac_objext' |
| 3478 | { (case "(($ac_try" in |
| 3479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3480 | *) ac_try_echo=$ac_try;; |
| 3481 | esac |
| 3482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3483 | (eval "$ac_try") 2>&5 |
| 3484 | ac_status=$? |
| 3485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3486 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3487 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3488 | else |
| 3489 | echo "$as_me: failed program was:" >&5 |
| 3490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3491 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3492 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3493 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3494 | |
| 3495 | rm -f core conftest.err conftest.$ac_objext |
| 3496 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3497 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3498 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3499 | CC=$ac_save_CC |
| 3500 | |
| 3501 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3502 | # AC_CACHE_VAL |
| 3503 | case "x$ac_cv_prog_cc_c89" in |
| 3504 | x) |
| 3505 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3506 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3507 | xno) |
| 3508 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3509 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3510 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3511 | CC="$CC $ac_cv_prog_cc_c89" |
| 3512 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3513 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3514 | esac |
| 3515 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3516 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3517 | ac_ext=c |
| 3518 | ac_cpp='$CPP $CPPFLAGS' |
| 3519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3522 | |
| 3523 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3524 | ac_ext=c |
| 3525 | ac_cpp='$CPP $CPPFLAGS' |
| 3526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3529 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3530 | 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] | 3531 | # On Suns, sometimes $CPP names a directory. |
| 3532 | if test -n "$CPP" && test -d "$CPP"; then |
| 3533 | CPP= |
| 3534 | fi |
| 3535 | if test -z "$CPP"; then |
| 3536 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3538 | else |
| 3539 | # Double quotes because CPP needs to be expanded |
| 3540 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3541 | do |
| 3542 | ac_preproc_ok=false |
| 3543 | for ac_c_preproc_warn_flag in '' yes |
| 3544 | do |
| 3545 | # Use a header file that comes with gcc, so configuring glibc |
| 3546 | # with a fresh cross-compiler works. |
| 3547 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3548 | # <limits.h> exists even on freestanding compilers. |
| 3549 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3550 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3551 | cat >conftest.$ac_ext <<_ACEOF |
| 3552 | /* confdefs.h. */ |
| 3553 | _ACEOF |
| 3554 | cat confdefs.h >>conftest.$ac_ext |
| 3555 | cat >>conftest.$ac_ext <<_ACEOF |
| 3556 | /* end confdefs.h. */ |
| 3557 | #ifdef __STDC__ |
| 3558 | # include <limits.h> |
| 3559 | #else |
| 3560 | # include <assert.h> |
| 3561 | #endif |
| 3562 | Syntax error |
| 3563 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3564 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3565 | case "(($ac_try" in |
| 3566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3567 | *) ac_try_echo=$ac_try;; |
| 3568 | esac |
| 3569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3570 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3571 | ac_status=$? |
| 3572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3573 | rm -f conftest.er1 |
| 3574 | cat conftest.err >&5 |
| 3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3576 | (exit $ac_status); } >/dev/null; then |
| 3577 | if test -s conftest.err; then |
| 3578 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3579 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3580 | else |
| 3581 | ac_cpp_err= |
| 3582 | fi |
| 3583 | else |
| 3584 | ac_cpp_err=yes |
| 3585 | fi |
| 3586 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3587 | : |
| 3588 | else |
| 3589 | echo "$as_me: failed program was:" >&5 |
| 3590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3591 | |
| 3592 | # Broken: fails on valid input. |
| 3593 | continue |
| 3594 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3595 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3596 | rm -f conftest.err conftest.$ac_ext |
| 3597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3598 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3599 | # can be detected and how. |
| 3600 | cat >conftest.$ac_ext <<_ACEOF |
| 3601 | /* confdefs.h. */ |
| 3602 | _ACEOF |
| 3603 | cat confdefs.h >>conftest.$ac_ext |
| 3604 | cat >>conftest.$ac_ext <<_ACEOF |
| 3605 | /* end confdefs.h. */ |
| 3606 | #include <ac_nonexistent.h> |
| 3607 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3608 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3609 | case "(($ac_try" in |
| 3610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3611 | *) ac_try_echo=$ac_try;; |
| 3612 | esac |
| 3613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3614 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3615 | ac_status=$? |
| 3616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3617 | rm -f conftest.er1 |
| 3618 | cat conftest.err >&5 |
| 3619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3620 | (exit $ac_status); } >/dev/null; then |
| 3621 | if test -s conftest.err; then |
| 3622 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3623 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3624 | else |
| 3625 | ac_cpp_err= |
| 3626 | fi |
| 3627 | else |
| 3628 | ac_cpp_err=yes |
| 3629 | fi |
| 3630 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3631 | # Broken: success on invalid input. |
| 3632 | continue |
| 3633 | else |
| 3634 | echo "$as_me: failed program was:" >&5 |
| 3635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3636 | |
| 3637 | # Passes both tests. |
| 3638 | ac_preproc_ok=: |
| 3639 | break |
| 3640 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3641 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3642 | rm -f conftest.err conftest.$ac_ext |
| 3643 | |
| 3644 | done |
| 3645 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3646 | rm -f conftest.err conftest.$ac_ext |
| 3647 | if $ac_preproc_ok; then |
| 3648 | break |
| 3649 | fi |
| 3650 | |
| 3651 | done |
| 3652 | ac_cv_prog_CPP=$CPP |
| 3653 | |
| 3654 | fi |
| 3655 | CPP=$ac_cv_prog_CPP |
| 3656 | else |
| 3657 | ac_cv_prog_CPP=$CPP |
| 3658 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3659 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3660 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3661 | ac_preproc_ok=false |
| 3662 | for ac_c_preproc_warn_flag in '' yes |
| 3663 | do |
| 3664 | # Use a header file that comes with gcc, so configuring glibc |
| 3665 | # with a fresh cross-compiler works. |
| 3666 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3667 | # <limits.h> exists even on freestanding compilers. |
| 3668 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3669 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3670 | cat >conftest.$ac_ext <<_ACEOF |
| 3671 | /* confdefs.h. */ |
| 3672 | _ACEOF |
| 3673 | cat confdefs.h >>conftest.$ac_ext |
| 3674 | cat >>conftest.$ac_ext <<_ACEOF |
| 3675 | /* end confdefs.h. */ |
| 3676 | #ifdef __STDC__ |
| 3677 | # include <limits.h> |
| 3678 | #else |
| 3679 | # include <assert.h> |
| 3680 | #endif |
| 3681 | Syntax error |
| 3682 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3683 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3684 | case "(($ac_try" in |
| 3685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3686 | *) ac_try_echo=$ac_try;; |
| 3687 | esac |
| 3688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3689 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3690 | ac_status=$? |
| 3691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3692 | rm -f conftest.er1 |
| 3693 | cat conftest.err >&5 |
| 3694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3695 | (exit $ac_status); } >/dev/null; then |
| 3696 | if test -s conftest.err; then |
| 3697 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3698 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3699 | else |
| 3700 | ac_cpp_err= |
| 3701 | fi |
| 3702 | else |
| 3703 | ac_cpp_err=yes |
| 3704 | fi |
| 3705 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3706 | : |
| 3707 | else |
| 3708 | echo "$as_me: failed program was:" >&5 |
| 3709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3710 | |
| 3711 | # Broken: fails on valid input. |
| 3712 | continue |
| 3713 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3714 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3715 | rm -f conftest.err conftest.$ac_ext |
| 3716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3717 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3718 | # can be detected and how. |
| 3719 | cat >conftest.$ac_ext <<_ACEOF |
| 3720 | /* confdefs.h. */ |
| 3721 | _ACEOF |
| 3722 | cat confdefs.h >>conftest.$ac_ext |
| 3723 | cat >>conftest.$ac_ext <<_ACEOF |
| 3724 | /* end confdefs.h. */ |
| 3725 | #include <ac_nonexistent.h> |
| 3726 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3727 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3728 | case "(($ac_try" in |
| 3729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3730 | *) ac_try_echo=$ac_try;; |
| 3731 | esac |
| 3732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3733 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3734 | ac_status=$? |
| 3735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3736 | rm -f conftest.er1 |
| 3737 | cat conftest.err >&5 |
| 3738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3739 | (exit $ac_status); } >/dev/null; then |
| 3740 | if test -s conftest.err; then |
| 3741 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3742 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3743 | else |
| 3744 | ac_cpp_err= |
| 3745 | fi |
| 3746 | else |
| 3747 | ac_cpp_err=yes |
| 3748 | fi |
| 3749 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3750 | # Broken: success on invalid input. |
| 3751 | continue |
| 3752 | else |
| 3753 | echo "$as_me: failed program was:" >&5 |
| 3754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3755 | |
| 3756 | # Passes both tests. |
| 3757 | ac_preproc_ok=: |
| 3758 | break |
| 3759 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3760 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3761 | rm -f conftest.err conftest.$ac_ext |
| 3762 | |
| 3763 | done |
| 3764 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3765 | rm -f conftest.err conftest.$ac_ext |
| 3766 | if $ac_preproc_ok; then |
| 3767 | : |
| 3768 | else |
| 3769 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3770 | See \`config.log' for more details." >&5 |
| 3771 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3772 | See \`config.log' for more details." >&2;} |
| 3773 | { (exit 1); exit 1; }; } |
| 3774 | fi |
| 3775 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3776 | ac_ext=c |
| 3777 | ac_cpp='$CPP $CPPFLAGS' |
| 3778 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3779 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3780 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3781 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3782 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3783 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3784 | 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] | 3785 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3787 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3788 | # Extract the first word of "grep ggrep" to use in msg output |
| 3789 | if test -z "$GREP"; then |
| 3790 | set dummy grep ggrep; ac_prog_name=$2 |
| 3791 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3793 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3794 | ac_path_GREP_found=false |
| 3795 | # 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] | 3796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3797 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3798 | do |
| 3799 | IFS=$as_save_IFS |
| 3800 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3801 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3802 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3803 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3804 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3805 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3806 | # Check for GNU $ac_path_GREP |
| 3807 | case `"$ac_path_GREP" --version 2>&1` in |
| 3808 | *GNU*) |
| 3809 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3810 | *) |
| 3811 | ac_count=0 |
| 3812 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3813 | while : |
| 3814 | do |
| 3815 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3816 | mv "conftest.tmp" "conftest.in" |
| 3817 | cp "conftest.in" "conftest.nl" |
| 3818 | echo 'GREP' >> "conftest.nl" |
| 3819 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3820 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3821 | ac_count=`expr $ac_count + 1` |
| 3822 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3823 | # Best one so far, save it but keep looking for a better one |
| 3824 | ac_cv_path_GREP="$ac_path_GREP" |
| 3825 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3826 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3827 | # 10*(2^10) chars as input seems more than enough |
| 3828 | test $ac_count -gt 10 && break |
| 3829 | done |
| 3830 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3831 | esac |
| 3832 | |
| 3833 | |
| 3834 | $ac_path_GREP_found && break 3 |
| 3835 | done |
| 3836 | done |
| 3837 | |
| 3838 | done |
| 3839 | IFS=$as_save_IFS |
| 3840 | |
| 3841 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3842 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3843 | |
| 3844 | GREP="$ac_cv_path_GREP" |
| 3845 | if test -z "$GREP"; then |
| 3846 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3847 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3848 | { (exit 1); exit 1; }; } |
| 3849 | fi |
| 3850 | |
| 3851 | else |
| 3852 | ac_cv_path_GREP=$GREP |
| 3853 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3854 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3856 | fi |
| 3857 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3858 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3859 | GREP="$ac_cv_path_GREP" |
| 3860 | |
| 3861 | |
| 3862 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3863 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3864 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3866 | else |
| 3867 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3868 | then ac_cv_path_EGREP="$GREP -E" |
| 3869 | else |
| 3870 | # Extract the first word of "egrep" to use in msg output |
| 3871 | if test -z "$EGREP"; then |
| 3872 | set dummy egrep; ac_prog_name=$2 |
| 3873 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3875 | else |
| 3876 | ac_path_EGREP_found=false |
| 3877 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3879 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3880 | do |
| 3881 | IFS=$as_save_IFS |
| 3882 | test -z "$as_dir" && as_dir=. |
| 3883 | for ac_prog in egrep; do |
| 3884 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3885 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3886 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3887 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3888 | # Check for GNU $ac_path_EGREP |
| 3889 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3890 | *GNU*) |
| 3891 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3892 | *) |
| 3893 | ac_count=0 |
| 3894 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3895 | while : |
| 3896 | do |
| 3897 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3898 | mv "conftest.tmp" "conftest.in" |
| 3899 | cp "conftest.in" "conftest.nl" |
| 3900 | echo 'EGREP' >> "conftest.nl" |
| 3901 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3902 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3903 | ac_count=`expr $ac_count + 1` |
| 3904 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3905 | # Best one so far, save it but keep looking for a better one |
| 3906 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3907 | ac_path_EGREP_max=$ac_count |
| 3908 | fi |
| 3909 | # 10*(2^10) chars as input seems more than enough |
| 3910 | test $ac_count -gt 10 && break |
| 3911 | done |
| 3912 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3913 | esac |
| 3914 | |
| 3915 | |
| 3916 | $ac_path_EGREP_found && break 3 |
| 3917 | done |
| 3918 | done |
| 3919 | |
| 3920 | done |
| 3921 | IFS=$as_save_IFS |
| 3922 | |
| 3923 | |
| 3924 | fi |
| 3925 | |
| 3926 | EGREP="$ac_cv_path_EGREP" |
| 3927 | if test -z "$EGREP"; then |
| 3928 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3929 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3930 | { (exit 1); exit 1; }; } |
| 3931 | fi |
| 3932 | |
| 3933 | else |
| 3934 | ac_cv_path_EGREP=$EGREP |
| 3935 | fi |
| 3936 | |
| 3937 | |
| 3938 | fi |
| 3939 | fi |
| 3940 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3941 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3942 | EGREP="$ac_cv_path_EGREP" |
| 3943 | |
| 3944 | |
| 3945 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3946 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3947 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3949 | else |
| 3950 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3951 | /* confdefs.h. */ |
| 3952 | _ACEOF |
| 3953 | cat confdefs.h >>conftest.$ac_ext |
| 3954 | cat >>conftest.$ac_ext <<_ACEOF |
| 3955 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3956 | #include <stdlib.h> |
| 3957 | #include <stdarg.h> |
| 3958 | #include <string.h> |
| 3959 | #include <float.h> |
| 3960 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3961 | int |
| 3962 | main () |
| 3963 | { |
| 3964 | |
| 3965 | ; |
| 3966 | return 0; |
| 3967 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3968 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3969 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3970 | if { (ac_try="$ac_compile" |
| 3971 | case "(($ac_try" in |
| 3972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3973 | *) ac_try_echo=$ac_try;; |
| 3974 | esac |
| 3975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3976 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3977 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3979 | rm -f conftest.er1 |
| 3980 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3982 | (exit $ac_status); } && |
| 3983 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3984 | { (case "(($ac_try" in |
| 3985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3986 | *) ac_try_echo=$ac_try;; |
| 3987 | esac |
| 3988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3989 | (eval "$ac_try") 2>&5 |
| 3990 | ac_status=$? |
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3992 | (exit $ac_status); }; } && |
| 3993 | { ac_try='test -s conftest.$ac_objext' |
| 3994 | { (case "(($ac_try" in |
| 3995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3996 | *) ac_try_echo=$ac_try;; |
| 3997 | esac |
| 3998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3999 | (eval "$ac_try") 2>&5 |
| 4000 | ac_status=$? |
| 4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4002 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4003 | ac_cv_header_stdc=yes |
| 4004 | else |
| 4005 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4008 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4009 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4010 | |
| 4011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4012 | |
| 4013 | if test $ac_cv_header_stdc = yes; then |
| 4014 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4015 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4016 | /* confdefs.h. */ |
| 4017 | _ACEOF |
| 4018 | cat confdefs.h >>conftest.$ac_ext |
| 4019 | cat >>conftest.$ac_ext <<_ACEOF |
| 4020 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4021 | #include <string.h> |
| 4022 | |
| 4023 | _ACEOF |
| 4024 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4025 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4026 | : |
| 4027 | else |
| 4028 | ac_cv_header_stdc=no |
| 4029 | fi |
| 4030 | rm -f conftest* |
| 4031 | |
| 4032 | fi |
| 4033 | |
| 4034 | if test $ac_cv_header_stdc = yes; then |
| 4035 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4036 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4037 | /* confdefs.h. */ |
| 4038 | _ACEOF |
| 4039 | cat confdefs.h >>conftest.$ac_ext |
| 4040 | cat >>conftest.$ac_ext <<_ACEOF |
| 4041 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4042 | #include <stdlib.h> |
| 4043 | |
| 4044 | _ACEOF |
| 4045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4046 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4047 | : |
| 4048 | else |
| 4049 | ac_cv_header_stdc=no |
| 4050 | fi |
| 4051 | rm -f conftest* |
| 4052 | |
| 4053 | fi |
| 4054 | |
| 4055 | if test $ac_cv_header_stdc = yes; then |
| 4056 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4057 | if test "$cross_compiling" = yes; then |
| 4058 | : |
| 4059 | else |
| 4060 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4061 | /* confdefs.h. */ |
| 4062 | _ACEOF |
| 4063 | cat confdefs.h >>conftest.$ac_ext |
| 4064 | cat >>conftest.$ac_ext <<_ACEOF |
| 4065 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4066 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4067 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4068 | #if ((' ' & 0x0FF) == 0x020) |
| 4069 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4070 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4071 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4072 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4073 | (('a' <= (c) && (c) <= 'i') \ |
| 4074 | || ('j' <= (c) && (c) <= 'r') \ |
| 4075 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4076 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4077 | #endif |
| 4078 | |
| 4079 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4080 | int |
| 4081 | main () |
| 4082 | { |
| 4083 | int i; |
| 4084 | for (i = 0; i < 256; i++) |
| 4085 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4086 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4087 | return 2; |
| 4088 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4089 | } |
| 4090 | _ACEOF |
| 4091 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4092 | if { (ac_try="$ac_link" |
| 4093 | case "(($ac_try" in |
| 4094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4095 | *) ac_try_echo=$ac_try;; |
| 4096 | esac |
| 4097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4098 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4099 | ac_status=$? |
| 4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4101 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4102 | { (case "(($ac_try" in |
| 4103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4104 | *) ac_try_echo=$ac_try;; |
| 4105 | esac |
| 4106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4107 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4108 | ac_status=$? |
| 4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4110 | (exit $ac_status); }; }; then |
| 4111 | : |
| 4112 | else |
| 4113 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4114 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4116 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4117 | ( exit $ac_status ) |
| 4118 | ac_cv_header_stdc=no |
| 4119 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4120 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4121 | fi |
| 4122 | |
| 4123 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4124 | fi |
| 4125 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4126 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4127 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4128 | if test $ac_cv_header_stdc = yes; then |
| 4129 | |
| 4130 | cat >>confdefs.h <<\_ACEOF |
| 4131 | #define STDC_HEADERS 1 |
| 4132 | _ACEOF |
| 4133 | |
| 4134 | fi |
| 4135 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4136 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4137 | |
| 4138 | |
| 4139 | |
| 4140 | |
| 4141 | |
| 4142 | |
| 4143 | |
| 4144 | |
| 4145 | |
| 4146 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4147 | inttypes.h stdint.h unistd.h |
| 4148 | do |
| 4149 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4150 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4152 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4154 | else |
| 4155 | cat >conftest.$ac_ext <<_ACEOF |
| 4156 | /* confdefs.h. */ |
| 4157 | _ACEOF |
| 4158 | cat confdefs.h >>conftest.$ac_ext |
| 4159 | cat >>conftest.$ac_ext <<_ACEOF |
| 4160 | /* end confdefs.h. */ |
| 4161 | $ac_includes_default |
| 4162 | |
| 4163 | #include <$ac_header> |
| 4164 | _ACEOF |
| 4165 | rm -f conftest.$ac_objext |
| 4166 | if { (ac_try="$ac_compile" |
| 4167 | case "(($ac_try" in |
| 4168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4169 | *) ac_try_echo=$ac_try;; |
| 4170 | esac |
| 4171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4172 | (eval "$ac_compile") 2>conftest.er1 |
| 4173 | ac_status=$? |
| 4174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4175 | rm -f conftest.er1 |
| 4176 | cat conftest.err >&5 |
| 4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4178 | (exit $ac_status); } && |
| 4179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4180 | { (case "(($ac_try" in |
| 4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4182 | *) ac_try_echo=$ac_try;; |
| 4183 | esac |
| 4184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4185 | (eval "$ac_try") 2>&5 |
| 4186 | ac_status=$? |
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4188 | (exit $ac_status); }; } && |
| 4189 | { ac_try='test -s conftest.$ac_objext' |
| 4190 | { (case "(($ac_try" in |
| 4191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4192 | *) ac_try_echo=$ac_try;; |
| 4193 | esac |
| 4194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4195 | (eval "$ac_try") 2>&5 |
| 4196 | ac_status=$? |
| 4197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4198 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4199 | eval "$as_ac_Header=yes" |
| 4200 | else |
| 4201 | echo "$as_me: failed program was:" >&5 |
| 4202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4203 | |
| 4204 | eval "$as_ac_Header=no" |
| 4205 | fi |
| 4206 | |
| 4207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4208 | fi |
| 4209 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4210 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4211 | echo "${ECHO_T}$ac_res" >&6; } |
| 4212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4213 | cat >>confdefs.h <<_ACEOF |
| 4214 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4215 | _ACEOF |
| 4216 | |
| 4217 | fi |
| 4218 | |
| 4219 | done |
| 4220 | |
| 4221 | |
| 4222 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4223 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4224 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4226 | else |
| 4227 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4228 | cat >conftest.$ac_ext <<_ACEOF |
| 4229 | /* confdefs.h. */ |
| 4230 | _ACEOF |
| 4231 | cat confdefs.h >>conftest.$ac_ext |
| 4232 | cat >>conftest.$ac_ext <<_ACEOF |
| 4233 | /* end confdefs.h. */ |
| 4234 | #include <sys/types.h> |
| 4235 | #include <sys/param.h> |
| 4236 | |
| 4237 | int |
| 4238 | main () |
| 4239 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4240 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4241 | bogus endian macros |
| 4242 | #endif |
| 4243 | |
| 4244 | ; |
| 4245 | return 0; |
| 4246 | } |
| 4247 | _ACEOF |
| 4248 | rm -f conftest.$ac_objext |
| 4249 | if { (ac_try="$ac_compile" |
| 4250 | case "(($ac_try" in |
| 4251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4252 | *) ac_try_echo=$ac_try;; |
| 4253 | esac |
| 4254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4255 | (eval "$ac_compile") 2>conftest.er1 |
| 4256 | ac_status=$? |
| 4257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4258 | rm -f conftest.er1 |
| 4259 | cat conftest.err >&5 |
| 4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4261 | (exit $ac_status); } && |
| 4262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4263 | { (case "(($ac_try" in |
| 4264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4265 | *) ac_try_echo=$ac_try;; |
| 4266 | esac |
| 4267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4268 | (eval "$ac_try") 2>&5 |
| 4269 | ac_status=$? |
| 4270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4271 | (exit $ac_status); }; } && |
| 4272 | { ac_try='test -s conftest.$ac_objext' |
| 4273 | { (case "(($ac_try" in |
| 4274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4275 | *) ac_try_echo=$ac_try;; |
| 4276 | esac |
| 4277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4278 | (eval "$ac_try") 2>&5 |
| 4279 | ac_status=$? |
| 4280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4281 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4282 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4283 | cat >conftest.$ac_ext <<_ACEOF |
| 4284 | /* confdefs.h. */ |
| 4285 | _ACEOF |
| 4286 | cat confdefs.h >>conftest.$ac_ext |
| 4287 | cat >>conftest.$ac_ext <<_ACEOF |
| 4288 | /* end confdefs.h. */ |
| 4289 | #include <sys/types.h> |
| 4290 | #include <sys/param.h> |
| 4291 | |
| 4292 | int |
| 4293 | main () |
| 4294 | { |
| 4295 | #if BYTE_ORDER != BIG_ENDIAN |
| 4296 | not big endian |
| 4297 | #endif |
| 4298 | |
| 4299 | ; |
| 4300 | return 0; |
| 4301 | } |
| 4302 | _ACEOF |
| 4303 | rm -f conftest.$ac_objext |
| 4304 | if { (ac_try="$ac_compile" |
| 4305 | case "(($ac_try" in |
| 4306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4307 | *) ac_try_echo=$ac_try;; |
| 4308 | esac |
| 4309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4310 | (eval "$ac_compile") 2>conftest.er1 |
| 4311 | ac_status=$? |
| 4312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4313 | rm -f conftest.er1 |
| 4314 | cat conftest.err >&5 |
| 4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4316 | (exit $ac_status); } && |
| 4317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4318 | { (case "(($ac_try" in |
| 4319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4320 | *) ac_try_echo=$ac_try;; |
| 4321 | esac |
| 4322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4323 | (eval "$ac_try") 2>&5 |
| 4324 | ac_status=$? |
| 4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4326 | (exit $ac_status); }; } && |
| 4327 | { ac_try='test -s conftest.$ac_objext' |
| 4328 | { (case "(($ac_try" in |
| 4329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4330 | *) ac_try_echo=$ac_try;; |
| 4331 | esac |
| 4332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4333 | (eval "$ac_try") 2>&5 |
| 4334 | ac_status=$? |
| 4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4336 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4337 | ac_cv_c_bigendian=yes |
| 4338 | else |
| 4339 | echo "$as_me: failed program was:" >&5 |
| 4340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4341 | |
| 4342 | ac_cv_c_bigendian=no |
| 4343 | fi |
| 4344 | |
| 4345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4346 | else |
| 4347 | echo "$as_me: failed program was:" >&5 |
| 4348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4349 | |
| 4350 | # It does not; compile a test program. |
| 4351 | if test "$cross_compiling" = yes; then |
| 4352 | # try to guess the endianness by grepping values into an object file |
| 4353 | ac_cv_c_bigendian=unknown |
| 4354 | cat >conftest.$ac_ext <<_ACEOF |
| 4355 | /* confdefs.h. */ |
| 4356 | _ACEOF |
| 4357 | cat confdefs.h >>conftest.$ac_ext |
| 4358 | cat >>conftest.$ac_ext <<_ACEOF |
| 4359 | /* end confdefs.h. */ |
| 4360 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4361 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4362 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4363 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4364 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4365 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4366 | int |
| 4367 | main () |
| 4368 | { |
| 4369 | _ascii (); _ebcdic (); |
| 4370 | ; |
| 4371 | return 0; |
| 4372 | } |
| 4373 | _ACEOF |
| 4374 | rm -f conftest.$ac_objext |
| 4375 | if { (ac_try="$ac_compile" |
| 4376 | case "(($ac_try" in |
| 4377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4378 | *) ac_try_echo=$ac_try;; |
| 4379 | esac |
| 4380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4381 | (eval "$ac_compile") 2>conftest.er1 |
| 4382 | ac_status=$? |
| 4383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4384 | rm -f conftest.er1 |
| 4385 | cat conftest.err >&5 |
| 4386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4387 | (exit $ac_status); } && |
| 4388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4389 | { (case "(($ac_try" in |
| 4390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4391 | *) ac_try_echo=$ac_try;; |
| 4392 | esac |
| 4393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4394 | (eval "$ac_try") 2>&5 |
| 4395 | ac_status=$? |
| 4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4397 | (exit $ac_status); }; } && |
| 4398 | { ac_try='test -s conftest.$ac_objext' |
| 4399 | { (case "(($ac_try" in |
| 4400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4401 | *) ac_try_echo=$ac_try;; |
| 4402 | esac |
| 4403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4404 | (eval "$ac_try") 2>&5 |
| 4405 | ac_status=$? |
| 4406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4407 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4408 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4409 | ac_cv_c_bigendian=yes |
| 4410 | fi |
| 4411 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4412 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4413 | ac_cv_c_bigendian=no |
| 4414 | else |
| 4415 | # finding both strings is unlikely to happen, but who knows? |
| 4416 | ac_cv_c_bigendian=unknown |
| 4417 | fi |
| 4418 | fi |
| 4419 | else |
| 4420 | echo "$as_me: failed program was:" >&5 |
| 4421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4422 | |
| 4423 | |
| 4424 | fi |
| 4425 | |
| 4426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4427 | else |
| 4428 | cat >conftest.$ac_ext <<_ACEOF |
| 4429 | /* confdefs.h. */ |
| 4430 | _ACEOF |
| 4431 | cat confdefs.h >>conftest.$ac_ext |
| 4432 | cat >>conftest.$ac_ext <<_ACEOF |
| 4433 | /* end confdefs.h. */ |
| 4434 | $ac_includes_default |
| 4435 | int |
| 4436 | main () |
| 4437 | { |
| 4438 | |
| 4439 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4440 | union |
| 4441 | { |
| 4442 | long int l; |
| 4443 | char c[sizeof (long int)]; |
| 4444 | } u; |
| 4445 | u.l = 1; |
| 4446 | return u.c[sizeof (long int) - 1] == 1; |
| 4447 | |
| 4448 | ; |
| 4449 | return 0; |
| 4450 | } |
| 4451 | _ACEOF |
| 4452 | rm -f conftest$ac_exeext |
| 4453 | if { (ac_try="$ac_link" |
| 4454 | case "(($ac_try" in |
| 4455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4456 | *) ac_try_echo=$ac_try;; |
| 4457 | esac |
| 4458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4459 | (eval "$ac_link") 2>&5 |
| 4460 | ac_status=$? |
| 4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4462 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4463 | { (case "(($ac_try" in |
| 4464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4465 | *) ac_try_echo=$ac_try;; |
| 4466 | esac |
| 4467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4468 | (eval "$ac_try") 2>&5 |
| 4469 | ac_status=$? |
| 4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4471 | (exit $ac_status); }; }; then |
| 4472 | ac_cv_c_bigendian=no |
| 4473 | else |
| 4474 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4475 | echo "$as_me: failed program was:" >&5 |
| 4476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4477 | |
| 4478 | ( exit $ac_status ) |
| 4479 | ac_cv_c_bigendian=yes |
| 4480 | fi |
| 4481 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4482 | fi |
| 4483 | |
| 4484 | |
| 4485 | fi |
| 4486 | |
| 4487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4488 | fi |
| 4489 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4490 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4491 | case $ac_cv_c_bigendian in |
| 4492 | yes) |
| 4493 | ENDIAN=big |
| 4494 | ;; |
| 4495 | no) |
| 4496 | ENDIAN=little |
| 4497 | ;; |
| 4498 | *) |
| 4499 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4500 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4501 | echo "$as_me: error: unknown endianness |
| 4502 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4503 | { (exit 1); exit 1; }; } ;; |
| 4504 | esac |
| 4505 | |
| 4506 | |
| 4507 | if test "$cross_compiling" = yes; then |
| 4508 | LLVM_CROSS_COMPILING=1 |
| 4509 | |
| 4510 | |
| 4511 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4512 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4513 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4515 | else |
| 4516 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4517 | ac_cv_build_exeext=.exe |
| 4518 | else |
| 4519 | ac_build_prefix=${build_alias}- |
| 4520 | |
| 4521 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4522 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4523 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4525 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4527 | else |
| 4528 | if test -n "$BUILD_CC"; then |
| 4529 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4530 | else |
| 4531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4532 | for as_dir in $PATH |
| 4533 | do |
| 4534 | IFS=$as_save_IFS |
| 4535 | test -z "$as_dir" && as_dir=. |
| 4536 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4537 | 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] | 4538 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4539 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4540 | break 2 |
| 4541 | fi |
| 4542 | done |
| 4543 | done |
| 4544 | IFS=$as_save_IFS |
| 4545 | |
| 4546 | fi |
| 4547 | fi |
| 4548 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4549 | if test -n "$BUILD_CC"; then |
| 4550 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4551 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4552 | else |
| 4553 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4554 | echo "${ECHO_T}no" >&6; } |
| 4555 | fi |
| 4556 | |
| 4557 | |
| 4558 | if test -z "$BUILD_CC"; then |
| 4559 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4560 | set dummy gcc; ac_word=$2 |
| 4561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4563 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4565 | else |
| 4566 | if test -n "$BUILD_CC"; then |
| 4567 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4568 | else |
| 4569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4570 | for as_dir in $PATH |
| 4571 | do |
| 4572 | IFS=$as_save_IFS |
| 4573 | test -z "$as_dir" && as_dir=. |
| 4574 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4575 | 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] | 4576 | ac_cv_prog_BUILD_CC="gcc" |
| 4577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4578 | break 2 |
| 4579 | fi |
| 4580 | done |
| 4581 | done |
| 4582 | IFS=$as_save_IFS |
| 4583 | |
| 4584 | fi |
| 4585 | fi |
| 4586 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4587 | if test -n "$BUILD_CC"; then |
| 4588 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4589 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4590 | else |
| 4591 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4592 | echo "${ECHO_T}no" >&6; } |
| 4593 | fi |
| 4594 | |
| 4595 | |
| 4596 | if test -z "$BUILD_CC"; then |
| 4597 | # Extract the first word of "cc", so it can be a program name with args. |
| 4598 | set dummy cc; ac_word=$2 |
| 4599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4601 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4603 | else |
| 4604 | if test -n "$BUILD_CC"; then |
| 4605 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4606 | else |
| 4607 | ac_prog_rejected=no |
| 4608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4609 | for as_dir in $PATH |
| 4610 | do |
| 4611 | IFS=$as_save_IFS |
| 4612 | test -z "$as_dir" && as_dir=. |
| 4613 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4614 | 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] | 4615 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4616 | ac_prog_rejected=yes |
| 4617 | continue |
| 4618 | fi |
| 4619 | ac_cv_prog_BUILD_CC="cc" |
| 4620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4621 | break 2 |
| 4622 | fi |
| 4623 | done |
| 4624 | done |
| 4625 | IFS=$as_save_IFS |
| 4626 | |
| 4627 | if test $ac_prog_rejected = yes; then |
| 4628 | # We found a bogon in the path, so make sure we never use it. |
| 4629 | set dummy $ac_cv_prog_BUILD_CC |
| 4630 | shift |
| 4631 | if test $# != 0; then |
| 4632 | # We chose a different compiler from the bogus one. |
| 4633 | # However, it has the same basename, so the bogon will be chosen |
| 4634 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4635 | shift |
| 4636 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4637 | fi |
| 4638 | fi |
| 4639 | fi |
| 4640 | fi |
| 4641 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4642 | if test -n "$BUILD_CC"; then |
| 4643 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4644 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4645 | else |
| 4646 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4647 | echo "${ECHO_T}no" >&6; } |
| 4648 | fi |
| 4649 | |
| 4650 | |
| 4651 | fi |
| 4652 | fi |
| 4653 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4654 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4655 | { (exit 1); exit 1; }; } |
| 4656 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4657 | rm -f conftest* |
| 4658 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4659 | ac_cv_build_exeext= |
| 4660 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4661 | (eval $ac_build_link) 2>&5 |
| 4662 | ac_status=$? |
| 4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4664 | (exit $ac_status); }; then |
| 4665 | for file in conftest.*; do |
| 4666 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4667 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4668 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4669 | esac |
| 4670 | done |
| 4671 | else |
| 4672 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4673 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4674 | { (exit 1); exit 1; }; } |
| 4675 | fi |
| 4676 | rm -f conftest* |
| 4677 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4678 | fi |
| 4679 | fi |
| 4680 | |
| 4681 | BUILD_EXEEXT="" |
| 4682 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4683 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4684 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4685 | ac_build_exeext=$BUILD_EXEEXT |
| 4686 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4687 | ac_build_prefix=${build_alias}- |
| 4688 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4689 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
| 4690 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4692 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4694 | else |
| 4695 | if test -n "$BUILD_CXX"; then |
| 4696 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4697 | else |
| 4698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4699 | for as_dir in $PATH |
| 4700 | do |
| 4701 | IFS=$as_save_IFS |
| 4702 | test -z "$as_dir" && as_dir=. |
| 4703 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4705 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
| 4706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4707 | break 2 |
| 4708 | fi |
| 4709 | done |
| 4710 | done |
| 4711 | IFS=$as_save_IFS |
| 4712 | |
| 4713 | fi |
| 4714 | fi |
| 4715 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4716 | if test -n "$BUILD_CXX"; then |
| 4717 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4718 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4719 | else |
| 4720 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4721 | echo "${ECHO_T}no" >&6; } |
| 4722 | fi |
| 4723 | |
| 4724 | |
| 4725 | if test -z "$BUILD_CXX"; then |
| 4726 | # Extract the first word of "g++", so it can be a program name with args. |
| 4727 | set dummy g++; ac_word=$2 |
| 4728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4730 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4732 | else |
| 4733 | if test -n "$BUILD_CXX"; then |
| 4734 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4735 | else |
| 4736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4737 | for as_dir in $PATH |
| 4738 | do |
| 4739 | IFS=$as_save_IFS |
| 4740 | test -z "$as_dir" && as_dir=. |
| 4741 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4743 | ac_cv_prog_BUILD_CXX="g++" |
| 4744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4745 | break 2 |
| 4746 | fi |
| 4747 | done |
| 4748 | done |
| 4749 | IFS=$as_save_IFS |
| 4750 | |
| 4751 | fi |
| 4752 | fi |
| 4753 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4754 | if test -n "$BUILD_CXX"; then |
| 4755 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4756 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4757 | else |
| 4758 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4759 | echo "${ECHO_T}no" >&6; } |
| 4760 | fi |
| 4761 | |
| 4762 | |
| 4763 | if test -z "$BUILD_CXX"; then |
| 4764 | # Extract the first word of "c++", so it can be a program name with args. |
| 4765 | set dummy c++; ac_word=$2 |
| 4766 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4768 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4770 | else |
| 4771 | if test -n "$BUILD_CXX"; then |
| 4772 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4773 | else |
| 4774 | ac_prog_rejected=no |
| 4775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4776 | for as_dir in $PATH |
| 4777 | do |
| 4778 | IFS=$as_save_IFS |
| 4779 | test -z "$as_dir" && as_dir=. |
| 4780 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4782 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4783 | ac_prog_rejected=yes |
| 4784 | continue |
| 4785 | fi |
| 4786 | ac_cv_prog_BUILD_CXX="c++" |
| 4787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4788 | break 2 |
| 4789 | fi |
| 4790 | done |
| 4791 | done |
| 4792 | IFS=$as_save_IFS |
| 4793 | |
| 4794 | if test $ac_prog_rejected = yes; then |
| 4795 | # We found a bogon in the path, so make sure we never use it. |
| 4796 | set dummy $ac_cv_prog_BUILD_CXX |
| 4797 | shift |
| 4798 | if test $# != 0; then |
| 4799 | # We chose a different compiler from the bogus one. |
| 4800 | # However, it has the same basename, so the bogon will be chosen |
| 4801 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4802 | shift |
| 4803 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4804 | fi |
| 4805 | fi |
| 4806 | fi |
| 4807 | fi |
| 4808 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4809 | if test -n "$BUILD_CXX"; then |
| 4810 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4811 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4812 | else |
| 4813 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4814 | echo "${ECHO_T}no" >&6; } |
| 4815 | fi |
| 4816 | |
| 4817 | |
| 4818 | fi |
| 4819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4820 | else |
| 4821 | LLVM_CROSS_COMPILING=0 |
| 4822 | |
| 4823 | fi |
| 4824 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4825 | if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4826 | cvsbuild="yes" |
| 4827 | optimize="no" |
| 4828 | CVSBUILD=CVSBUILD=1 |
| 4829 | |
| 4830 | else |
| 4831 | cvsbuild="no" |
| 4832 | optimize="yes" |
| 4833 | fi |
| 4834 | |
| 4835 | |
| 4836 | # Check whether --enable-optimized was given. |
| 4837 | if test "${enable_optimized+set}" = set; then |
| 4838 | enableval=$enable_optimized; |
| 4839 | else |
| 4840 | enableval=$optimize |
| 4841 | fi |
| 4842 | |
| 4843 | if test ${enableval} = "no" ; then |
| 4844 | ENABLE_OPTIMIZED= |
| 4845 | |
| 4846 | else |
| 4847 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4848 | |
| 4849 | fi |
| 4850 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4851 | # Check whether --enable-profiling was given. |
| 4852 | if test "${enable_profiling+set}" = set; then |
| 4853 | enableval=$enable_profiling; |
| 4854 | else |
| 4855 | enableval="no" |
| 4856 | fi |
| 4857 | |
| 4858 | if test ${enableval} = "no" ; then |
| 4859 | ENABLE_PROFILING= |
| 4860 | |
| 4861 | else |
| 4862 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4863 | |
| 4864 | fi |
| 4865 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4866 | # Check whether --enable-assertions was given. |
| 4867 | if test "${enable_assertions+set}" = set; then |
| 4868 | enableval=$enable_assertions; |
| 4869 | else |
| 4870 | enableval="yes" |
| 4871 | fi |
| 4872 | |
| 4873 | if test ${enableval} = "yes" ; then |
| 4874 | DISABLE_ASSERTIONS= |
| 4875 | |
| 4876 | else |
| 4877 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4878 | |
| 4879 | fi |
| 4880 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4881 | # Check whether --enable-expensive-checks was given. |
| 4882 | if test "${enable_expensive_checks+set}" = set; then |
| 4883 | enableval=$enable_expensive_checks; |
| 4884 | else |
| 4885 | enableval="no" |
| 4886 | fi |
| 4887 | |
| 4888 | if test ${enableval} = "yes" ; then |
| 4889 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4890 | |
| 4891 | EXPENSIVE_CHECKS=yes |
| 4892 | |
| 4893 | else |
| 4894 | ENABLE_EXPENSIVE_CHECKS= |
| 4895 | |
| 4896 | EXPENSIVE_CHECKS=no |
| 4897 | |
| 4898 | fi |
| 4899 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4900 | # Check whether --enable-debug-runtime was given. |
| 4901 | if test "${enable_debug_runtime+set}" = set; then |
| 4902 | enableval=$enable_debug_runtime; |
| 4903 | else |
| 4904 | enableval=no |
| 4905 | fi |
| 4906 | |
| 4907 | if test ${enableval} = "no" ; then |
| 4908 | DEBUG_RUNTIME= |
| 4909 | |
| 4910 | else |
| 4911 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4912 | |
| 4913 | fi |
| 4914 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4915 | # Check whether --enable-debug-symbols was given. |
| 4916 | if test "${enable_debug_symbols+set}" = set; then |
| 4917 | enableval=$enable_debug_symbols; |
| 4918 | else |
| 4919 | enableval=no |
| 4920 | fi |
| 4921 | |
| 4922 | if test ${enableval} = "no" ; then |
| 4923 | DEBUG_SYMBOLS= |
| 4924 | |
| 4925 | else |
| 4926 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4927 | |
| 4928 | fi |
| 4929 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4930 | # Check whether --enable-jit was given. |
| 4931 | if test "${enable_jit+set}" = set; then |
| 4932 | enableval=$enable_jit; |
| 4933 | else |
| 4934 | enableval=default |
| 4935 | fi |
| 4936 | |
| 4937 | if test ${enableval} = "no" |
| 4938 | then |
| 4939 | JIT= |
| 4940 | |
| 4941 | else |
| 4942 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4943 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4944 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4945 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4946 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4947 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4948 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4949 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4950 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4951 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4952 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4953 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4954 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4955 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4956 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4957 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4958 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4959 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4960 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4961 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4962 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4963 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4964 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4965 | Blackfin) TARGET_HAS_JIT=0 |
| 4966 | ;; |
| 4967 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4968 | ;; |
| 4969 | esac |
| 4970 | fi |
| 4971 | |
| 4972 | # Check whether --enable-doxygen was given. |
| 4973 | if test "${enable_doxygen+set}" = set; then |
| 4974 | enableval=$enable_doxygen; |
| 4975 | else |
| 4976 | enableval=default |
| 4977 | fi |
| 4978 | |
| 4979 | case "$enableval" in |
| 4980 | yes) ENABLE_DOXYGEN=1 |
| 4981 | ;; |
| 4982 | no) ENABLE_DOXYGEN=0 |
| 4983 | ;; |
| 4984 | default) ENABLE_DOXYGEN=0 |
| 4985 | ;; |
| 4986 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4987 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4988 | { (exit 1); exit 1; }; } ;; |
| 4989 | esac |
| 4990 | |
| 4991 | # Check whether --enable-threads was given. |
| 4992 | if test "${enable_threads+set}" = set; then |
| 4993 | enableval=$enable_threads; |
| 4994 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4995 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4996 | fi |
| 4997 | |
| 4998 | case "$enableval" in |
| 4999 | yes) ENABLE_THREADS=1 |
| 5000 | ;; |
| 5001 | no) ENABLE_THREADS=0 |
| 5002 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5003 | default) ENABLE_THREADS=1 |
| 5004 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5005 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 5006 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 5007 | { (exit 1); exit 1; }; } ;; |
| 5008 | esac |
| 5009 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5010 | cat >>confdefs.h <<_ACEOF |
| 5011 | #define ENABLE_THREADS $ENABLE_THREADS |
| 5012 | _ACEOF |
| 5013 | |
| 5014 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5015 | # Check whether --enable-pic was given. |
| 5016 | if test "${enable_pic+set}" = set; then |
| 5017 | enableval=$enable_pic; |
| 5018 | else |
| 5019 | enableval=default |
| 5020 | fi |
| 5021 | |
| 5022 | case "$enableval" in |
| 5023 | yes) ENABLE_PIC=1 |
| 5024 | ;; |
| 5025 | no) ENABLE_PIC=0 |
| 5026 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5027 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5028 | ;; |
| 5029 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 5030 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 5031 | { (exit 1); exit 1; }; } ;; |
| 5032 | esac |
| 5033 | |
| 5034 | cat >>confdefs.h <<_ACEOF |
| 5035 | #define ENABLE_PIC $ENABLE_PIC |
| 5036 | _ACEOF |
| 5037 | |
| 5038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5039 | TARGETS_TO_BUILD="" |
| 5040 | # Check whether --enable-targets was given. |
| 5041 | if test "${enable_targets+set}" = set; then |
| 5042 | enableval=$enable_targets; |
| 5043 | else |
| 5044 | enableval=all |
| 5045 | fi |
| 5046 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5047 | if test "$enableval" = host-only ; then |
| 5048 | enableval=host |
| 5049 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5050 | case "$enableval" in |
Jakob Stoklund Olesen | 73b7bb7 | 2009-08-02 17:32:37 +0000 | [diff] [blame] | 5051 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5052 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5053 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5054 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5055 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5056 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5057 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5058 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5059 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5060 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5061 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 5062 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 5063 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5064 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 5065 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 5066 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 5067 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 5068 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 5069 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5070 | host) case "$llvm_cv_target_arch" in |
| 5071 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5072 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5073 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5074 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5075 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5076 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5077 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5078 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 5079 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 5080 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5081 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 5082 | SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 5083 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 5084 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5085 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5086 | { (exit 1); exit 1; }; } ;; |
| 5087 | esac ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5088 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5089 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5090 | { (exit 1); exit 1; }; } ;; |
| 5091 | esac |
| 5092 | done |
| 5093 | ;; |
| 5094 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5095 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5096 | |
| 5097 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5098 | # Determine whether we are building LLVM support for the native architecture. |
| 5099 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5100 | for a_target in $TARGETS_TO_BUILD; do |
| 5101 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5102 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5103 | |
| 5104 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5105 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5106 | _ACEOF |
| 5107 | |
| 5108 | fi |
| 5109 | done |
| 5110 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5111 | # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5112 | # Targets.def, AsmPrinters.def, and AsmParsers.def. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5113 | LLVM_ENUM_TARGETS="" |
| 5114 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5115 | LLVM_ENUM_ASM_PARSERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5116 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5117 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5118 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5119 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5120 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5121 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5122 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5123 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5124 | done |
| 5125 | |
| 5126 | |
| 5127 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5128 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5129 | # Check whether --enable-cbe-printf-a was given. |
| 5130 | if test "${enable_cbe_printf_a+set}" = set; then |
| 5131 | enableval=$enable_cbe_printf_a; |
| 5132 | else |
| 5133 | enableval=default |
| 5134 | fi |
| 5135 | |
| 5136 | case "$enableval" in |
| 5137 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5138 | ;; |
| 5139 | no) ENABLE_CBE_PRINTF_A=0 |
| 5140 | ;; |
| 5141 | default) ENABLE_CBE_PRINTF_A=1 |
| 5142 | ;; |
| 5143 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5144 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5145 | { (exit 1); exit 1; }; } ;; |
| 5146 | esac |
| 5147 | |
| 5148 | cat >>confdefs.h <<_ACEOF |
| 5149 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5150 | _ACEOF |
| 5151 | |
| 5152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5153 | |
| 5154 | # Check whether --with-llvmgccdir was given. |
| 5155 | if test "${with_llvmgccdir+set}" = set; then |
| 5156 | withval=$with_llvmgccdir; |
| 5157 | else |
| 5158 | withval=default |
| 5159 | fi |
| 5160 | |
| 5161 | case "$withval" in |
| 5162 | default) WITH_LLVMGCCDIR=default ;; |
| 5163 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 5164 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5165 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5166 | { (exit 1); exit 1; }; } ;; |
| 5167 | esac |
| 5168 | |
| 5169 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5170 | # Check whether --with-llvmgcc was given. |
| 5171 | if test "${with_llvmgcc+set}" = set; then |
| 5172 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5173 | WITH_LLVMGCCDIR="" |
| 5174 | fi |
| 5175 | |
| 5176 | |
| 5177 | |
| 5178 | # Check whether --with-llvmgxx was given. |
| 5179 | if test "${with_llvmgxx+set}" = set; then |
| 5180 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5181 | WITH_LLVMGCCDIR="" |
| 5182 | fi |
| 5183 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5184 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5185 | if test -n "$LLVMGCC"; then |
| 5186 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5187 | fi |
| 5188 | |
| 5189 | if test -n "$LLVMGXX"; then |
| 5190 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5191 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5192 | |
| 5193 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 5194 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5195 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5196 | { (exit 1); exit 1; }; }; |
| 5197 | fi |
| 5198 | |
| 5199 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 5200 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5201 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5202 | { (exit 1); exit 1; }; }; |
| 5203 | fi |
| 5204 | |
| 5205 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5206 | # Check whether --with-optimize-option was given. |
| 5207 | if test "${with_optimize_option+set}" = set; then |
| 5208 | withval=$with_optimize_option; |
| 5209 | else |
| 5210 | withval=default |
| 5211 | fi |
| 5212 | |
| 5213 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5214 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
| 5215 | case "$withval" in |
| 5216 | default) |
| 5217 | case "$llvm_cv_os_type" in |
| 5218 | MingW) optimize_option=-O3 ;; |
| 5219 | *) optimize_option=-O2 ;; |
| 5220 | esac ;; |
| 5221 | *) optimize_option="$withval" ;; |
| 5222 | esac |
| 5223 | OPTIMIZE_OPTION=$optimize_option |
| 5224 | |
| 5225 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5226 | echo "${ECHO_T}$optimize_option" >&6; } |
| 5227 | |
| 5228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5229 | # Check whether --with-extra-options was given. |
| 5230 | if test "${with_extra_options+set}" = set; then |
| 5231 | withval=$with_extra_options; |
| 5232 | else |
| 5233 | withval=default |
| 5234 | fi |
| 5235 | |
| 5236 | case "$withval" in |
| 5237 | default) EXTRA_OPTIONS= ;; |
| 5238 | *) EXTRA_OPTIONS=$withval ;; |
| 5239 | esac |
| 5240 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5241 | |
| 5242 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5243 | # Check whether --enable-bindings was given. |
| 5244 | if test "${enable_bindings+set}" = set; then |
| 5245 | enableval=$enable_bindings; |
| 5246 | else |
| 5247 | enableval=default |
| 5248 | fi |
| 5249 | |
| 5250 | BINDINGS_TO_BUILD="" |
| 5251 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5252 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5253 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5254 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5255 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5256 | case "$a_binding" in |
| 5257 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 5258 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5259 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5260 | { (exit 1); exit 1; }; } ;; |
| 5261 | esac |
| 5262 | done |
| 5263 | ;; |
| 5264 | esac |
| 5265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5266 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5267 | # Check whether --with-ocaml-libdir was given. |
| 5268 | if test "${with_ocaml_libdir+set}" = set; then |
| 5269 | withval=$with_ocaml_libdir; |
| 5270 | else |
| 5271 | withval=auto |
| 5272 | fi |
| 5273 | |
| 5274 | case "$withval" in |
| 5275 | auto) with_ocaml_libdir="$withval" ;; |
| 5276 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 5277 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5278 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5279 | { (exit 1); exit 1; }; } ;; |
| 5280 | esac |
| 5281 | |
| 5282 | |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5283 | # Check whether --with-c-include-dir was given. |
| 5284 | if test "${with_c_include_dir+set}" = set; then |
| 5285 | withval=$with_c_include_dir; |
| 5286 | else |
| 5287 | withval="" |
| 5288 | fi |
| 5289 | |
| 5290 | |
| 5291 | cat >>confdefs.h <<_ACEOF |
| 5292 | #define C_INCLUDE_DIRS "$withval" |
| 5293 | _ACEOF |
| 5294 | |
| 5295 | |
| 5296 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 5297 | # Check whether --with-cxx-include-root was given. |
| 5298 | if test "${with_cxx_include_root+set}" = set; then |
| 5299 | withval=$with_cxx_include_root; |
| 5300 | else |
| 5301 | withval="" |
| 5302 | fi |
| 5303 | |
| 5304 | |
| 5305 | cat >>confdefs.h <<_ACEOF |
| 5306 | #define CXX_INCLUDE_ROOT "$withval" |
| 5307 | _ACEOF |
| 5308 | |
| 5309 | |
| 5310 | |
| 5311 | # Check whether --with-cxx-include-arch was given. |
| 5312 | if test "${with_cxx_include_arch+set}" = set; then |
| 5313 | withval=$with_cxx_include_arch; |
| 5314 | else |
| 5315 | withval="" |
| 5316 | fi |
| 5317 | |
| 5318 | |
| 5319 | cat >>confdefs.h <<_ACEOF |
| 5320 | #define CXX_INCLUDE_ARCH "$withval" |
| 5321 | _ACEOF |
| 5322 | |
| 5323 | |
| 5324 | |
| 5325 | # Check whether --with-cxx-include-32bit-dir was given. |
| 5326 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
| 5327 | withval=$with_cxx_include_32bit_dir; |
| 5328 | else |
| 5329 | withval="" |
| 5330 | fi |
| 5331 | |
| 5332 | |
| 5333 | cat >>confdefs.h <<_ACEOF |
| 5334 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5335 | _ACEOF |
| 5336 | |
| 5337 | |
| 5338 | |
| 5339 | # Check whether --with-cxx-include-64bit-dir was given. |
| 5340 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
| 5341 | withval=$with_cxx_include_64bit_dir; |
| 5342 | else |
| 5343 | withval="" |
| 5344 | fi |
| 5345 | |
| 5346 | |
| 5347 | cat >>confdefs.h <<_ACEOF |
| 5348 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5349 | _ACEOF |
| 5350 | |
| 5351 | |
| 5352 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5353 | # Check whether --with-binutils-include was given. |
| 5354 | if test "${with_binutils_include+set}" = set; then |
| 5355 | withval=$with_binutils_include; |
| 5356 | else |
| 5357 | withval=default |
| 5358 | fi |
| 5359 | |
| 5360 | case "$withval" in |
| 5361 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5362 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
| 5363 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5364 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5365 | { (exit 1); exit 1; }; } ;; |
| 5366 | esac |
| 5367 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5368 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5369 | |
| 5370 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5371 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
| 5372 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5373 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5374 | { (exit 1); exit 1; }; }; |
| 5375 | fi |
| 5376 | fi |
| 5377 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5378 | # Check whether --enable-libffi was given. |
| 5379 | if test "${enable_libffi+set}" = set; then |
| 5380 | enableval=$enable_libffi; |
| 5381 | else |
| 5382 | enableval=yes |
| 5383 | fi |
| 5384 | |
| 5385 | case "$enableval" in |
| 5386 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5387 | no) llvm_cv_enable_libffi="no" ;; |
| 5388 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 |
| 5389 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5390 | { (exit 1); exit 1; }; } ;; |
| 5391 | esac |
| 5392 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5393 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5394 | llvmc_dynamic="yes" |
| 5395 | else |
| 5396 | llvmc_dynamic="no" |
| 5397 | fi |
| 5398 | |
| 5399 | # Check whether --enable-llvmc-dynamic was given. |
| 5400 | if test "${enable_llvmc_dynamic+set}" = set; then |
| 5401 | enableval=$enable_llvmc_dynamic; |
| 5402 | else |
| 5403 | enableval=$llvmc_dynamic |
| 5404 | fi |
| 5405 | |
| 5406 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5407 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5408 | |
| 5409 | else |
| 5410 | ENABLE_LLVMC_DYNAMIC= |
| 5411 | |
| 5412 | fi |
| 5413 | |
| 5414 | # Check whether --enable-llvmc-dynamic-plugins was given. |
| 5415 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
| 5416 | enableval=$enable_llvmc_dynamic_plugins; |
| 5417 | else |
| 5418 | enableval=yes |
| 5419 | fi |
| 5420 | |
| 5421 | if test ${enableval} = "yes" ; then |
| 5422 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5423 | |
| 5424 | else |
| 5425 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5426 | |
| 5427 | fi |
| 5428 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5429 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5430 | ac_ext=c |
| 5431 | ac_cpp='$CPP $CPPFLAGS' |
| 5432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5435 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5436 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 5437 | # On Suns, sometimes $CPP names a directory. |
| 5438 | if test -n "$CPP" && test -d "$CPP"; then |
| 5439 | CPP= |
| 5440 | fi |
| 5441 | if test -z "$CPP"; then |
| 5442 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5444 | else |
| 5445 | # Double quotes because CPP needs to be expanded |
| 5446 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5447 | do |
| 5448 | ac_preproc_ok=false |
| 5449 | for ac_c_preproc_warn_flag in '' yes |
| 5450 | do |
| 5451 | # Use a header file that comes with gcc, so configuring glibc |
| 5452 | # with a fresh cross-compiler works. |
| 5453 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5454 | # <limits.h> exists even on freestanding compilers. |
| 5455 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5456 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5457 | cat >conftest.$ac_ext <<_ACEOF |
| 5458 | /* confdefs.h. */ |
| 5459 | _ACEOF |
| 5460 | cat confdefs.h >>conftest.$ac_ext |
| 5461 | cat >>conftest.$ac_ext <<_ACEOF |
| 5462 | /* end confdefs.h. */ |
| 5463 | #ifdef __STDC__ |
| 5464 | # include <limits.h> |
| 5465 | #else |
| 5466 | # include <assert.h> |
| 5467 | #endif |
| 5468 | Syntax error |
| 5469 | _ACEOF |
| 5470 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5471 | case "(($ac_try" in |
| 5472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5473 | *) ac_try_echo=$ac_try;; |
| 5474 | esac |
| 5475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5476 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5477 | ac_status=$? |
| 5478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5479 | rm -f conftest.er1 |
| 5480 | cat conftest.err >&5 |
| 5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5482 | (exit $ac_status); } >/dev/null; then |
| 5483 | if test -s conftest.err; then |
| 5484 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5485 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5486 | else |
| 5487 | ac_cpp_err= |
| 5488 | fi |
| 5489 | else |
| 5490 | ac_cpp_err=yes |
| 5491 | fi |
| 5492 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5493 | : |
| 5494 | else |
| 5495 | echo "$as_me: failed program was:" >&5 |
| 5496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5497 | |
| 5498 | # Broken: fails on valid input. |
| 5499 | continue |
| 5500 | fi |
| 5501 | |
| 5502 | rm -f conftest.err conftest.$ac_ext |
| 5503 | |
| 5504 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5505 | # can be detected and how. |
| 5506 | cat >conftest.$ac_ext <<_ACEOF |
| 5507 | /* confdefs.h. */ |
| 5508 | _ACEOF |
| 5509 | cat confdefs.h >>conftest.$ac_ext |
| 5510 | cat >>conftest.$ac_ext <<_ACEOF |
| 5511 | /* end confdefs.h. */ |
| 5512 | #include <ac_nonexistent.h> |
| 5513 | _ACEOF |
| 5514 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5515 | case "(($ac_try" in |
| 5516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5517 | *) ac_try_echo=$ac_try;; |
| 5518 | esac |
| 5519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5520 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5521 | ac_status=$? |
| 5522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5523 | rm -f conftest.er1 |
| 5524 | cat conftest.err >&5 |
| 5525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5526 | (exit $ac_status); } >/dev/null; then |
| 5527 | if test -s conftest.err; then |
| 5528 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5529 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5530 | else |
| 5531 | ac_cpp_err= |
| 5532 | fi |
| 5533 | else |
| 5534 | ac_cpp_err=yes |
| 5535 | fi |
| 5536 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5537 | # Broken: success on invalid input. |
| 5538 | continue |
| 5539 | else |
| 5540 | echo "$as_me: failed program was:" >&5 |
| 5541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5542 | |
| 5543 | # Passes both tests. |
| 5544 | ac_preproc_ok=: |
| 5545 | break |
| 5546 | fi |
| 5547 | |
| 5548 | rm -f conftest.err conftest.$ac_ext |
| 5549 | |
| 5550 | done |
| 5551 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5552 | rm -f conftest.err conftest.$ac_ext |
| 5553 | if $ac_preproc_ok; then |
| 5554 | break |
| 5555 | fi |
| 5556 | |
| 5557 | done |
| 5558 | ac_cv_prog_CPP=$CPP |
| 5559 | |
| 5560 | fi |
| 5561 | CPP=$ac_cv_prog_CPP |
| 5562 | else |
| 5563 | ac_cv_prog_CPP=$CPP |
| 5564 | fi |
| 5565 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5566 | echo "${ECHO_T}$CPP" >&6; } |
| 5567 | ac_preproc_ok=false |
| 5568 | for ac_c_preproc_warn_flag in '' yes |
| 5569 | do |
| 5570 | # Use a header file that comes with gcc, so configuring glibc |
| 5571 | # with a fresh cross-compiler works. |
| 5572 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5573 | # <limits.h> exists even on freestanding compilers. |
| 5574 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5575 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5576 | cat >conftest.$ac_ext <<_ACEOF |
| 5577 | /* confdefs.h. */ |
| 5578 | _ACEOF |
| 5579 | cat confdefs.h >>conftest.$ac_ext |
| 5580 | cat >>conftest.$ac_ext <<_ACEOF |
| 5581 | /* end confdefs.h. */ |
| 5582 | #ifdef __STDC__ |
| 5583 | # include <limits.h> |
| 5584 | #else |
| 5585 | # include <assert.h> |
| 5586 | #endif |
| 5587 | Syntax error |
| 5588 | _ACEOF |
| 5589 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5590 | case "(($ac_try" in |
| 5591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5592 | *) ac_try_echo=$ac_try;; |
| 5593 | esac |
| 5594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5595 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5596 | ac_status=$? |
| 5597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5598 | rm -f conftest.er1 |
| 5599 | cat conftest.err >&5 |
| 5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5601 | (exit $ac_status); } >/dev/null; then |
| 5602 | if test -s conftest.err; then |
| 5603 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5604 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5605 | else |
| 5606 | ac_cpp_err= |
| 5607 | fi |
| 5608 | else |
| 5609 | ac_cpp_err=yes |
| 5610 | fi |
| 5611 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5612 | : |
| 5613 | else |
| 5614 | echo "$as_me: failed program was:" >&5 |
| 5615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5616 | |
| 5617 | # Broken: fails on valid input. |
| 5618 | continue |
| 5619 | fi |
| 5620 | |
| 5621 | rm -f conftest.err conftest.$ac_ext |
| 5622 | |
| 5623 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5624 | # can be detected and how. |
| 5625 | cat >conftest.$ac_ext <<_ACEOF |
| 5626 | /* confdefs.h. */ |
| 5627 | _ACEOF |
| 5628 | cat confdefs.h >>conftest.$ac_ext |
| 5629 | cat >>conftest.$ac_ext <<_ACEOF |
| 5630 | /* end confdefs.h. */ |
| 5631 | #include <ac_nonexistent.h> |
| 5632 | _ACEOF |
| 5633 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5634 | case "(($ac_try" in |
| 5635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5636 | *) ac_try_echo=$ac_try;; |
| 5637 | esac |
| 5638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5639 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5640 | ac_status=$? |
| 5641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5642 | rm -f conftest.er1 |
| 5643 | cat conftest.err >&5 |
| 5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5645 | (exit $ac_status); } >/dev/null; then |
| 5646 | if test -s conftest.err; then |
| 5647 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5648 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5649 | else |
| 5650 | ac_cpp_err= |
| 5651 | fi |
| 5652 | else |
| 5653 | ac_cpp_err=yes |
| 5654 | fi |
| 5655 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5656 | # Broken: success on invalid input. |
| 5657 | continue |
| 5658 | else |
| 5659 | echo "$as_me: failed program was:" >&5 |
| 5660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5661 | |
| 5662 | # Passes both tests. |
| 5663 | ac_preproc_ok=: |
| 5664 | break |
| 5665 | fi |
| 5666 | |
| 5667 | rm -f conftest.err conftest.$ac_ext |
| 5668 | |
| 5669 | done |
| 5670 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5671 | rm -f conftest.err conftest.$ac_ext |
| 5672 | if $ac_preproc_ok; then |
| 5673 | : |
| 5674 | else |
| 5675 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5676 | See \`config.log' for more details." >&5 |
| 5677 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5678 | See \`config.log' for more details." >&2;} |
| 5679 | { (exit 1); exit 1; }; } |
| 5680 | fi |
| 5681 | |
| 5682 | ac_ext=c |
| 5683 | ac_cpp='$CPP $CPPFLAGS' |
| 5684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5687 | |
| 5688 | ac_ext=c |
| 5689 | ac_cpp='$CPP $CPPFLAGS' |
| 5690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5693 | if test -n "$ac_tool_prefix"; then |
| 5694 | for ac_prog in gcc |
| 5695 | do |
| 5696 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5697 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5698 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5700 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5702 | else |
| 5703 | if test -n "$CC"; then |
| 5704 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5705 | else |
| 5706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5707 | for as_dir in $PATH |
| 5708 | do |
| 5709 | IFS=$as_save_IFS |
| 5710 | test -z "$as_dir" && as_dir=. |
| 5711 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5712 | 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] | 5713 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5715 | break 2 |
| 5716 | fi |
| 5717 | done |
| 5718 | done |
| 5719 | IFS=$as_save_IFS |
| 5720 | |
| 5721 | fi |
| 5722 | fi |
| 5723 | CC=$ac_cv_prog_CC |
| 5724 | if test -n "$CC"; then |
| 5725 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5726 | echo "${ECHO_T}$CC" >&6; } |
| 5727 | else |
| 5728 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5729 | echo "${ECHO_T}no" >&6; } |
| 5730 | fi |
| 5731 | |
| 5732 | |
| 5733 | test -n "$CC" && break |
| 5734 | done |
| 5735 | fi |
| 5736 | if test -z "$CC"; then |
| 5737 | ac_ct_CC=$CC |
| 5738 | for ac_prog in gcc |
| 5739 | do |
| 5740 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5741 | set dummy $ac_prog; ac_word=$2 |
| 5742 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5744 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5746 | else |
| 5747 | if test -n "$ac_ct_CC"; then |
| 5748 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5749 | else |
| 5750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5751 | for as_dir in $PATH |
| 5752 | do |
| 5753 | IFS=$as_save_IFS |
| 5754 | test -z "$as_dir" && as_dir=. |
| 5755 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5756 | 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] | 5757 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5759 | break 2 |
| 5760 | fi |
| 5761 | done |
| 5762 | done |
| 5763 | IFS=$as_save_IFS |
| 5764 | |
| 5765 | fi |
| 5766 | fi |
| 5767 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5768 | if test -n "$ac_ct_CC"; then |
| 5769 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5770 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5771 | else |
| 5772 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5773 | echo "${ECHO_T}no" >&6; } |
| 5774 | fi |
| 5775 | |
| 5776 | |
| 5777 | test -n "$ac_ct_CC" && break |
| 5778 | done |
| 5779 | |
| 5780 | if test "x$ac_ct_CC" = x; then |
| 5781 | CC="" |
| 5782 | else |
| 5783 | case $cross_compiling:$ac_tool_warned in |
| 5784 | yes:) |
| 5785 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5786 | whose name does not start with the host triplet. If you think this |
| 5787 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5788 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5789 | whose name does not start with the host triplet. If you think this |
| 5790 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5791 | ac_tool_warned=yes ;; |
| 5792 | esac |
| 5793 | CC=$ac_ct_CC |
| 5794 | fi |
| 5795 | fi |
| 5796 | |
| 5797 | |
| 5798 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5799 | See \`config.log' for more details." >&5 |
| 5800 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5801 | See \`config.log' for more details." >&2;} |
| 5802 | { (exit 1); exit 1; }; } |
| 5803 | |
| 5804 | # Provide some information about the compiler. |
| 5805 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5806 | ac_compiler=`set X $ac_compile; echo $2` |
| 5807 | { (ac_try="$ac_compiler --version >&5" |
| 5808 | case "(($ac_try" in |
| 5809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5810 | *) ac_try_echo=$ac_try;; |
| 5811 | esac |
| 5812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5813 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5814 | ac_status=$? |
| 5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5816 | (exit $ac_status); } |
| 5817 | { (ac_try="$ac_compiler -v >&5" |
| 5818 | case "(($ac_try" in |
| 5819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5820 | *) ac_try_echo=$ac_try;; |
| 5821 | esac |
| 5822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5823 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5824 | ac_status=$? |
| 5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5826 | (exit $ac_status); } |
| 5827 | { (ac_try="$ac_compiler -V >&5" |
| 5828 | case "(($ac_try" in |
| 5829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5830 | *) ac_try_echo=$ac_try;; |
| 5831 | esac |
| 5832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5833 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5834 | ac_status=$? |
| 5835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5836 | (exit $ac_status); } |
| 5837 | |
| 5838 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5839 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5840 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5842 | else |
| 5843 | cat >conftest.$ac_ext <<_ACEOF |
| 5844 | /* confdefs.h. */ |
| 5845 | _ACEOF |
| 5846 | cat confdefs.h >>conftest.$ac_ext |
| 5847 | cat >>conftest.$ac_ext <<_ACEOF |
| 5848 | /* end confdefs.h. */ |
| 5849 | |
| 5850 | int |
| 5851 | main () |
| 5852 | { |
| 5853 | #ifndef __GNUC__ |
| 5854 | choke me |
| 5855 | #endif |
| 5856 | |
| 5857 | ; |
| 5858 | return 0; |
| 5859 | } |
| 5860 | _ACEOF |
| 5861 | rm -f conftest.$ac_objext |
| 5862 | if { (ac_try="$ac_compile" |
| 5863 | case "(($ac_try" in |
| 5864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5865 | *) ac_try_echo=$ac_try;; |
| 5866 | esac |
| 5867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5868 | (eval "$ac_compile") 2>conftest.er1 |
| 5869 | ac_status=$? |
| 5870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5871 | rm -f conftest.er1 |
| 5872 | cat conftest.err >&5 |
| 5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5874 | (exit $ac_status); } && |
| 5875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5876 | { (case "(($ac_try" in |
| 5877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5878 | *) ac_try_echo=$ac_try;; |
| 5879 | esac |
| 5880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5881 | (eval "$ac_try") 2>&5 |
| 5882 | ac_status=$? |
| 5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5884 | (exit $ac_status); }; } && |
| 5885 | { ac_try='test -s conftest.$ac_objext' |
| 5886 | { (case "(($ac_try" in |
| 5887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5888 | *) ac_try_echo=$ac_try;; |
| 5889 | esac |
| 5890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5891 | (eval "$ac_try") 2>&5 |
| 5892 | ac_status=$? |
| 5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5894 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5895 | ac_compiler_gnu=yes |
| 5896 | else |
| 5897 | echo "$as_me: failed program was:" >&5 |
| 5898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5899 | |
| 5900 | ac_compiler_gnu=no |
| 5901 | fi |
| 5902 | |
| 5903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5904 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5905 | |
| 5906 | fi |
| 5907 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5908 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5909 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5910 | ac_test_CFLAGS=${CFLAGS+set} |
| 5911 | ac_save_CFLAGS=$CFLAGS |
| 5912 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5913 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5914 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5916 | else |
| 5917 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5918 | ac_c_werror_flag=yes |
| 5919 | ac_cv_prog_cc_g=no |
| 5920 | CFLAGS="-g" |
| 5921 | cat >conftest.$ac_ext <<_ACEOF |
| 5922 | /* confdefs.h. */ |
| 5923 | _ACEOF |
| 5924 | cat confdefs.h >>conftest.$ac_ext |
| 5925 | cat >>conftest.$ac_ext <<_ACEOF |
| 5926 | /* end confdefs.h. */ |
| 5927 | |
| 5928 | int |
| 5929 | main () |
| 5930 | { |
| 5931 | |
| 5932 | ; |
| 5933 | return 0; |
| 5934 | } |
| 5935 | _ACEOF |
| 5936 | rm -f conftest.$ac_objext |
| 5937 | if { (ac_try="$ac_compile" |
| 5938 | case "(($ac_try" in |
| 5939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5940 | *) ac_try_echo=$ac_try;; |
| 5941 | esac |
| 5942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5943 | (eval "$ac_compile") 2>conftest.er1 |
| 5944 | ac_status=$? |
| 5945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5946 | rm -f conftest.er1 |
| 5947 | cat conftest.err >&5 |
| 5948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5949 | (exit $ac_status); } && |
| 5950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5951 | { (case "(($ac_try" in |
| 5952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5953 | *) ac_try_echo=$ac_try;; |
| 5954 | esac |
| 5955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5956 | (eval "$ac_try") 2>&5 |
| 5957 | ac_status=$? |
| 5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5959 | (exit $ac_status); }; } && |
| 5960 | { ac_try='test -s conftest.$ac_objext' |
| 5961 | { (case "(($ac_try" in |
| 5962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5963 | *) ac_try_echo=$ac_try;; |
| 5964 | esac |
| 5965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5966 | (eval "$ac_try") 2>&5 |
| 5967 | ac_status=$? |
| 5968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5969 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5970 | ac_cv_prog_cc_g=yes |
| 5971 | else |
| 5972 | echo "$as_me: failed program was:" >&5 |
| 5973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5974 | |
| 5975 | CFLAGS="" |
| 5976 | cat >conftest.$ac_ext <<_ACEOF |
| 5977 | /* confdefs.h. */ |
| 5978 | _ACEOF |
| 5979 | cat confdefs.h >>conftest.$ac_ext |
| 5980 | cat >>conftest.$ac_ext <<_ACEOF |
| 5981 | /* end confdefs.h. */ |
| 5982 | |
| 5983 | int |
| 5984 | main () |
| 5985 | { |
| 5986 | |
| 5987 | ; |
| 5988 | return 0; |
| 5989 | } |
| 5990 | _ACEOF |
| 5991 | rm -f conftest.$ac_objext |
| 5992 | if { (ac_try="$ac_compile" |
| 5993 | case "(($ac_try" in |
| 5994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5995 | *) ac_try_echo=$ac_try;; |
| 5996 | esac |
| 5997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5998 | (eval "$ac_compile") 2>conftest.er1 |
| 5999 | ac_status=$? |
| 6000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6001 | rm -f conftest.er1 |
| 6002 | cat conftest.err >&5 |
| 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6004 | (exit $ac_status); } && |
| 6005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6006 | { (case "(($ac_try" in |
| 6007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6008 | *) ac_try_echo=$ac_try;; |
| 6009 | esac |
| 6010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6011 | (eval "$ac_try") 2>&5 |
| 6012 | ac_status=$? |
| 6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6014 | (exit $ac_status); }; } && |
| 6015 | { ac_try='test -s conftest.$ac_objext' |
| 6016 | { (case "(($ac_try" in |
| 6017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6018 | *) ac_try_echo=$ac_try;; |
| 6019 | esac |
| 6020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6021 | (eval "$ac_try") 2>&5 |
| 6022 | ac_status=$? |
| 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6024 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6025 | : |
| 6026 | else |
| 6027 | echo "$as_me: failed program was:" >&5 |
| 6028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6029 | |
| 6030 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6031 | CFLAGS="-g" |
| 6032 | cat >conftest.$ac_ext <<_ACEOF |
| 6033 | /* confdefs.h. */ |
| 6034 | _ACEOF |
| 6035 | cat confdefs.h >>conftest.$ac_ext |
| 6036 | cat >>conftest.$ac_ext <<_ACEOF |
| 6037 | /* end confdefs.h. */ |
| 6038 | |
| 6039 | int |
| 6040 | main () |
| 6041 | { |
| 6042 | |
| 6043 | ; |
| 6044 | return 0; |
| 6045 | } |
| 6046 | _ACEOF |
| 6047 | rm -f conftest.$ac_objext |
| 6048 | if { (ac_try="$ac_compile" |
| 6049 | case "(($ac_try" in |
| 6050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6051 | *) ac_try_echo=$ac_try;; |
| 6052 | esac |
| 6053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6054 | (eval "$ac_compile") 2>conftest.er1 |
| 6055 | ac_status=$? |
| 6056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6057 | rm -f conftest.er1 |
| 6058 | cat conftest.err >&5 |
| 6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6060 | (exit $ac_status); } && |
| 6061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6062 | { (case "(($ac_try" in |
| 6063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6064 | *) ac_try_echo=$ac_try;; |
| 6065 | esac |
| 6066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6067 | (eval "$ac_try") 2>&5 |
| 6068 | ac_status=$? |
| 6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6070 | (exit $ac_status); }; } && |
| 6071 | { ac_try='test -s conftest.$ac_objext' |
| 6072 | { (case "(($ac_try" in |
| 6073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6074 | *) ac_try_echo=$ac_try;; |
| 6075 | esac |
| 6076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6077 | (eval "$ac_try") 2>&5 |
| 6078 | ac_status=$? |
| 6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6080 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6081 | ac_cv_prog_cc_g=yes |
| 6082 | else |
| 6083 | echo "$as_me: failed program was:" >&5 |
| 6084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6085 | |
| 6086 | |
| 6087 | fi |
| 6088 | |
| 6089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6090 | fi |
| 6091 | |
| 6092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6093 | fi |
| 6094 | |
| 6095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6096 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6097 | fi |
| 6098 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6099 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 6100 | if test "$ac_test_CFLAGS" = set; then |
| 6101 | CFLAGS=$ac_save_CFLAGS |
| 6102 | elif test $ac_cv_prog_cc_g = yes; then |
| 6103 | if test "$GCC" = yes; then |
| 6104 | CFLAGS="-g -O2" |
| 6105 | else |
| 6106 | CFLAGS="-g" |
| 6107 | fi |
| 6108 | else |
| 6109 | if test "$GCC" = yes; then |
| 6110 | CFLAGS="-O2" |
| 6111 | else |
| 6112 | CFLAGS= |
| 6113 | fi |
| 6114 | fi |
| 6115 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6116 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6117 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6119 | else |
| 6120 | ac_cv_prog_cc_c89=no |
| 6121 | ac_save_CC=$CC |
| 6122 | cat >conftest.$ac_ext <<_ACEOF |
| 6123 | /* confdefs.h. */ |
| 6124 | _ACEOF |
| 6125 | cat confdefs.h >>conftest.$ac_ext |
| 6126 | cat >>conftest.$ac_ext <<_ACEOF |
| 6127 | /* end confdefs.h. */ |
| 6128 | #include <stdarg.h> |
| 6129 | #include <stdio.h> |
| 6130 | #include <sys/types.h> |
| 6131 | #include <sys/stat.h> |
| 6132 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6133 | struct buf { int x; }; |
| 6134 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6135 | static char *e (p, i) |
| 6136 | char **p; |
| 6137 | int i; |
| 6138 | { |
| 6139 | return p[i]; |
| 6140 | } |
| 6141 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6142 | { |
| 6143 | char *s; |
| 6144 | va_list v; |
| 6145 | va_start (v,p); |
| 6146 | s = g (p, va_arg (v,int)); |
| 6147 | va_end (v); |
| 6148 | return s; |
| 6149 | } |
| 6150 | |
| 6151 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6152 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6153 | These don't provoke an error unfortunately, instead are silently treated |
| 6154 | as 'x'. The following induces an error, until -std is added to get |
| 6155 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6156 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6157 | that's true only with -std. */ |
| 6158 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6159 | |
| 6160 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6161 | inside strings and character constants. */ |
| 6162 | #define FOO(x) 'x' |
| 6163 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6164 | |
| 6165 | int test (int i, double x); |
| 6166 | struct s1 {int (*f) (int a);}; |
| 6167 | struct s2 {int (*f) (double a);}; |
| 6168 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6169 | int argc; |
| 6170 | char **argv; |
| 6171 | int |
| 6172 | main () |
| 6173 | { |
| 6174 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6175 | ; |
| 6176 | return 0; |
| 6177 | } |
| 6178 | _ACEOF |
| 6179 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6180 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6181 | do |
| 6182 | CC="$ac_save_CC $ac_arg" |
| 6183 | rm -f conftest.$ac_objext |
| 6184 | if { (ac_try="$ac_compile" |
| 6185 | case "(($ac_try" in |
| 6186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6187 | *) ac_try_echo=$ac_try;; |
| 6188 | esac |
| 6189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6190 | (eval "$ac_compile") 2>conftest.er1 |
| 6191 | ac_status=$? |
| 6192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6193 | rm -f conftest.er1 |
| 6194 | cat conftest.err >&5 |
| 6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6196 | (exit $ac_status); } && |
| 6197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6198 | { (case "(($ac_try" in |
| 6199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6200 | *) ac_try_echo=$ac_try;; |
| 6201 | esac |
| 6202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6203 | (eval "$ac_try") 2>&5 |
| 6204 | ac_status=$? |
| 6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6206 | (exit $ac_status); }; } && |
| 6207 | { ac_try='test -s conftest.$ac_objext' |
| 6208 | { (case "(($ac_try" in |
| 6209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6210 | *) ac_try_echo=$ac_try;; |
| 6211 | esac |
| 6212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6213 | (eval "$ac_try") 2>&5 |
| 6214 | ac_status=$? |
| 6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6216 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6217 | ac_cv_prog_cc_c89=$ac_arg |
| 6218 | else |
| 6219 | echo "$as_me: failed program was:" >&5 |
| 6220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6221 | |
| 6222 | |
| 6223 | fi |
| 6224 | |
| 6225 | rm -f core conftest.err conftest.$ac_objext |
| 6226 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6227 | done |
| 6228 | rm -f conftest.$ac_ext |
| 6229 | CC=$ac_save_CC |
| 6230 | |
| 6231 | fi |
| 6232 | # AC_CACHE_VAL |
| 6233 | case "x$ac_cv_prog_cc_c89" in |
| 6234 | x) |
| 6235 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6236 | echo "${ECHO_T}none needed" >&6; } ;; |
| 6237 | xno) |
| 6238 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6239 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 6240 | *) |
| 6241 | CC="$CC $ac_cv_prog_cc_c89" |
| 6242 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6243 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 6244 | esac |
| 6245 | |
| 6246 | |
| 6247 | ac_ext=c |
| 6248 | ac_cpp='$CPP $CPPFLAGS' |
| 6249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6252 | |
| 6253 | ac_ext=cpp |
| 6254 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6255 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6256 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6257 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6258 | if test -z "$CXX"; then |
| 6259 | if test -n "$CCC"; then |
| 6260 | CXX=$CCC |
| 6261 | else |
| 6262 | if test -n "$ac_tool_prefix"; then |
| 6263 | for ac_prog in g++ |
| 6264 | do |
| 6265 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6266 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6267 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6269 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6271 | else |
| 6272 | if test -n "$CXX"; then |
| 6273 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6274 | else |
| 6275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6276 | for as_dir in $PATH |
| 6277 | do |
| 6278 | IFS=$as_save_IFS |
| 6279 | test -z "$as_dir" && as_dir=. |
| 6280 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6281 | 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] | 6282 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 6283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6284 | break 2 |
| 6285 | fi |
| 6286 | done |
| 6287 | done |
| 6288 | IFS=$as_save_IFS |
| 6289 | |
| 6290 | fi |
| 6291 | fi |
| 6292 | CXX=$ac_cv_prog_CXX |
| 6293 | if test -n "$CXX"; then |
| 6294 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6295 | echo "${ECHO_T}$CXX" >&6; } |
| 6296 | else |
| 6297 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6298 | echo "${ECHO_T}no" >&6; } |
| 6299 | fi |
| 6300 | |
| 6301 | |
| 6302 | test -n "$CXX" && break |
| 6303 | done |
| 6304 | fi |
| 6305 | if test -z "$CXX"; then |
| 6306 | ac_ct_CXX=$CXX |
| 6307 | for ac_prog in g++ |
| 6308 | do |
| 6309 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6310 | set dummy $ac_prog; ac_word=$2 |
| 6311 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6312 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6313 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6315 | else |
| 6316 | if test -n "$ac_ct_CXX"; then |
| 6317 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6318 | else |
| 6319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6320 | for as_dir in $PATH |
| 6321 | do |
| 6322 | IFS=$as_save_IFS |
| 6323 | test -z "$as_dir" && as_dir=. |
| 6324 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6325 | 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] | 6326 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 6327 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6328 | break 2 |
| 6329 | fi |
| 6330 | done |
| 6331 | done |
| 6332 | IFS=$as_save_IFS |
| 6333 | |
| 6334 | fi |
| 6335 | fi |
| 6336 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6337 | if test -n "$ac_ct_CXX"; then |
| 6338 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6339 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 6340 | else |
| 6341 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6342 | echo "${ECHO_T}no" >&6; } |
| 6343 | fi |
| 6344 | |
| 6345 | |
| 6346 | test -n "$ac_ct_CXX" && break |
| 6347 | done |
| 6348 | |
| 6349 | if test "x$ac_ct_CXX" = x; then |
| 6350 | CXX="g++" |
| 6351 | else |
| 6352 | case $cross_compiling:$ac_tool_warned in |
| 6353 | yes:) |
| 6354 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6355 | whose name does not start with the host triplet. If you think this |
| 6356 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6357 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6358 | whose name does not start with the host triplet. If you think this |
| 6359 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6360 | ac_tool_warned=yes ;; |
| 6361 | esac |
| 6362 | CXX=$ac_ct_CXX |
| 6363 | fi |
| 6364 | fi |
| 6365 | |
| 6366 | fi |
| 6367 | fi |
| 6368 | # Provide some information about the compiler. |
| 6369 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6370 | ac_compiler=`set X $ac_compile; echo $2` |
| 6371 | { (ac_try="$ac_compiler --version >&5" |
| 6372 | case "(($ac_try" in |
| 6373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6374 | *) ac_try_echo=$ac_try;; |
| 6375 | esac |
| 6376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6377 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6378 | ac_status=$? |
| 6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6380 | (exit $ac_status); } |
| 6381 | { (ac_try="$ac_compiler -v >&5" |
| 6382 | case "(($ac_try" in |
| 6383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6384 | *) ac_try_echo=$ac_try;; |
| 6385 | esac |
| 6386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6387 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6388 | ac_status=$? |
| 6389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6390 | (exit $ac_status); } |
| 6391 | { (ac_try="$ac_compiler -V >&5" |
| 6392 | case "(($ac_try" in |
| 6393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6394 | *) ac_try_echo=$ac_try;; |
| 6395 | esac |
| 6396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6397 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6398 | ac_status=$? |
| 6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6400 | (exit $ac_status); } |
| 6401 | |
| 6402 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6403 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6404 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6406 | else |
| 6407 | cat >conftest.$ac_ext <<_ACEOF |
| 6408 | /* confdefs.h. */ |
| 6409 | _ACEOF |
| 6410 | cat confdefs.h >>conftest.$ac_ext |
| 6411 | cat >>conftest.$ac_ext <<_ACEOF |
| 6412 | /* end confdefs.h. */ |
| 6413 | |
| 6414 | int |
| 6415 | main () |
| 6416 | { |
| 6417 | #ifndef __GNUC__ |
| 6418 | choke me |
| 6419 | #endif |
| 6420 | |
| 6421 | ; |
| 6422 | return 0; |
| 6423 | } |
| 6424 | _ACEOF |
| 6425 | rm -f conftest.$ac_objext |
| 6426 | if { (ac_try="$ac_compile" |
| 6427 | case "(($ac_try" in |
| 6428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6429 | *) ac_try_echo=$ac_try;; |
| 6430 | esac |
| 6431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6432 | (eval "$ac_compile") 2>conftest.er1 |
| 6433 | ac_status=$? |
| 6434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6435 | rm -f conftest.er1 |
| 6436 | cat conftest.err >&5 |
| 6437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6438 | (exit $ac_status); } && |
| 6439 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6440 | { (case "(($ac_try" in |
| 6441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6442 | *) ac_try_echo=$ac_try;; |
| 6443 | esac |
| 6444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6445 | (eval "$ac_try") 2>&5 |
| 6446 | ac_status=$? |
| 6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6448 | (exit $ac_status); }; } && |
| 6449 | { ac_try='test -s conftest.$ac_objext' |
| 6450 | { (case "(($ac_try" in |
| 6451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6452 | *) ac_try_echo=$ac_try;; |
| 6453 | esac |
| 6454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6455 | (eval "$ac_try") 2>&5 |
| 6456 | ac_status=$? |
| 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6458 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6459 | ac_compiler_gnu=yes |
| 6460 | else |
| 6461 | echo "$as_me: failed program was:" >&5 |
| 6462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6463 | |
| 6464 | ac_compiler_gnu=no |
| 6465 | fi |
| 6466 | |
| 6467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6468 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6469 | |
| 6470 | fi |
| 6471 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6472 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6473 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 6474 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6475 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6476 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6477 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6478 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6480 | else |
| 6481 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6482 | ac_cxx_werror_flag=yes |
| 6483 | ac_cv_prog_cxx_g=no |
| 6484 | CXXFLAGS="-g" |
| 6485 | cat >conftest.$ac_ext <<_ACEOF |
| 6486 | /* confdefs.h. */ |
| 6487 | _ACEOF |
| 6488 | cat confdefs.h >>conftest.$ac_ext |
| 6489 | cat >>conftest.$ac_ext <<_ACEOF |
| 6490 | /* end confdefs.h. */ |
| 6491 | |
| 6492 | int |
| 6493 | main () |
| 6494 | { |
| 6495 | |
| 6496 | ; |
| 6497 | return 0; |
| 6498 | } |
| 6499 | _ACEOF |
| 6500 | rm -f conftest.$ac_objext |
| 6501 | if { (ac_try="$ac_compile" |
| 6502 | case "(($ac_try" in |
| 6503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6504 | *) ac_try_echo=$ac_try;; |
| 6505 | esac |
| 6506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6507 | (eval "$ac_compile") 2>conftest.er1 |
| 6508 | ac_status=$? |
| 6509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6510 | rm -f conftest.er1 |
| 6511 | cat conftest.err >&5 |
| 6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6513 | (exit $ac_status); } && |
| 6514 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6515 | { (case "(($ac_try" in |
| 6516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6517 | *) ac_try_echo=$ac_try;; |
| 6518 | esac |
| 6519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6520 | (eval "$ac_try") 2>&5 |
| 6521 | ac_status=$? |
| 6522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6523 | (exit $ac_status); }; } && |
| 6524 | { ac_try='test -s conftest.$ac_objext' |
| 6525 | { (case "(($ac_try" in |
| 6526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6527 | *) ac_try_echo=$ac_try;; |
| 6528 | esac |
| 6529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6530 | (eval "$ac_try") 2>&5 |
| 6531 | ac_status=$? |
| 6532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6533 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6534 | ac_cv_prog_cxx_g=yes |
| 6535 | else |
| 6536 | echo "$as_me: failed program was:" >&5 |
| 6537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6538 | |
| 6539 | CXXFLAGS="" |
| 6540 | cat >conftest.$ac_ext <<_ACEOF |
| 6541 | /* confdefs.h. */ |
| 6542 | _ACEOF |
| 6543 | cat confdefs.h >>conftest.$ac_ext |
| 6544 | cat >>conftest.$ac_ext <<_ACEOF |
| 6545 | /* end confdefs.h. */ |
| 6546 | |
| 6547 | int |
| 6548 | main () |
| 6549 | { |
| 6550 | |
| 6551 | ; |
| 6552 | return 0; |
| 6553 | } |
| 6554 | _ACEOF |
| 6555 | rm -f conftest.$ac_objext |
| 6556 | if { (ac_try="$ac_compile" |
| 6557 | case "(($ac_try" in |
| 6558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6559 | *) ac_try_echo=$ac_try;; |
| 6560 | esac |
| 6561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6562 | (eval "$ac_compile") 2>conftest.er1 |
| 6563 | ac_status=$? |
| 6564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6565 | rm -f conftest.er1 |
| 6566 | cat conftest.err >&5 |
| 6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6568 | (exit $ac_status); } && |
| 6569 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6570 | { (case "(($ac_try" in |
| 6571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6572 | *) ac_try_echo=$ac_try;; |
| 6573 | esac |
| 6574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6575 | (eval "$ac_try") 2>&5 |
| 6576 | ac_status=$? |
| 6577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6578 | (exit $ac_status); }; } && |
| 6579 | { ac_try='test -s conftest.$ac_objext' |
| 6580 | { (case "(($ac_try" in |
| 6581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6582 | *) ac_try_echo=$ac_try;; |
| 6583 | esac |
| 6584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6585 | (eval "$ac_try") 2>&5 |
| 6586 | ac_status=$? |
| 6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6588 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6589 | : |
| 6590 | else |
| 6591 | echo "$as_me: failed program was:" >&5 |
| 6592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6593 | |
| 6594 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6595 | CXXFLAGS="-g" |
| 6596 | cat >conftest.$ac_ext <<_ACEOF |
| 6597 | /* confdefs.h. */ |
| 6598 | _ACEOF |
| 6599 | cat confdefs.h >>conftest.$ac_ext |
| 6600 | cat >>conftest.$ac_ext <<_ACEOF |
| 6601 | /* end confdefs.h. */ |
| 6602 | |
| 6603 | int |
| 6604 | main () |
| 6605 | { |
| 6606 | |
| 6607 | ; |
| 6608 | return 0; |
| 6609 | } |
| 6610 | _ACEOF |
| 6611 | rm -f conftest.$ac_objext |
| 6612 | if { (ac_try="$ac_compile" |
| 6613 | case "(($ac_try" in |
| 6614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6615 | *) ac_try_echo=$ac_try;; |
| 6616 | esac |
| 6617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6618 | (eval "$ac_compile") 2>conftest.er1 |
| 6619 | ac_status=$? |
| 6620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6621 | rm -f conftest.er1 |
| 6622 | cat conftest.err >&5 |
| 6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6624 | (exit $ac_status); } && |
| 6625 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6626 | { (case "(($ac_try" in |
| 6627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6628 | *) ac_try_echo=$ac_try;; |
| 6629 | esac |
| 6630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6631 | (eval "$ac_try") 2>&5 |
| 6632 | ac_status=$? |
| 6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6634 | (exit $ac_status); }; } && |
| 6635 | { ac_try='test -s conftest.$ac_objext' |
| 6636 | { (case "(($ac_try" in |
| 6637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6638 | *) ac_try_echo=$ac_try;; |
| 6639 | esac |
| 6640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6641 | (eval "$ac_try") 2>&5 |
| 6642 | ac_status=$? |
| 6643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6644 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6645 | ac_cv_prog_cxx_g=yes |
| 6646 | else |
| 6647 | echo "$as_me: failed program was:" >&5 |
| 6648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6649 | |
| 6650 | |
| 6651 | fi |
| 6652 | |
| 6653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6654 | fi |
| 6655 | |
| 6656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6657 | fi |
| 6658 | |
| 6659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6660 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6661 | fi |
| 6662 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6663 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6664 | if test "$ac_test_CXXFLAGS" = set; then |
| 6665 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6666 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6667 | if test "$GXX" = yes; then |
| 6668 | CXXFLAGS="-g -O2" |
| 6669 | else |
| 6670 | CXXFLAGS="-g" |
| 6671 | fi |
| 6672 | else |
| 6673 | if test "$GXX" = yes; then |
| 6674 | CXXFLAGS="-O2" |
| 6675 | else |
| 6676 | CXXFLAGS= |
| 6677 | fi |
| 6678 | fi |
| 6679 | ac_ext=c |
| 6680 | ac_cpp='$CPP $CPPFLAGS' |
| 6681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6685 | |
| 6686 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6687 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6688 | if test "${lt_cv_path_NM+set}" = set; then |
| 6689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6690 | else |
| 6691 | if test -n "$NM"; then |
| 6692 | # Let the user override the test. |
| 6693 | lt_cv_path_NM="$NM" |
| 6694 | else |
| 6695 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6696 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6697 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6698 | fi |
| 6699 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6700 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6701 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6702 | IFS="$lt_save_ifs" |
| 6703 | test -z "$ac_dir" && ac_dir=. |
| 6704 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6705 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6706 | # Check to see if the nm accepts a BSD-compat flag. |
| 6707 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6708 | # nm: unknown option "B" ignored |
| 6709 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6710 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6711 | */dev/null* | *'Invalid file or object type'*) |
| 6712 | lt_cv_path_NM="$tmp_nm -B" |
| 6713 | break |
| 6714 | ;; |
| 6715 | *) |
| 6716 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6717 | */dev/null*) |
| 6718 | lt_cv_path_NM="$tmp_nm -p" |
| 6719 | break |
| 6720 | ;; |
| 6721 | *) |
| 6722 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6723 | continue # so that we can try to find one that supports BSD flags |
| 6724 | ;; |
| 6725 | esac |
| 6726 | ;; |
| 6727 | esac |
| 6728 | fi |
| 6729 | done |
| 6730 | IFS="$lt_save_ifs" |
| 6731 | done |
| 6732 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6733 | fi |
| 6734 | fi |
| 6735 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6736 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6737 | NM="$lt_cv_path_NM" |
| 6738 | |
| 6739 | |
| 6740 | |
| 6741 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6742 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6743 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6745 | else |
| 6746 | llvm_cv_gnu_make_command='' |
| 6747 | for a in "$MAKE" make gmake gnumake ; do |
| 6748 | if test -z "$a" ; then continue ; fi ; |
| 6749 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6750 | then |
| 6751 | llvm_cv_gnu_make_command=$a ; |
| 6752 | break; |
| 6753 | fi |
| 6754 | done |
| 6755 | fi |
| 6756 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6757 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6758 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6759 | ifGNUmake='' ; |
| 6760 | else |
| 6761 | ifGNUmake='#' ; |
| 6762 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6763 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6764 | fi |
| 6765 | |
| 6766 | |
| 6767 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6768 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6769 | LN_S=$as_ln_s |
| 6770 | if test "$LN_S" = "ln -s"; then |
| 6771 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6772 | echo "${ECHO_T}yes" >&6; } |
| 6773 | else |
| 6774 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6775 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6776 | fi |
| 6777 | |
| 6778 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6779 | set dummy cmp; ac_word=$2 |
| 6780 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6782 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6784 | else |
| 6785 | case $CMP in |
| 6786 | [\\/]* | ?:[\\/]*) |
| 6787 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6788 | ;; |
| 6789 | *) |
| 6790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6791 | for as_dir in $PATH |
| 6792 | do |
| 6793 | IFS=$as_save_IFS |
| 6794 | test -z "$as_dir" && as_dir=. |
| 6795 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6796 | 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] | 6797 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6799 | break 2 |
| 6800 | fi |
| 6801 | done |
| 6802 | done |
| 6803 | IFS=$as_save_IFS |
| 6804 | |
| 6805 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6806 | ;; |
| 6807 | esac |
| 6808 | fi |
| 6809 | CMP=$ac_cv_path_CMP |
| 6810 | if test -n "$CMP"; then |
| 6811 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6812 | echo "${ECHO_T}$CMP" >&6; } |
| 6813 | else |
| 6814 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6815 | echo "${ECHO_T}no" >&6; } |
| 6816 | fi |
| 6817 | |
| 6818 | |
| 6819 | # Extract the first word of "cp", so it can be a program name with args. |
| 6820 | set dummy cp; ac_word=$2 |
| 6821 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6823 | if test "${ac_cv_path_CP+set}" = set; then |
| 6824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6825 | else |
| 6826 | case $CP in |
| 6827 | [\\/]* | ?:[\\/]*) |
| 6828 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6829 | ;; |
| 6830 | *) |
| 6831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6832 | for as_dir in $PATH |
| 6833 | do |
| 6834 | IFS=$as_save_IFS |
| 6835 | test -z "$as_dir" && as_dir=. |
| 6836 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6837 | 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] | 6838 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6840 | break 2 |
| 6841 | fi |
| 6842 | done |
| 6843 | done |
| 6844 | IFS=$as_save_IFS |
| 6845 | |
| 6846 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6847 | ;; |
| 6848 | esac |
| 6849 | fi |
| 6850 | CP=$ac_cv_path_CP |
| 6851 | if test -n "$CP"; then |
| 6852 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6853 | echo "${ECHO_T}$CP" >&6; } |
| 6854 | else |
| 6855 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6856 | echo "${ECHO_T}no" >&6; } |
| 6857 | fi |
| 6858 | |
| 6859 | |
| 6860 | # Extract the first word of "date", so it can be a program name with args. |
| 6861 | set dummy date; ac_word=$2 |
| 6862 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6864 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6866 | else |
| 6867 | case $DATE in |
| 6868 | [\\/]* | ?:[\\/]*) |
| 6869 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6870 | ;; |
| 6871 | *) |
| 6872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6873 | for as_dir in $PATH |
| 6874 | do |
| 6875 | IFS=$as_save_IFS |
| 6876 | test -z "$as_dir" && as_dir=. |
| 6877 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6878 | 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] | 6879 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6881 | break 2 |
| 6882 | fi |
| 6883 | done |
| 6884 | done |
| 6885 | IFS=$as_save_IFS |
| 6886 | |
| 6887 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6888 | ;; |
| 6889 | esac |
| 6890 | fi |
| 6891 | DATE=$ac_cv_path_DATE |
| 6892 | if test -n "$DATE"; then |
| 6893 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6894 | echo "${ECHO_T}$DATE" >&6; } |
| 6895 | else |
| 6896 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6897 | echo "${ECHO_T}no" >&6; } |
| 6898 | fi |
| 6899 | |
| 6900 | |
| 6901 | # Extract the first word of "find", so it can be a program name with args. |
| 6902 | set dummy find; ac_word=$2 |
| 6903 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6905 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6907 | else |
| 6908 | case $FIND in |
| 6909 | [\\/]* | ?:[\\/]*) |
| 6910 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6911 | ;; |
| 6912 | *) |
| 6913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6914 | for as_dir in $PATH |
| 6915 | do |
| 6916 | IFS=$as_save_IFS |
| 6917 | test -z "$as_dir" && as_dir=. |
| 6918 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6919 | 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] | 6920 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6922 | break 2 |
| 6923 | fi |
| 6924 | done |
| 6925 | done |
| 6926 | IFS=$as_save_IFS |
| 6927 | |
| 6928 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6929 | ;; |
| 6930 | esac |
| 6931 | fi |
| 6932 | FIND=$ac_cv_path_FIND |
| 6933 | if test -n "$FIND"; then |
| 6934 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6935 | echo "${ECHO_T}$FIND" >&6; } |
| 6936 | else |
| 6937 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6938 | echo "${ECHO_T}no" >&6; } |
| 6939 | fi |
| 6940 | |
| 6941 | |
| 6942 | # Extract the first word of "grep", so it can be a program name with args. |
| 6943 | set dummy grep; ac_word=$2 |
| 6944 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6946 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6948 | else |
| 6949 | case $GREP in |
| 6950 | [\\/]* | ?:[\\/]*) |
| 6951 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6952 | ;; |
| 6953 | *) |
| 6954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6955 | for as_dir in $PATH |
| 6956 | do |
| 6957 | IFS=$as_save_IFS |
| 6958 | test -z "$as_dir" && as_dir=. |
| 6959 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6960 | 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] | 6961 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6962 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6963 | break 2 |
| 6964 | fi |
| 6965 | done |
| 6966 | done |
| 6967 | IFS=$as_save_IFS |
| 6968 | |
| 6969 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6970 | ;; |
| 6971 | esac |
| 6972 | fi |
| 6973 | GREP=$ac_cv_path_GREP |
| 6974 | if test -n "$GREP"; then |
| 6975 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6976 | echo "${ECHO_T}$GREP" >&6; } |
| 6977 | else |
| 6978 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6979 | echo "${ECHO_T}no" >&6; } |
| 6980 | fi |
| 6981 | |
| 6982 | |
| 6983 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6984 | set dummy mkdir; ac_word=$2 |
| 6985 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6987 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6989 | else |
| 6990 | case $MKDIR in |
| 6991 | [\\/]* | ?:[\\/]*) |
| 6992 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6993 | ;; |
| 6994 | *) |
| 6995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6996 | for as_dir in $PATH |
| 6997 | do |
| 6998 | IFS=$as_save_IFS |
| 6999 | test -z "$as_dir" && as_dir=. |
| 7000 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7001 | 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] | 7002 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 7003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7004 | break 2 |
| 7005 | fi |
| 7006 | done |
| 7007 | done |
| 7008 | IFS=$as_save_IFS |
| 7009 | |
| 7010 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 7011 | ;; |
| 7012 | esac |
| 7013 | fi |
| 7014 | MKDIR=$ac_cv_path_MKDIR |
| 7015 | if test -n "$MKDIR"; then |
| 7016 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 7017 | echo "${ECHO_T}$MKDIR" >&6; } |
| 7018 | else |
| 7019 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7020 | echo "${ECHO_T}no" >&6; } |
| 7021 | fi |
| 7022 | |
| 7023 | |
| 7024 | # Extract the first word of "mv", so it can be a program name with args. |
| 7025 | set dummy mv; ac_word=$2 |
| 7026 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7028 | if test "${ac_cv_path_MV+set}" = set; then |
| 7029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7030 | else |
| 7031 | case $MV in |
| 7032 | [\\/]* | ?:[\\/]*) |
| 7033 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 7034 | ;; |
| 7035 | *) |
| 7036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7037 | for as_dir in $PATH |
| 7038 | do |
| 7039 | IFS=$as_save_IFS |
| 7040 | test -z "$as_dir" && as_dir=. |
| 7041 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7042 | 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] | 7043 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 7044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7045 | break 2 |
| 7046 | fi |
| 7047 | done |
| 7048 | done |
| 7049 | IFS=$as_save_IFS |
| 7050 | |
| 7051 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7052 | ;; |
| 7053 | esac |
| 7054 | fi |
| 7055 | MV=$ac_cv_path_MV |
| 7056 | if test -n "$MV"; then |
| 7057 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7058 | echo "${ECHO_T}$MV" >&6; } |
| 7059 | else |
| 7060 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7061 | echo "${ECHO_T}no" >&6; } |
| 7062 | fi |
| 7063 | |
| 7064 | |
| 7065 | if test -n "$ac_tool_prefix"; then |
| 7066 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7067 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7068 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7070 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7072 | else |
| 7073 | if test -n "$RANLIB"; then |
| 7074 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7075 | else |
| 7076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7077 | for as_dir in $PATH |
| 7078 | do |
| 7079 | IFS=$as_save_IFS |
| 7080 | test -z "$as_dir" && as_dir=. |
| 7081 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7082 | 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] | 7083 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7084 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7085 | break 2 |
| 7086 | fi |
| 7087 | done |
| 7088 | done |
| 7089 | IFS=$as_save_IFS |
| 7090 | |
| 7091 | fi |
| 7092 | fi |
| 7093 | RANLIB=$ac_cv_prog_RANLIB |
| 7094 | if test -n "$RANLIB"; then |
| 7095 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7096 | echo "${ECHO_T}$RANLIB" >&6; } |
| 7097 | else |
| 7098 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7099 | echo "${ECHO_T}no" >&6; } |
| 7100 | fi |
| 7101 | |
| 7102 | |
| 7103 | fi |
| 7104 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7105 | ac_ct_RANLIB=$RANLIB |
| 7106 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7107 | set dummy ranlib; ac_word=$2 |
| 7108 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7109 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7110 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7112 | else |
| 7113 | if test -n "$ac_ct_RANLIB"; then |
| 7114 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7115 | else |
| 7116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7117 | for as_dir in $PATH |
| 7118 | do |
| 7119 | IFS=$as_save_IFS |
| 7120 | test -z "$as_dir" && as_dir=. |
| 7121 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7122 | 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] | 7123 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7125 | break 2 |
| 7126 | fi |
| 7127 | done |
| 7128 | done |
| 7129 | IFS=$as_save_IFS |
| 7130 | |
| 7131 | fi |
| 7132 | fi |
| 7133 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7134 | if test -n "$ac_ct_RANLIB"; then |
| 7135 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7136 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 7137 | else |
| 7138 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7139 | echo "${ECHO_T}no" >&6; } |
| 7140 | fi |
| 7141 | |
| 7142 | if test "x$ac_ct_RANLIB" = x; then |
| 7143 | RANLIB=":" |
| 7144 | else |
| 7145 | case $cross_compiling:$ac_tool_warned in |
| 7146 | yes:) |
| 7147 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7148 | whose name does not start with the host triplet. If you think this |
| 7149 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7150 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7151 | whose name does not start with the host triplet. If you think this |
| 7152 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7153 | ac_tool_warned=yes ;; |
| 7154 | esac |
| 7155 | RANLIB=$ac_ct_RANLIB |
| 7156 | fi |
| 7157 | else |
| 7158 | RANLIB="$ac_cv_prog_RANLIB" |
| 7159 | fi |
| 7160 | |
| 7161 | # Extract the first word of "rm", so it can be a program name with args. |
| 7162 | set dummy rm; ac_word=$2 |
| 7163 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7165 | if test "${ac_cv_path_RM+set}" = set; then |
| 7166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7167 | else |
| 7168 | case $RM in |
| 7169 | [\\/]* | ?:[\\/]*) |
| 7170 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7171 | ;; |
| 7172 | *) |
| 7173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7174 | for as_dir in $PATH |
| 7175 | do |
| 7176 | IFS=$as_save_IFS |
| 7177 | test -z "$as_dir" && as_dir=. |
| 7178 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7179 | 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] | 7180 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 7181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7182 | break 2 |
| 7183 | fi |
| 7184 | done |
| 7185 | done |
| 7186 | IFS=$as_save_IFS |
| 7187 | |
| 7188 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7189 | ;; |
| 7190 | esac |
| 7191 | fi |
| 7192 | RM=$ac_cv_path_RM |
| 7193 | if test -n "$RM"; then |
| 7194 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7195 | echo "${ECHO_T}$RM" >&6; } |
| 7196 | else |
| 7197 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7198 | echo "${ECHO_T}no" >&6; } |
| 7199 | fi |
| 7200 | |
| 7201 | |
| 7202 | # Extract the first word of "sed", so it can be a program name with args. |
| 7203 | set dummy sed; ac_word=$2 |
| 7204 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7206 | if test "${ac_cv_path_SED+set}" = set; then |
| 7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7208 | else |
| 7209 | case $SED in |
| 7210 | [\\/]* | ?:[\\/]*) |
| 7211 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7212 | ;; |
| 7213 | *) |
| 7214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7215 | for as_dir in $PATH |
| 7216 | do |
| 7217 | IFS=$as_save_IFS |
| 7218 | test -z "$as_dir" && as_dir=. |
| 7219 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7221 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 7222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7223 | break 2 |
| 7224 | fi |
| 7225 | done |
| 7226 | done |
| 7227 | IFS=$as_save_IFS |
| 7228 | |
| 7229 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7230 | ;; |
| 7231 | esac |
| 7232 | fi |
| 7233 | SED=$ac_cv_path_SED |
| 7234 | if test -n "$SED"; then |
| 7235 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7236 | echo "${ECHO_T}$SED" >&6; } |
| 7237 | else |
| 7238 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7239 | echo "${ECHO_T}no" >&6; } |
| 7240 | fi |
| 7241 | |
| 7242 | |
| 7243 | # Extract the first word of "tar", so it can be a program name with args. |
| 7244 | set dummy tar; ac_word=$2 |
| 7245 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7247 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7249 | else |
| 7250 | case $TAR in |
| 7251 | [\\/]* | ?:[\\/]*) |
| 7252 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7253 | ;; |
| 7254 | *) |
| 7255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7256 | for as_dir in $PATH |
| 7257 | do |
| 7258 | IFS=$as_save_IFS |
| 7259 | test -z "$as_dir" && as_dir=. |
| 7260 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7261 | 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] | 7262 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7264 | break 2 |
| 7265 | fi |
| 7266 | done |
| 7267 | done |
| 7268 | IFS=$as_save_IFS |
| 7269 | |
| 7270 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7271 | ;; |
| 7272 | esac |
| 7273 | fi |
| 7274 | TAR=$ac_cv_path_TAR |
| 7275 | if test -n "$TAR"; then |
| 7276 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7277 | echo "${ECHO_T}$TAR" >&6; } |
| 7278 | else |
| 7279 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7280 | echo "${ECHO_T}no" >&6; } |
| 7281 | fi |
| 7282 | |
| 7283 | |
| 7284 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7285 | set dummy pwd; ac_word=$2 |
| 7286 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7288 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7290 | else |
| 7291 | case $BINPWD in |
| 7292 | [\\/]* | ?:[\\/]*) |
| 7293 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7294 | ;; |
| 7295 | *) |
| 7296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7297 | for as_dir in $PATH |
| 7298 | do |
| 7299 | IFS=$as_save_IFS |
| 7300 | test -z "$as_dir" && as_dir=. |
| 7301 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7302 | 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] | 7303 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7305 | break 2 |
| 7306 | fi |
| 7307 | done |
| 7308 | done |
| 7309 | IFS=$as_save_IFS |
| 7310 | |
| 7311 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7312 | ;; |
| 7313 | esac |
| 7314 | fi |
| 7315 | BINPWD=$ac_cv_path_BINPWD |
| 7316 | if test -n "$BINPWD"; then |
| 7317 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7318 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7319 | else |
| 7320 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7321 | echo "${ECHO_T}no" >&6; } |
| 7322 | fi |
| 7323 | |
| 7324 | |
| 7325 | |
| 7326 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7327 | set dummy Graphviz; ac_word=$2 |
| 7328 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7330 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7332 | else |
| 7333 | case $GRAPHVIZ in |
| 7334 | [\\/]* | ?:[\\/]*) |
| 7335 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7336 | ;; |
| 7337 | *) |
| 7338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7339 | for as_dir in $PATH |
| 7340 | do |
| 7341 | IFS=$as_save_IFS |
| 7342 | test -z "$as_dir" && as_dir=. |
| 7343 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7344 | 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] | 7345 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7346 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7347 | break 2 |
| 7348 | fi |
| 7349 | done |
| 7350 | done |
| 7351 | IFS=$as_save_IFS |
| 7352 | |
| 7353 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7354 | ;; |
| 7355 | esac |
| 7356 | fi |
| 7357 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7358 | if test -n "$GRAPHVIZ"; then |
| 7359 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7360 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7361 | else |
| 7362 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7363 | echo "${ECHO_T}no" >&6; } |
| 7364 | fi |
| 7365 | |
| 7366 | |
| 7367 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7368 | |
| 7369 | cat >>confdefs.h <<\_ACEOF |
| 7370 | #define HAVE_GRAPHVIZ 1 |
| 7371 | _ACEOF |
| 7372 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7373 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7374 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7375 | fi |
| 7376 | |
| 7377 | cat >>confdefs.h <<_ACEOF |
| 7378 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7379 | _ACEOF |
| 7380 | |
| 7381 | fi |
| 7382 | # Extract the first word of "dot", so it can be a program name with args. |
| 7383 | set dummy dot; ac_word=$2 |
| 7384 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7386 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7388 | else |
| 7389 | case $DOT in |
| 7390 | [\\/]* | ?:[\\/]*) |
| 7391 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7392 | ;; |
| 7393 | *) |
| 7394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7395 | for as_dir in $PATH |
| 7396 | do |
| 7397 | IFS=$as_save_IFS |
| 7398 | test -z "$as_dir" && as_dir=. |
| 7399 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7400 | 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] | 7401 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7403 | break 2 |
| 7404 | fi |
| 7405 | done |
| 7406 | done |
| 7407 | IFS=$as_save_IFS |
| 7408 | |
| 7409 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7410 | ;; |
| 7411 | esac |
| 7412 | fi |
| 7413 | DOT=$ac_cv_path_DOT |
| 7414 | if test -n "$DOT"; then |
| 7415 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7416 | echo "${ECHO_T}$DOT" >&6; } |
| 7417 | else |
| 7418 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7419 | echo "${ECHO_T}no" >&6; } |
| 7420 | fi |
| 7421 | |
| 7422 | |
| 7423 | if test "$DOT" != "echo dot" ; then |
| 7424 | |
| 7425 | cat >>confdefs.h <<\_ACEOF |
| 7426 | #define HAVE_DOT 1 |
| 7427 | _ACEOF |
| 7428 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7429 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7430 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7431 | fi |
| 7432 | |
| 7433 | cat >>confdefs.h <<_ACEOF |
| 7434 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7435 | _ACEOF |
| 7436 | |
| 7437 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7438 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7439 | set dummy fdp; ac_word=$2 |
| 7440 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7442 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7444 | else |
| 7445 | case $FDP in |
| 7446 | [\\/]* | ?:[\\/]*) |
| 7447 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7448 | ;; |
| 7449 | *) |
| 7450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7451 | for as_dir in $PATH |
| 7452 | do |
| 7453 | IFS=$as_save_IFS |
| 7454 | test -z "$as_dir" && as_dir=. |
| 7455 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7457 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
| 7458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7459 | break 2 |
| 7460 | fi |
| 7461 | done |
| 7462 | done |
| 7463 | IFS=$as_save_IFS |
| 7464 | |
| 7465 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7466 | ;; |
| 7467 | esac |
| 7468 | fi |
| 7469 | FDP=$ac_cv_path_FDP |
| 7470 | if test -n "$FDP"; then |
| 7471 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7472 | echo "${ECHO_T}$FDP" >&6; } |
| 7473 | else |
| 7474 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7475 | echo "${ECHO_T}no" >&6; } |
| 7476 | fi |
| 7477 | |
| 7478 | |
| 7479 | if test "$FDP" != "echo fdp" ; then |
| 7480 | |
| 7481 | cat >>confdefs.h <<\_ACEOF |
| 7482 | #define HAVE_FDP 1 |
| 7483 | _ACEOF |
| 7484 | |
| 7485 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7486 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7487 | fi |
| 7488 | |
| 7489 | cat >>confdefs.h <<_ACEOF |
| 7490 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7491 | _ACEOF |
| 7492 | |
| 7493 | fi |
| 7494 | # Extract the first word of "neato", so it can be a program name with args. |
| 7495 | set dummy neato; ac_word=$2 |
| 7496 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7498 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7500 | else |
| 7501 | case $NEATO in |
| 7502 | [\\/]* | ?:[\\/]*) |
| 7503 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7504 | ;; |
| 7505 | *) |
| 7506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7507 | for as_dir in $PATH |
| 7508 | do |
| 7509 | IFS=$as_save_IFS |
| 7510 | test -z "$as_dir" && as_dir=. |
| 7511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7513 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
| 7514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7515 | break 2 |
| 7516 | fi |
| 7517 | done |
| 7518 | done |
| 7519 | IFS=$as_save_IFS |
| 7520 | |
| 7521 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7522 | ;; |
| 7523 | esac |
| 7524 | fi |
| 7525 | NEATO=$ac_cv_path_NEATO |
| 7526 | if test -n "$NEATO"; then |
| 7527 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7528 | echo "${ECHO_T}$NEATO" >&6; } |
| 7529 | else |
| 7530 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7531 | echo "${ECHO_T}no" >&6; } |
| 7532 | fi |
| 7533 | |
| 7534 | |
| 7535 | if test "$NEATO" != "echo neato" ; then |
| 7536 | |
| 7537 | cat >>confdefs.h <<\_ACEOF |
| 7538 | #define HAVE_NEATO 1 |
| 7539 | _ACEOF |
| 7540 | |
| 7541 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7542 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7543 | fi |
| 7544 | |
| 7545 | cat >>confdefs.h <<_ACEOF |
| 7546 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7547 | _ACEOF |
| 7548 | |
| 7549 | fi |
| 7550 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7551 | set dummy twopi; ac_word=$2 |
| 7552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7554 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7556 | else |
| 7557 | case $TWOPI in |
| 7558 | [\\/]* | ?:[\\/]*) |
| 7559 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7560 | ;; |
| 7561 | *) |
| 7562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7563 | for as_dir in $PATH |
| 7564 | do |
| 7565 | IFS=$as_save_IFS |
| 7566 | test -z "$as_dir" && as_dir=. |
| 7567 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7569 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
| 7570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7571 | break 2 |
| 7572 | fi |
| 7573 | done |
| 7574 | done |
| 7575 | IFS=$as_save_IFS |
| 7576 | |
| 7577 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7578 | ;; |
| 7579 | esac |
| 7580 | fi |
| 7581 | TWOPI=$ac_cv_path_TWOPI |
| 7582 | if test -n "$TWOPI"; then |
| 7583 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7584 | echo "${ECHO_T}$TWOPI" >&6; } |
| 7585 | else |
| 7586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7587 | echo "${ECHO_T}no" >&6; } |
| 7588 | fi |
| 7589 | |
| 7590 | |
| 7591 | if test "$TWOPI" != "echo twopi" ; then |
| 7592 | |
| 7593 | cat >>confdefs.h <<\_ACEOF |
| 7594 | #define HAVE_TWOPI 1 |
| 7595 | _ACEOF |
| 7596 | |
| 7597 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7598 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7599 | fi |
| 7600 | |
| 7601 | cat >>confdefs.h <<_ACEOF |
| 7602 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7603 | _ACEOF |
| 7604 | |
| 7605 | fi |
| 7606 | # Extract the first word of "circo", so it can be a program name with args. |
| 7607 | set dummy circo; ac_word=$2 |
| 7608 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7610 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7612 | else |
| 7613 | case $CIRCO in |
| 7614 | [\\/]* | ?:[\\/]*) |
| 7615 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7616 | ;; |
| 7617 | *) |
| 7618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7619 | for as_dir in $PATH |
| 7620 | do |
| 7621 | IFS=$as_save_IFS |
| 7622 | test -z "$as_dir" && as_dir=. |
| 7623 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7625 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
| 7626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7627 | break 2 |
| 7628 | fi |
| 7629 | done |
| 7630 | done |
| 7631 | IFS=$as_save_IFS |
| 7632 | |
| 7633 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7634 | ;; |
| 7635 | esac |
| 7636 | fi |
| 7637 | CIRCO=$ac_cv_path_CIRCO |
| 7638 | if test -n "$CIRCO"; then |
| 7639 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7640 | echo "${ECHO_T}$CIRCO" >&6; } |
| 7641 | else |
| 7642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7643 | echo "${ECHO_T}no" >&6; } |
| 7644 | fi |
| 7645 | |
| 7646 | |
| 7647 | if test "$CIRCO" != "echo circo" ; then |
| 7648 | |
| 7649 | cat >>confdefs.h <<\_ACEOF |
| 7650 | #define HAVE_CIRCO 1 |
| 7651 | _ACEOF |
| 7652 | |
| 7653 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7654 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7655 | fi |
| 7656 | |
| 7657 | cat >>confdefs.h <<_ACEOF |
| 7658 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7659 | _ACEOF |
| 7660 | |
| 7661 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7662 | for ac_prog in gv gsview32 |
| 7663 | do |
| 7664 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7665 | set dummy $ac_prog; ac_word=$2 |
| 7666 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7668 | if test "${ac_cv_path_GV+set}" = set; then |
| 7669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7670 | else |
| 7671 | case $GV in |
| 7672 | [\\/]* | ?:[\\/]*) |
| 7673 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7674 | ;; |
| 7675 | *) |
| 7676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7677 | for as_dir in $PATH |
| 7678 | do |
| 7679 | IFS=$as_save_IFS |
| 7680 | test -z "$as_dir" && as_dir=. |
| 7681 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7682 | 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] | 7683 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7685 | break 2 |
| 7686 | fi |
| 7687 | done |
| 7688 | done |
| 7689 | IFS=$as_save_IFS |
| 7690 | |
| 7691 | ;; |
| 7692 | esac |
| 7693 | fi |
| 7694 | GV=$ac_cv_path_GV |
| 7695 | if test -n "$GV"; then |
| 7696 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7697 | echo "${ECHO_T}$GV" >&6; } |
| 7698 | else |
| 7699 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7700 | echo "${ECHO_T}no" >&6; } |
| 7701 | fi |
| 7702 | |
| 7703 | |
| 7704 | test -n "$GV" && break |
| 7705 | done |
| 7706 | test -n "$GV" || GV="echo gv" |
| 7707 | |
| 7708 | if test "$GV" != "echo gv" ; then |
| 7709 | |
| 7710 | cat >>confdefs.h <<\_ACEOF |
| 7711 | #define HAVE_GV 1 |
| 7712 | _ACEOF |
| 7713 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7714 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7715 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7716 | fi |
| 7717 | |
| 7718 | cat >>confdefs.h <<_ACEOF |
| 7719 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7720 | _ACEOF |
| 7721 | |
| 7722 | fi |
| 7723 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7724 | set dummy dotty; ac_word=$2 |
| 7725 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7727 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7729 | else |
| 7730 | case $DOTTY in |
| 7731 | [\\/]* | ?:[\\/]*) |
| 7732 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7733 | ;; |
| 7734 | *) |
| 7735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7736 | for as_dir in $PATH |
| 7737 | do |
| 7738 | IFS=$as_save_IFS |
| 7739 | test -z "$as_dir" && as_dir=. |
| 7740 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7741 | 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] | 7742 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7744 | break 2 |
| 7745 | fi |
| 7746 | done |
| 7747 | done |
| 7748 | IFS=$as_save_IFS |
| 7749 | |
| 7750 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7751 | ;; |
| 7752 | esac |
| 7753 | fi |
| 7754 | DOTTY=$ac_cv_path_DOTTY |
| 7755 | if test -n "$DOTTY"; then |
| 7756 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7757 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7758 | else |
| 7759 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7760 | echo "${ECHO_T}no" >&6; } |
| 7761 | fi |
| 7762 | |
| 7763 | |
| 7764 | if test "$DOTTY" != "echo dotty" ; then |
| 7765 | |
| 7766 | cat >>confdefs.h <<\_ACEOF |
| 7767 | #define HAVE_DOTTY 1 |
| 7768 | _ACEOF |
| 7769 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7770 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7771 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7772 | fi |
| 7773 | |
| 7774 | cat >>confdefs.h <<_ACEOF |
| 7775 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7776 | _ACEOF |
| 7777 | |
| 7778 | fi |
| 7779 | |
| 7780 | |
| 7781 | # Extract the first word of "perl", so it can be a program name with args. |
| 7782 | set dummy perl; ac_word=$2 |
| 7783 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7785 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7787 | else |
| 7788 | case $PERL in |
| 7789 | [\\/]* | ?:[\\/]*) |
| 7790 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7791 | ;; |
| 7792 | *) |
| 7793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7794 | for as_dir in $PATH |
| 7795 | do |
| 7796 | IFS=$as_save_IFS |
| 7797 | test -z "$as_dir" && as_dir=. |
| 7798 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7799 | 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] | 7800 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7801 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7802 | break 2 |
| 7803 | fi |
| 7804 | done |
| 7805 | done |
| 7806 | IFS=$as_save_IFS |
| 7807 | |
| 7808 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7809 | ;; |
| 7810 | esac |
| 7811 | fi |
| 7812 | PERL=$ac_cv_path_PERL |
| 7813 | if test -n "$PERL"; then |
| 7814 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7815 | echo "${ECHO_T}$PERL" >&6; } |
| 7816 | else |
| 7817 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7818 | echo "${ECHO_T}no" >&6; } |
| 7819 | fi |
| 7820 | |
| 7821 | |
| 7822 | if test "$PERL" != "none"; then |
| 7823 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7824 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7825 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7826 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7827 | echo "${ECHO_T}yes" >&6; } |
| 7828 | else |
| 7829 | PERL=none |
| 7830 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7831 | echo "${ECHO_T}not found" >&6; } |
| 7832 | fi |
| 7833 | fi |
| 7834 | |
| 7835 | |
| 7836 | if test x"$PERL" = xnone; then |
| 7837 | HAVE_PERL=0 |
| 7838 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7839 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7840 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7841 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7842 | else |
| 7843 | HAVE_PERL=1 |
| 7844 | |
| 7845 | fi |
| 7846 | |
| 7847 | # Find a good install program. We prefer a C program (faster), |
| 7848 | # so one script is as good as another. But avoid the broken or |
| 7849 | # incompatible versions: |
| 7850 | # SysV /etc/install, /usr/sbin/install |
| 7851 | # SunOS /usr/etc/install |
| 7852 | # IRIX /sbin/install |
| 7853 | # AIX /bin/install |
| 7854 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7855 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7856 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7857 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7858 | # OS/2's system install, which has a completely different semantic |
| 7859 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7860 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7861 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7862 | if test -z "$INSTALL"; then |
| 7863 | if test "${ac_cv_path_install+set}" = set; then |
| 7864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7865 | else |
| 7866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7867 | for as_dir in $PATH |
| 7868 | do |
| 7869 | IFS=$as_save_IFS |
| 7870 | test -z "$as_dir" && as_dir=. |
| 7871 | # Account for people who put trailing slashes in PATH elements. |
| 7872 | case $as_dir/ in |
| 7873 | ./ | .// | /cC/* | \ |
| 7874 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7875 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7876 | /usr/ucb/* ) ;; |
| 7877 | *) |
| 7878 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7879 | # Don't use installbsd from OSF since it installs stuff as root |
| 7880 | # by default. |
| 7881 | for ac_prog in ginstall scoinst install; do |
| 7882 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7883 | 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] | 7884 | if test $ac_prog = install && |
| 7885 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7886 | # AIX install. It has an incompatible calling convention. |
| 7887 | : |
| 7888 | elif test $ac_prog = install && |
| 7889 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7890 | # program-specific install script used by HP pwplus--don't use. |
| 7891 | : |
| 7892 | else |
| 7893 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7894 | break 3 |
| 7895 | fi |
| 7896 | fi |
| 7897 | done |
| 7898 | done |
| 7899 | ;; |
| 7900 | esac |
| 7901 | done |
| 7902 | IFS=$as_save_IFS |
| 7903 | |
| 7904 | |
| 7905 | fi |
| 7906 | if test "${ac_cv_path_install+set}" = set; then |
| 7907 | INSTALL=$ac_cv_path_install |
| 7908 | else |
| 7909 | # As a last resort, use the slow shell script. Don't cache a |
| 7910 | # value for INSTALL within a source directory, because that will |
| 7911 | # break other packages using the cache if that directory is |
| 7912 | # removed, or if the value is a relative name. |
| 7913 | INSTALL=$ac_install_sh |
| 7914 | fi |
| 7915 | fi |
| 7916 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7917 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7918 | |
| 7919 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7920 | # It thinks the first close brace ends the variable substitution. |
| 7921 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7922 | |
| 7923 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7924 | |
| 7925 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7926 | |
| 7927 | |
| 7928 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7929 | set dummy bzip2; ac_word=$2 |
| 7930 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7932 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7934 | else |
| 7935 | case $BZIP2 in |
| 7936 | [\\/]* | ?:[\\/]*) |
| 7937 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7938 | ;; |
| 7939 | *) |
| 7940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7941 | for as_dir in $PATH |
| 7942 | do |
| 7943 | IFS=$as_save_IFS |
| 7944 | test -z "$as_dir" && as_dir=. |
| 7945 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7946 | 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] | 7947 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7949 | break 2 |
| 7950 | fi |
| 7951 | done |
| 7952 | done |
| 7953 | IFS=$as_save_IFS |
| 7954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7955 | ;; |
| 7956 | esac |
| 7957 | fi |
| 7958 | BZIP2=$ac_cv_path_BZIP2 |
| 7959 | if test -n "$BZIP2"; then |
| 7960 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7961 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7962 | else |
| 7963 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7964 | echo "${ECHO_T}no" >&6; } |
| 7965 | fi |
| 7966 | |
| 7967 | |
| 7968 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7969 | set dummy doxygen; ac_word=$2 |
| 7970 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7972 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7974 | else |
| 7975 | case $DOXYGEN in |
| 7976 | [\\/]* | ?:[\\/]*) |
| 7977 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7978 | ;; |
| 7979 | *) |
| 7980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7981 | for as_dir in $PATH |
| 7982 | do |
| 7983 | IFS=$as_save_IFS |
| 7984 | test -z "$as_dir" && as_dir=. |
| 7985 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7986 | 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] | 7987 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7989 | break 2 |
| 7990 | fi |
| 7991 | done |
| 7992 | done |
| 7993 | IFS=$as_save_IFS |
| 7994 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7995 | ;; |
| 7996 | esac |
| 7997 | fi |
| 7998 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7999 | if test -n "$DOXYGEN"; then |
| 8000 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8001 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 8002 | else |
| 8003 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8004 | echo "${ECHO_T}no" >&6; } |
| 8005 | fi |
| 8006 | |
| 8007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8008 | # Extract the first word of "groff", so it can be a program name with args. |
| 8009 | set dummy groff; ac_word=$2 |
| 8010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8012 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8014 | else |
| 8015 | case $GROFF in |
| 8016 | [\\/]* | ?:[\\/]*) |
| 8017 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8018 | ;; |
| 8019 | *) |
| 8020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8021 | for as_dir in $PATH |
| 8022 | do |
| 8023 | IFS=$as_save_IFS |
| 8024 | test -z "$as_dir" && as_dir=. |
| 8025 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8026 | 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] | 8027 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 8028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8029 | break 2 |
| 8030 | fi |
| 8031 | done |
| 8032 | done |
| 8033 | IFS=$as_save_IFS |
| 8034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8035 | ;; |
| 8036 | esac |
| 8037 | fi |
| 8038 | GROFF=$ac_cv_path_GROFF |
| 8039 | if test -n "$GROFF"; then |
| 8040 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8041 | echo "${ECHO_T}$GROFF" >&6; } |
| 8042 | else |
| 8043 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8044 | echo "${ECHO_T}no" >&6; } |
| 8045 | fi |
| 8046 | |
| 8047 | |
| 8048 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8049 | set dummy gzip; ac_word=$2 |
| 8050 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8052 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8054 | else |
| 8055 | case $GZIP in |
| 8056 | [\\/]* | ?:[\\/]*) |
| 8057 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8058 | ;; |
| 8059 | *) |
| 8060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8061 | for as_dir in $PATH |
| 8062 | do |
| 8063 | IFS=$as_save_IFS |
| 8064 | test -z "$as_dir" && as_dir=. |
| 8065 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8066 | 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] | 8067 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 8068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8069 | break 2 |
| 8070 | fi |
| 8071 | done |
| 8072 | done |
| 8073 | IFS=$as_save_IFS |
| 8074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8075 | ;; |
| 8076 | esac |
| 8077 | fi |
| 8078 | GZIP=$ac_cv_path_GZIP |
| 8079 | if test -n "$GZIP"; then |
| 8080 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8081 | echo "${ECHO_T}$GZIP" >&6; } |
| 8082 | else |
| 8083 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8084 | echo "${ECHO_T}no" >&6; } |
| 8085 | fi |
| 8086 | |
| 8087 | |
| 8088 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8089 | set dummy pod2html; ac_word=$2 |
| 8090 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8092 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8094 | else |
| 8095 | case $POD2HTML in |
| 8096 | [\\/]* | ?:[\\/]*) |
| 8097 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8098 | ;; |
| 8099 | *) |
| 8100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8101 | for as_dir in $PATH |
| 8102 | do |
| 8103 | IFS=$as_save_IFS |
| 8104 | test -z "$as_dir" && as_dir=. |
| 8105 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8106 | 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] | 8107 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 8108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8109 | break 2 |
| 8110 | fi |
| 8111 | done |
| 8112 | done |
| 8113 | IFS=$as_save_IFS |
| 8114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8115 | ;; |
| 8116 | esac |
| 8117 | fi |
| 8118 | POD2HTML=$ac_cv_path_POD2HTML |
| 8119 | if test -n "$POD2HTML"; then |
| 8120 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8121 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 8122 | else |
| 8123 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8124 | echo "${ECHO_T}no" >&6; } |
| 8125 | fi |
| 8126 | |
| 8127 | |
| 8128 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8129 | set dummy pod2man; ac_word=$2 |
| 8130 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8132 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8134 | else |
| 8135 | case $POD2MAN in |
| 8136 | [\\/]* | ?:[\\/]*) |
| 8137 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8138 | ;; |
| 8139 | *) |
| 8140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8141 | for as_dir in $PATH |
| 8142 | do |
| 8143 | IFS=$as_save_IFS |
| 8144 | test -z "$as_dir" && as_dir=. |
| 8145 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8146 | 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] | 8147 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 8148 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8149 | break 2 |
| 8150 | fi |
| 8151 | done |
| 8152 | done |
| 8153 | IFS=$as_save_IFS |
| 8154 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8155 | ;; |
| 8156 | esac |
| 8157 | fi |
| 8158 | POD2MAN=$ac_cv_path_POD2MAN |
| 8159 | if test -n "$POD2MAN"; then |
| 8160 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8161 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 8162 | else |
| 8163 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8164 | echo "${ECHO_T}no" >&6; } |
| 8165 | fi |
| 8166 | |
| 8167 | |
| 8168 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8169 | set dummy runtest; ac_word=$2 |
| 8170 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8172 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8174 | else |
| 8175 | case $RUNTEST in |
| 8176 | [\\/]* | ?:[\\/]*) |
| 8177 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8178 | ;; |
| 8179 | *) |
| 8180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8181 | for as_dir in $PATH |
| 8182 | do |
| 8183 | IFS=$as_save_IFS |
| 8184 | test -z "$as_dir" && as_dir=. |
| 8185 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8186 | 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] | 8187 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 8188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8189 | break 2 |
| 8190 | fi |
| 8191 | done |
| 8192 | done |
| 8193 | IFS=$as_save_IFS |
| 8194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8195 | ;; |
| 8196 | esac |
| 8197 | fi |
| 8198 | RUNTEST=$ac_cv_path_RUNTEST |
| 8199 | if test -n "$RUNTEST"; then |
| 8200 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8201 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 8202 | else |
| 8203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8204 | echo "${ECHO_T}no" >&6; } |
| 8205 | fi |
| 8206 | |
| 8207 | |
| 8208 | |
| 8209 | no_itcl=true |
| 8210 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8211 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 8212 | |
| 8213 | # Check whether --with-tclinclude was given. |
| 8214 | if test "${with_tclinclude+set}" = set; then |
| 8215 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8216 | else |
| 8217 | with_tclinclude='' |
| 8218 | fi |
| 8219 | |
| 8220 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8222 | else |
| 8223 | |
| 8224 | if test x"${with_tclinclude}" != x ; then |
| 8225 | if test -f ${with_tclinclude}/tclsh ; then |
| 8226 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8227 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8228 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8229 | else |
| 8230 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8231 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8232 | { (exit 1); exit 1; }; } |
| 8233 | fi |
| 8234 | fi |
| 8235 | |
| 8236 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 8237 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8238 | echo "${ECHO_T}none" >&6; } |
| 8239 | 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 |
| 8240 | do |
| 8241 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8242 | set dummy $ac_prog; ac_word=$2 |
| 8243 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8244 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8245 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8247 | else |
| 8248 | case $TCLSH in |
| 8249 | [\\/]* | ?:[\\/]*) |
| 8250 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8251 | ;; |
| 8252 | *) |
| 8253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8254 | for as_dir in $PATH |
| 8255 | do |
| 8256 | IFS=$as_save_IFS |
| 8257 | test -z "$as_dir" && as_dir=. |
| 8258 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8259 | 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] | 8260 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 8261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8262 | break 2 |
| 8263 | fi |
| 8264 | done |
| 8265 | done |
| 8266 | IFS=$as_save_IFS |
| 8267 | |
| 8268 | ;; |
| 8269 | esac |
| 8270 | fi |
| 8271 | TCLSH=$ac_cv_path_TCLSH |
| 8272 | if test -n "$TCLSH"; then |
| 8273 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8274 | echo "${ECHO_T}$TCLSH" >&6; } |
| 8275 | else |
| 8276 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8277 | echo "${ECHO_T}no" >&6; } |
| 8278 | fi |
| 8279 | |
| 8280 | |
| 8281 | test -n "$TCLSH" && break |
| 8282 | done |
| 8283 | |
| 8284 | if test x"${TCLSH}" = x ; then |
| 8285 | ac_cv_path_tclsh=''; |
| 8286 | else |
| 8287 | ac_cv_path_tclsh="${TCLSH}"; |
| 8288 | fi |
| 8289 | else |
| 8290 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8291 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 8292 | TCLSH="${ac_cv_path_tclsh}" |
| 8293 | |
| 8294 | fi |
| 8295 | |
| 8296 | fi |
| 8297 | |
| 8298 | # Extract the first word of "zip", so it can be a program name with args. |
| 8299 | set dummy zip; ac_word=$2 |
| 8300 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8302 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8304 | else |
| 8305 | case $ZIP in |
| 8306 | [\\/]* | ?:[\\/]*) |
| 8307 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8308 | ;; |
| 8309 | *) |
| 8310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8311 | for as_dir in $PATH |
| 8312 | do |
| 8313 | IFS=$as_save_IFS |
| 8314 | test -z "$as_dir" && as_dir=. |
| 8315 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8316 | 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] | 8317 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 8318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8319 | break 2 |
| 8320 | fi |
| 8321 | done |
| 8322 | done |
| 8323 | IFS=$as_save_IFS |
| 8324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8325 | ;; |
| 8326 | esac |
| 8327 | fi |
| 8328 | ZIP=$ac_cv_path_ZIP |
| 8329 | if test -n "$ZIP"; then |
| 8330 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8331 | echo "${ECHO_T}$ZIP" >&6; } |
| 8332 | else |
| 8333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8334 | echo "${ECHO_T}no" >&6; } |
| 8335 | fi |
| 8336 | |
| 8337 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8338 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8339 | do |
| 8340 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8341 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8342 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8344 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8346 | else |
| 8347 | case $OCAMLC in |
| 8348 | [\\/]* | ?:[\\/]*) |
| 8349 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8350 | ;; |
| 8351 | *) |
| 8352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8353 | for as_dir in $PATH |
| 8354 | do |
| 8355 | IFS=$as_save_IFS |
| 8356 | test -z "$as_dir" && as_dir=. |
| 8357 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8358 | 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] | 8359 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 8360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8361 | break 2 |
| 8362 | fi |
| 8363 | done |
| 8364 | done |
| 8365 | IFS=$as_save_IFS |
| 8366 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8367 | ;; |
| 8368 | esac |
| 8369 | fi |
| 8370 | OCAMLC=$ac_cv_path_OCAMLC |
| 8371 | if test -n "$OCAMLC"; then |
| 8372 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8373 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 8374 | else |
| 8375 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8376 | echo "${ECHO_T}no" >&6; } |
| 8377 | fi |
| 8378 | |
| 8379 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8380 | test -n "$OCAMLC" && break |
| 8381 | done |
| 8382 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8383 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8384 | do |
| 8385 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8386 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8389 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8391 | else |
| 8392 | case $OCAMLOPT in |
| 8393 | [\\/]* | ?:[\\/]*) |
| 8394 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8395 | ;; |
| 8396 | *) |
| 8397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8398 | for as_dir in $PATH |
| 8399 | do |
| 8400 | IFS=$as_save_IFS |
| 8401 | test -z "$as_dir" && as_dir=. |
| 8402 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8403 | 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] | 8404 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8405 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8406 | break 2 |
| 8407 | fi |
| 8408 | done |
| 8409 | done |
| 8410 | IFS=$as_save_IFS |
| 8411 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8412 | ;; |
| 8413 | esac |
| 8414 | fi |
| 8415 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8416 | if test -n "$OCAMLOPT"; then |
| 8417 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8418 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 8419 | else |
| 8420 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8421 | echo "${ECHO_T}no" >&6; } |
| 8422 | fi |
| 8423 | |
| 8424 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8425 | test -n "$OCAMLOPT" && break |
| 8426 | done |
| 8427 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8428 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8429 | do |
| 8430 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8431 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8432 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8434 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8436 | else |
| 8437 | case $OCAMLDEP in |
| 8438 | [\\/]* | ?:[\\/]*) |
| 8439 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8440 | ;; |
| 8441 | *) |
| 8442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8443 | for as_dir in $PATH |
| 8444 | do |
| 8445 | IFS=$as_save_IFS |
| 8446 | test -z "$as_dir" && as_dir=. |
| 8447 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8448 | 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] | 8449 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 8450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8451 | break 2 |
| 8452 | fi |
| 8453 | done |
| 8454 | done |
| 8455 | IFS=$as_save_IFS |
| 8456 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8457 | ;; |
| 8458 | esac |
| 8459 | fi |
| 8460 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8461 | if test -n "$OCAMLDEP"; then |
| 8462 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8463 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 8464 | else |
| 8465 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8466 | echo "${ECHO_T}no" >&6; } |
| 8467 | fi |
| 8468 | |
| 8469 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8470 | test -n "$OCAMLDEP" && break |
| 8471 | done |
| 8472 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8473 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8474 | do |
| 8475 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8476 | set dummy $ac_prog; ac_word=$2 |
| 8477 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8479 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8481 | else |
| 8482 | case $OCAMLDOC in |
| 8483 | [\\/]* | ?:[\\/]*) |
| 8484 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8485 | ;; |
| 8486 | *) |
| 8487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8488 | for as_dir in $PATH |
| 8489 | do |
| 8490 | IFS=$as_save_IFS |
| 8491 | test -z "$as_dir" && as_dir=. |
| 8492 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8493 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8494 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 8495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8496 | break 2 |
| 8497 | fi |
| 8498 | done |
| 8499 | done |
| 8500 | IFS=$as_save_IFS |
| 8501 | |
| 8502 | ;; |
| 8503 | esac |
| 8504 | fi |
| 8505 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8506 | if test -n "$OCAMLDOC"; then |
| 8507 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8508 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 8509 | else |
| 8510 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8511 | echo "${ECHO_T}no" >&6; } |
| 8512 | fi |
| 8513 | |
| 8514 | |
| 8515 | test -n "$OCAMLDOC" && break |
| 8516 | done |
| 8517 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8518 | for ac_prog in gas as |
| 8519 | do |
| 8520 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8521 | set dummy $ac_prog; ac_word=$2 |
| 8522 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8524 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8526 | else |
| 8527 | case $GAS in |
| 8528 | [\\/]* | ?:[\\/]*) |
| 8529 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8530 | ;; |
| 8531 | *) |
| 8532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8533 | for as_dir in $PATH |
| 8534 | do |
| 8535 | IFS=$as_save_IFS |
| 8536 | test -z "$as_dir" && as_dir=. |
| 8537 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8538 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8539 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 8540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8541 | break 2 |
| 8542 | fi |
| 8543 | done |
| 8544 | done |
| 8545 | IFS=$as_save_IFS |
| 8546 | |
| 8547 | ;; |
| 8548 | esac |
| 8549 | fi |
| 8550 | GAS=$ac_cv_path_GAS |
| 8551 | if test -n "$GAS"; then |
| 8552 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8553 | echo "${ECHO_T}$GAS" >&6; } |
| 8554 | else |
| 8555 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8556 | echo "${ECHO_T}no" >&6; } |
| 8557 | fi |
| 8558 | |
| 8559 | |
| 8560 | test -n "$GAS" && break |
| 8561 | done |
| 8562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8563 | |
| 8564 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8565 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8566 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8568 | else |
| 8569 | ac_ext=c |
| 8570 | ac_cpp='$CPP $CPPFLAGS' |
| 8571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8572 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8573 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8574 | |
| 8575 | oldcflags="$CFLAGS" |
| 8576 | CFLAGS="$CFLAGS -Wl,-R." |
| 8577 | cat >conftest.$ac_ext <<_ACEOF |
| 8578 | /* confdefs.h. */ |
| 8579 | _ACEOF |
| 8580 | cat confdefs.h >>conftest.$ac_ext |
| 8581 | cat >>conftest.$ac_ext <<_ACEOF |
| 8582 | /* end confdefs.h. */ |
| 8583 | |
| 8584 | int |
| 8585 | main () |
| 8586 | { |
| 8587 | int main() { return 0; } |
| 8588 | ; |
| 8589 | return 0; |
| 8590 | } |
| 8591 | _ACEOF |
| 8592 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8593 | if { (ac_try="$ac_link" |
| 8594 | case "(($ac_try" in |
| 8595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8596 | *) ac_try_echo=$ac_try;; |
| 8597 | esac |
| 8598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8599 | (eval "$ac_link") 2>conftest.er1 |
| 8600 | ac_status=$? |
| 8601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8602 | rm -f conftest.er1 |
| 8603 | cat conftest.err >&5 |
| 8604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8605 | (exit $ac_status); } && |
| 8606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8607 | { (case "(($ac_try" in |
| 8608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8609 | *) ac_try_echo=$ac_try;; |
| 8610 | esac |
| 8611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8612 | (eval "$ac_try") 2>&5 |
| 8613 | ac_status=$? |
| 8614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8615 | (exit $ac_status); }; } && |
| 8616 | { ac_try='test -s conftest$ac_exeext' |
| 8617 | { (case "(($ac_try" in |
| 8618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8619 | *) ac_try_echo=$ac_try;; |
| 8620 | esac |
| 8621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8622 | (eval "$ac_try") 2>&5 |
| 8623 | ac_status=$? |
| 8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8625 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8626 | llvm_cv_link_use_r=yes |
| 8627 | else |
| 8628 | echo "$as_me: failed program was:" >&5 |
| 8629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8630 | |
| 8631 | llvm_cv_link_use_r=no |
| 8632 | fi |
| 8633 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8634 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8635 | conftest$ac_exeext conftest.$ac_ext |
| 8636 | CFLAGS="$oldcflags" |
| 8637 | ac_ext=c |
| 8638 | ac_cpp='$CPP $CPPFLAGS' |
| 8639 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8640 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8641 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8642 | |
| 8643 | |
| 8644 | fi |
| 8645 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8646 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8647 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8648 | |
| 8649 | cat >>confdefs.h <<\_ACEOF |
| 8650 | #define HAVE_LINK_R 1 |
| 8651 | _ACEOF |
| 8652 | |
| 8653 | fi |
| 8654 | |
| 8655 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8656 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8657 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8658 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8660 | else |
| 8661 | ac_ext=c |
| 8662 | ac_cpp='$CPP $CPPFLAGS' |
| 8663 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8664 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8665 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8666 | |
| 8667 | oldcflags="$CFLAGS" |
| 8668 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
| 8669 | cat >conftest.$ac_ext <<_ACEOF |
| 8670 | /* confdefs.h. */ |
| 8671 | _ACEOF |
| 8672 | cat confdefs.h >>conftest.$ac_ext |
| 8673 | cat >>conftest.$ac_ext <<_ACEOF |
| 8674 | /* end confdefs.h. */ |
| 8675 | |
| 8676 | int |
| 8677 | main () |
| 8678 | { |
| 8679 | int main() { return 0; } |
| 8680 | ; |
| 8681 | return 0; |
| 8682 | } |
| 8683 | _ACEOF |
| 8684 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8685 | if { (ac_try="$ac_link" |
| 8686 | case "(($ac_try" in |
| 8687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8688 | *) ac_try_echo=$ac_try;; |
| 8689 | esac |
| 8690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8691 | (eval "$ac_link") 2>conftest.er1 |
| 8692 | ac_status=$? |
| 8693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8694 | rm -f conftest.er1 |
| 8695 | cat conftest.err >&5 |
| 8696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8697 | (exit $ac_status); } && |
| 8698 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8699 | { (case "(($ac_try" in |
| 8700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8701 | *) ac_try_echo=$ac_try;; |
| 8702 | esac |
| 8703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8704 | (eval "$ac_try") 2>&5 |
| 8705 | ac_status=$? |
| 8706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8707 | (exit $ac_status); }; } && |
| 8708 | { ac_try='test -s conftest$ac_exeext' |
| 8709 | { (case "(($ac_try" in |
| 8710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8711 | *) ac_try_echo=$ac_try;; |
| 8712 | esac |
| 8713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8714 | (eval "$ac_try") 2>&5 |
| 8715 | ac_status=$? |
| 8716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8717 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8718 | llvm_cv_link_use_export_dynamic=yes |
| 8719 | else |
| 8720 | echo "$as_me: failed program was:" >&5 |
| 8721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8722 | |
| 8723 | llvm_cv_link_use_export_dynamic=no |
| 8724 | fi |
| 8725 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8726 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8727 | conftest$ac_exeext conftest.$ac_ext |
| 8728 | CFLAGS="$oldcflags" |
| 8729 | ac_ext=c |
| 8730 | ac_cpp='$CPP $CPPFLAGS' |
| 8731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8734 | |
| 8735 | |
| 8736 | fi |
| 8737 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8738 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
| 8739 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8740 | |
| 8741 | cat >>confdefs.h <<\_ACEOF |
| 8742 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8743 | _ACEOF |
| 8744 | |
| 8745 | fi |
| 8746 | |
| 8747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8748 | |
| 8749 | |
| 8750 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8751 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8752 | if test "${ac_cv_c_const+set}" = set; then |
| 8753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8754 | else |
| 8755 | cat >conftest.$ac_ext <<_ACEOF |
| 8756 | /* confdefs.h. */ |
| 8757 | _ACEOF |
| 8758 | cat confdefs.h >>conftest.$ac_ext |
| 8759 | cat >>conftest.$ac_ext <<_ACEOF |
| 8760 | /* end confdefs.h. */ |
| 8761 | |
| 8762 | int |
| 8763 | main () |
| 8764 | { |
| 8765 | /* FIXME: Include the comments suggested by Paul. */ |
| 8766 | #ifndef __cplusplus |
| 8767 | /* Ultrix mips cc rejects this. */ |
| 8768 | typedef int charset[2]; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8769 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8770 | /* SunOS 4.1.1 cc rejects this. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8771 | char const *const *ccp; |
| 8772 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8773 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8774 | struct point {int x, y;}; |
| 8775 | static struct point const zero = {0,0}; |
| 8776 | /* AIX XL C 1.02.0.0 rejects this. |
| 8777 | It does not let you subtract one const X* pointer from another in |
| 8778 | an arm of an if-expression whose if-part is not a constant |
| 8779 | expression */ |
| 8780 | const char *g = "string"; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8781 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8782 | /* HPUX 7.0 cc rejects these. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8783 | ++ccp; |
| 8784 | p = (char**) ccp; |
| 8785 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8786 | { /* SCO 3.2v4 cc rejects this. */ |
| 8787 | char *t; |
| 8788 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8789 | |
| 8790 | *t++ = 0; |
| 8791 | if (s) return 0; |
| 8792 | } |
| 8793 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8794 | int x[] = {25, 17}; |
| 8795 | const int *foo = &x[0]; |
| 8796 | ++foo; |
| 8797 | } |
| 8798 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8799 | typedef const int *iptr; |
| 8800 | iptr p = 0; |
| 8801 | ++p; |
| 8802 | } |
| 8803 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8804 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8805 | struct s { int j; const int *ap[3]; }; |
| 8806 | struct s *b; b->j = 5; |
| 8807 | } |
| 8808 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8809 | const int foo = 10; |
| 8810 | if (!foo) return 0; |
| 8811 | } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8812 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8813 | #endif |
| 8814 | |
| 8815 | ; |
| 8816 | return 0; |
| 8817 | } |
| 8818 | _ACEOF |
| 8819 | rm -f conftest.$ac_objext |
| 8820 | if { (ac_try="$ac_compile" |
| 8821 | case "(($ac_try" in |
| 8822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8823 | *) ac_try_echo=$ac_try;; |
| 8824 | esac |
| 8825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8826 | (eval "$ac_compile") 2>conftest.er1 |
| 8827 | ac_status=$? |
| 8828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8829 | rm -f conftest.er1 |
| 8830 | cat conftest.err >&5 |
| 8831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8832 | (exit $ac_status); } && |
| 8833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8834 | { (case "(($ac_try" in |
| 8835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8836 | *) ac_try_echo=$ac_try;; |
| 8837 | esac |
| 8838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8839 | (eval "$ac_try") 2>&5 |
| 8840 | ac_status=$? |
| 8841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8842 | (exit $ac_status); }; } && |
| 8843 | { ac_try='test -s conftest.$ac_objext' |
| 8844 | { (case "(($ac_try" in |
| 8845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8846 | *) ac_try_echo=$ac_try;; |
| 8847 | esac |
| 8848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8849 | (eval "$ac_try") 2>&5 |
| 8850 | ac_status=$? |
| 8851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8852 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8853 | ac_cv_c_const=yes |
| 8854 | else |
| 8855 | echo "$as_me: failed program was:" >&5 |
| 8856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8857 | |
| 8858 | ac_cv_c_const=no |
| 8859 | fi |
| 8860 | |
| 8861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8862 | fi |
| 8863 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8864 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8865 | if test $ac_cv_c_const = no; then |
| 8866 | |
| 8867 | cat >>confdefs.h <<\_ACEOF |
| 8868 | #define const |
| 8869 | _ACEOF |
| 8870 | |
| 8871 | fi |
| 8872 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8873 | |
| 8874 | |
| 8875 | |
| 8876 | |
| 8877 | |
| 8878 | ac_header_dirent=no |
| 8879 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8880 | 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] | 8881 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8882 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8883 | 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] | 8884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8885 | else |
| 8886 | cat >conftest.$ac_ext <<_ACEOF |
| 8887 | /* confdefs.h. */ |
| 8888 | _ACEOF |
| 8889 | cat confdefs.h >>conftest.$ac_ext |
| 8890 | cat >>conftest.$ac_ext <<_ACEOF |
| 8891 | /* end confdefs.h. */ |
| 8892 | #include <sys/types.h> |
| 8893 | #include <$ac_hdr> |
| 8894 | |
| 8895 | int |
| 8896 | main () |
| 8897 | { |
| 8898 | if ((DIR *) 0) |
| 8899 | return 0; |
| 8900 | ; |
| 8901 | return 0; |
| 8902 | } |
| 8903 | _ACEOF |
| 8904 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8905 | if { (ac_try="$ac_compile" |
| 8906 | case "(($ac_try" in |
| 8907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8908 | *) ac_try_echo=$ac_try;; |
| 8909 | esac |
| 8910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8911 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8912 | ac_status=$? |
| 8913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8914 | rm -f conftest.er1 |
| 8915 | cat conftest.err >&5 |
| 8916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8917 | (exit $ac_status); } && |
| 8918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8919 | { (case "(($ac_try" in |
| 8920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8921 | *) ac_try_echo=$ac_try;; |
| 8922 | esac |
| 8923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8924 | (eval "$ac_try") 2>&5 |
| 8925 | ac_status=$? |
| 8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8927 | (exit $ac_status); }; } && |
| 8928 | { ac_try='test -s conftest.$ac_objext' |
| 8929 | { (case "(($ac_try" in |
| 8930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8931 | *) ac_try_echo=$ac_try;; |
| 8932 | esac |
| 8933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8934 | (eval "$ac_try") 2>&5 |
| 8935 | ac_status=$? |
| 8936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8937 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8938 | eval "$as_ac_Header=yes" |
| 8939 | else |
| 8940 | echo "$as_me: failed program was:" >&5 |
| 8941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8942 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8943 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8945 | |
| 8946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8947 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8948 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8949 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8950 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8952 | cat >>confdefs.h <<_ACEOF |
| 8953 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8954 | _ACEOF |
| 8955 | |
| 8956 | ac_header_dirent=$ac_hdr; break |
| 8957 | fi |
| 8958 | |
| 8959 | done |
| 8960 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8961 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8962 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8963 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8964 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8966 | else |
| 8967 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8968 | cat >conftest.$ac_ext <<_ACEOF |
| 8969 | /* confdefs.h. */ |
| 8970 | _ACEOF |
| 8971 | cat confdefs.h >>conftest.$ac_ext |
| 8972 | cat >>conftest.$ac_ext <<_ACEOF |
| 8973 | /* end confdefs.h. */ |
| 8974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8975 | /* Override any GCC internal prototype to avoid an error. |
| 8976 | Use char because int might match the return type of a GCC |
| 8977 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8978 | #ifdef __cplusplus |
| 8979 | extern "C" |
| 8980 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8981 | char opendir (); |
| 8982 | int |
| 8983 | main () |
| 8984 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8985 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8986 | ; |
| 8987 | return 0; |
| 8988 | } |
| 8989 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8990 | for ac_lib in '' dir; do |
| 8991 | if test -z "$ac_lib"; then |
| 8992 | ac_res="none required" |
| 8993 | else |
| 8994 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8995 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8996 | fi |
| 8997 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8998 | if { (ac_try="$ac_link" |
| 8999 | case "(($ac_try" in |
| 9000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9001 | *) ac_try_echo=$ac_try;; |
| 9002 | esac |
| 9003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9004 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9005 | ac_status=$? |
| 9006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9007 | rm -f conftest.er1 |
| 9008 | cat conftest.err >&5 |
| 9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9010 | (exit $ac_status); } && |
| 9011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9012 | { (case "(($ac_try" in |
| 9013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9014 | *) ac_try_echo=$ac_try;; |
| 9015 | esac |
| 9016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9017 | (eval "$ac_try") 2>&5 |
| 9018 | ac_status=$? |
| 9019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9020 | (exit $ac_status); }; } && |
| 9021 | { ac_try='test -s conftest$ac_exeext' |
| 9022 | { (case "(($ac_try" in |
| 9023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9024 | *) ac_try_echo=$ac_try;; |
| 9025 | esac |
| 9026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9027 | (eval "$ac_try") 2>&5 |
| 9028 | ac_status=$? |
| 9029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9030 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9031 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9032 | else |
| 9033 | echo "$as_me: failed program was:" >&5 |
| 9034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9035 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9036 | |
| 9037 | fi |
| 9038 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9039 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9040 | conftest$ac_exeext |
| 9041 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9042 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9043 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9044 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9045 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9046 | : |
| 9047 | else |
| 9048 | ac_cv_search_opendir=no |
| 9049 | fi |
| 9050 | rm conftest.$ac_ext |
| 9051 | LIBS=$ac_func_search_save_LIBS |
| 9052 | fi |
| 9053 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9054 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 9055 | ac_res=$ac_cv_search_opendir |
| 9056 | if test "$ac_res" != no; then |
| 9057 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9058 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9059 | fi |
| 9060 | |
| 9061 | else |
| 9062 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9063 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9064 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9066 | else |
| 9067 | ac_func_search_save_LIBS=$LIBS |
| 9068 | cat >conftest.$ac_ext <<_ACEOF |
| 9069 | /* confdefs.h. */ |
| 9070 | _ACEOF |
| 9071 | cat confdefs.h >>conftest.$ac_ext |
| 9072 | cat >>conftest.$ac_ext <<_ACEOF |
| 9073 | /* end confdefs.h. */ |
| 9074 | |
| 9075 | /* Override any GCC internal prototype to avoid an error. |
| 9076 | Use char because int might match the return type of a GCC |
| 9077 | builtin and then its argument prototype would still apply. */ |
| 9078 | #ifdef __cplusplus |
| 9079 | extern "C" |
| 9080 | #endif |
| 9081 | char opendir (); |
| 9082 | int |
| 9083 | main () |
| 9084 | { |
| 9085 | return opendir (); |
| 9086 | ; |
| 9087 | return 0; |
| 9088 | } |
| 9089 | _ACEOF |
| 9090 | for ac_lib in '' x; do |
| 9091 | if test -z "$ac_lib"; then |
| 9092 | ac_res="none required" |
| 9093 | else |
| 9094 | ac_res=-l$ac_lib |
| 9095 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9096 | fi |
| 9097 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9098 | if { (ac_try="$ac_link" |
| 9099 | case "(($ac_try" in |
| 9100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9101 | *) ac_try_echo=$ac_try;; |
| 9102 | esac |
| 9103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9104 | (eval "$ac_link") 2>conftest.er1 |
| 9105 | ac_status=$? |
| 9106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9107 | rm -f conftest.er1 |
| 9108 | cat conftest.err >&5 |
| 9109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9110 | (exit $ac_status); } && |
| 9111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9112 | { (case "(($ac_try" in |
| 9113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9114 | *) ac_try_echo=$ac_try;; |
| 9115 | esac |
| 9116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9117 | (eval "$ac_try") 2>&5 |
| 9118 | ac_status=$? |
| 9119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9120 | (exit $ac_status); }; } && |
| 9121 | { ac_try='test -s conftest$ac_exeext' |
| 9122 | { (case "(($ac_try" in |
| 9123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9124 | *) ac_try_echo=$ac_try;; |
| 9125 | esac |
| 9126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9127 | (eval "$ac_try") 2>&5 |
| 9128 | ac_status=$? |
| 9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9130 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9131 | ac_cv_search_opendir=$ac_res |
| 9132 | else |
| 9133 | echo "$as_me: failed program was:" >&5 |
| 9134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9135 | |
| 9136 | |
| 9137 | fi |
| 9138 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9139 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9140 | conftest$ac_exeext |
| 9141 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9142 | break |
| 9143 | fi |
| 9144 | done |
| 9145 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9146 | : |
| 9147 | else |
| 9148 | ac_cv_search_opendir=no |
| 9149 | fi |
| 9150 | rm conftest.$ac_ext |
| 9151 | LIBS=$ac_func_search_save_LIBS |
| 9152 | fi |
| 9153 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9154 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 9155 | ac_res=$ac_cv_search_opendir |
| 9156 | if test "$ac_res" != no; then |
| 9157 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9158 | |
| 9159 | fi |
| 9160 | |
| 9161 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9162 | |
| 9163 | |
| 9164 | for ac_header in dlfcn.h |
| 9165 | do |
| 9166 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9167 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9168 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9169 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9170 | 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] | 9171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9172 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9173 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9174 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9175 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9176 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9177 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9178 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9179 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9180 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9181 | /* confdefs.h. */ |
| 9182 | _ACEOF |
| 9183 | cat confdefs.h >>conftest.$ac_ext |
| 9184 | cat >>conftest.$ac_ext <<_ACEOF |
| 9185 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9186 | $ac_includes_default |
| 9187 | #include <$ac_header> |
| 9188 | _ACEOF |
| 9189 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9190 | if { (ac_try="$ac_compile" |
| 9191 | case "(($ac_try" in |
| 9192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9193 | *) ac_try_echo=$ac_try;; |
| 9194 | esac |
| 9195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9196 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9197 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9199 | rm -f conftest.er1 |
| 9200 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9202 | (exit $ac_status); } && |
| 9203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9204 | { (case "(($ac_try" in |
| 9205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9206 | *) ac_try_echo=$ac_try;; |
| 9207 | esac |
| 9208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9209 | (eval "$ac_try") 2>&5 |
| 9210 | ac_status=$? |
| 9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9212 | (exit $ac_status); }; } && |
| 9213 | { ac_try='test -s conftest.$ac_objext' |
| 9214 | { (case "(($ac_try" in |
| 9215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9216 | *) ac_try_echo=$ac_try;; |
| 9217 | esac |
| 9218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9219 | (eval "$ac_try") 2>&5 |
| 9220 | ac_status=$? |
| 9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9222 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9223 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9224 | else |
| 9225 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9228 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9229 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9230 | |
| 9231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9232 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9233 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9234 | |
| 9235 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9236 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9237 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9238 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9239 | /* confdefs.h. */ |
| 9240 | _ACEOF |
| 9241 | cat confdefs.h >>conftest.$ac_ext |
| 9242 | cat >>conftest.$ac_ext <<_ACEOF |
| 9243 | /* end confdefs.h. */ |
| 9244 | #include <$ac_header> |
| 9245 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9246 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9247 | case "(($ac_try" in |
| 9248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9249 | *) ac_try_echo=$ac_try;; |
| 9250 | esac |
| 9251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9252 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9253 | ac_status=$? |
| 9254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9255 | rm -f conftest.er1 |
| 9256 | cat conftest.err >&5 |
| 9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9258 | (exit $ac_status); } >/dev/null; then |
| 9259 | if test -s conftest.err; then |
| 9260 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9261 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9262 | else |
| 9263 | ac_cpp_err= |
| 9264 | fi |
| 9265 | else |
| 9266 | ac_cpp_err=yes |
| 9267 | fi |
| 9268 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9269 | ac_header_preproc=yes |
| 9270 | else |
| 9271 | echo "$as_me: failed program was:" >&5 |
| 9272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9273 | |
| 9274 | ac_header_preproc=no |
| 9275 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9276 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9277 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9278 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9279 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9280 | |
| 9281 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9282 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9283 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9284 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9285 | 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] | 9286 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9287 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9288 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9289 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9290 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9291 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9292 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9293 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9294 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9295 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9296 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9297 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9298 | 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] | 9299 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9300 | 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] | 9301 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9302 | 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] | 9303 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9304 | ## ----------------------------------- ## |
| 9305 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9306 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9307 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9308 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9309 | ;; |
| 9310 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9311 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9312 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9313 | 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] | 9314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9315 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9316 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9317 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9318 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9319 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9320 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9321 | |
| 9322 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9323 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9324 | cat >>confdefs.h <<_ACEOF |
| 9325 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9326 | _ACEOF |
| 9327 | |
| 9328 | fi |
| 9329 | |
| 9330 | done |
| 9331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9332 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9333 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9334 | enableval=$enable_ltdl_install; |
| 9335 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9336 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9337 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9338 | |
| 9339 | |
| 9340 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9341 | INSTALL_LTDL_TRUE= |
| 9342 | INSTALL_LTDL_FALSE='#' |
| 9343 | else |
| 9344 | INSTALL_LTDL_TRUE='#' |
| 9345 | INSTALL_LTDL_FALSE= |
| 9346 | fi |
| 9347 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9348 | |
| 9349 | |
| 9350 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9351 | CONVENIENCE_LTDL_TRUE= |
| 9352 | CONVENIENCE_LTDL_FALSE='#' |
| 9353 | else |
| 9354 | CONVENIENCE_LTDL_TRUE='#' |
| 9355 | CONVENIENCE_LTDL_FALSE= |
| 9356 | fi |
| 9357 | |
| 9358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9359 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9360 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9361 | library_names_spec= |
| 9362 | libname_spec='lib$name' |
| 9363 | soname_spec= |
| 9364 | shrext_cmds=".so" |
| 9365 | postinstall_cmds= |
| 9366 | postuninstall_cmds= |
| 9367 | finish_cmds= |
| 9368 | finish_eval= |
| 9369 | shlibpath_var= |
| 9370 | shlibpath_overrides_runpath=unknown |
| 9371 | version_type=none |
| 9372 | dynamic_linker="$host_os ld.so" |
| 9373 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9374 | if test "$GCC" = yes; then |
| 9375 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9376 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9377 | # if the path contains ";" then we assume it to be the separator |
| 9378 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9379 | # assumed that no part of a normal pathname contains ";" but that should |
| 9380 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9381 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9382 | else |
| 9383 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9384 | fi |
| 9385 | else |
| 9386 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9387 | fi |
| 9388 | need_lib_prefix=unknown |
| 9389 | hardcode_into_libs=no |
| 9390 | |
| 9391 | # when you set need_version to no, make sure it does not cause -set_version |
| 9392 | # flags to be left without arguments |
| 9393 | need_version=unknown |
| 9394 | |
| 9395 | case $host_os in |
| 9396 | aix3*) |
| 9397 | version_type=linux |
| 9398 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9399 | shlibpath_var=LIBPATH |
| 9400 | |
| 9401 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9402 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9403 | ;; |
| 9404 | |
| 9405 | aix4* | aix5*) |
| 9406 | version_type=linux |
| 9407 | need_lib_prefix=no |
| 9408 | need_version=no |
| 9409 | hardcode_into_libs=yes |
| 9410 | if test "$host_cpu" = ia64; then |
| 9411 | # AIX 5 supports IA64 |
| 9412 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9413 | shlibpath_var=LD_LIBRARY_PATH |
| 9414 | else |
| 9415 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9416 | # for dependence libraries. The import file would start with |
| 9417 | # the line `#! .'. This would cause the generated library to |
| 9418 | # depend on `.', always an invalid library. This was fixed in |
| 9419 | # development snapshots of GCC prior to 3.0. |
| 9420 | case $host_os in |
| 9421 | aix4 | aix4.[01] | aix4.[01].*) |
| 9422 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9423 | echo ' yes ' |
| 9424 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9425 | : |
| 9426 | else |
| 9427 | can_build_shared=no |
| 9428 | fi |
| 9429 | ;; |
| 9430 | esac |
| 9431 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9432 | # soname into executable. Probably we can add versioning support to |
| 9433 | # collect2, so additional links can be useful in future. |
| 9434 | if test "$aix_use_runtimelinking" = yes; then |
| 9435 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9436 | # instead of lib<name>.a to let people know that these are not |
| 9437 | # typical AIX shared libraries. |
| 9438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9439 | else |
| 9440 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9441 | # and later when we are not doing run time linking. |
| 9442 | library_names_spec='${libname}${release}.a $libname.a' |
| 9443 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9444 | fi |
| 9445 | shlibpath_var=LIBPATH |
| 9446 | fi |
| 9447 | ;; |
| 9448 | |
| 9449 | amigaos*) |
| 9450 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9451 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9452 | 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' |
| 9453 | ;; |
| 9454 | |
| 9455 | beos*) |
| 9456 | library_names_spec='${libname}${shared_ext}' |
| 9457 | dynamic_linker="$host_os ld.so" |
| 9458 | shlibpath_var=LIBRARY_PATH |
| 9459 | ;; |
| 9460 | |
| 9461 | bsdi[45]*) |
| 9462 | version_type=linux |
| 9463 | need_version=no |
| 9464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9465 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9466 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9467 | shlibpath_var=LD_LIBRARY_PATH |
| 9468 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9469 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9470 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9471 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9472 | # libtool to hard-code these into programs |
| 9473 | ;; |
| 9474 | |
| 9475 | cygwin* | mingw* | pw32*) |
| 9476 | version_type=windows |
| 9477 | shrext_cmds=".dll" |
| 9478 | need_version=no |
| 9479 | need_lib_prefix=no |
| 9480 | |
| 9481 | case $GCC,$host_os in |
| 9482 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9483 | library_names_spec='$libname.dll.a' |
| 9484 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9485 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9486 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9487 | dldir=$destdir/`dirname \$dlpath`~ |
| 9488 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9489 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9490 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9491 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9492 | dlpath=$dir/\$dldll~ |
| 9493 | $rm \$dlpath' |
| 9494 | shlibpath_overrides_runpath=yes |
| 9495 | |
| 9496 | case $host_os in |
| 9497 | cygwin*) |
| 9498 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9499 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9500 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9501 | ;; |
| 9502 | mingw*) |
| 9503 | # MinGW DLLs use traditional 'lib' prefix |
| 9504 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9505 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9506 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9507 | # It is most probably a Windows format PATH printed by |
| 9508 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9509 | # path with ; separators, and with drive letters. We can handle the |
| 9510 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9511 | # especially as we might pass files found there to a mingw objdump, |
| 9512 | # which wouldn't understand a cygwinified path. Ahh. |
| 9513 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9514 | else |
| 9515 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9516 | fi |
| 9517 | ;; |
| 9518 | pw32*) |
| 9519 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9520 | 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] | 9521 | ;; |
| 9522 | esac |
| 9523 | ;; |
| 9524 | |
| 9525 | *) |
| 9526 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9527 | ;; |
| 9528 | esac |
| 9529 | dynamic_linker='Win32 ld.exe' |
| 9530 | # FIXME: first we should search . and the directory the executable is in |
| 9531 | shlibpath_var=PATH |
| 9532 | ;; |
| 9533 | |
| 9534 | darwin* | rhapsody*) |
| 9535 | dynamic_linker="$host_os dyld" |
| 9536 | version_type=darwin |
| 9537 | need_lib_prefix=no |
| 9538 | need_version=no |
| 9539 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9540 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9541 | shlibpath_overrides_runpath=yes |
| 9542 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9543 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9544 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9545 | if test "$GCC" = yes; then |
| 9546 | 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"` |
| 9547 | else |
| 9548 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9549 | fi |
| 9550 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9551 | ;; |
| 9552 | |
| 9553 | dgux*) |
| 9554 | version_type=linux |
| 9555 | need_lib_prefix=no |
| 9556 | need_version=no |
| 9557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9558 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9559 | shlibpath_var=LD_LIBRARY_PATH |
| 9560 | ;; |
| 9561 | |
| 9562 | freebsd1*) |
| 9563 | dynamic_linker=no |
| 9564 | ;; |
| 9565 | |
| 9566 | kfreebsd*-gnu) |
| 9567 | version_type=linux |
| 9568 | need_lib_prefix=no |
| 9569 | need_version=no |
| 9570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9571 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9572 | shlibpath_var=LD_LIBRARY_PATH |
| 9573 | shlibpath_overrides_runpath=no |
| 9574 | hardcode_into_libs=yes |
| 9575 | dynamic_linker='GNU ld.so' |
| 9576 | ;; |
| 9577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9578 | freebsd* | dragonfly*) |
| 9579 | # DragonFly does not have aout. When/if they implement a new |
| 9580 | # versioning mechanism, adjust this. |
| 9581 | if test -x /usr/bin/objformat; then |
| 9582 | objformat=`/usr/bin/objformat` |
| 9583 | else |
| 9584 | case $host_os in |
| 9585 | freebsd[123]*) objformat=aout ;; |
| 9586 | *) objformat=elf ;; |
| 9587 | esac |
| 9588 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9589 | version_type=freebsd-$objformat |
| 9590 | case $version_type in |
| 9591 | freebsd-elf*) |
| 9592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9593 | need_version=no |
| 9594 | need_lib_prefix=no |
| 9595 | ;; |
| 9596 | freebsd-*) |
| 9597 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9598 | need_version=yes |
| 9599 | ;; |
| 9600 | esac |
| 9601 | shlibpath_var=LD_LIBRARY_PATH |
| 9602 | case $host_os in |
| 9603 | freebsd2*) |
| 9604 | shlibpath_overrides_runpath=yes |
| 9605 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9606 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9607 | shlibpath_overrides_runpath=yes |
| 9608 | hardcode_into_libs=yes |
| 9609 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9610 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9611 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9612 | shlibpath_overrides_runpath=no |
| 9613 | hardcode_into_libs=yes |
| 9614 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9615 | freebsd*) # from 4.6 on |
| 9616 | shlibpath_overrides_runpath=yes |
| 9617 | hardcode_into_libs=yes |
| 9618 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9619 | esac |
| 9620 | ;; |
| 9621 | |
| 9622 | gnu*) |
| 9623 | version_type=linux |
| 9624 | need_lib_prefix=no |
| 9625 | need_version=no |
| 9626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9627 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9628 | shlibpath_var=LD_LIBRARY_PATH |
| 9629 | hardcode_into_libs=yes |
| 9630 | ;; |
| 9631 | |
| 9632 | hpux9* | hpux10* | hpux11*) |
| 9633 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9634 | # link against other versions. |
| 9635 | version_type=sunos |
| 9636 | need_lib_prefix=no |
| 9637 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9638 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9639 | ia64*) |
| 9640 | shrext_cmds='.so' |
| 9641 | hardcode_into_libs=yes |
| 9642 | dynamic_linker="$host_os dld.so" |
| 9643 | shlibpath_var=LD_LIBRARY_PATH |
| 9644 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9646 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9647 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9648 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9649 | else |
| 9650 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9651 | fi |
| 9652 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9653 | ;; |
| 9654 | hppa*64*) |
| 9655 | shrext_cmds='.sl' |
| 9656 | hardcode_into_libs=yes |
| 9657 | dynamic_linker="$host_os dld.sl" |
| 9658 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9659 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9661 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9662 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9663 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9664 | ;; |
| 9665 | *) |
| 9666 | shrext_cmds='.sl' |
| 9667 | dynamic_linker="$host_os dld.sl" |
| 9668 | shlibpath_var=SHLIB_PATH |
| 9669 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9670 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9671 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9672 | ;; |
| 9673 | esac |
| 9674 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9675 | postinstall_cmds='chmod 555 $lib' |
| 9676 | ;; |
| 9677 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9678 | interix3*) |
| 9679 | version_type=linux |
| 9680 | need_lib_prefix=no |
| 9681 | need_version=no |
| 9682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9683 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9684 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9685 | shlibpath_var=LD_LIBRARY_PATH |
| 9686 | shlibpath_overrides_runpath=no |
| 9687 | hardcode_into_libs=yes |
| 9688 | ;; |
| 9689 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9690 | irix5* | irix6* | nonstopux*) |
| 9691 | case $host_os in |
| 9692 | nonstopux*) version_type=nonstopux ;; |
| 9693 | *) |
| 9694 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9695 | version_type=linux |
| 9696 | else |
| 9697 | version_type=irix |
| 9698 | fi ;; |
| 9699 | esac |
| 9700 | need_lib_prefix=no |
| 9701 | need_version=no |
| 9702 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9704 | case $host_os in |
| 9705 | irix5* | nonstopux*) |
| 9706 | libsuff= shlibsuff= |
| 9707 | ;; |
| 9708 | *) |
| 9709 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9710 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9711 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9712 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9713 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9714 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9715 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9716 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9717 | esac |
| 9718 | ;; |
| 9719 | esac |
| 9720 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9721 | shlibpath_overrides_runpath=no |
| 9722 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9723 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9724 | hardcode_into_libs=yes |
| 9725 | ;; |
| 9726 | |
| 9727 | # No shared lib support for Linux oldld, aout, or coff. |
| 9728 | linux*oldld* | linux*aout* | linux*coff*) |
| 9729 | dynamic_linker=no |
| 9730 | ;; |
| 9731 | |
| 9732 | # This must be Linux ELF. |
| 9733 | linux*) |
| 9734 | version_type=linux |
| 9735 | need_lib_prefix=no |
| 9736 | need_version=no |
| 9737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9738 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9739 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9740 | shlibpath_var=LD_LIBRARY_PATH |
| 9741 | shlibpath_overrides_runpath=no |
| 9742 | # This implies no fast_install, which is unacceptable. |
| 9743 | # Some rework will be needed to allow for fast_install |
| 9744 | # before this can be enabled. |
| 9745 | hardcode_into_libs=yes |
| 9746 | |
| 9747 | # Append ld.so.conf contents to the search path |
| 9748 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9749 | 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] | 9750 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9751 | fi |
| 9752 | |
| 9753 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9754 | # powerpc, because MkLinux only supported shared libraries with the |
| 9755 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9756 | # most powerpc-linux boxes support dynamic linking these days and |
| 9757 | # people can always --disable-shared, the test was removed, and we |
| 9758 | # assume the GNU/Linux dynamic linker is in use. |
| 9759 | dynamic_linker='GNU/Linux ld.so' |
| 9760 | ;; |
| 9761 | |
| 9762 | knetbsd*-gnu) |
| 9763 | version_type=linux |
| 9764 | need_lib_prefix=no |
| 9765 | need_version=no |
| 9766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9767 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9768 | shlibpath_var=LD_LIBRARY_PATH |
| 9769 | shlibpath_overrides_runpath=no |
| 9770 | hardcode_into_libs=yes |
| 9771 | dynamic_linker='GNU ld.so' |
| 9772 | ;; |
| 9773 | |
| 9774 | netbsd*) |
| 9775 | version_type=sunos |
| 9776 | need_lib_prefix=no |
| 9777 | need_version=no |
| 9778 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9780 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9781 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9782 | else |
| 9783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9784 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9785 | dynamic_linker='NetBSD ld.elf_so' |
| 9786 | fi |
| 9787 | shlibpath_var=LD_LIBRARY_PATH |
| 9788 | shlibpath_overrides_runpath=yes |
| 9789 | hardcode_into_libs=yes |
| 9790 | ;; |
| 9791 | |
| 9792 | newsos6) |
| 9793 | version_type=linux |
| 9794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9795 | shlibpath_var=LD_LIBRARY_PATH |
| 9796 | shlibpath_overrides_runpath=yes |
| 9797 | ;; |
| 9798 | |
| 9799 | nto-qnx*) |
| 9800 | version_type=linux |
| 9801 | need_lib_prefix=no |
| 9802 | need_version=no |
| 9803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9804 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9805 | shlibpath_var=LD_LIBRARY_PATH |
| 9806 | shlibpath_overrides_runpath=yes |
| 9807 | ;; |
| 9808 | |
| 9809 | openbsd*) |
| 9810 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9811 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9812 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9813 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9814 | case $host_os in |
| 9815 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9816 | *) need_version=no ;; |
| 9817 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9819 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9820 | shlibpath_var=LD_LIBRARY_PATH |
| 9821 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9822 | case $host_os in |
| 9823 | openbsd2.[89] | openbsd2.[89].*) |
| 9824 | shlibpath_overrides_runpath=no |
| 9825 | ;; |
| 9826 | *) |
| 9827 | shlibpath_overrides_runpath=yes |
| 9828 | ;; |
| 9829 | esac |
| 9830 | else |
| 9831 | shlibpath_overrides_runpath=yes |
| 9832 | fi |
| 9833 | ;; |
| 9834 | |
| 9835 | os2*) |
| 9836 | libname_spec='$name' |
| 9837 | shrext_cmds=".dll" |
| 9838 | need_lib_prefix=no |
| 9839 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9840 | dynamic_linker='OS/2 ld.exe' |
| 9841 | shlibpath_var=LIBPATH |
| 9842 | ;; |
| 9843 | |
| 9844 | osf3* | osf4* | osf5*) |
| 9845 | version_type=osf |
| 9846 | need_lib_prefix=no |
| 9847 | need_version=no |
| 9848 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9850 | shlibpath_var=LD_LIBRARY_PATH |
| 9851 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9852 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9853 | ;; |
| 9854 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9855 | solaris*) |
| 9856 | version_type=linux |
| 9857 | need_lib_prefix=no |
| 9858 | need_version=no |
| 9859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9860 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9861 | shlibpath_var=LD_LIBRARY_PATH |
| 9862 | shlibpath_overrides_runpath=yes |
| 9863 | hardcode_into_libs=yes |
| 9864 | # ldd complains unless libraries are executable |
| 9865 | postinstall_cmds='chmod +x $lib' |
| 9866 | ;; |
| 9867 | |
| 9868 | sunos4*) |
| 9869 | version_type=sunos |
| 9870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9871 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9872 | shlibpath_var=LD_LIBRARY_PATH |
| 9873 | shlibpath_overrides_runpath=yes |
| 9874 | if test "$with_gnu_ld" = yes; then |
| 9875 | need_lib_prefix=no |
| 9876 | fi |
| 9877 | need_version=yes |
| 9878 | ;; |
| 9879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9880 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9881 | version_type=linux |
| 9882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9883 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9884 | shlibpath_var=LD_LIBRARY_PATH |
| 9885 | case $host_vendor in |
| 9886 | sni) |
| 9887 | shlibpath_overrides_runpath=no |
| 9888 | need_lib_prefix=no |
| 9889 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9890 | runpath_var=LD_RUN_PATH |
| 9891 | ;; |
| 9892 | siemens) |
| 9893 | need_lib_prefix=no |
| 9894 | ;; |
| 9895 | motorola) |
| 9896 | need_lib_prefix=no |
| 9897 | need_version=no |
| 9898 | shlibpath_overrides_runpath=no |
| 9899 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9900 | ;; |
| 9901 | esac |
| 9902 | ;; |
| 9903 | |
| 9904 | sysv4*MP*) |
| 9905 | if test -d /usr/nec ;then |
| 9906 | version_type=linux |
| 9907 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9908 | soname_spec='$libname${shared_ext}.$major' |
| 9909 | shlibpath_var=LD_LIBRARY_PATH |
| 9910 | fi |
| 9911 | ;; |
| 9912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9913 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9914 | version_type=freebsd-elf |
| 9915 | need_lib_prefix=no |
| 9916 | need_version=no |
| 9917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9918 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9919 | shlibpath_var=LD_LIBRARY_PATH |
| 9920 | hardcode_into_libs=yes |
| 9921 | if test "$with_gnu_ld" = yes; then |
| 9922 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9923 | shlibpath_overrides_runpath=no |
| 9924 | else |
| 9925 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9926 | shlibpath_overrides_runpath=yes |
| 9927 | case $host_os in |
| 9928 | sco3.2v5*) |
| 9929 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9930 | ;; |
| 9931 | esac |
| 9932 | fi |
| 9933 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9934 | ;; |
| 9935 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9936 | uts4*) |
| 9937 | version_type=linux |
| 9938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9939 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9940 | shlibpath_var=LD_LIBRARY_PATH |
| 9941 | ;; |
| 9942 | |
| 9943 | *) |
| 9944 | dynamic_linker=no |
| 9945 | ;; |
| 9946 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9947 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9948 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9949 | test "$dynamic_linker" = no && can_build_shared=no |
| 9950 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9951 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9952 | if test "$GCC" = yes; then |
| 9953 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9954 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9955 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9956 | |
| 9957 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9958 | 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] | 9959 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9961 | else |
| 9962 | |
| 9963 | module=yes |
| 9964 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9965 | |
| 9966 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9967 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9968 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9969 | if test -n "$libltdl_cv_shlibext"; then |
| 9970 | |
| 9971 | cat >>confdefs.h <<_ACEOF |
| 9972 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9973 | _ACEOF |
| 9974 | |
| 9975 | fi |
| 9976 | |
| 9977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9978 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9979 | 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] | 9980 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9982 | else |
| 9983 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9984 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9985 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9986 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9987 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9988 | |
| 9989 | cat >>confdefs.h <<_ACEOF |
| 9990 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9991 | _ACEOF |
| 9992 | |
| 9993 | fi |
| 9994 | |
| 9995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9996 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9997 | 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] | 9998 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10000 | else |
| 10001 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10002 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10003 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10004 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10005 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10006 | sys_search_path= |
| 10007 | for dir in $libltdl_cv_sys_search_path; do |
| 10008 | if test -z "$sys_search_path"; then |
| 10009 | sys_search_path="$dir" |
| 10010 | else |
| 10011 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10012 | fi |
| 10013 | done |
| 10014 | |
| 10015 | cat >>confdefs.h <<_ACEOF |
| 10016 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10017 | _ACEOF |
| 10018 | |
| 10019 | fi |
| 10020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10021 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10022 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10023 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10025 | else |
| 10026 | libltdl_cv_objdir="$objdir" |
| 10027 | if test -n "$objdir"; then |
| 10028 | : |
| 10029 | else |
| 10030 | rm -f .libs 2>/dev/null |
| 10031 | mkdir .libs 2>/dev/null |
| 10032 | if test -d .libs; then |
| 10033 | libltdl_cv_objdir=.libs |
| 10034 | else |
| 10035 | # MS-DOS does not allow filenames that begin with a dot. |
| 10036 | libltdl_cv_objdir=_libs |
| 10037 | fi |
| 10038 | rmdir .libs 2>/dev/null |
| 10039 | fi |
| 10040 | |
| 10041 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10042 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10043 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10044 | |
| 10045 | cat >>confdefs.h <<_ACEOF |
| 10046 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10047 | _ACEOF |
| 10048 | |
| 10049 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10050 | |
| 10051 | |
| 10052 | |
| 10053 | |
| 10054 | # 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] | 10055 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10056 | 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] | 10057 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10059 | else |
| 10060 | |
| 10061 | # These are sane defaults that work on at least a few old systems. |
| 10062 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10063 | |
| 10064 | # Character class describing NM global symbol codes. |
| 10065 | symcode='[BCDEGRST]' |
| 10066 | |
| 10067 | # Regexp to match symbols that can be accessed directly from C. |
| 10068 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10069 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10070 | # Transform an extracted symbol line into a proper C declaration |
| 10071 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10072 | |
| 10073 | # Transform an extracted symbol line into symbol name and symbol address |
| 10074 | 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'" |
| 10075 | |
| 10076 | # Define system-specific variables. |
| 10077 | case $host_os in |
| 10078 | aix*) |
| 10079 | symcode='[BCDT]' |
| 10080 | ;; |
| 10081 | cygwin* | mingw* | pw32*) |
| 10082 | symcode='[ABCDGISTW]' |
| 10083 | ;; |
| 10084 | hpux*) # Its linker distinguishes data from code symbols |
| 10085 | if test "$host_cpu" = ia64; then |
| 10086 | symcode='[ABCDEGRST]' |
| 10087 | fi |
| 10088 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10089 | 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'" |
| 10090 | ;; |
| 10091 | linux*) |
| 10092 | if test "$host_cpu" = ia64; then |
| 10093 | symcode='[ABCDGIRSTW]' |
| 10094 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10095 | 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'" |
| 10096 | fi |
| 10097 | ;; |
| 10098 | irix* | nonstopux*) |
| 10099 | symcode='[BCDEGRST]' |
| 10100 | ;; |
| 10101 | osf*) |
| 10102 | symcode='[BCDEGQRST]' |
| 10103 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10104 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10105 | symcode='[BDRT]' |
| 10106 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10107 | sco3.2v5*) |
| 10108 | symcode='[DT]' |
| 10109 | ;; |
| 10110 | sysv4.2uw2*) |
| 10111 | symcode='[DT]' |
| 10112 | ;; |
| 10113 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10114 | symcode='[ABDT]' |
| 10115 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10116 | sysv4) |
| 10117 | symcode='[DFNSTU]' |
| 10118 | ;; |
| 10119 | esac |
| 10120 | |
| 10121 | # Handle CRLF in mingw tool chain |
| 10122 | opt_cr= |
| 10123 | case $build_os in |
| 10124 | mingw*) |
| 10125 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10126 | ;; |
| 10127 | esac |
| 10128 | |
| 10129 | # If we're using GNU nm, then use its standard symbol codes. |
| 10130 | case `$NM -V 2>&1` in |
| 10131 | *GNU* | *'with BFD'*) |
| 10132 | symcode='[ABCDGIRSTW]' ;; |
| 10133 | esac |
| 10134 | |
| 10135 | # Try without a prefix undercore, then with it. |
| 10136 | for ac_symprfx in "" "_"; do |
| 10137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10138 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10139 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10140 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10141 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10142 | 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] | 10143 | |
| 10144 | # Check to see that the pipe works correctly. |
| 10145 | pipe_works=no |
| 10146 | |
| 10147 | rm -f conftest* |
| 10148 | cat > conftest.$ac_ext <<EOF |
| 10149 | #ifdef __cplusplus |
| 10150 | extern "C" { |
| 10151 | #endif |
| 10152 | char nm_test_var; |
| 10153 | void nm_test_func(){} |
| 10154 | #ifdef __cplusplus |
| 10155 | } |
| 10156 | #endif |
| 10157 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10158 | EOF |
| 10159 | |
| 10160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10161 | (eval $ac_compile) 2>&5 |
| 10162 | ac_status=$? |
| 10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10164 | (exit $ac_status); }; then |
| 10165 | # Now try to grab the symbols. |
| 10166 | nlist=conftest.nm |
| 10167 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 10168 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10169 | ac_status=$? |
| 10170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10171 | (exit $ac_status); } && test -s "$nlist"; then |
| 10172 | # Try sorting and uniquifying the output. |
| 10173 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10174 | mv -f "$nlist"T "$nlist" |
| 10175 | else |
| 10176 | rm -f "$nlist"T |
| 10177 | fi |
| 10178 | |
| 10179 | # Make sure that we snagged all the symbols we need. |
| 10180 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10181 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10182 | cat <<EOF > conftest.$ac_ext |
| 10183 | #ifdef __cplusplus |
| 10184 | extern "C" { |
| 10185 | #endif |
| 10186 | |
| 10187 | EOF |
| 10188 | # Now generate the symbol file. |
| 10189 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10190 | |
| 10191 | cat <<EOF >> conftest.$ac_ext |
| 10192 | #if defined (__STDC__) && __STDC__ |
| 10193 | # define lt_ptr_t void * |
| 10194 | #else |
| 10195 | # define lt_ptr_t char * |
| 10196 | # define const |
| 10197 | #endif |
| 10198 | |
| 10199 | /* The mapping between symbol names and symbols. */ |
| 10200 | const struct { |
| 10201 | const char *name; |
| 10202 | lt_ptr_t address; |
| 10203 | } |
| 10204 | lt_preloaded_symbols[] = |
| 10205 | { |
| 10206 | EOF |
| 10207 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10208 | cat <<\EOF >> conftest.$ac_ext |
| 10209 | {0, (lt_ptr_t) 0} |
| 10210 | }; |
| 10211 | |
| 10212 | #ifdef __cplusplus |
| 10213 | } |
| 10214 | #endif |
| 10215 | EOF |
| 10216 | # Now try linking the two files. |
| 10217 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10218 | lt_save_LIBS="$LIBS" |
| 10219 | lt_save_CFLAGS="$CFLAGS" |
| 10220 | LIBS="conftstm.$ac_objext" |
| 10221 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 10222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10223 | (eval $ac_link) 2>&5 |
| 10224 | ac_status=$? |
| 10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10226 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 10227 | pipe_works=yes |
| 10228 | fi |
| 10229 | LIBS="$lt_save_LIBS" |
| 10230 | CFLAGS="$lt_save_CFLAGS" |
| 10231 | else |
| 10232 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10233 | fi |
| 10234 | else |
| 10235 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10236 | fi |
| 10237 | else |
| 10238 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10239 | fi |
| 10240 | else |
| 10241 | echo "$progname: failed program was:" >&5 |
| 10242 | cat conftest.$ac_ext >&5 |
| 10243 | fi |
| 10244 | rm -f conftest* conftst* |
| 10245 | |
| 10246 | # Do not use the global_symbol_pipe unless it works. |
| 10247 | if test "$pipe_works" = yes; then |
| 10248 | break |
| 10249 | else |
| 10250 | lt_cv_sys_global_symbol_pipe= |
| 10251 | fi |
| 10252 | done |
| 10253 | |
| 10254 | fi |
| 10255 | |
| 10256 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10257 | lt_cv_sys_global_symbol_to_cdecl= |
| 10258 | fi |
| 10259 | 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] | 10260 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10261 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10262 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10263 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10264 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10265 | fi |
| 10266 | |
| 10267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10268 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10269 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10270 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10272 | else |
| 10273 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10274 | libltdl_cv_preloaded_symbols=yes |
| 10275 | else |
| 10276 | libltdl_cv_preloaded_symbols=no |
| 10277 | fi |
| 10278 | |
| 10279 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10280 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10281 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10282 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10283 | |
| 10284 | cat >>confdefs.h <<\_ACEOF |
| 10285 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10286 | _ACEOF |
| 10287 | |
| 10288 | fi |
| 10289 | |
| 10290 | LIBADD_DL= |
| 10291 | |
| 10292 | ac_ext=c |
| 10293 | ac_cpp='$CPP $CPPFLAGS' |
| 10294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10297 | |
| 10298 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10299 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10300 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10301 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10303 | else |
| 10304 | cat >conftest.$ac_ext <<_ACEOF |
| 10305 | /* confdefs.h. */ |
| 10306 | _ACEOF |
| 10307 | cat confdefs.h >>conftest.$ac_ext |
| 10308 | cat >>conftest.$ac_ext <<_ACEOF |
| 10309 | /* end confdefs.h. */ |
| 10310 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10311 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10312 | #define shl_load innocuous_shl_load |
| 10313 | |
| 10314 | /* System header to define __stub macros and hopefully few prototypes, |
| 10315 | which can conflict with char shl_load (); below. |
| 10316 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10317 | <limits.h> exists even on freestanding compilers. */ |
| 10318 | |
| 10319 | #ifdef __STDC__ |
| 10320 | # include <limits.h> |
| 10321 | #else |
| 10322 | # include <assert.h> |
| 10323 | #endif |
| 10324 | |
| 10325 | #undef shl_load |
| 10326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10327 | /* Override any GCC internal prototype to avoid an error. |
| 10328 | Use char because int might match the return type of a GCC |
| 10329 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10330 | #ifdef __cplusplus |
| 10331 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10332 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10333 | char shl_load (); |
| 10334 | /* The GNU C library defines this for functions which it implements |
| 10335 | to always fail with ENOSYS. Some functions are actually named |
| 10336 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10337 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10338 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10339 | #endif |
| 10340 | |
| 10341 | int |
| 10342 | main () |
| 10343 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10344 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10345 | ; |
| 10346 | return 0; |
| 10347 | } |
| 10348 | _ACEOF |
| 10349 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10350 | if { (ac_try="$ac_link" |
| 10351 | case "(($ac_try" in |
| 10352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10353 | *) ac_try_echo=$ac_try;; |
| 10354 | esac |
| 10355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10356 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10357 | ac_status=$? |
| 10358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10359 | rm -f conftest.er1 |
| 10360 | cat conftest.err >&5 |
| 10361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10362 | (exit $ac_status); } && |
| 10363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10364 | { (case "(($ac_try" in |
| 10365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10366 | *) ac_try_echo=$ac_try;; |
| 10367 | esac |
| 10368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10369 | (eval "$ac_try") 2>&5 |
| 10370 | ac_status=$? |
| 10371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10372 | (exit $ac_status); }; } && |
| 10373 | { ac_try='test -s conftest$ac_exeext' |
| 10374 | { (case "(($ac_try" in |
| 10375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10376 | *) ac_try_echo=$ac_try;; |
| 10377 | esac |
| 10378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10379 | (eval "$ac_try") 2>&5 |
| 10380 | ac_status=$? |
| 10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10382 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10383 | ac_cv_func_shl_load=yes |
| 10384 | else |
| 10385 | echo "$as_me: failed program was:" >&5 |
| 10386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10388 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10389 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10390 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10391 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10392 | conftest$ac_exeext conftest.$ac_ext |
| 10393 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10394 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10395 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10396 | if test $ac_cv_func_shl_load = yes; then |
| 10397 | |
| 10398 | cat >>confdefs.h <<\_ACEOF |
| 10399 | #define HAVE_SHL_LOAD 1 |
| 10400 | _ACEOF |
| 10401 | |
| 10402 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10403 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10404 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10405 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10407 | else |
| 10408 | ac_check_lib_save_LIBS=$LIBS |
| 10409 | LIBS="-ldld $LIBS" |
| 10410 | cat >conftest.$ac_ext <<_ACEOF |
| 10411 | /* confdefs.h. */ |
| 10412 | _ACEOF |
| 10413 | cat confdefs.h >>conftest.$ac_ext |
| 10414 | cat >>conftest.$ac_ext <<_ACEOF |
| 10415 | /* end confdefs.h. */ |
| 10416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10417 | /* Override any GCC internal prototype to avoid an error. |
| 10418 | Use char because int might match the return type of a GCC |
| 10419 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10420 | #ifdef __cplusplus |
| 10421 | extern "C" |
| 10422 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10423 | char shl_load (); |
| 10424 | int |
| 10425 | main () |
| 10426 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10427 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10428 | ; |
| 10429 | return 0; |
| 10430 | } |
| 10431 | _ACEOF |
| 10432 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10433 | if { (ac_try="$ac_link" |
| 10434 | case "(($ac_try" in |
| 10435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10436 | *) ac_try_echo=$ac_try;; |
| 10437 | esac |
| 10438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10439 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10440 | ac_status=$? |
| 10441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10442 | rm -f conftest.er1 |
| 10443 | cat conftest.err >&5 |
| 10444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10445 | (exit $ac_status); } && |
| 10446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10447 | { (case "(($ac_try" in |
| 10448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10449 | *) ac_try_echo=$ac_try;; |
| 10450 | esac |
| 10451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10452 | (eval "$ac_try") 2>&5 |
| 10453 | ac_status=$? |
| 10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10455 | (exit $ac_status); }; } && |
| 10456 | { ac_try='test -s conftest$ac_exeext' |
| 10457 | { (case "(($ac_try" in |
| 10458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10459 | *) ac_try_echo=$ac_try;; |
| 10460 | esac |
| 10461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10462 | (eval "$ac_try") 2>&5 |
| 10463 | ac_status=$? |
| 10464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10465 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10466 | ac_cv_lib_dld_shl_load=yes |
| 10467 | else |
| 10468 | echo "$as_me: failed program was:" >&5 |
| 10469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10470 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10471 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10472 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10473 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10474 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10475 | conftest$ac_exeext conftest.$ac_ext |
| 10476 | LIBS=$ac_check_lib_save_LIBS |
| 10477 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10478 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10479 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10480 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10481 | |
| 10482 | cat >>confdefs.h <<\_ACEOF |
| 10483 | #define HAVE_SHL_LOAD 1 |
| 10484 | _ACEOF |
| 10485 | |
| 10486 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10487 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10488 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10489 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10490 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10492 | else |
| 10493 | ac_check_lib_save_LIBS=$LIBS |
| 10494 | LIBS="-ldl $LIBS" |
| 10495 | cat >conftest.$ac_ext <<_ACEOF |
| 10496 | /* confdefs.h. */ |
| 10497 | _ACEOF |
| 10498 | cat confdefs.h >>conftest.$ac_ext |
| 10499 | cat >>conftest.$ac_ext <<_ACEOF |
| 10500 | /* end confdefs.h. */ |
| 10501 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10502 | /* Override any GCC internal prototype to avoid an error. |
| 10503 | Use char because int might match the return type of a GCC |
| 10504 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10505 | #ifdef __cplusplus |
| 10506 | extern "C" |
| 10507 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10508 | char dlopen (); |
| 10509 | int |
| 10510 | main () |
| 10511 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10512 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10513 | ; |
| 10514 | return 0; |
| 10515 | } |
| 10516 | _ACEOF |
| 10517 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10518 | if { (ac_try="$ac_link" |
| 10519 | case "(($ac_try" in |
| 10520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10521 | *) ac_try_echo=$ac_try;; |
| 10522 | esac |
| 10523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10524 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10525 | ac_status=$? |
| 10526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10527 | rm -f conftest.er1 |
| 10528 | cat conftest.err >&5 |
| 10529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10530 | (exit $ac_status); } && |
| 10531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10532 | { (case "(($ac_try" in |
| 10533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10534 | *) ac_try_echo=$ac_try;; |
| 10535 | esac |
| 10536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10537 | (eval "$ac_try") 2>&5 |
| 10538 | ac_status=$? |
| 10539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10540 | (exit $ac_status); }; } && |
| 10541 | { ac_try='test -s conftest$ac_exeext' |
| 10542 | { (case "(($ac_try" in |
| 10543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10544 | *) ac_try_echo=$ac_try;; |
| 10545 | esac |
| 10546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10547 | (eval "$ac_try") 2>&5 |
| 10548 | ac_status=$? |
| 10549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10550 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10551 | ac_cv_lib_dl_dlopen=yes |
| 10552 | else |
| 10553 | echo "$as_me: failed program was:" >&5 |
| 10554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10555 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10556 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10557 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10558 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10559 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10560 | conftest$ac_exeext conftest.$ac_ext |
| 10561 | LIBS=$ac_check_lib_save_LIBS |
| 10562 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10563 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10564 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10565 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10566 | |
| 10567 | cat >>confdefs.h <<\_ACEOF |
| 10568 | #define HAVE_LIBDL 1 |
| 10569 | _ACEOF |
| 10570 | |
| 10571 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10572 | else |
| 10573 | cat >conftest.$ac_ext <<_ACEOF |
| 10574 | /* confdefs.h. */ |
| 10575 | _ACEOF |
| 10576 | cat confdefs.h >>conftest.$ac_ext |
| 10577 | cat >>conftest.$ac_ext <<_ACEOF |
| 10578 | /* end confdefs.h. */ |
| 10579 | #if HAVE_DLFCN_H |
| 10580 | # include <dlfcn.h> |
| 10581 | #endif |
| 10582 | |
| 10583 | int |
| 10584 | main () |
| 10585 | { |
| 10586 | dlopen(0, 0); |
| 10587 | ; |
| 10588 | return 0; |
| 10589 | } |
| 10590 | _ACEOF |
| 10591 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10592 | if { (ac_try="$ac_link" |
| 10593 | case "(($ac_try" in |
| 10594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10595 | *) ac_try_echo=$ac_try;; |
| 10596 | esac |
| 10597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10598 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10599 | ac_status=$? |
| 10600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10601 | rm -f conftest.er1 |
| 10602 | cat conftest.err >&5 |
| 10603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10604 | (exit $ac_status); } && |
| 10605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10606 | { (case "(($ac_try" in |
| 10607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10608 | *) ac_try_echo=$ac_try;; |
| 10609 | esac |
| 10610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10611 | (eval "$ac_try") 2>&5 |
| 10612 | ac_status=$? |
| 10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10614 | (exit $ac_status); }; } && |
| 10615 | { ac_try='test -s conftest$ac_exeext' |
| 10616 | { (case "(($ac_try" in |
| 10617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10618 | *) ac_try_echo=$ac_try;; |
| 10619 | esac |
| 10620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10621 | (eval "$ac_try") 2>&5 |
| 10622 | ac_status=$? |
| 10623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10624 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10625 | |
| 10626 | cat >>confdefs.h <<\_ACEOF |
| 10627 | #define HAVE_LIBDL 1 |
| 10628 | _ACEOF |
| 10629 | libltdl_cv_func_dlopen="yes" |
| 10630 | else |
| 10631 | echo "$as_me: failed program was:" >&5 |
| 10632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10634 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10635 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10636 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10638 | else |
| 10639 | ac_check_lib_save_LIBS=$LIBS |
| 10640 | LIBS="-lsvld $LIBS" |
| 10641 | cat >conftest.$ac_ext <<_ACEOF |
| 10642 | /* confdefs.h. */ |
| 10643 | _ACEOF |
| 10644 | cat confdefs.h >>conftest.$ac_ext |
| 10645 | cat >>conftest.$ac_ext <<_ACEOF |
| 10646 | /* end confdefs.h. */ |
| 10647 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10648 | /* Override any GCC internal prototype to avoid an error. |
| 10649 | Use char because int might match the return type of a GCC |
| 10650 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10651 | #ifdef __cplusplus |
| 10652 | extern "C" |
| 10653 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10654 | char dlopen (); |
| 10655 | int |
| 10656 | main () |
| 10657 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10658 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10659 | ; |
| 10660 | return 0; |
| 10661 | } |
| 10662 | _ACEOF |
| 10663 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10664 | if { (ac_try="$ac_link" |
| 10665 | case "(($ac_try" in |
| 10666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10667 | *) ac_try_echo=$ac_try;; |
| 10668 | esac |
| 10669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10670 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10671 | ac_status=$? |
| 10672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10673 | rm -f conftest.er1 |
| 10674 | cat conftest.err >&5 |
| 10675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10676 | (exit $ac_status); } && |
| 10677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10678 | { (case "(($ac_try" in |
| 10679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10680 | *) ac_try_echo=$ac_try;; |
| 10681 | esac |
| 10682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10683 | (eval "$ac_try") 2>&5 |
| 10684 | ac_status=$? |
| 10685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10686 | (exit $ac_status); }; } && |
| 10687 | { ac_try='test -s conftest$ac_exeext' |
| 10688 | { (case "(($ac_try" in |
| 10689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10690 | *) ac_try_echo=$ac_try;; |
| 10691 | esac |
| 10692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10693 | (eval "$ac_try") 2>&5 |
| 10694 | ac_status=$? |
| 10695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10696 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10697 | ac_cv_lib_svld_dlopen=yes |
| 10698 | else |
| 10699 | echo "$as_me: failed program was:" >&5 |
| 10700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10701 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10702 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10703 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10704 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10705 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10706 | conftest$ac_exeext conftest.$ac_ext |
| 10707 | LIBS=$ac_check_lib_save_LIBS |
| 10708 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10709 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10710 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10711 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10712 | |
| 10713 | cat >>confdefs.h <<\_ACEOF |
| 10714 | #define HAVE_LIBDL 1 |
| 10715 | _ACEOF |
| 10716 | |
| 10717 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10718 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10719 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10720 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10721 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10723 | else |
| 10724 | ac_check_lib_save_LIBS=$LIBS |
| 10725 | LIBS="-ldld $LIBS" |
| 10726 | cat >conftest.$ac_ext <<_ACEOF |
| 10727 | /* confdefs.h. */ |
| 10728 | _ACEOF |
| 10729 | cat confdefs.h >>conftest.$ac_ext |
| 10730 | cat >>conftest.$ac_ext <<_ACEOF |
| 10731 | /* end confdefs.h. */ |
| 10732 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10733 | /* Override any GCC internal prototype to avoid an error. |
| 10734 | Use char because int might match the return type of a GCC |
| 10735 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10736 | #ifdef __cplusplus |
| 10737 | extern "C" |
| 10738 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10739 | char dld_link (); |
| 10740 | int |
| 10741 | main () |
| 10742 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10743 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10744 | ; |
| 10745 | return 0; |
| 10746 | } |
| 10747 | _ACEOF |
| 10748 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10749 | if { (ac_try="$ac_link" |
| 10750 | case "(($ac_try" in |
| 10751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10752 | *) ac_try_echo=$ac_try;; |
| 10753 | esac |
| 10754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10755 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10756 | ac_status=$? |
| 10757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10758 | rm -f conftest.er1 |
| 10759 | cat conftest.err >&5 |
| 10760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10761 | (exit $ac_status); } && |
| 10762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10763 | { (case "(($ac_try" in |
| 10764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10765 | *) ac_try_echo=$ac_try;; |
| 10766 | esac |
| 10767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10768 | (eval "$ac_try") 2>&5 |
| 10769 | ac_status=$? |
| 10770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10771 | (exit $ac_status); }; } && |
| 10772 | { ac_try='test -s conftest$ac_exeext' |
| 10773 | { (case "(($ac_try" in |
| 10774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10775 | *) ac_try_echo=$ac_try;; |
| 10776 | esac |
| 10777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10778 | (eval "$ac_try") 2>&5 |
| 10779 | ac_status=$? |
| 10780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10781 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10782 | ac_cv_lib_dld_dld_link=yes |
| 10783 | else |
| 10784 | echo "$as_me: failed program was:" >&5 |
| 10785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10786 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10787 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10788 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10789 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10790 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10791 | conftest$ac_exeext conftest.$ac_ext |
| 10792 | LIBS=$ac_check_lib_save_LIBS |
| 10793 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10794 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10795 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10796 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10797 | |
| 10798 | cat >>confdefs.h <<\_ACEOF |
| 10799 | #define HAVE_DLD 1 |
| 10800 | _ACEOF |
| 10801 | |
| 10802 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10803 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10804 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10805 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10806 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10808 | else |
| 10809 | cat >conftest.$ac_ext <<_ACEOF |
| 10810 | /* confdefs.h. */ |
| 10811 | _ACEOF |
| 10812 | cat confdefs.h >>conftest.$ac_ext |
| 10813 | cat >>conftest.$ac_ext <<_ACEOF |
| 10814 | /* end confdefs.h. */ |
| 10815 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10816 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10817 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10818 | |
| 10819 | /* System header to define __stub macros and hopefully few prototypes, |
| 10820 | which can conflict with char _dyld_func_lookup (); below. |
| 10821 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10822 | <limits.h> exists even on freestanding compilers. */ |
| 10823 | |
| 10824 | #ifdef __STDC__ |
| 10825 | # include <limits.h> |
| 10826 | #else |
| 10827 | # include <assert.h> |
| 10828 | #endif |
| 10829 | |
| 10830 | #undef _dyld_func_lookup |
| 10831 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10832 | /* Override any GCC internal prototype to avoid an error. |
| 10833 | Use char because int might match the return type of a GCC |
| 10834 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10835 | #ifdef __cplusplus |
| 10836 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10837 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10838 | char _dyld_func_lookup (); |
| 10839 | /* The GNU C library defines this for functions which it implements |
| 10840 | to always fail with ENOSYS. Some functions are actually named |
| 10841 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10842 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10843 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10844 | #endif |
| 10845 | |
| 10846 | int |
| 10847 | main () |
| 10848 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10849 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10850 | ; |
| 10851 | return 0; |
| 10852 | } |
| 10853 | _ACEOF |
| 10854 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10855 | if { (ac_try="$ac_link" |
| 10856 | case "(($ac_try" in |
| 10857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10858 | *) ac_try_echo=$ac_try;; |
| 10859 | esac |
| 10860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10861 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10862 | ac_status=$? |
| 10863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10864 | rm -f conftest.er1 |
| 10865 | cat conftest.err >&5 |
| 10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10867 | (exit $ac_status); } && |
| 10868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10869 | { (case "(($ac_try" in |
| 10870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10871 | *) ac_try_echo=$ac_try;; |
| 10872 | esac |
| 10873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10874 | (eval "$ac_try") 2>&5 |
| 10875 | ac_status=$? |
| 10876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10877 | (exit $ac_status); }; } && |
| 10878 | { ac_try='test -s conftest$ac_exeext' |
| 10879 | { (case "(($ac_try" in |
| 10880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10881 | *) ac_try_echo=$ac_try;; |
| 10882 | esac |
| 10883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10884 | (eval "$ac_try") 2>&5 |
| 10885 | ac_status=$? |
| 10886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10887 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10888 | ac_cv_func__dyld_func_lookup=yes |
| 10889 | else |
| 10890 | echo "$as_me: failed program was:" >&5 |
| 10891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10893 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10894 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10895 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10896 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10897 | conftest$ac_exeext conftest.$ac_ext |
| 10898 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10899 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10900 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10901 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10902 | |
| 10903 | cat >>confdefs.h <<\_ACEOF |
| 10904 | #define HAVE_DYLD 1 |
| 10905 | _ACEOF |
| 10906 | |
| 10907 | fi |
| 10908 | |
| 10909 | |
| 10910 | fi |
| 10911 | |
| 10912 | |
| 10913 | fi |
| 10914 | |
| 10915 | |
| 10916 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10917 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10918 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10919 | conftest$ac_exeext conftest.$ac_ext |
| 10920 | |
| 10921 | fi |
| 10922 | |
| 10923 | |
| 10924 | fi |
| 10925 | |
| 10926 | |
| 10927 | fi |
| 10928 | |
| 10929 | |
| 10930 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10931 | then |
| 10932 | lt_save_LIBS="$LIBS" |
| 10933 | LIBS="$LIBS $LIBADD_DL" |
| 10934 | |
| 10935 | for ac_func in dlerror |
| 10936 | do |
| 10937 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10938 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10939 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10940 | 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] | 10941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10942 | else |
| 10943 | cat >conftest.$ac_ext <<_ACEOF |
| 10944 | /* confdefs.h. */ |
| 10945 | _ACEOF |
| 10946 | cat confdefs.h >>conftest.$ac_ext |
| 10947 | cat >>conftest.$ac_ext <<_ACEOF |
| 10948 | /* end confdefs.h. */ |
| 10949 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10950 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10951 | #define $ac_func innocuous_$ac_func |
| 10952 | |
| 10953 | /* System header to define __stub macros and hopefully few prototypes, |
| 10954 | which can conflict with char $ac_func (); below. |
| 10955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10956 | <limits.h> exists even on freestanding compilers. */ |
| 10957 | |
| 10958 | #ifdef __STDC__ |
| 10959 | # include <limits.h> |
| 10960 | #else |
| 10961 | # include <assert.h> |
| 10962 | #endif |
| 10963 | |
| 10964 | #undef $ac_func |
| 10965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10966 | /* Override any GCC internal prototype to avoid an error. |
| 10967 | Use char because int might match the return type of a GCC |
| 10968 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10969 | #ifdef __cplusplus |
| 10970 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10971 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10972 | char $ac_func (); |
| 10973 | /* The GNU C library defines this for functions which it implements |
| 10974 | to always fail with ENOSYS. Some functions are actually named |
| 10975 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10976 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10977 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10978 | #endif |
| 10979 | |
| 10980 | int |
| 10981 | main () |
| 10982 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10983 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10984 | ; |
| 10985 | return 0; |
| 10986 | } |
| 10987 | _ACEOF |
| 10988 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10989 | if { (ac_try="$ac_link" |
| 10990 | case "(($ac_try" in |
| 10991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10992 | *) ac_try_echo=$ac_try;; |
| 10993 | esac |
| 10994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10995 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10996 | ac_status=$? |
| 10997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10998 | rm -f conftest.er1 |
| 10999 | cat conftest.err >&5 |
| 11000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11001 | (exit $ac_status); } && |
| 11002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11003 | { (case "(($ac_try" in |
| 11004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11005 | *) ac_try_echo=$ac_try;; |
| 11006 | esac |
| 11007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11008 | (eval "$ac_try") 2>&5 |
| 11009 | ac_status=$? |
| 11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11011 | (exit $ac_status); }; } && |
| 11012 | { ac_try='test -s conftest$ac_exeext' |
| 11013 | { (case "(($ac_try" in |
| 11014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11015 | *) ac_try_echo=$ac_try;; |
| 11016 | esac |
| 11017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11018 | (eval "$ac_try") 2>&5 |
| 11019 | ac_status=$? |
| 11020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11021 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11022 | eval "$as_ac_var=yes" |
| 11023 | else |
| 11024 | echo "$as_me: failed program was:" >&5 |
| 11025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11027 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11028 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11029 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11030 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11031 | conftest$ac_exeext conftest.$ac_ext |
| 11032 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11033 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11034 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11035 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11036 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11037 | cat >>confdefs.h <<_ACEOF |
| 11038 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11039 | _ACEOF |
| 11040 | |
| 11041 | fi |
| 11042 | done |
| 11043 | |
| 11044 | LIBS="$lt_save_LIBS" |
| 11045 | fi |
| 11046 | ac_ext=c |
| 11047 | ac_cpp='$CPP $CPPFLAGS' |
| 11048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11051 | |
| 11052 | |
| 11053 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11054 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11055 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11056 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11058 | else |
| 11059 | ac_cv_sys_symbol_underscore=no |
| 11060 | cat > conftest.$ac_ext <<EOF |
| 11061 | void nm_test_func(){} |
| 11062 | int main(){nm_test_func;return 0;} |
| 11063 | EOF |
| 11064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11065 | (eval $ac_compile) 2>&5 |
| 11066 | ac_status=$? |
| 11067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11068 | (exit $ac_status); }; then |
| 11069 | # Now try to grab the symbols. |
| 11070 | ac_nlist=conftest.nm |
| 11071 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 11072 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11073 | ac_status=$? |
| 11074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11075 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 11076 | # See whether the symbols have a leading underscore. |
| 11077 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11078 | ac_cv_sys_symbol_underscore=yes |
| 11079 | else |
| 11080 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11081 | : |
| 11082 | else |
| 11083 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11084 | fi |
| 11085 | fi |
| 11086 | else |
| 11087 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11088 | fi |
| 11089 | else |
| 11090 | echo "configure: failed program was:" >&5 |
| 11091 | cat conftest.c >&5 |
| 11092 | fi |
| 11093 | rm -rf conftest* |
| 11094 | |
| 11095 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11096 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11097 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11098 | |
| 11099 | |
| 11100 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11101 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11102 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11103 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11104 | 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] | 11105 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11107 | else |
| 11108 | libltdl_cv_need_uscore=unknown |
| 11109 | save_LIBS="$LIBS" |
| 11110 | LIBS="$LIBS $LIBADD_DL" |
| 11111 | if test "$cross_compiling" = yes; then : |
| 11112 | libltdl_cv_need_uscore=cross |
| 11113 | else |
| 11114 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11115 | lt_status=$lt_dlunknown |
| 11116 | cat > conftest.$ac_ext <<EOF |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 11117 | #line 11117 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11118 | #include "confdefs.h" |
| 11119 | |
| 11120 | #if HAVE_DLFCN_H |
| 11121 | #include <dlfcn.h> |
| 11122 | #endif |
| 11123 | |
| 11124 | #include <stdio.h> |
| 11125 | |
| 11126 | #ifdef RTLD_GLOBAL |
| 11127 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11128 | #else |
| 11129 | # ifdef DL_GLOBAL |
| 11130 | # define LT_DLGLOBAL DL_GLOBAL |
| 11131 | # else |
| 11132 | # define LT_DLGLOBAL 0 |
| 11133 | # endif |
| 11134 | #endif |
| 11135 | |
| 11136 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11137 | find out it does not work in some platform. */ |
| 11138 | #ifndef LT_DLLAZY_OR_NOW |
| 11139 | # ifdef RTLD_LAZY |
| 11140 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11141 | # else |
| 11142 | # ifdef DL_LAZY |
| 11143 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11144 | # else |
| 11145 | # ifdef RTLD_NOW |
| 11146 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11147 | # else |
| 11148 | # ifdef DL_NOW |
| 11149 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11150 | # else |
| 11151 | # define LT_DLLAZY_OR_NOW 0 |
| 11152 | # endif |
| 11153 | # endif |
| 11154 | # endif |
| 11155 | # endif |
| 11156 | #endif |
| 11157 | |
| 11158 | #ifdef __cplusplus |
| 11159 | extern "C" void exit (int); |
| 11160 | #endif |
| 11161 | |
| 11162 | void fnord() { int i=42;} |
| 11163 | int main () |
| 11164 | { |
| 11165 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11166 | int status = $lt_dlunknown; |
| 11167 | |
| 11168 | if (self) |
| 11169 | { |
| 11170 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11171 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11172 | /* dlclose (self); */ |
| 11173 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11174 | else |
| 11175 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11176 | |
| 11177 | exit (status); |
| 11178 | } |
| 11179 | EOF |
| 11180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11181 | (eval $ac_link) 2>&5 |
| 11182 | ac_status=$? |
| 11183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11184 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11185 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11186 | lt_status=$? |
| 11187 | case x$lt_status in |
| 11188 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11189 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11190 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11191 | esac |
| 11192 | else : |
| 11193 | # compilation failed |
| 11194 | |
| 11195 | fi |
| 11196 | fi |
| 11197 | rm -fr conftest* |
| 11198 | |
| 11199 | LIBS="$save_LIBS" |
| 11200 | |
| 11201 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11202 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11203 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11204 | fi |
| 11205 | fi |
| 11206 | |
| 11207 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11208 | |
| 11209 | cat >>confdefs.h <<\_ACEOF |
| 11210 | #define NEED_USCORE 1 |
| 11211 | _ACEOF |
| 11212 | |
| 11213 | fi |
| 11214 | |
| 11215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11216 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11217 | 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] | 11218 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11220 | else |
| 11221 | # PORTME does your system automatically load deplibs for dlopen? |
| 11222 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11223 | # For now, we just catch OSes we know something about -- in the |
| 11224 | # future, we'll try test this programmatically. |
| 11225 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11226 | case "$host_os" in |
| 11227 | aix3*|aix4.1.*|aix4.2.*) |
| 11228 | # Unknown whether this is true for these versions of AIX, but |
| 11229 | # we want this `case' here to explicitly catch those versions. |
| 11230 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11231 | ;; |
| 11232 | aix[45]*) |
| 11233 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11234 | ;; |
| 11235 | darwin*) |
| 11236 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11237 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11238 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11239 | ;; |
| 11240 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11241 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11242 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11243 | ;; |
| 11244 | hpux10*|hpux11*) |
| 11245 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11246 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11247 | interix*) |
| 11248 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11249 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11250 | irix[12345]*|irix6.[01]*) |
| 11251 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11252 | # know how it worked for any of those versions. |
| 11253 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11254 | ;; |
| 11255 | irix*) |
| 11256 | # The case above catches anything before 6.2, and it's known that |
| 11257 | # at 6.2 and later dlopen does load deplibs. |
| 11258 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11259 | ;; |
| 11260 | netbsd*) |
| 11261 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11262 | ;; |
| 11263 | openbsd*) |
| 11264 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11265 | ;; |
| 11266 | osf[1234]*) |
| 11267 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11268 | # it did *not* use an RPATH in a shared library to find objects the |
| 11269 | # library depends on, so we explictly say `no'. |
| 11270 | libltdl_cv_sys_dlopen_deplibs=no |
| 11271 | ;; |
| 11272 | osf5.0|osf5.0a|osf5.1) |
| 11273 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11274 | # it even uses RPATH in a shared library to search for shared objects |
| 11275 | # that the library depends on, but there's no easy way to know if that |
| 11276 | # patch is installed. Since this is the case, all we can really |
| 11277 | # say is unknown -- it depends on the patch being installed. If |
| 11278 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11279 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11280 | ;; |
| 11281 | osf*) |
| 11282 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11283 | # the comments above for what we know about them. |
| 11284 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11285 | # is used to find them so we can finally say `yes'. |
| 11286 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11287 | ;; |
| 11288 | solaris*) |
| 11289 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11290 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11291 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11292 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11293 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11294 | esac |
| 11295 | |
| 11296 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11297 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11298 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11299 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11300 | |
| 11301 | cat >>confdefs.h <<\_ACEOF |
| 11302 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11303 | _ACEOF |
| 11304 | |
| 11305 | fi |
| 11306 | |
| 11307 | |
| 11308 | for ac_header in argz.h |
| 11309 | do |
| 11310 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11312 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11314 | 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] | 11315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11316 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11317 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11318 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11319 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11320 | else |
| 11321 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11322 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11323 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11324 | cat >conftest.$ac_ext <<_ACEOF |
| 11325 | /* confdefs.h. */ |
| 11326 | _ACEOF |
| 11327 | cat confdefs.h >>conftest.$ac_ext |
| 11328 | cat >>conftest.$ac_ext <<_ACEOF |
| 11329 | /* end confdefs.h. */ |
| 11330 | $ac_includes_default |
| 11331 | #include <$ac_header> |
| 11332 | _ACEOF |
| 11333 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11334 | if { (ac_try="$ac_compile" |
| 11335 | case "(($ac_try" in |
| 11336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11337 | *) ac_try_echo=$ac_try;; |
| 11338 | esac |
| 11339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11340 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11341 | ac_status=$? |
| 11342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11343 | rm -f conftest.er1 |
| 11344 | cat conftest.err >&5 |
| 11345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11346 | (exit $ac_status); } && |
| 11347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11348 | { (case "(($ac_try" in |
| 11349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11350 | *) ac_try_echo=$ac_try;; |
| 11351 | esac |
| 11352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11353 | (eval "$ac_try") 2>&5 |
| 11354 | ac_status=$? |
| 11355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11356 | (exit $ac_status); }; } && |
| 11357 | { ac_try='test -s conftest.$ac_objext' |
| 11358 | { (case "(($ac_try" in |
| 11359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11360 | *) ac_try_echo=$ac_try;; |
| 11361 | esac |
| 11362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11363 | (eval "$ac_try") 2>&5 |
| 11364 | ac_status=$? |
| 11365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11366 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11367 | ac_header_compiler=yes |
| 11368 | else |
| 11369 | echo "$as_me: failed program was:" >&5 |
| 11370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11372 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11373 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11374 | |
| 11375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11376 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11377 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11378 | |
| 11379 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11380 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11381 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11382 | cat >conftest.$ac_ext <<_ACEOF |
| 11383 | /* confdefs.h. */ |
| 11384 | _ACEOF |
| 11385 | cat confdefs.h >>conftest.$ac_ext |
| 11386 | cat >>conftest.$ac_ext <<_ACEOF |
| 11387 | /* end confdefs.h. */ |
| 11388 | #include <$ac_header> |
| 11389 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11390 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11391 | case "(($ac_try" in |
| 11392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11393 | *) ac_try_echo=$ac_try;; |
| 11394 | esac |
| 11395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11396 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11397 | ac_status=$? |
| 11398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11399 | rm -f conftest.er1 |
| 11400 | cat conftest.err >&5 |
| 11401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11402 | (exit $ac_status); } >/dev/null; then |
| 11403 | if test -s conftest.err; then |
| 11404 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11405 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11406 | else |
| 11407 | ac_cpp_err= |
| 11408 | fi |
| 11409 | else |
| 11410 | ac_cpp_err=yes |
| 11411 | fi |
| 11412 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11413 | ac_header_preproc=yes |
| 11414 | else |
| 11415 | echo "$as_me: failed program was:" >&5 |
| 11416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11417 | |
| 11418 | ac_header_preproc=no |
| 11419 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11420 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11421 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11422 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11423 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11424 | |
| 11425 | # So? What about this header? |
| 11426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11427 | yes:no: ) |
| 11428 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11429 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11431 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11432 | ac_header_preproc=yes |
| 11433 | ;; |
| 11434 | no:yes:* ) |
| 11435 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11436 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11437 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11438 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11439 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11440 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11441 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11442 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11445 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11446 | 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] | 11447 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11448 | ## ----------------------------------- ## |
| 11449 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11450 | ## ----------------------------------- ## |
| 11451 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11452 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11453 | ;; |
| 11454 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11455 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11457 | 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] | 11458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11459 | else |
| 11460 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11461 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11462 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11463 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11464 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11465 | |
| 11466 | fi |
| 11467 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11468 | cat >>confdefs.h <<_ACEOF |
| 11469 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11470 | _ACEOF |
| 11471 | |
| 11472 | fi |
| 11473 | |
| 11474 | done |
| 11475 | |
| 11476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11477 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11478 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11479 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11481 | else |
| 11482 | cat >conftest.$ac_ext <<_ACEOF |
| 11483 | /* confdefs.h. */ |
| 11484 | _ACEOF |
| 11485 | cat confdefs.h >>conftest.$ac_ext |
| 11486 | cat >>conftest.$ac_ext <<_ACEOF |
| 11487 | /* end confdefs.h. */ |
| 11488 | #if HAVE_ARGZ_H |
| 11489 | # include <argz.h> |
| 11490 | #endif |
| 11491 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11492 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11493 | int |
| 11494 | main () |
| 11495 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11496 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11497 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11498 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11499 | return 0; |
| 11500 | ; |
| 11501 | return 0; |
| 11502 | } |
| 11503 | _ACEOF |
| 11504 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11505 | if { (ac_try="$ac_compile" |
| 11506 | case "(($ac_try" in |
| 11507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11508 | *) ac_try_echo=$ac_try;; |
| 11509 | esac |
| 11510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11511 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11512 | ac_status=$? |
| 11513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11514 | rm -f conftest.er1 |
| 11515 | cat conftest.err >&5 |
| 11516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11517 | (exit $ac_status); } && |
| 11518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11519 | { (case "(($ac_try" in |
| 11520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11521 | *) ac_try_echo=$ac_try;; |
| 11522 | esac |
| 11523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11524 | (eval "$ac_try") 2>&5 |
| 11525 | ac_status=$? |
| 11526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11527 | (exit $ac_status); }; } && |
| 11528 | { ac_try='test -s conftest.$ac_objext' |
| 11529 | { (case "(($ac_try" in |
| 11530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11531 | *) ac_try_echo=$ac_try;; |
| 11532 | esac |
| 11533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11534 | (eval "$ac_try") 2>&5 |
| 11535 | ac_status=$? |
| 11536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11537 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11538 | ac_cv_type_error_t=yes |
| 11539 | else |
| 11540 | echo "$as_me: failed program was:" >&5 |
| 11541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11543 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11544 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11545 | |
| 11546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11547 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11548 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11549 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11550 | if test $ac_cv_type_error_t = yes; then |
| 11551 | |
| 11552 | cat >>confdefs.h <<_ACEOF |
| 11553 | #define HAVE_ERROR_T 1 |
| 11554 | _ACEOF |
| 11555 | |
| 11556 | |
| 11557 | else |
| 11558 | |
| 11559 | cat >>confdefs.h <<\_ACEOF |
| 11560 | #define error_t int |
| 11561 | _ACEOF |
| 11562 | |
| 11563 | fi |
| 11564 | |
| 11565 | |
| 11566 | |
| 11567 | |
| 11568 | |
| 11569 | |
| 11570 | |
| 11571 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11572 | do |
| 11573 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11574 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11575 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11576 | 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] | 11577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11578 | else |
| 11579 | cat >conftest.$ac_ext <<_ACEOF |
| 11580 | /* confdefs.h. */ |
| 11581 | _ACEOF |
| 11582 | cat confdefs.h >>conftest.$ac_ext |
| 11583 | cat >>conftest.$ac_ext <<_ACEOF |
| 11584 | /* end confdefs.h. */ |
| 11585 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11587 | #define $ac_func innocuous_$ac_func |
| 11588 | |
| 11589 | /* System header to define __stub macros and hopefully few prototypes, |
| 11590 | which can conflict with char $ac_func (); below. |
| 11591 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11592 | <limits.h> exists even on freestanding compilers. */ |
| 11593 | |
| 11594 | #ifdef __STDC__ |
| 11595 | # include <limits.h> |
| 11596 | #else |
| 11597 | # include <assert.h> |
| 11598 | #endif |
| 11599 | |
| 11600 | #undef $ac_func |
| 11601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11602 | /* Override any GCC internal prototype to avoid an error. |
| 11603 | Use char because int might match the return type of a GCC |
| 11604 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11605 | #ifdef __cplusplus |
| 11606 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11607 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11608 | char $ac_func (); |
| 11609 | /* The GNU C library defines this for functions which it implements |
| 11610 | to always fail with ENOSYS. Some functions are actually named |
| 11611 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11612 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11613 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11614 | #endif |
| 11615 | |
| 11616 | int |
| 11617 | main () |
| 11618 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11619 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11620 | ; |
| 11621 | return 0; |
| 11622 | } |
| 11623 | _ACEOF |
| 11624 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11625 | if { (ac_try="$ac_link" |
| 11626 | case "(($ac_try" in |
| 11627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11628 | *) ac_try_echo=$ac_try;; |
| 11629 | esac |
| 11630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11631 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11632 | ac_status=$? |
| 11633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11634 | rm -f conftest.er1 |
| 11635 | cat conftest.err >&5 |
| 11636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11637 | (exit $ac_status); } && |
| 11638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11639 | { (case "(($ac_try" in |
| 11640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11641 | *) ac_try_echo=$ac_try;; |
| 11642 | esac |
| 11643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11644 | (eval "$ac_try") 2>&5 |
| 11645 | ac_status=$? |
| 11646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11647 | (exit $ac_status); }; } && |
| 11648 | { ac_try='test -s conftest$ac_exeext' |
| 11649 | { (case "(($ac_try" in |
| 11650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11651 | *) ac_try_echo=$ac_try;; |
| 11652 | esac |
| 11653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11654 | (eval "$ac_try") 2>&5 |
| 11655 | ac_status=$? |
| 11656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11657 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11658 | eval "$as_ac_var=yes" |
| 11659 | else |
| 11660 | echo "$as_me: failed program was:" >&5 |
| 11661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11663 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11664 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11665 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11666 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11667 | conftest$ac_exeext conftest.$ac_ext |
| 11668 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11669 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11670 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11671 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11672 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11673 | cat >>confdefs.h <<_ACEOF |
| 11674 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11675 | _ACEOF |
| 11676 | |
| 11677 | fi |
| 11678 | done |
| 11679 | |
| 11680 | |
| 11681 | |
| 11682 | |
| 11683 | |
| 11684 | |
| 11685 | |
| 11686 | |
| 11687 | |
| 11688 | |
| 11689 | |
| 11690 | |
| 11691 | |
| 11692 | |
| 11693 | |
| 11694 | |
| 11695 | |
| 11696 | |
| 11697 | |
| 11698 | |
| 11699 | |
| 11700 | |
| 11701 | |
| 11702 | |
| 11703 | |
| 11704 | |
| 11705 | |
| 11706 | |
| 11707 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11708 | stdio.h unistd.h |
| 11709 | do |
| 11710 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11711 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11712 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11714 | 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] | 11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11716 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11717 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11718 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11719 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11720 | else |
| 11721 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11722 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11723 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11724 | cat >conftest.$ac_ext <<_ACEOF |
| 11725 | /* confdefs.h. */ |
| 11726 | _ACEOF |
| 11727 | cat confdefs.h >>conftest.$ac_ext |
| 11728 | cat >>conftest.$ac_ext <<_ACEOF |
| 11729 | /* end confdefs.h. */ |
| 11730 | $ac_includes_default |
| 11731 | #include <$ac_header> |
| 11732 | _ACEOF |
| 11733 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11734 | if { (ac_try="$ac_compile" |
| 11735 | case "(($ac_try" in |
| 11736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11737 | *) ac_try_echo=$ac_try;; |
| 11738 | esac |
| 11739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11740 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11741 | ac_status=$? |
| 11742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11743 | rm -f conftest.er1 |
| 11744 | cat conftest.err >&5 |
| 11745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11746 | (exit $ac_status); } && |
| 11747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11748 | { (case "(($ac_try" in |
| 11749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11750 | *) ac_try_echo=$ac_try;; |
| 11751 | esac |
| 11752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11753 | (eval "$ac_try") 2>&5 |
| 11754 | ac_status=$? |
| 11755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11756 | (exit $ac_status); }; } && |
| 11757 | { ac_try='test -s conftest.$ac_objext' |
| 11758 | { (case "(($ac_try" in |
| 11759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11760 | *) ac_try_echo=$ac_try;; |
| 11761 | esac |
| 11762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11763 | (eval "$ac_try") 2>&5 |
| 11764 | ac_status=$? |
| 11765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11766 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11767 | ac_header_compiler=yes |
| 11768 | else |
| 11769 | echo "$as_me: failed program was:" >&5 |
| 11770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11772 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11773 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11774 | |
| 11775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11776 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11777 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11778 | |
| 11779 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11780 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11781 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11782 | cat >conftest.$ac_ext <<_ACEOF |
| 11783 | /* confdefs.h. */ |
| 11784 | _ACEOF |
| 11785 | cat confdefs.h >>conftest.$ac_ext |
| 11786 | cat >>conftest.$ac_ext <<_ACEOF |
| 11787 | /* end confdefs.h. */ |
| 11788 | #include <$ac_header> |
| 11789 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11790 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11791 | case "(($ac_try" in |
| 11792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11793 | *) ac_try_echo=$ac_try;; |
| 11794 | esac |
| 11795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11796 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11797 | ac_status=$? |
| 11798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11799 | rm -f conftest.er1 |
| 11800 | cat conftest.err >&5 |
| 11801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11802 | (exit $ac_status); } >/dev/null; then |
| 11803 | if test -s conftest.err; then |
| 11804 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11806 | else |
| 11807 | ac_cpp_err= |
| 11808 | fi |
| 11809 | else |
| 11810 | ac_cpp_err=yes |
| 11811 | fi |
| 11812 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11813 | ac_header_preproc=yes |
| 11814 | else |
| 11815 | echo "$as_me: failed program was:" >&5 |
| 11816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11817 | |
| 11818 | ac_header_preproc=no |
| 11819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11820 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11821 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11822 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11823 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11824 | |
| 11825 | # So? What about this header? |
| 11826 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11827 | yes:no: ) |
| 11828 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11829 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11830 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11831 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11832 | ac_header_preproc=yes |
| 11833 | ;; |
| 11834 | no:yes:* ) |
| 11835 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11836 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11837 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11838 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11839 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11840 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11841 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11842 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11843 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11844 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11845 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11846 | 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] | 11847 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11848 | ## ----------------------------------- ## |
| 11849 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11850 | ## ----------------------------------- ## |
| 11851 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11852 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11853 | ;; |
| 11854 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11855 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11857 | 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] | 11858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11859 | else |
| 11860 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11861 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11862 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11863 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11864 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11865 | |
| 11866 | fi |
| 11867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11868 | cat >>confdefs.h <<_ACEOF |
| 11869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11870 | _ACEOF |
| 11871 | |
| 11872 | fi |
| 11873 | |
| 11874 | done |
| 11875 | |
| 11876 | |
| 11877 | |
| 11878 | |
| 11879 | |
| 11880 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11881 | do |
| 11882 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11884 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11886 | 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] | 11887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11888 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11889 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11890 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11891 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11892 | else |
| 11893 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11894 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11895 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11896 | cat >conftest.$ac_ext <<_ACEOF |
| 11897 | /* confdefs.h. */ |
| 11898 | _ACEOF |
| 11899 | cat confdefs.h >>conftest.$ac_ext |
| 11900 | cat >>conftest.$ac_ext <<_ACEOF |
| 11901 | /* end confdefs.h. */ |
| 11902 | $ac_includes_default |
| 11903 | #include <$ac_header> |
| 11904 | _ACEOF |
| 11905 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11906 | if { (ac_try="$ac_compile" |
| 11907 | case "(($ac_try" in |
| 11908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11909 | *) ac_try_echo=$ac_try;; |
| 11910 | esac |
| 11911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11912 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11913 | ac_status=$? |
| 11914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11915 | rm -f conftest.er1 |
| 11916 | cat conftest.err >&5 |
| 11917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11918 | (exit $ac_status); } && |
| 11919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11920 | { (case "(($ac_try" in |
| 11921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11922 | *) ac_try_echo=$ac_try;; |
| 11923 | esac |
| 11924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11925 | (eval "$ac_try") 2>&5 |
| 11926 | ac_status=$? |
| 11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11928 | (exit $ac_status); }; } && |
| 11929 | { ac_try='test -s conftest.$ac_objext' |
| 11930 | { (case "(($ac_try" in |
| 11931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11932 | *) ac_try_echo=$ac_try;; |
| 11933 | esac |
| 11934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11935 | (eval "$ac_try") 2>&5 |
| 11936 | ac_status=$? |
| 11937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11938 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11939 | ac_header_compiler=yes |
| 11940 | else |
| 11941 | echo "$as_me: failed program was:" >&5 |
| 11942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11944 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11945 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11946 | |
| 11947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11948 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11949 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11950 | |
| 11951 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11952 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11954 | cat >conftest.$ac_ext <<_ACEOF |
| 11955 | /* confdefs.h. */ |
| 11956 | _ACEOF |
| 11957 | cat confdefs.h >>conftest.$ac_ext |
| 11958 | cat >>conftest.$ac_ext <<_ACEOF |
| 11959 | /* end confdefs.h. */ |
| 11960 | #include <$ac_header> |
| 11961 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11962 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11963 | case "(($ac_try" in |
| 11964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11965 | *) ac_try_echo=$ac_try;; |
| 11966 | esac |
| 11967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11968 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11969 | ac_status=$? |
| 11970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11971 | rm -f conftest.er1 |
| 11972 | cat conftest.err >&5 |
| 11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11974 | (exit $ac_status); } >/dev/null; then |
| 11975 | if test -s conftest.err; then |
| 11976 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11977 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11978 | else |
| 11979 | ac_cpp_err= |
| 11980 | fi |
| 11981 | else |
| 11982 | ac_cpp_err=yes |
| 11983 | fi |
| 11984 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11985 | ac_header_preproc=yes |
| 11986 | else |
| 11987 | echo "$as_me: failed program was:" >&5 |
| 11988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11989 | |
| 11990 | ac_header_preproc=no |
| 11991 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11992 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11993 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11994 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11995 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11996 | |
| 11997 | # So? What about this header? |
| 11998 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11999 | yes:no: ) |
| 12000 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12001 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12003 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12004 | ac_header_preproc=yes |
| 12005 | ;; |
| 12006 | no:yes:* ) |
| 12007 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12008 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12009 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12010 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12011 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12012 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12013 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12014 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12015 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12016 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12017 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12018 | 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] | 12019 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12020 | ## ----------------------------------- ## |
| 12021 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12022 | ## ----------------------------------- ## |
| 12023 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12024 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12025 | ;; |
| 12026 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12027 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12029 | 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] | 12030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12031 | else |
| 12032 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12033 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12034 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12036 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12037 | |
| 12038 | fi |
| 12039 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12040 | cat >>confdefs.h <<_ACEOF |
| 12041 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12042 | _ACEOF |
| 12043 | |
| 12044 | fi |
| 12045 | |
| 12046 | done |
| 12047 | |
| 12048 | |
| 12049 | |
| 12050 | for ac_header in string.h strings.h |
| 12051 | do |
| 12052 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12053 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12054 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12056 | 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] | 12057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12058 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12059 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12060 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12061 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12062 | else |
| 12063 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12064 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12065 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12066 | cat >conftest.$ac_ext <<_ACEOF |
| 12067 | /* confdefs.h. */ |
| 12068 | _ACEOF |
| 12069 | cat confdefs.h >>conftest.$ac_ext |
| 12070 | cat >>conftest.$ac_ext <<_ACEOF |
| 12071 | /* end confdefs.h. */ |
| 12072 | $ac_includes_default |
| 12073 | #include <$ac_header> |
| 12074 | _ACEOF |
| 12075 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12076 | if { (ac_try="$ac_compile" |
| 12077 | case "(($ac_try" in |
| 12078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12079 | *) ac_try_echo=$ac_try;; |
| 12080 | esac |
| 12081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12082 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12083 | ac_status=$? |
| 12084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12085 | rm -f conftest.er1 |
| 12086 | cat conftest.err >&5 |
| 12087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12088 | (exit $ac_status); } && |
| 12089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12090 | { (case "(($ac_try" in |
| 12091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12092 | *) ac_try_echo=$ac_try;; |
| 12093 | esac |
| 12094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12095 | (eval "$ac_try") 2>&5 |
| 12096 | ac_status=$? |
| 12097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12098 | (exit $ac_status); }; } && |
| 12099 | { ac_try='test -s conftest.$ac_objext' |
| 12100 | { (case "(($ac_try" in |
| 12101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12102 | *) ac_try_echo=$ac_try;; |
| 12103 | esac |
| 12104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12105 | (eval "$ac_try") 2>&5 |
| 12106 | ac_status=$? |
| 12107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12108 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12109 | ac_header_compiler=yes |
| 12110 | else |
| 12111 | echo "$as_me: failed program was:" >&5 |
| 12112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12114 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12115 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12116 | |
| 12117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12119 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12120 | |
| 12121 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12122 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12124 | cat >conftest.$ac_ext <<_ACEOF |
| 12125 | /* confdefs.h. */ |
| 12126 | _ACEOF |
| 12127 | cat confdefs.h >>conftest.$ac_ext |
| 12128 | cat >>conftest.$ac_ext <<_ACEOF |
| 12129 | /* end confdefs.h. */ |
| 12130 | #include <$ac_header> |
| 12131 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12132 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12133 | case "(($ac_try" in |
| 12134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12135 | *) ac_try_echo=$ac_try;; |
| 12136 | esac |
| 12137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12139 | ac_status=$? |
| 12140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12141 | rm -f conftest.er1 |
| 12142 | cat conftest.err >&5 |
| 12143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12144 | (exit $ac_status); } >/dev/null; then |
| 12145 | if test -s conftest.err; then |
| 12146 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12147 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12148 | else |
| 12149 | ac_cpp_err= |
| 12150 | fi |
| 12151 | else |
| 12152 | ac_cpp_err=yes |
| 12153 | fi |
| 12154 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12155 | ac_header_preproc=yes |
| 12156 | else |
| 12157 | echo "$as_me: failed program was:" >&5 |
| 12158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12159 | |
| 12160 | ac_header_preproc=no |
| 12161 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12162 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12163 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12164 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12165 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12166 | |
| 12167 | # So? What about this header? |
| 12168 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12169 | yes:no: ) |
| 12170 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12171 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12173 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12174 | ac_header_preproc=yes |
| 12175 | ;; |
| 12176 | no:yes:* ) |
| 12177 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12178 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12179 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12180 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12181 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12182 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12183 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12184 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12186 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12187 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12188 | 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] | 12189 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12190 | ## ----------------------------------- ## |
| 12191 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12192 | ## ----------------------------------- ## |
| 12193 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12194 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12195 | ;; |
| 12196 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12197 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12199 | 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] | 12200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12201 | else |
| 12202 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12203 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12204 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12206 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12207 | |
| 12208 | fi |
| 12209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12210 | cat >>confdefs.h <<_ACEOF |
| 12211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12212 | _ACEOF |
| 12213 | break |
| 12214 | fi |
| 12215 | |
| 12216 | done |
| 12217 | |
| 12218 | |
| 12219 | |
| 12220 | |
| 12221 | for ac_func in strchr index |
| 12222 | do |
| 12223 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12224 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12225 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12226 | 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] | 12227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12228 | else |
| 12229 | cat >conftest.$ac_ext <<_ACEOF |
| 12230 | /* confdefs.h. */ |
| 12231 | _ACEOF |
| 12232 | cat confdefs.h >>conftest.$ac_ext |
| 12233 | cat >>conftest.$ac_ext <<_ACEOF |
| 12234 | /* end confdefs.h. */ |
| 12235 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12236 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12237 | #define $ac_func innocuous_$ac_func |
| 12238 | |
| 12239 | /* System header to define __stub macros and hopefully few prototypes, |
| 12240 | which can conflict with char $ac_func (); below. |
| 12241 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12242 | <limits.h> exists even on freestanding compilers. */ |
| 12243 | |
| 12244 | #ifdef __STDC__ |
| 12245 | # include <limits.h> |
| 12246 | #else |
| 12247 | # include <assert.h> |
| 12248 | #endif |
| 12249 | |
| 12250 | #undef $ac_func |
| 12251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12252 | /* Override any GCC internal prototype to avoid an error. |
| 12253 | Use char because int might match the return type of a GCC |
| 12254 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12255 | #ifdef __cplusplus |
| 12256 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12257 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12258 | char $ac_func (); |
| 12259 | /* The GNU C library defines this for functions which it implements |
| 12260 | to always fail with ENOSYS. Some functions are actually named |
| 12261 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12262 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12263 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12264 | #endif |
| 12265 | |
| 12266 | int |
| 12267 | main () |
| 12268 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12269 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12270 | ; |
| 12271 | return 0; |
| 12272 | } |
| 12273 | _ACEOF |
| 12274 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12275 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12282 | ac_status=$? |
| 12283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12284 | rm -f conftest.er1 |
| 12285 | cat conftest.err >&5 |
| 12286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12287 | (exit $ac_status); } && |
| 12288 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12289 | { (case "(($ac_try" in |
| 12290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12291 | *) ac_try_echo=$ac_try;; |
| 12292 | esac |
| 12293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12294 | (eval "$ac_try") 2>&5 |
| 12295 | ac_status=$? |
| 12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12297 | (exit $ac_status); }; } && |
| 12298 | { ac_try='test -s conftest$ac_exeext' |
| 12299 | { (case "(($ac_try" in |
| 12300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12301 | *) ac_try_echo=$ac_try;; |
| 12302 | esac |
| 12303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12304 | (eval "$ac_try") 2>&5 |
| 12305 | ac_status=$? |
| 12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12307 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12308 | eval "$as_ac_var=yes" |
| 12309 | else |
| 12310 | echo "$as_me: failed program was:" >&5 |
| 12311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12313 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12314 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12315 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12316 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12317 | conftest$ac_exeext conftest.$ac_ext |
| 12318 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12319 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12320 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12321 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12322 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12323 | cat >>confdefs.h <<_ACEOF |
| 12324 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12325 | _ACEOF |
| 12326 | break |
| 12327 | fi |
| 12328 | done |
| 12329 | |
| 12330 | |
| 12331 | |
| 12332 | for ac_func in strrchr rindex |
| 12333 | do |
| 12334 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12335 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12336 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12337 | 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] | 12338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12339 | else |
| 12340 | cat >conftest.$ac_ext <<_ACEOF |
| 12341 | /* confdefs.h. */ |
| 12342 | _ACEOF |
| 12343 | cat confdefs.h >>conftest.$ac_ext |
| 12344 | cat >>conftest.$ac_ext <<_ACEOF |
| 12345 | /* end confdefs.h. */ |
| 12346 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12347 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12348 | #define $ac_func innocuous_$ac_func |
| 12349 | |
| 12350 | /* System header to define __stub macros and hopefully few prototypes, |
| 12351 | which can conflict with char $ac_func (); below. |
| 12352 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12353 | <limits.h> exists even on freestanding compilers. */ |
| 12354 | |
| 12355 | #ifdef __STDC__ |
| 12356 | # include <limits.h> |
| 12357 | #else |
| 12358 | # include <assert.h> |
| 12359 | #endif |
| 12360 | |
| 12361 | #undef $ac_func |
| 12362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12363 | /* Override any GCC internal prototype to avoid an error. |
| 12364 | Use char because int might match the return type of a GCC |
| 12365 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12366 | #ifdef __cplusplus |
| 12367 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12368 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12369 | char $ac_func (); |
| 12370 | /* The GNU C library defines this for functions which it implements |
| 12371 | to always fail with ENOSYS. Some functions are actually named |
| 12372 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12373 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12374 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12375 | #endif |
| 12376 | |
| 12377 | int |
| 12378 | main () |
| 12379 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12380 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12381 | ; |
| 12382 | return 0; |
| 12383 | } |
| 12384 | _ACEOF |
| 12385 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12386 | if { (ac_try="$ac_link" |
| 12387 | case "(($ac_try" in |
| 12388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12389 | *) ac_try_echo=$ac_try;; |
| 12390 | esac |
| 12391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12392 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12393 | ac_status=$? |
| 12394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12395 | rm -f conftest.er1 |
| 12396 | cat conftest.err >&5 |
| 12397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12398 | (exit $ac_status); } && |
| 12399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12400 | { (case "(($ac_try" in |
| 12401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12402 | *) ac_try_echo=$ac_try;; |
| 12403 | esac |
| 12404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12405 | (eval "$ac_try") 2>&5 |
| 12406 | ac_status=$? |
| 12407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12408 | (exit $ac_status); }; } && |
| 12409 | { ac_try='test -s conftest$ac_exeext' |
| 12410 | { (case "(($ac_try" in |
| 12411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12412 | *) ac_try_echo=$ac_try;; |
| 12413 | esac |
| 12414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12415 | (eval "$ac_try") 2>&5 |
| 12416 | ac_status=$? |
| 12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12418 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12419 | eval "$as_ac_var=yes" |
| 12420 | else |
| 12421 | echo "$as_me: failed program was:" >&5 |
| 12422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12424 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12425 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12426 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12427 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12428 | conftest$ac_exeext conftest.$ac_ext |
| 12429 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12430 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12431 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12432 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12433 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12434 | cat >>confdefs.h <<_ACEOF |
| 12435 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12436 | _ACEOF |
| 12437 | break |
| 12438 | fi |
| 12439 | done |
| 12440 | |
| 12441 | |
| 12442 | |
| 12443 | for ac_func in memcpy bcopy |
| 12444 | do |
| 12445 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12446 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12447 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12448 | 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] | 12449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12450 | else |
| 12451 | cat >conftest.$ac_ext <<_ACEOF |
| 12452 | /* confdefs.h. */ |
| 12453 | _ACEOF |
| 12454 | cat confdefs.h >>conftest.$ac_ext |
| 12455 | cat >>conftest.$ac_ext <<_ACEOF |
| 12456 | /* end confdefs.h. */ |
| 12457 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12458 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12459 | #define $ac_func innocuous_$ac_func |
| 12460 | |
| 12461 | /* System header to define __stub macros and hopefully few prototypes, |
| 12462 | which can conflict with char $ac_func (); below. |
| 12463 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12464 | <limits.h> exists even on freestanding compilers. */ |
| 12465 | |
| 12466 | #ifdef __STDC__ |
| 12467 | # include <limits.h> |
| 12468 | #else |
| 12469 | # include <assert.h> |
| 12470 | #endif |
| 12471 | |
| 12472 | #undef $ac_func |
| 12473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12474 | /* Override any GCC internal prototype to avoid an error. |
| 12475 | Use char because int might match the return type of a GCC |
| 12476 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12477 | #ifdef __cplusplus |
| 12478 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12479 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12480 | char $ac_func (); |
| 12481 | /* The GNU C library defines this for functions which it implements |
| 12482 | to always fail with ENOSYS. Some functions are actually named |
| 12483 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12484 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12485 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12486 | #endif |
| 12487 | |
| 12488 | int |
| 12489 | main () |
| 12490 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12491 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12492 | ; |
| 12493 | return 0; |
| 12494 | } |
| 12495 | _ACEOF |
| 12496 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12497 | if { (ac_try="$ac_link" |
| 12498 | case "(($ac_try" in |
| 12499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12500 | *) ac_try_echo=$ac_try;; |
| 12501 | esac |
| 12502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12503 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12504 | ac_status=$? |
| 12505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12506 | rm -f conftest.er1 |
| 12507 | cat conftest.err >&5 |
| 12508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12509 | (exit $ac_status); } && |
| 12510 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12511 | { (case "(($ac_try" in |
| 12512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12513 | *) ac_try_echo=$ac_try;; |
| 12514 | esac |
| 12515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12516 | (eval "$ac_try") 2>&5 |
| 12517 | ac_status=$? |
| 12518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12519 | (exit $ac_status); }; } && |
| 12520 | { ac_try='test -s conftest$ac_exeext' |
| 12521 | { (case "(($ac_try" in |
| 12522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12523 | *) ac_try_echo=$ac_try;; |
| 12524 | esac |
| 12525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12526 | (eval "$ac_try") 2>&5 |
| 12527 | ac_status=$? |
| 12528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12529 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12530 | eval "$as_ac_var=yes" |
| 12531 | else |
| 12532 | echo "$as_me: failed program was:" >&5 |
| 12533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12534 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12535 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12536 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12537 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12538 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12539 | conftest$ac_exeext conftest.$ac_ext |
| 12540 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12541 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12542 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12543 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12544 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12545 | cat >>confdefs.h <<_ACEOF |
| 12546 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12547 | _ACEOF |
| 12548 | break |
| 12549 | fi |
| 12550 | done |
| 12551 | |
| 12552 | |
| 12553 | |
| 12554 | for ac_func in memmove strcmp |
| 12555 | do |
| 12556 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12557 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12558 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12559 | 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] | 12560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12561 | else |
| 12562 | cat >conftest.$ac_ext <<_ACEOF |
| 12563 | /* confdefs.h. */ |
| 12564 | _ACEOF |
| 12565 | cat confdefs.h >>conftest.$ac_ext |
| 12566 | cat >>conftest.$ac_ext <<_ACEOF |
| 12567 | /* end confdefs.h. */ |
| 12568 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12569 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12570 | #define $ac_func innocuous_$ac_func |
| 12571 | |
| 12572 | /* System header to define __stub macros and hopefully few prototypes, |
| 12573 | which can conflict with char $ac_func (); below. |
| 12574 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12575 | <limits.h> exists even on freestanding compilers. */ |
| 12576 | |
| 12577 | #ifdef __STDC__ |
| 12578 | # include <limits.h> |
| 12579 | #else |
| 12580 | # include <assert.h> |
| 12581 | #endif |
| 12582 | |
| 12583 | #undef $ac_func |
| 12584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12585 | /* Override any GCC internal prototype to avoid an error. |
| 12586 | Use char because int might match the return type of a GCC |
| 12587 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12588 | #ifdef __cplusplus |
| 12589 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12590 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12591 | char $ac_func (); |
| 12592 | /* The GNU C library defines this for functions which it implements |
| 12593 | to always fail with ENOSYS. Some functions are actually named |
| 12594 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12595 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12596 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12597 | #endif |
| 12598 | |
| 12599 | int |
| 12600 | main () |
| 12601 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12602 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12603 | ; |
| 12604 | return 0; |
| 12605 | } |
| 12606 | _ACEOF |
| 12607 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12608 | if { (ac_try="$ac_link" |
| 12609 | case "(($ac_try" in |
| 12610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12611 | *) ac_try_echo=$ac_try;; |
| 12612 | esac |
| 12613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12614 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12615 | ac_status=$? |
| 12616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12617 | rm -f conftest.er1 |
| 12618 | cat conftest.err >&5 |
| 12619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12620 | (exit $ac_status); } && |
| 12621 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12622 | { (case "(($ac_try" in |
| 12623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12624 | *) ac_try_echo=$ac_try;; |
| 12625 | esac |
| 12626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12627 | (eval "$ac_try") 2>&5 |
| 12628 | ac_status=$? |
| 12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12630 | (exit $ac_status); }; } && |
| 12631 | { ac_try='test -s conftest$ac_exeext' |
| 12632 | { (case "(($ac_try" in |
| 12633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12634 | *) ac_try_echo=$ac_try;; |
| 12635 | esac |
| 12636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12637 | (eval "$ac_try") 2>&5 |
| 12638 | ac_status=$? |
| 12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12640 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12641 | eval "$as_ac_var=yes" |
| 12642 | else |
| 12643 | echo "$as_me: failed program was:" >&5 |
| 12644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12646 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12647 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12648 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12649 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12650 | conftest$ac_exeext conftest.$ac_ext |
| 12651 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12652 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12653 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12654 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12655 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12656 | cat >>confdefs.h <<_ACEOF |
| 12657 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12658 | _ACEOF |
| 12659 | |
| 12660 | fi |
| 12661 | done |
| 12662 | |
| 12663 | |
| 12664 | |
| 12665 | |
| 12666 | for ac_func in closedir opendir readdir |
| 12667 | do |
| 12668 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12669 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12670 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12671 | 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] | 12672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12673 | else |
| 12674 | cat >conftest.$ac_ext <<_ACEOF |
| 12675 | /* confdefs.h. */ |
| 12676 | _ACEOF |
| 12677 | cat confdefs.h >>conftest.$ac_ext |
| 12678 | cat >>conftest.$ac_ext <<_ACEOF |
| 12679 | /* end confdefs.h. */ |
| 12680 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12681 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12682 | #define $ac_func innocuous_$ac_func |
| 12683 | |
| 12684 | /* System header to define __stub macros and hopefully few prototypes, |
| 12685 | which can conflict with char $ac_func (); below. |
| 12686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12687 | <limits.h> exists even on freestanding compilers. */ |
| 12688 | |
| 12689 | #ifdef __STDC__ |
| 12690 | # include <limits.h> |
| 12691 | #else |
| 12692 | # include <assert.h> |
| 12693 | #endif |
| 12694 | |
| 12695 | #undef $ac_func |
| 12696 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12697 | /* Override any GCC internal prototype to avoid an error. |
| 12698 | Use char because int might match the return type of a GCC |
| 12699 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12700 | #ifdef __cplusplus |
| 12701 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12702 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12703 | char $ac_func (); |
| 12704 | /* The GNU C library defines this for functions which it implements |
| 12705 | to always fail with ENOSYS. Some functions are actually named |
| 12706 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12707 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12708 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12709 | #endif |
| 12710 | |
| 12711 | int |
| 12712 | main () |
| 12713 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12714 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12715 | ; |
| 12716 | return 0; |
| 12717 | } |
| 12718 | _ACEOF |
| 12719 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12720 | if { (ac_try="$ac_link" |
| 12721 | case "(($ac_try" in |
| 12722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12723 | *) ac_try_echo=$ac_try;; |
| 12724 | esac |
| 12725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12726 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12727 | ac_status=$? |
| 12728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12729 | rm -f conftest.er1 |
| 12730 | cat conftest.err >&5 |
| 12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12732 | (exit $ac_status); } && |
| 12733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12734 | { (case "(($ac_try" in |
| 12735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12736 | *) ac_try_echo=$ac_try;; |
| 12737 | esac |
| 12738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12739 | (eval "$ac_try") 2>&5 |
| 12740 | ac_status=$? |
| 12741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12742 | (exit $ac_status); }; } && |
| 12743 | { ac_try='test -s conftest$ac_exeext' |
| 12744 | { (case "(($ac_try" in |
| 12745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12746 | *) ac_try_echo=$ac_try;; |
| 12747 | esac |
| 12748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12749 | (eval "$ac_try") 2>&5 |
| 12750 | ac_status=$? |
| 12751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12752 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12753 | eval "$as_ac_var=yes" |
| 12754 | else |
| 12755 | echo "$as_me: failed program was:" >&5 |
| 12756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12758 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12759 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12760 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12761 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12762 | conftest$ac_exeext conftest.$ac_ext |
| 12763 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12764 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12765 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12766 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12767 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12768 | cat >>confdefs.h <<_ACEOF |
| 12769 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12770 | _ACEOF |
| 12771 | |
| 12772 | fi |
| 12773 | done |
| 12774 | |
| 12775 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12776 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12777 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12778 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12779 | case $enableval in |
| 12780 | yes) enable_shared=yes ;; |
| 12781 | no) enable_shared=no ;; |
| 12782 | *) |
| 12783 | enable_shared=no |
| 12784 | # Look at the argument we got. We use all the common list separators. |
| 12785 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12786 | for pkg in $enableval; do |
| 12787 | IFS="$lt_save_ifs" |
| 12788 | if test "X$pkg" = "X$p"; then |
| 12789 | enable_shared=yes |
| 12790 | fi |
| 12791 | done |
| 12792 | IFS="$lt_save_ifs" |
| 12793 | ;; |
| 12794 | esac |
| 12795 | else |
| 12796 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12797 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12799 | |
| 12800 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12801 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12802 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12803 | case $enableval in |
| 12804 | yes) enable_static=yes ;; |
| 12805 | no) enable_static=no ;; |
| 12806 | *) |
| 12807 | enable_static=no |
| 12808 | # Look at the argument we got. We use all the common list separators. |
| 12809 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12810 | for pkg in $enableval; do |
| 12811 | IFS="$lt_save_ifs" |
| 12812 | if test "X$pkg" = "X$p"; then |
| 12813 | enable_static=yes |
| 12814 | fi |
| 12815 | done |
| 12816 | IFS="$lt_save_ifs" |
| 12817 | ;; |
| 12818 | esac |
| 12819 | else |
| 12820 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12821 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12822 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12823 | |
| 12824 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12825 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12826 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12827 | case $enableval in |
| 12828 | yes) enable_fast_install=yes ;; |
| 12829 | no) enable_fast_install=no ;; |
| 12830 | *) |
| 12831 | enable_fast_install=no |
| 12832 | # Look at the argument we got. We use all the common list separators. |
| 12833 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12834 | for pkg in $enableval; do |
| 12835 | IFS="$lt_save_ifs" |
| 12836 | if test "X$pkg" = "X$p"; then |
| 12837 | enable_fast_install=yes |
| 12838 | fi |
| 12839 | done |
| 12840 | IFS="$lt_save_ifs" |
| 12841 | ;; |
| 12842 | esac |
| 12843 | else |
| 12844 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12845 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12847 | |
| 12848 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12849 | 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] | 12850 | if test "${lt_cv_path_SED+set}" = set; then |
| 12851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12852 | else |
| 12853 | # Loop through the user's path and test for sed and gsed. |
| 12854 | # Then use that list of sed's as ones to test for truncation. |
| 12855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12856 | for as_dir in $PATH |
| 12857 | do |
| 12858 | IFS=$as_save_IFS |
| 12859 | test -z "$as_dir" && as_dir=. |
| 12860 | for lt_ac_prog in sed gsed; do |
| 12861 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12862 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12863 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12864 | fi |
| 12865 | done |
| 12866 | done |
| 12867 | done |
| 12868 | lt_ac_max=0 |
| 12869 | lt_ac_count=0 |
| 12870 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12871 | # along with /bin/sed that truncates output. |
| 12872 | 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] | 12873 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12874 | cat /dev/null > conftest.in |
| 12875 | lt_ac_count=0 |
| 12876 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12877 | # Check for GNU sed and select it if it is found. |
| 12878 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12879 | lt_cv_path_SED=$lt_ac_sed |
| 12880 | break |
| 12881 | fi |
| 12882 | while true; do |
| 12883 | cat conftest.in conftest.in >conftest.tmp |
| 12884 | mv conftest.tmp conftest.in |
| 12885 | cp conftest.in conftest.nl |
| 12886 | echo >>conftest.nl |
| 12887 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12888 | cmp -s conftest.out conftest.nl || break |
| 12889 | # 10000 chars as input seems more than enough |
| 12890 | test $lt_ac_count -gt 10 && break |
| 12891 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12892 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12893 | lt_ac_max=$lt_ac_count |
| 12894 | lt_cv_path_SED=$lt_ac_sed |
| 12895 | fi |
| 12896 | done |
| 12897 | done |
| 12898 | |
| 12899 | fi |
| 12900 | |
| 12901 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12902 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12903 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12904 | |
| 12905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12906 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12907 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12908 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12909 | else |
| 12910 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12911 | fi |
| 12912 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12913 | ac_prog=ld |
| 12914 | if test "$GCC" = yes; then |
| 12915 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12916 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12917 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12918 | case $host in |
| 12919 | *-*-mingw*) |
| 12920 | # gcc leaves a trailing carriage return which upsets mingw |
| 12921 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12922 | *) |
| 12923 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12924 | esac |
| 12925 | case $ac_prog in |
| 12926 | # Accept absolute paths. |
| 12927 | [\\/]* | ?:[\\/]*) |
| 12928 | re_direlt='/[^/][^/]*/\.\./' |
| 12929 | # Canonicalize the pathname of ld |
| 12930 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12931 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12932 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12933 | done |
| 12934 | test -z "$LD" && LD="$ac_prog" |
| 12935 | ;; |
| 12936 | "") |
| 12937 | # If it fails, then pretend we aren't using GCC. |
| 12938 | ac_prog=ld |
| 12939 | ;; |
| 12940 | *) |
| 12941 | # If it is relative, then search for the first ld in PATH. |
| 12942 | with_gnu_ld=unknown |
| 12943 | ;; |
| 12944 | esac |
| 12945 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12946 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12947 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12948 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12949 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12950 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12951 | fi |
| 12952 | if test "${lt_cv_path_LD+set}" = set; then |
| 12953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12954 | else |
| 12955 | if test -z "$LD"; then |
| 12956 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12957 | for ac_dir in $PATH; do |
| 12958 | IFS="$lt_save_ifs" |
| 12959 | test -z "$ac_dir" && ac_dir=. |
| 12960 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12961 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12962 | # 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] | 12963 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12964 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12965 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12966 | *GNU* | *'with BFD'*) |
| 12967 | test "$with_gnu_ld" != no && break |
| 12968 | ;; |
| 12969 | *) |
| 12970 | test "$with_gnu_ld" != yes && break |
| 12971 | ;; |
| 12972 | esac |
| 12973 | fi |
| 12974 | done |
| 12975 | IFS="$lt_save_ifs" |
| 12976 | else |
| 12977 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12978 | fi |
| 12979 | fi |
| 12980 | |
| 12981 | LD="$lt_cv_path_LD" |
| 12982 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12983 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12984 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12985 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12986 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12987 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12988 | fi |
| 12989 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12990 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12991 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12992 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12993 | 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] | 12994 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12996 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12997 | # 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] | 12998 | case `$LD -v 2>&1 </dev/null` in |
| 12999 | *GNU* | *'with BFD'*) |
| 13000 | lt_cv_prog_gnu_ld=yes |
| 13001 | ;; |
| 13002 | *) |
| 13003 | lt_cv_prog_gnu_ld=no |
| 13004 | ;; |
| 13005 | esac |
| 13006 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13007 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 13008 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13009 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 13010 | |
| 13011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13012 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 13013 | 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] | 13014 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 13015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13016 | else |
| 13017 | lt_cv_ld_reload_flag='-r' |
| 13018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13019 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 13020 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13021 | reload_flag=$lt_cv_ld_reload_flag |
| 13022 | case $reload_flag in |
| 13023 | "" | " "*) ;; |
| 13024 | *) reload_flag=" $reload_flag" ;; |
| 13025 | esac |
| 13026 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 13027 | case $host_os in |
| 13028 | darwin*) |
| 13029 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 13030 | 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] | 13031 | else |
| 13032 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 13033 | fi |
| 13034 | ;; |
| 13035 | esac |
| 13036 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13037 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 13038 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13039 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 13040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13041 | else |
| 13042 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 13043 | lt_cv_file_magic_test_file= |
| 13044 | lt_cv_deplibs_check_method='unknown' |
| 13045 | # Need to set the preceding variable on all platforms that support |
| 13046 | # interlibrary dependencies. |
| 13047 | # 'none' -- dependencies not supported. |
| 13048 | # `unknown' -- same as none, but documents that we really don't know. |
| 13049 | # 'pass_all' -- all dependencies passed with no checks. |
| 13050 | # 'test_compile' -- check by making test program. |
| 13051 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 13052 | # which responds to the $file_magic_cmd with a given extended regex. |
| 13053 | # If you have `file' or equivalent on your system and you're not sure |
| 13054 | # whether `pass_all' will *always* work, you probably want this one. |
| 13055 | |
| 13056 | case $host_os in |
| 13057 | aix4* | aix5*) |
| 13058 | lt_cv_deplibs_check_method=pass_all |
| 13059 | ;; |
| 13060 | |
| 13061 | beos*) |
| 13062 | lt_cv_deplibs_check_method=pass_all |
| 13063 | ;; |
| 13064 | |
| 13065 | bsdi[45]*) |
| 13066 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 13067 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 13068 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 13069 | ;; |
| 13070 | |
| 13071 | cygwin*) |
| 13072 | # func_win32_libid is a shell function defined in ltmain.sh |
| 13073 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 13074 | lt_cv_file_magic_cmd='func_win32_libid' |
| 13075 | ;; |
| 13076 | |
| 13077 | mingw* | pw32*) |
| 13078 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 13079 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 13080 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 13081 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 13082 | ;; |
| 13083 | |
| 13084 | darwin* | rhapsody*) |
| 13085 | lt_cv_deplibs_check_method=pass_all |
| 13086 | ;; |
| 13087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13088 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13089 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 13090 | case $host_cpu in |
| 13091 | i*86 ) |
| 13092 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 13093 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13094 | 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] | 13095 | lt_cv_file_magic_cmd=/usr/bin/file |
| 13096 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 13097 | ;; |
| 13098 | esac |
| 13099 | else |
| 13100 | lt_cv_deplibs_check_method=pass_all |
| 13101 | fi |
| 13102 | ;; |
| 13103 | |
| 13104 | gnu*) |
| 13105 | lt_cv_deplibs_check_method=pass_all |
| 13106 | ;; |
| 13107 | |
| 13108 | hpux10.20* | hpux11*) |
| 13109 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13110 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13111 | ia64*) |
| 13112 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 13113 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 13114 | ;; |
| 13115 | hppa*64*) |
| 13116 | 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]' |
| 13117 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 13118 | ;; |
| 13119 | *) |
| 13120 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 13121 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 13122 | ;; |
| 13123 | esac |
| 13124 | ;; |
| 13125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13126 | interix3*) |
| 13127 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 13128 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 13129 | ;; |
| 13130 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13131 | irix5* | irix6* | nonstopux*) |
| 13132 | case $LD in |
| 13133 | *-32|*"-32 ") libmagic=32-bit;; |
| 13134 | *-n32|*"-n32 ") libmagic=N32;; |
| 13135 | *-64|*"-64 ") libmagic=64-bit;; |
| 13136 | *) libmagic=never-match;; |
| 13137 | esac |
| 13138 | lt_cv_deplibs_check_method=pass_all |
| 13139 | ;; |
| 13140 | |
| 13141 | # This must be Linux ELF. |
| 13142 | linux*) |
| 13143 | lt_cv_deplibs_check_method=pass_all |
| 13144 | ;; |
| 13145 | |
| 13146 | netbsd*) |
| 13147 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 13148 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 13149 | else |
| 13150 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 13151 | fi |
| 13152 | ;; |
| 13153 | |
| 13154 | newos6*) |
| 13155 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 13156 | lt_cv_file_magic_cmd=/usr/bin/file |
| 13157 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 13158 | ;; |
| 13159 | |
| 13160 | nto-qnx*) |
| 13161 | lt_cv_deplibs_check_method=unknown |
| 13162 | ;; |
| 13163 | |
| 13164 | openbsd*) |
| 13165 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13166 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 13167 | else |
| 13168 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 13169 | fi |
| 13170 | ;; |
| 13171 | |
| 13172 | osf3* | osf4* | osf5*) |
| 13173 | lt_cv_deplibs_check_method=pass_all |
| 13174 | ;; |
| 13175 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13176 | solaris*) |
| 13177 | lt_cv_deplibs_check_method=pass_all |
| 13178 | ;; |
| 13179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13180 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13181 | case $host_vendor in |
| 13182 | motorola) |
| 13183 | 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]' |
| 13184 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 13185 | ;; |
| 13186 | ncr) |
| 13187 | lt_cv_deplibs_check_method=pass_all |
| 13188 | ;; |
| 13189 | sequent) |
| 13190 | lt_cv_file_magic_cmd='/bin/file' |
| 13191 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 13192 | ;; |
| 13193 | sni) |
| 13194 | lt_cv_file_magic_cmd='/bin/file' |
| 13195 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 13196 | lt_cv_file_magic_test_file=/lib/libc.so |
| 13197 | ;; |
| 13198 | siemens) |
| 13199 | lt_cv_deplibs_check_method=pass_all |
| 13200 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13201 | pc) |
| 13202 | lt_cv_deplibs_check_method=pass_all |
| 13203 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13204 | esac |
| 13205 | ;; |
| 13206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13207 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13208 | lt_cv_deplibs_check_method=pass_all |
| 13209 | ;; |
| 13210 | esac |
| 13211 | |
| 13212 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13213 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 13214 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13215 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 13216 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 13217 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 13218 | |
| 13219 | |
| 13220 | |
| 13221 | # If no C compiler was specified, use CC. |
| 13222 | LTCC=${LTCC-"$CC"} |
| 13223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13224 | # If no C compiler flags were specified, use CFLAGS. |
| 13225 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13226 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13227 | # Allow CC to be a program name with arguments. |
| 13228 | compiler=$CC |
| 13229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13230 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13231 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13232 | enableval=$enable_libtool_lock; |
| 13233 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13234 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13235 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 13236 | |
| 13237 | # Some flags need to be propagated to the compiler or linker for good |
| 13238 | # libtool support. |
| 13239 | case $host in |
| 13240 | ia64-*-hpux*) |
| 13241 | # Find out which ABI we are using. |
| 13242 | echo 'int i;' > conftest.$ac_ext |
| 13243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13244 | (eval $ac_compile) 2>&5 |
| 13245 | ac_status=$? |
| 13246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13247 | (exit $ac_status); }; then |
| 13248 | case `/usr/bin/file conftest.$ac_objext` in |
| 13249 | *ELF-32*) |
| 13250 | HPUX_IA64_MODE="32" |
| 13251 | ;; |
| 13252 | *ELF-64*) |
| 13253 | HPUX_IA64_MODE="64" |
| 13254 | ;; |
| 13255 | esac |
| 13256 | fi |
| 13257 | rm -rf conftest* |
| 13258 | ;; |
| 13259 | *-*-irix6*) |
| 13260 | # Find out which ABI we are using. |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 13261 | echo '#line 13261 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13263 | (eval $ac_compile) 2>&5 |
| 13264 | ac_status=$? |
| 13265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13266 | (exit $ac_status); }; then |
| 13267 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13268 | case `/usr/bin/file conftest.$ac_objext` in |
| 13269 | *32-bit*) |
| 13270 | LD="${LD-ld} -melf32bsmip" |
| 13271 | ;; |
| 13272 | *N32*) |
| 13273 | LD="${LD-ld} -melf32bmipn32" |
| 13274 | ;; |
| 13275 | *64-bit*) |
| 13276 | LD="${LD-ld} -melf64bmip" |
| 13277 | ;; |
| 13278 | esac |
| 13279 | else |
| 13280 | case `/usr/bin/file conftest.$ac_objext` in |
| 13281 | *32-bit*) |
| 13282 | LD="${LD-ld} -32" |
| 13283 | ;; |
| 13284 | *N32*) |
| 13285 | LD="${LD-ld} -n32" |
| 13286 | ;; |
| 13287 | *64-bit*) |
| 13288 | LD="${LD-ld} -64" |
| 13289 | ;; |
| 13290 | esac |
| 13291 | fi |
| 13292 | fi |
| 13293 | rm -rf conftest* |
| 13294 | ;; |
| 13295 | |
| 13296 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 13297 | # Find out which ABI we are using. |
| 13298 | echo 'int i;' > conftest.$ac_ext |
| 13299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13300 | (eval $ac_compile) 2>&5 |
| 13301 | ac_status=$? |
| 13302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13303 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13304 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13305 | *32-bit*) |
| 13306 | case $host in |
| 13307 | x86_64-*linux*) |
| 13308 | LD="${LD-ld} -m elf_i386" |
| 13309 | ;; |
| 13310 | ppc64-*linux*|powerpc64-*linux*) |
| 13311 | LD="${LD-ld} -m elf32ppclinux" |
| 13312 | ;; |
| 13313 | s390x-*linux*) |
| 13314 | LD="${LD-ld} -m elf_s390" |
| 13315 | ;; |
| 13316 | sparc64-*linux*) |
| 13317 | LD="${LD-ld} -m elf32_sparc" |
| 13318 | ;; |
| 13319 | esac |
| 13320 | ;; |
| 13321 | *64-bit*) |
| 13322 | case $host in |
| 13323 | x86_64-*linux*) |
| 13324 | LD="${LD-ld} -m elf_x86_64" |
| 13325 | ;; |
| 13326 | ppc*-*linux*|powerpc*-*linux*) |
| 13327 | LD="${LD-ld} -m elf64ppc" |
| 13328 | ;; |
| 13329 | s390*-*linux*) |
| 13330 | LD="${LD-ld} -m elf64_s390" |
| 13331 | ;; |
| 13332 | sparc*-*linux*) |
| 13333 | LD="${LD-ld} -m elf64_sparc" |
| 13334 | ;; |
| 13335 | esac |
| 13336 | ;; |
| 13337 | esac |
| 13338 | fi |
| 13339 | rm -rf conftest* |
| 13340 | ;; |
| 13341 | |
| 13342 | *-*-sco3.2v5*) |
| 13343 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 13344 | SAVE_CFLAGS="$CFLAGS" |
| 13345 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13346 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 13347 | 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] | 13348 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 13349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13350 | else |
| 13351 | ac_ext=c |
| 13352 | ac_cpp='$CPP $CPPFLAGS' |
| 13353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13356 | |
| 13357 | cat >conftest.$ac_ext <<_ACEOF |
| 13358 | /* confdefs.h. */ |
| 13359 | _ACEOF |
| 13360 | cat confdefs.h >>conftest.$ac_ext |
| 13361 | cat >>conftest.$ac_ext <<_ACEOF |
| 13362 | /* end confdefs.h. */ |
| 13363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13364 | int |
| 13365 | main () |
| 13366 | { |
| 13367 | |
| 13368 | ; |
| 13369 | return 0; |
| 13370 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13371 | _ACEOF |
| 13372 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13373 | if { (ac_try="$ac_link" |
| 13374 | case "(($ac_try" in |
| 13375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13376 | *) ac_try_echo=$ac_try;; |
| 13377 | esac |
| 13378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13379 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13380 | ac_status=$? |
| 13381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13382 | rm -f conftest.er1 |
| 13383 | cat conftest.err >&5 |
| 13384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13385 | (exit $ac_status); } && |
| 13386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13387 | { (case "(($ac_try" in |
| 13388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13389 | *) ac_try_echo=$ac_try;; |
| 13390 | esac |
| 13391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13392 | (eval "$ac_try") 2>&5 |
| 13393 | ac_status=$? |
| 13394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13395 | (exit $ac_status); }; } && |
| 13396 | { ac_try='test -s conftest$ac_exeext' |
| 13397 | { (case "(($ac_try" in |
| 13398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13399 | *) ac_try_echo=$ac_try;; |
| 13400 | esac |
| 13401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13402 | (eval "$ac_try") 2>&5 |
| 13403 | ac_status=$? |
| 13404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13405 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13406 | lt_cv_cc_needs_belf=yes |
| 13407 | else |
| 13408 | echo "$as_me: failed program was:" >&5 |
| 13409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13411 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13412 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13413 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13414 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13415 | conftest$ac_exeext conftest.$ac_ext |
| 13416 | ac_ext=c |
| 13417 | ac_cpp='$CPP $CPPFLAGS' |
| 13418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13421 | |
| 13422 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13423 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 13424 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13425 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 13426 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 13427 | CFLAGS="$SAVE_CFLAGS" |
| 13428 | fi |
| 13429 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13430 | sparc*-*solaris*) |
| 13431 | # Find out which ABI we are using. |
| 13432 | echo 'int i;' > conftest.$ac_ext |
| 13433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13434 | (eval $ac_compile) 2>&5 |
| 13435 | ac_status=$? |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); }; then |
| 13438 | case `/usr/bin/file conftest.o` in |
| 13439 | *64-bit*) |
| 13440 | case $lt_cv_prog_gnu_ld in |
| 13441 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 13442 | *) LD="${LD-ld} -64" ;; |
| 13443 | esac |
| 13444 | ;; |
| 13445 | esac |
| 13446 | fi |
| 13447 | rm -rf conftest* |
| 13448 | ;; |
| 13449 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13450 | |
| 13451 | esac |
| 13452 | |
| 13453 | need_locks="$enable_libtool_lock" |
| 13454 | |
| 13455 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13456 | |
| 13457 | |
| 13458 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 13459 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 13460 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13461 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13462 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13463 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13464 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13465 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13466 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 13467 | 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] | 13468 | if test -z "$CXXCPP"; then |
| 13469 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13471 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13472 | # Double quotes because CXXCPP needs to be expanded |
| 13473 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 13474 | do |
| 13475 | ac_preproc_ok=false |
| 13476 | for ac_cxx_preproc_warn_flag in '' yes |
| 13477 | do |
| 13478 | # Use a header file that comes with gcc, so configuring glibc |
| 13479 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13480 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13481 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13482 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13483 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13484 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13485 | /* confdefs.h. */ |
| 13486 | _ACEOF |
| 13487 | cat confdefs.h >>conftest.$ac_ext |
| 13488 | cat >>conftest.$ac_ext <<_ACEOF |
| 13489 | /* end confdefs.h. */ |
| 13490 | #ifdef __STDC__ |
| 13491 | # include <limits.h> |
| 13492 | #else |
| 13493 | # include <assert.h> |
| 13494 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13495 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13496 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13497 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13498 | case "(($ac_try" in |
| 13499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13500 | *) ac_try_echo=$ac_try;; |
| 13501 | esac |
| 13502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13503 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13504 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13505 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13506 | rm -f conftest.er1 |
| 13507 | cat conftest.err >&5 |
| 13508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13509 | (exit $ac_status); } >/dev/null; then |
| 13510 | if test -s conftest.err; then |
| 13511 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13512 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13513 | else |
| 13514 | ac_cpp_err= |
| 13515 | fi |
| 13516 | else |
| 13517 | ac_cpp_err=yes |
| 13518 | fi |
| 13519 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13520 | : |
| 13521 | else |
| 13522 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13524 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13525 | # Broken: fails on valid input. |
| 13526 | continue |
| 13527 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13528 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13529 | rm -f conftest.err conftest.$ac_ext |
| 13530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13531 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13532 | # can be detected and how. |
| 13533 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13534 | /* confdefs.h. */ |
| 13535 | _ACEOF |
| 13536 | cat confdefs.h >>conftest.$ac_ext |
| 13537 | cat >>conftest.$ac_ext <<_ACEOF |
| 13538 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13539 | #include <ac_nonexistent.h> |
| 13540 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13541 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13542 | case "(($ac_try" in |
| 13543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13544 | *) ac_try_echo=$ac_try;; |
| 13545 | esac |
| 13546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13547 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13548 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13549 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13550 | rm -f conftest.er1 |
| 13551 | cat conftest.err >&5 |
| 13552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13553 | (exit $ac_status); } >/dev/null; then |
| 13554 | if test -s conftest.err; then |
| 13555 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13556 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13557 | else |
| 13558 | ac_cpp_err= |
| 13559 | fi |
| 13560 | else |
| 13561 | ac_cpp_err=yes |
| 13562 | fi |
| 13563 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13564 | # Broken: success on invalid input. |
| 13565 | continue |
| 13566 | else |
| 13567 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13569 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13570 | # Passes both tests. |
| 13571 | ac_preproc_ok=: |
| 13572 | break |
| 13573 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13574 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13575 | rm -f conftest.err conftest.$ac_ext |
| 13576 | |
| 13577 | done |
| 13578 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13579 | rm -f conftest.err conftest.$ac_ext |
| 13580 | if $ac_preproc_ok; then |
| 13581 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13582 | fi |
| 13583 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13584 | done |
| 13585 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13586 | |
| 13587 | fi |
| 13588 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13589 | else |
| 13590 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13591 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13592 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13593 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13594 | ac_preproc_ok=false |
| 13595 | for ac_cxx_preproc_warn_flag in '' yes |
| 13596 | do |
| 13597 | # Use a header file that comes with gcc, so configuring glibc |
| 13598 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13599 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13600 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13601 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13602 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13603 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13604 | /* confdefs.h. */ |
| 13605 | _ACEOF |
| 13606 | cat confdefs.h >>conftest.$ac_ext |
| 13607 | cat >>conftest.$ac_ext <<_ACEOF |
| 13608 | /* end confdefs.h. */ |
| 13609 | #ifdef __STDC__ |
| 13610 | # include <limits.h> |
| 13611 | #else |
| 13612 | # include <assert.h> |
| 13613 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13614 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13615 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13616 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13617 | case "(($ac_try" in |
| 13618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13619 | *) ac_try_echo=$ac_try;; |
| 13620 | esac |
| 13621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13622 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13623 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13624 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13625 | rm -f conftest.er1 |
| 13626 | cat conftest.err >&5 |
| 13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13628 | (exit $ac_status); } >/dev/null; then |
| 13629 | if test -s conftest.err; then |
| 13630 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13631 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13632 | else |
| 13633 | ac_cpp_err= |
| 13634 | fi |
| 13635 | else |
| 13636 | ac_cpp_err=yes |
| 13637 | fi |
| 13638 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13639 | : |
| 13640 | else |
| 13641 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13643 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13644 | # Broken: fails on valid input. |
| 13645 | continue |
| 13646 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13647 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13648 | rm -f conftest.err conftest.$ac_ext |
| 13649 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13650 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13651 | # can be detected and how. |
| 13652 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13653 | /* confdefs.h. */ |
| 13654 | _ACEOF |
| 13655 | cat confdefs.h >>conftest.$ac_ext |
| 13656 | cat >>conftest.$ac_ext <<_ACEOF |
| 13657 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13658 | #include <ac_nonexistent.h> |
| 13659 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13660 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13661 | case "(($ac_try" in |
| 13662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13663 | *) ac_try_echo=$ac_try;; |
| 13664 | esac |
| 13665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13666 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13667 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13668 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13669 | rm -f conftest.er1 |
| 13670 | cat conftest.err >&5 |
| 13671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13672 | (exit $ac_status); } >/dev/null; then |
| 13673 | if test -s conftest.err; then |
| 13674 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13675 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13676 | else |
| 13677 | ac_cpp_err= |
| 13678 | fi |
| 13679 | else |
| 13680 | ac_cpp_err=yes |
| 13681 | fi |
| 13682 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13683 | # Broken: success on invalid input. |
| 13684 | continue |
| 13685 | else |
| 13686 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13688 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13689 | # Passes both tests. |
| 13690 | ac_preproc_ok=: |
| 13691 | break |
| 13692 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13693 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13694 | rm -f conftest.err conftest.$ac_ext |
| 13695 | |
| 13696 | done |
| 13697 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13698 | rm -f conftest.err conftest.$ac_ext |
| 13699 | if $ac_preproc_ok; then |
| 13700 | : |
| 13701 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13702 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13703 | See \`config.log' for more details." >&5 |
| 13704 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13705 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13706 | { (exit 1); exit 1; }; } |
| 13707 | fi |
| 13708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13709 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13710 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13711 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13712 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13713 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13714 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13715 | fi |
| 13716 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13717 | |
| 13718 | ac_ext=f |
| 13719 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13720 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13721 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13722 | if test -n "$ac_tool_prefix"; then |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13723 | 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] | 13724 | do |
| 13725 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13726 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13729 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13731 | else |
| 13732 | if test -n "$F77"; then |
| 13733 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13734 | else |
| 13735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13736 | for as_dir in $PATH |
| 13737 | do |
| 13738 | IFS=$as_save_IFS |
| 13739 | test -z "$as_dir" && as_dir=. |
| 13740 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13741 | 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] | 13742 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13744 | break 2 |
| 13745 | fi |
| 13746 | done |
| 13747 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13748 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13749 | |
| 13750 | fi |
| 13751 | fi |
| 13752 | F77=$ac_cv_prog_F77 |
| 13753 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13754 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13755 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13756 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13757 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13758 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13759 | fi |
| 13760 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13761 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13762 | test -n "$F77" && break |
| 13763 | done |
| 13764 | fi |
| 13765 | if test -z "$F77"; then |
| 13766 | ac_ct_F77=$F77 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13767 | 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] | 13768 | do |
| 13769 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13770 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13773 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13775 | else |
| 13776 | if test -n "$ac_ct_F77"; then |
| 13777 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13778 | else |
| 13779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13780 | for as_dir in $PATH |
| 13781 | do |
| 13782 | IFS=$as_save_IFS |
| 13783 | test -z "$as_dir" && as_dir=. |
| 13784 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13785 | 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] | 13786 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13788 | break 2 |
| 13789 | fi |
| 13790 | done |
| 13791 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13792 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13793 | |
| 13794 | fi |
| 13795 | fi |
| 13796 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13797 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13798 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13799 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13800 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13801 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13802 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13803 | fi |
| 13804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13805 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13806 | test -n "$ac_ct_F77" && break |
| 13807 | done |
| 13808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13809 | if test "x$ac_ct_F77" = x; then |
| 13810 | F77="" |
| 13811 | else |
| 13812 | case $cross_compiling:$ac_tool_warned in |
| 13813 | yes:) |
| 13814 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13815 | whose name does not start with the host triplet. If you think this |
| 13816 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13817 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13818 | whose name does not start with the host triplet. If you think this |
| 13819 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13820 | ac_tool_warned=yes ;; |
| 13821 | esac |
| 13822 | F77=$ac_ct_F77 |
| 13823 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13824 | fi |
| 13825 | |
| 13826 | |
| 13827 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13828 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13829 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13830 | { (ac_try="$ac_compiler --version >&5" |
| 13831 | case "(($ac_try" in |
| 13832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13833 | *) ac_try_echo=$ac_try;; |
| 13834 | esac |
| 13835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13836 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13837 | ac_status=$? |
| 13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13839 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13840 | { (ac_try="$ac_compiler -v >&5" |
| 13841 | case "(($ac_try" in |
| 13842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13843 | *) ac_try_echo=$ac_try;; |
| 13844 | esac |
| 13845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13846 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13847 | ac_status=$? |
| 13848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13849 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13850 | { (ac_try="$ac_compiler -V >&5" |
| 13851 | case "(($ac_try" in |
| 13852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13853 | *) ac_try_echo=$ac_try;; |
| 13854 | esac |
| 13855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13856 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13857 | ac_status=$? |
| 13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13859 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13860 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13861 | |
| 13862 | # 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] | 13863 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13864 | ac_save_ext=$ac_ext |
| 13865 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13866 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13867 | 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] | 13868 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13870 | else |
| 13871 | cat >conftest.$ac_ext <<_ACEOF |
| 13872 | program main |
| 13873 | #ifndef __GNUC__ |
| 13874 | choke me |
| 13875 | #endif |
| 13876 | |
| 13877 | end |
| 13878 | _ACEOF |
| 13879 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13880 | if { (ac_try="$ac_compile" |
| 13881 | case "(($ac_try" in |
| 13882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13883 | *) ac_try_echo=$ac_try;; |
| 13884 | esac |
| 13885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13886 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13887 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13889 | rm -f conftest.er1 |
| 13890 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13892 | (exit $ac_status); } && |
| 13893 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13894 | { (case "(($ac_try" in |
| 13895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13896 | *) ac_try_echo=$ac_try;; |
| 13897 | esac |
| 13898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13899 | (eval "$ac_try") 2>&5 |
| 13900 | ac_status=$? |
| 13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13902 | (exit $ac_status); }; } && |
| 13903 | { ac_try='test -s conftest.$ac_objext' |
| 13904 | { (case "(($ac_try" in |
| 13905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13906 | *) ac_try_echo=$ac_try;; |
| 13907 | esac |
| 13908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13909 | (eval "$ac_try") 2>&5 |
| 13910 | ac_status=$? |
| 13911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13912 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13913 | ac_compiler_gnu=yes |
| 13914 | else |
| 13915 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13917 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13918 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13919 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13920 | |
| 13921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13922 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13923 | |
| 13924 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13925 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13926 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13927 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13928 | ac_test_FFLAGS=${FFLAGS+set} |
| 13929 | ac_save_FFLAGS=$FFLAGS |
| 13930 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13931 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13932 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13933 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13935 | else |
| 13936 | FFLAGS=-g |
| 13937 | cat >conftest.$ac_ext <<_ACEOF |
| 13938 | program main |
| 13939 | |
| 13940 | end |
| 13941 | _ACEOF |
| 13942 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13943 | if { (ac_try="$ac_compile" |
| 13944 | case "(($ac_try" in |
| 13945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13946 | *) ac_try_echo=$ac_try;; |
| 13947 | esac |
| 13948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13949 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13950 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13952 | rm -f conftest.er1 |
| 13953 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13955 | (exit $ac_status); } && |
| 13956 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13957 | { (case "(($ac_try" in |
| 13958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13959 | *) ac_try_echo=$ac_try;; |
| 13960 | esac |
| 13961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13962 | (eval "$ac_try") 2>&5 |
| 13963 | ac_status=$? |
| 13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13965 | (exit $ac_status); }; } && |
| 13966 | { ac_try='test -s conftest.$ac_objext' |
| 13967 | { (case "(($ac_try" in |
| 13968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13969 | *) ac_try_echo=$ac_try;; |
| 13970 | esac |
| 13971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13972 | (eval "$ac_try") 2>&5 |
| 13973 | ac_status=$? |
| 13974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13975 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13976 | ac_cv_prog_f77_g=yes |
| 13977 | else |
| 13978 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13980 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13981 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13982 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13983 | |
| 13984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13985 | |
| 13986 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13987 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13988 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13989 | if test "$ac_test_FFLAGS" = set; then |
| 13990 | FFLAGS=$ac_save_FFLAGS |
| 13991 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13992 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13993 | FFLAGS="-g -O2" |
| 13994 | else |
| 13995 | FFLAGS="-g" |
| 13996 | fi |
| 13997 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13998 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13999 | FFLAGS="-O2" |
| 14000 | else |
| 14001 | FFLAGS= |
| 14002 | fi |
| 14003 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14004 | |
| 14005 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14006 | ac_ext=c |
| 14007 | ac_cpp='$CPP $CPPFLAGS' |
| 14008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14011 | |
| 14012 | |
| 14013 | |
| 14014 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 14015 | |
| 14016 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14017 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 14018 | 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] | 14019 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 14020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14021 | else |
| 14022 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14023 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14024 | |
| 14025 | case $build_os in |
| 14026 | msdosdjgpp*) |
| 14027 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 14028 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 14029 | # during glob expansion). Even if it were fixed, the result of this |
| 14030 | # check would be larger than it should be. |
| 14031 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 14032 | ;; |
| 14033 | |
| 14034 | gnu*) |
| 14035 | # Under GNU Hurd, this test is not required because there is |
| 14036 | # no limit to the length of command line arguments. |
| 14037 | # Libtool will interpret -1 as no limit whatsoever |
| 14038 | lt_cv_sys_max_cmd_len=-1; |
| 14039 | ;; |
| 14040 | |
| 14041 | cygwin* | mingw*) |
| 14042 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 14043 | # about 5 minutes as the teststring grows exponentially. |
| 14044 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 14045 | # you end up with a "frozen" computer, even though with patience |
| 14046 | # the test eventually succeeds (with a max line length of 256k). |
| 14047 | # Instead, let's just punt: use the minimum linelength reported by |
| 14048 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 14049 | lt_cv_sys_max_cmd_len=8192; |
| 14050 | ;; |
| 14051 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14052 | amigaos*) |
| 14053 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 14054 | # So we just punt and use a minimum line length of 8192. |
| 14055 | lt_cv_sys_max_cmd_len=8192; |
| 14056 | ;; |
| 14057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14058 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14059 | # This has been around since 386BSD, at least. Likely further. |
| 14060 | if test -x /sbin/sysctl; then |
| 14061 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 14062 | elif test -x /usr/sbin/sysctl; then |
| 14063 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 14064 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14065 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14066 | fi |
| 14067 | # And add a safety zone |
| 14068 | 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] | 14069 | 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] | 14070 | ;; |
| 14071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14072 | interix*) |
| 14073 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 14074 | lt_cv_sys_max_cmd_len=196608 |
| 14075 | ;; |
| 14076 | |
| 14077 | osf*) |
| 14078 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 14079 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 14080 | # nice to cause kernel panics so lets avoid the loop below. |
| 14081 | # First set a reasonable default. |
| 14082 | lt_cv_sys_max_cmd_len=16384 |
| 14083 | # |
| 14084 | if test -x /sbin/sysconfig; then |
| 14085 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 14086 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 14087 | esac |
| 14088 | fi |
| 14089 | ;; |
| 14090 | sco3.2v5*) |
| 14091 | lt_cv_sys_max_cmd_len=102400 |
| 14092 | ;; |
| 14093 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 14094 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 14095 | if test -n "$kargmax"; then |
| 14096 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 14097 | else |
| 14098 | lt_cv_sys_max_cmd_len=32768 |
| 14099 | fi |
| 14100 | ;; |
| 14101 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14102 | # If test is not a shell built-in, we'll probably end up computing a |
| 14103 | # maximum length that is only half of the actual maximum length, but |
| 14104 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14105 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 14106 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 14107 | = "XX$teststring") >/dev/null 2>&1 && |
| 14108 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14109 | lt_cv_sys_max_cmd_len=$new_result && |
| 14110 | test $i != 17 # 1/2 MB should be enough |
| 14111 | do |
| 14112 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14113 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14114 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14115 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14116 | # Add a significant safety factor because C++ compilers can tack on massive |
| 14117 | # amounts of additional arguments before passing them to the linker. |
| 14118 | # It appears as though 1/2 is a usable value. |
| 14119 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 14120 | ;; |
| 14121 | esac |
| 14122 | |
| 14123 | fi |
| 14124 | |
| 14125 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14126 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 14127 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14128 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14129 | { echo "$as_me:$LINENO: result: none" >&5 |
| 14130 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14131 | fi |
| 14132 | |
| 14133 | |
| 14134 | |
| 14135 | |
| 14136 | # 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] | 14137 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 14138 | 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] | 14139 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 14140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14141 | else |
| 14142 | |
| 14143 | # These are sane defaults that work on at least a few old systems. |
| 14144 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 14145 | |
| 14146 | # Character class describing NM global symbol codes. |
| 14147 | symcode='[BCDEGRST]' |
| 14148 | |
| 14149 | # Regexp to match symbols that can be accessed directly from C. |
| 14150 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 14151 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14152 | # Transform an extracted symbol line into a proper C declaration |
| 14153 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 14154 | |
| 14155 | # Transform an extracted symbol line into symbol name and symbol address |
| 14156 | 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'" |
| 14157 | |
| 14158 | # Define system-specific variables. |
| 14159 | case $host_os in |
| 14160 | aix*) |
| 14161 | symcode='[BCDT]' |
| 14162 | ;; |
| 14163 | cygwin* | mingw* | pw32*) |
| 14164 | symcode='[ABCDGISTW]' |
| 14165 | ;; |
| 14166 | hpux*) # Its linker distinguishes data from code symbols |
| 14167 | if test "$host_cpu" = ia64; then |
| 14168 | symcode='[ABCDEGRST]' |
| 14169 | fi |
| 14170 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 14171 | 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'" |
| 14172 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14173 | linux*) |
| 14174 | if test "$host_cpu" = ia64; then |
| 14175 | symcode='[ABCDGIRSTW]' |
| 14176 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 14177 | 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'" |
| 14178 | fi |
| 14179 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14180 | irix* | nonstopux*) |
| 14181 | symcode='[BCDEGRST]' |
| 14182 | ;; |
| 14183 | osf*) |
| 14184 | symcode='[BCDEGQRST]' |
| 14185 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14186 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14187 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14188 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14189 | sco3.2v5*) |
| 14190 | symcode='[DT]' |
| 14191 | ;; |
| 14192 | sysv4.2uw2*) |
| 14193 | symcode='[DT]' |
| 14194 | ;; |
| 14195 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 14196 | symcode='[ABDT]' |
| 14197 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14198 | sysv4) |
| 14199 | symcode='[DFNSTU]' |
| 14200 | ;; |
| 14201 | esac |
| 14202 | |
| 14203 | # Handle CRLF in mingw tool chain |
| 14204 | opt_cr= |
| 14205 | case $build_os in |
| 14206 | mingw*) |
| 14207 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 14208 | ;; |
| 14209 | esac |
| 14210 | |
| 14211 | # If we're using GNU nm, then use its standard symbol codes. |
| 14212 | case `$NM -V 2>&1` in |
| 14213 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14214 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14215 | esac |
| 14216 | |
| 14217 | # Try without a prefix undercore, then with it. |
| 14218 | for ac_symprfx in "" "_"; do |
| 14219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14220 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 14221 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 14222 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14223 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14224 | 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] | 14225 | |
| 14226 | # Check to see that the pipe works correctly. |
| 14227 | pipe_works=no |
| 14228 | |
| 14229 | rm -f conftest* |
| 14230 | cat > conftest.$ac_ext <<EOF |
| 14231 | #ifdef __cplusplus |
| 14232 | extern "C" { |
| 14233 | #endif |
| 14234 | char nm_test_var; |
| 14235 | void nm_test_func(){} |
| 14236 | #ifdef __cplusplus |
| 14237 | } |
| 14238 | #endif |
| 14239 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 14240 | EOF |
| 14241 | |
| 14242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14243 | (eval $ac_compile) 2>&5 |
| 14244 | ac_status=$? |
| 14245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14246 | (exit $ac_status); }; then |
| 14247 | # Now try to grab the symbols. |
| 14248 | nlist=conftest.nm |
| 14249 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 14250 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 14251 | ac_status=$? |
| 14252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14253 | (exit $ac_status); } && test -s "$nlist"; then |
| 14254 | # Try sorting and uniquifying the output. |
| 14255 | if sort "$nlist" | uniq > "$nlist"T; then |
| 14256 | mv -f "$nlist"T "$nlist" |
| 14257 | else |
| 14258 | rm -f "$nlist"T |
| 14259 | fi |
| 14260 | |
| 14261 | # Make sure that we snagged all the symbols we need. |
| 14262 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 14263 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 14264 | cat <<EOF > conftest.$ac_ext |
| 14265 | #ifdef __cplusplus |
| 14266 | extern "C" { |
| 14267 | #endif |
| 14268 | |
| 14269 | EOF |
| 14270 | # Now generate the symbol file. |
| 14271 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 14272 | |
| 14273 | cat <<EOF >> conftest.$ac_ext |
| 14274 | #if defined (__STDC__) && __STDC__ |
| 14275 | # define lt_ptr_t void * |
| 14276 | #else |
| 14277 | # define lt_ptr_t char * |
| 14278 | # define const |
| 14279 | #endif |
| 14280 | |
| 14281 | /* The mapping between symbol names and symbols. */ |
| 14282 | const struct { |
| 14283 | const char *name; |
| 14284 | lt_ptr_t address; |
| 14285 | } |
| 14286 | lt_preloaded_symbols[] = |
| 14287 | { |
| 14288 | EOF |
| 14289 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 14290 | cat <<\EOF >> conftest.$ac_ext |
| 14291 | {0, (lt_ptr_t) 0} |
| 14292 | }; |
| 14293 | |
| 14294 | #ifdef __cplusplus |
| 14295 | } |
| 14296 | #endif |
| 14297 | EOF |
| 14298 | # Now try linking the two files. |
| 14299 | mv conftest.$ac_objext conftstm.$ac_objext |
| 14300 | lt_save_LIBS="$LIBS" |
| 14301 | lt_save_CFLAGS="$CFLAGS" |
| 14302 | LIBS="conftstm.$ac_objext" |
| 14303 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 14304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14305 | (eval $ac_link) 2>&5 |
| 14306 | ac_status=$? |
| 14307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14308 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 14309 | pipe_works=yes |
| 14310 | fi |
| 14311 | LIBS="$lt_save_LIBS" |
| 14312 | CFLAGS="$lt_save_CFLAGS" |
| 14313 | else |
| 14314 | echo "cannot find nm_test_func in $nlist" >&5 |
| 14315 | fi |
| 14316 | else |
| 14317 | echo "cannot find nm_test_var in $nlist" >&5 |
| 14318 | fi |
| 14319 | else |
| 14320 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 14321 | fi |
| 14322 | else |
| 14323 | echo "$progname: failed program was:" >&5 |
| 14324 | cat conftest.$ac_ext >&5 |
| 14325 | fi |
| 14326 | rm -f conftest* conftst* |
| 14327 | |
| 14328 | # Do not use the global_symbol_pipe unless it works. |
| 14329 | if test "$pipe_works" = yes; then |
| 14330 | break |
| 14331 | else |
| 14332 | lt_cv_sys_global_symbol_pipe= |
| 14333 | fi |
| 14334 | done |
| 14335 | |
| 14336 | fi |
| 14337 | |
| 14338 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 14339 | lt_cv_sys_global_symbol_to_cdecl= |
| 14340 | fi |
| 14341 | 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] | 14342 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 14343 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14344 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14345 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 14346 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14347 | fi |
| 14348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14349 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 14350 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14351 | if test "${lt_cv_objdir+set}" = set; then |
| 14352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14353 | else |
| 14354 | rm -f .libs 2>/dev/null |
| 14355 | mkdir .libs 2>/dev/null |
| 14356 | if test -d .libs; then |
| 14357 | lt_cv_objdir=.libs |
| 14358 | else |
| 14359 | # MS-DOS does not allow filenames that begin with a dot. |
| 14360 | lt_cv_objdir=_libs |
| 14361 | fi |
| 14362 | rmdir .libs 2>/dev/null |
| 14363 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14364 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 14365 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14366 | objdir=$lt_cv_objdir |
| 14367 | |
| 14368 | |
| 14369 | |
| 14370 | |
| 14371 | |
| 14372 | case $host_os in |
| 14373 | aix3*) |
| 14374 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14375 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14376 | # vanish in a puff of smoke. |
| 14377 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14378 | COLLECT_NAMES= |
| 14379 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14380 | fi |
| 14381 | ;; |
| 14382 | esac |
| 14383 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14384 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 14385 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14386 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14387 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 14388 | |
| 14389 | # Same as above, but do not quote variable references. |
| 14390 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 14391 | |
| 14392 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 14393 | # double_quote_subst'ed string. |
| 14394 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 14395 | |
| 14396 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 14397 | no_glob_subst='s/\*/\\\*/g' |
| 14398 | |
| 14399 | # Constants: |
| 14400 | rm="rm -f" |
| 14401 | |
| 14402 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 14403 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14404 | can_build_shared=yes |
| 14405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14406 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14407 | # which needs '.lib'). |
| 14408 | libext=a |
| 14409 | ltmain="$ac_aux_dir/ltmain.sh" |
| 14410 | ofile="$default_ofile" |
| 14411 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 14412 | |
| 14413 | if test -n "$ac_tool_prefix"; then |
| 14414 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 14415 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14416 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14418 | if test "${ac_cv_prog_AR+set}" = set; then |
| 14419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14420 | else |
| 14421 | if test -n "$AR"; then |
| 14422 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 14423 | else |
| 14424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14425 | for as_dir in $PATH |
| 14426 | do |
| 14427 | IFS=$as_save_IFS |
| 14428 | test -z "$as_dir" && as_dir=. |
| 14429 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14430 | 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] | 14431 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 14432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14433 | break 2 |
| 14434 | fi |
| 14435 | done |
| 14436 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14437 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14438 | |
| 14439 | fi |
| 14440 | fi |
| 14441 | AR=$ac_cv_prog_AR |
| 14442 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14443 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 14444 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14445 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14446 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14447 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14448 | fi |
| 14449 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14450 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14451 | fi |
| 14452 | if test -z "$ac_cv_prog_AR"; then |
| 14453 | ac_ct_AR=$AR |
| 14454 | # Extract the first word of "ar", so it can be a program name with args. |
| 14455 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14456 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14458 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 14459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14460 | else |
| 14461 | if test -n "$ac_ct_AR"; then |
| 14462 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 14463 | else |
| 14464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14465 | for as_dir in $PATH |
| 14466 | do |
| 14467 | IFS=$as_save_IFS |
| 14468 | test -z "$as_dir" && as_dir=. |
| 14469 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14470 | 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] | 14471 | ac_cv_prog_ac_ct_AR="ar" |
| 14472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14473 | break 2 |
| 14474 | fi |
| 14475 | done |
| 14476 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14477 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14478 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14479 | fi |
| 14480 | fi |
| 14481 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 14482 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14483 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 14484 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14485 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14486 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14487 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14488 | fi |
| 14489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14490 | if test "x$ac_ct_AR" = x; then |
| 14491 | AR="false" |
| 14492 | else |
| 14493 | case $cross_compiling:$ac_tool_warned in |
| 14494 | yes:) |
| 14495 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14496 | whose name does not start with the host triplet. If you think this |
| 14497 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14498 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14499 | whose name does not start with the host triplet. If you think this |
| 14500 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14501 | ac_tool_warned=yes ;; |
| 14502 | esac |
| 14503 | AR=$ac_ct_AR |
| 14504 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14505 | else |
| 14506 | AR="$ac_cv_prog_AR" |
| 14507 | fi |
| 14508 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14509 | if test -n "$ac_tool_prefix"; then |
| 14510 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 14511 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14514 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 14515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14516 | else |
| 14517 | if test -n "$RANLIB"; then |
| 14518 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 14519 | else |
| 14520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14521 | for as_dir in $PATH |
| 14522 | do |
| 14523 | IFS=$as_save_IFS |
| 14524 | test -z "$as_dir" && as_dir=. |
| 14525 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14526 | 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] | 14527 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 14528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14529 | break 2 |
| 14530 | fi |
| 14531 | done |
| 14532 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14533 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14534 | |
| 14535 | fi |
| 14536 | fi |
| 14537 | RANLIB=$ac_cv_prog_RANLIB |
| 14538 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14539 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 14540 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14541 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14542 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14543 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14544 | fi |
| 14545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14546 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14547 | fi |
| 14548 | if test -z "$ac_cv_prog_RANLIB"; then |
| 14549 | ac_ct_RANLIB=$RANLIB |
| 14550 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 14551 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14554 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 14555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14556 | else |
| 14557 | if test -n "$ac_ct_RANLIB"; then |
| 14558 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 14559 | else |
| 14560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14561 | for as_dir in $PATH |
| 14562 | do |
| 14563 | IFS=$as_save_IFS |
| 14564 | test -z "$as_dir" && as_dir=. |
| 14565 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14566 | 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] | 14567 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 14568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14569 | break 2 |
| 14570 | fi |
| 14571 | done |
| 14572 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14573 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14574 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14575 | fi |
| 14576 | fi |
| 14577 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14578 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14579 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14580 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14581 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14582 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14583 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14584 | fi |
| 14585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14586 | if test "x$ac_ct_RANLIB" = x; then |
| 14587 | RANLIB=":" |
| 14588 | else |
| 14589 | case $cross_compiling:$ac_tool_warned in |
| 14590 | yes:) |
| 14591 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14592 | whose name does not start with the host triplet. If you think this |
| 14593 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14594 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14595 | whose name does not start with the host triplet. If you think this |
| 14596 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14597 | ac_tool_warned=yes ;; |
| 14598 | esac |
| 14599 | RANLIB=$ac_ct_RANLIB |
| 14600 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14601 | else |
| 14602 | RANLIB="$ac_cv_prog_RANLIB" |
| 14603 | fi |
| 14604 | |
| 14605 | if test -n "$ac_tool_prefix"; then |
| 14606 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14607 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14608 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14610 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14612 | else |
| 14613 | if test -n "$STRIP"; then |
| 14614 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14615 | else |
| 14616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14617 | for as_dir in $PATH |
| 14618 | do |
| 14619 | IFS=$as_save_IFS |
| 14620 | test -z "$as_dir" && as_dir=. |
| 14621 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14622 | 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] | 14623 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14625 | break 2 |
| 14626 | fi |
| 14627 | done |
| 14628 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14629 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14630 | |
| 14631 | fi |
| 14632 | fi |
| 14633 | STRIP=$ac_cv_prog_STRIP |
| 14634 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14635 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14636 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14637 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14638 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14639 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14640 | fi |
| 14641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14642 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14643 | fi |
| 14644 | if test -z "$ac_cv_prog_STRIP"; then |
| 14645 | ac_ct_STRIP=$STRIP |
| 14646 | # Extract the first word of "strip", so it can be a program name with args. |
| 14647 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14648 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14650 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14652 | else |
| 14653 | if test -n "$ac_ct_STRIP"; then |
| 14654 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14655 | else |
| 14656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14657 | for as_dir in $PATH |
| 14658 | do |
| 14659 | IFS=$as_save_IFS |
| 14660 | test -z "$as_dir" && as_dir=. |
| 14661 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14662 | 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] | 14663 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14665 | break 2 |
| 14666 | fi |
| 14667 | done |
| 14668 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14669 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14670 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14671 | fi |
| 14672 | fi |
| 14673 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14674 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14675 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14676 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14677 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14678 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14679 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14680 | fi |
| 14681 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14682 | if test "x$ac_ct_STRIP" = x; then |
| 14683 | STRIP=":" |
| 14684 | else |
| 14685 | case $cross_compiling:$ac_tool_warned in |
| 14686 | yes:) |
| 14687 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14688 | whose name does not start with the host triplet. If you think this |
| 14689 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14690 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14691 | whose name does not start with the host triplet. If you think this |
| 14692 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14693 | ac_tool_warned=yes ;; |
| 14694 | esac |
| 14695 | STRIP=$ac_ct_STRIP |
| 14696 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14697 | else |
| 14698 | STRIP="$ac_cv_prog_STRIP" |
| 14699 | fi |
| 14700 | |
| 14701 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14702 | old_CC="$CC" |
| 14703 | old_CFLAGS="$CFLAGS" |
| 14704 | |
| 14705 | # Set sane defaults for various variables |
| 14706 | test -z "$AR" && AR=ar |
| 14707 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14708 | test -z "$AS" && AS=as |
| 14709 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14710 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14711 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14712 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14713 | test -z "$LD" && LD=ld |
| 14714 | test -z "$LN_S" && LN_S="ln -s" |
| 14715 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14716 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14717 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14718 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14719 | test -z "$RANLIB" && RANLIB=: |
| 14720 | test -z "$STRIP" && STRIP=: |
| 14721 | test -z "$ac_objext" && ac_objext=o |
| 14722 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14723 | # Determine commands to create old-style static archives. |
| 14724 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14725 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14726 | old_postuninstall_cmds= |
| 14727 | |
| 14728 | if test -n "$RANLIB"; then |
| 14729 | case $host_os in |
| 14730 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14731 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14732 | ;; |
| 14733 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14734 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14735 | ;; |
| 14736 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14737 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14738 | fi |
| 14739 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14740 | for cc_temp in $compiler""; do |
| 14741 | case $cc_temp in |
| 14742 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14743 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14744 | \-*) ;; |
| 14745 | *) break;; |
| 14746 | esac |
| 14747 | done |
| 14748 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14749 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14750 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14751 | # Only perform the check for file, if the check method requires it |
| 14752 | case $deplibs_check_method in |
| 14753 | file_magic*) |
| 14754 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14755 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14756 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14757 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14759 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14760 | case $MAGIC_CMD in |
| 14761 | [\\/*] | ?:[\\/]*) |
| 14762 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14763 | ;; |
| 14764 | *) |
| 14765 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14766 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14767 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14768 | for ac_dir in $ac_dummy; do |
| 14769 | IFS="$lt_save_ifs" |
| 14770 | test -z "$ac_dir" && ac_dir=. |
| 14771 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14772 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14773 | if test -n "$file_magic_test_file"; then |
| 14774 | case $deplibs_check_method in |
| 14775 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14776 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14777 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14778 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14779 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14780 | : |
| 14781 | else |
| 14782 | cat <<EOF 1>&2 |
| 14783 | |
| 14784 | *** Warning: the command libtool uses to detect shared libraries, |
| 14785 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14786 | *** The result is that libtool may fail to recognize shared libraries |
| 14787 | *** as such. This will affect the creation of libtool libraries that |
| 14788 | *** depend on shared libraries, but programs linked with such libtool |
| 14789 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14790 | *** may want to report the problem to your system manager and/or to |
| 14791 | *** bug-libtool@gnu.org |
| 14792 | |
| 14793 | EOF |
| 14794 | fi ;; |
| 14795 | esac |
| 14796 | fi |
| 14797 | break |
| 14798 | fi |
| 14799 | done |
| 14800 | IFS="$lt_save_ifs" |
| 14801 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14802 | ;; |
| 14803 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14804 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14805 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14806 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14807 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14808 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14809 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14810 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14811 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14812 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14813 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14814 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14815 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14816 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14817 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14818 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14819 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14821 | else |
| 14822 | case $MAGIC_CMD in |
| 14823 | [\\/*] | ?:[\\/]*) |
| 14824 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14825 | ;; |
| 14826 | *) |
| 14827 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14828 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14829 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14830 | for ac_dir in $ac_dummy; do |
| 14831 | IFS="$lt_save_ifs" |
| 14832 | test -z "$ac_dir" && ac_dir=. |
| 14833 | if test -f $ac_dir/file; then |
| 14834 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14835 | if test -n "$file_magic_test_file"; then |
| 14836 | case $deplibs_check_method in |
| 14837 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14838 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14839 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14840 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14841 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14842 | : |
| 14843 | else |
| 14844 | cat <<EOF 1>&2 |
| 14845 | |
| 14846 | *** Warning: the command libtool uses to detect shared libraries, |
| 14847 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14848 | *** The result is that libtool may fail to recognize shared libraries |
| 14849 | *** as such. This will affect the creation of libtool libraries that |
| 14850 | *** depend on shared libraries, but programs linked with such libtool |
| 14851 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14852 | *** may want to report the problem to your system manager and/or to |
| 14853 | *** bug-libtool@gnu.org |
| 14854 | |
| 14855 | EOF |
| 14856 | fi ;; |
| 14857 | esac |
| 14858 | fi |
| 14859 | break |
| 14860 | fi |
| 14861 | done |
| 14862 | IFS="$lt_save_ifs" |
| 14863 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14864 | ;; |
| 14865 | esac |
| 14866 | fi |
| 14867 | |
| 14868 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14869 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14870 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14871 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14872 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14873 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14874 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14875 | fi |
| 14876 | |
| 14877 | else |
| 14878 | MAGIC_CMD=: |
| 14879 | fi |
| 14880 | fi |
| 14881 | |
| 14882 | fi |
| 14883 | ;; |
| 14884 | esac |
| 14885 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14886 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14887 | enable_win32_dll=no |
| 14888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14889 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14890 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14891 | enableval=$enable_libtool_lock; |
| 14892 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14893 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14894 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14895 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14897 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14898 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14899 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14900 | else |
| 14901 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14902 | fi |
| 14903 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14904 | test -z "$pic_mode" && pic_mode=default |
| 14905 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14906 | # Use C for the default configuration in the libtool script |
| 14907 | tagname= |
| 14908 | lt_save_CC="$CC" |
| 14909 | ac_ext=c |
| 14910 | ac_cpp='$CPP $CPPFLAGS' |
| 14911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14914 | |
| 14915 | |
| 14916 | # Source file extension for C test sources. |
| 14917 | ac_ext=c |
| 14918 | |
| 14919 | # Object file extension for compiled C test sources. |
| 14920 | objext=o |
| 14921 | objext=$objext |
| 14922 | |
| 14923 | # Code to be used in simple compile tests |
| 14924 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14925 | |
| 14926 | # Code to be used in simple link tests |
| 14927 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14928 | |
| 14929 | |
| 14930 | # If no C compiler was specified, use CC. |
| 14931 | LTCC=${LTCC-"$CC"} |
| 14932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14933 | # If no C compiler flags were specified, use CFLAGS. |
| 14934 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14935 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14936 | # Allow CC to be a program name with arguments. |
| 14937 | compiler=$CC |
| 14938 | |
| 14939 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14940 | # save warnings/boilerplate of simple test code |
| 14941 | ac_outfile=conftest.$ac_objext |
| 14942 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14943 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14944 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14945 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14947 | ac_outfile=conftest.$ac_objext |
| 14948 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14949 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14950 | _lt_linker_boilerplate=`cat conftest.err` |
| 14951 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14952 | |
| 14953 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14954 | |
| 14955 | lt_prog_compiler_no_builtin_flag= |
| 14956 | |
| 14957 | if test "$GCC" = yes; then |
| 14958 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14959 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14960 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14961 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14962 | 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] | 14963 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14965 | else |
| 14966 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14967 | ac_outfile=conftest.$ac_objext |
| 14968 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14969 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14970 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14971 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14972 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14973 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14974 | # The option is referenced via a variable to avoid confusing sed. |
| 14975 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14976 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14977 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14978 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 14979 | (eval echo "\"\$as_me:14979: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14980 | (eval "$lt_compile" 2>conftest.err) |
| 14981 | ac_status=$? |
| 14982 | cat conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 14983 | echo "$as_me:14983: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14984 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14985 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14986 | # So say no if there are warnings other than the usual output. |
| 14987 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14988 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14989 | 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] | 14990 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14991 | fi |
| 14992 | fi |
| 14993 | $rm conftest* |
| 14994 | |
| 14995 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14996 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14997 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14998 | |
| 14999 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 15000 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 15001 | else |
| 15002 | : |
| 15003 | fi |
| 15004 | |
| 15005 | fi |
| 15006 | |
| 15007 | lt_prog_compiler_wl= |
| 15008 | lt_prog_compiler_pic= |
| 15009 | lt_prog_compiler_static= |
| 15010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15011 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 15012 | 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] | 15013 | |
| 15014 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15015 | lt_prog_compiler_wl='-Wl,' |
| 15016 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15017 | |
| 15018 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15019 | aix*) |
| 15020 | # All AIX code is PIC. |
| 15021 | if test "$host_cpu" = ia64; then |
| 15022 | # AIX 5 now supports IA64 processor |
| 15023 | lt_prog_compiler_static='-Bstatic' |
| 15024 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15025 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15026 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15027 | amigaos*) |
| 15028 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 15029 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 15030 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15031 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15032 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15033 | |
| 15034 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15035 | # PIC is the default for these OSes. |
| 15036 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15037 | |
| 15038 | mingw* | pw32* | os2*) |
| 15039 | # This hack is so that the source file can tell whether it is being |
| 15040 | # built for inclusion in a dll (and should export symbols for example). |
| 15041 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 15042 | ;; |
| 15043 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15044 | darwin* | rhapsody*) |
| 15045 | # PIC is the default on this platform |
| 15046 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15047 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15048 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15049 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15050 | interix3*) |
| 15051 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 15052 | # Instead, we relocate shared libraries at runtime. |
| 15053 | ;; |
| 15054 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15055 | msdosdjgpp*) |
| 15056 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 15057 | # on systems that don't support them. |
| 15058 | lt_prog_compiler_can_build_shared=no |
| 15059 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15060 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15061 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15062 | sysv4*MP*) |
| 15063 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15064 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15065 | fi |
| 15066 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15067 | |
| 15068 | hpux*) |
| 15069 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15070 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15071 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15072 | hppa*64*|ia64*) |
| 15073 | # +Z the default |
| 15074 | ;; |
| 15075 | *) |
| 15076 | lt_prog_compiler_pic='-fPIC' |
| 15077 | ;; |
| 15078 | esac |
| 15079 | ;; |
| 15080 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15081 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15082 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15083 | ;; |
| 15084 | esac |
| 15085 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15086 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15087 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15088 | aix*) |
| 15089 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15090 | if test "$host_cpu" = ia64; then |
| 15091 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15092 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15093 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15094 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15095 | fi |
| 15096 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15097 | darwin*) |
| 15098 | # PIC is the default on this platform |
| 15099 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15100 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15101 | xlc*) |
| 15102 | lt_prog_compiler_pic='-qnocommon' |
| 15103 | lt_prog_compiler_wl='-Wl,' |
| 15104 | ;; |
| 15105 | esac |
| 15106 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15107 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15108 | mingw* | pw32* | os2*) |
| 15109 | # This hack is so that the source file can tell whether it is being |
| 15110 | # built for inclusion in a dll (and should export symbols for example). |
| 15111 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 15112 | ;; |
| 15113 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15114 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15115 | lt_prog_compiler_wl='-Wl,' |
| 15116 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15117 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15118 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15119 | hppa*64*|ia64*) |
| 15120 | # +Z the default |
| 15121 | ;; |
| 15122 | *) |
| 15123 | lt_prog_compiler_pic='+Z' |
| 15124 | ;; |
| 15125 | esac |
| 15126 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 15127 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15128 | ;; |
| 15129 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15130 | irix5* | irix6* | nonstopux*) |
| 15131 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15132 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15133 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15134 | ;; |
| 15135 | |
| 15136 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15137 | lt_prog_compiler_pic='-KPIC' |
| 15138 | lt_prog_compiler_static='-Bstatic' |
| 15139 | ;; |
| 15140 | |
| 15141 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15142 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15143 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15144 | lt_prog_compiler_wl='-Wl,' |
| 15145 | lt_prog_compiler_pic='-KPIC' |
| 15146 | lt_prog_compiler_static='-static' |
| 15147 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15148 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 15149 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 15150 | # which looks to be a dead project) |
| 15151 | lt_prog_compiler_wl='-Wl,' |
| 15152 | lt_prog_compiler_pic='-fpic' |
| 15153 | lt_prog_compiler_static='-Bstatic' |
| 15154 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15155 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15156 | lt_prog_compiler_wl='-Wl,' |
| 15157 | # All Alpha code is PIC. |
| 15158 | lt_prog_compiler_static='-non_shared' |
| 15159 | ;; |
| 15160 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15161 | ;; |
| 15162 | |
| 15163 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15164 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15165 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15166 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15167 | ;; |
| 15168 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15169 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15170 | lt_prog_compiler_pic='-KPIC' |
| 15171 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15172 | case $cc_basename in |
| 15173 | f77* | f90* | f95*) |
| 15174 | lt_prog_compiler_wl='-Qoption ld ';; |
| 15175 | *) |
| 15176 | lt_prog_compiler_wl='-Wl,';; |
| 15177 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15178 | ;; |
| 15179 | |
| 15180 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15181 | lt_prog_compiler_wl='-Qoption ld ' |
| 15182 | lt_prog_compiler_pic='-PIC' |
| 15183 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15184 | ;; |
| 15185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15186 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15187 | lt_prog_compiler_wl='-Wl,' |
| 15188 | lt_prog_compiler_pic='-KPIC' |
| 15189 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15190 | ;; |
| 15191 | |
| 15192 | sysv4*MP*) |
| 15193 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15194 | lt_prog_compiler_pic='-Kconform_pic' |
| 15195 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15196 | fi |
| 15197 | ;; |
| 15198 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15199 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 15200 | lt_prog_compiler_wl='-Wl,' |
| 15201 | lt_prog_compiler_pic='-KPIC' |
| 15202 | lt_prog_compiler_static='-Bstatic' |
| 15203 | ;; |
| 15204 | |
| 15205 | unicos*) |
| 15206 | lt_prog_compiler_wl='-Wl,' |
| 15207 | lt_prog_compiler_can_build_shared=no |
| 15208 | ;; |
| 15209 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15210 | uts4*) |
| 15211 | lt_prog_compiler_pic='-pic' |
| 15212 | lt_prog_compiler_static='-Bstatic' |
| 15213 | ;; |
| 15214 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15215 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15216 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15217 | ;; |
| 15218 | esac |
| 15219 | fi |
| 15220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15221 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 15222 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15223 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15224 | # |
| 15225 | # Check to make sure the PIC flag actually works. |
| 15226 | # |
| 15227 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15229 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 15230 | 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] | 15231 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15233 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15234 | lt_prog_compiler_pic_works=no |
| 15235 | ac_outfile=conftest.$ac_objext |
| 15236 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15237 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 15238 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15239 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15240 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15241 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15242 | # The option is referenced via a variable to avoid confusing sed. |
| 15243 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15244 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15245 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15246 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 15247 | (eval echo "\"\$as_me:15247: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15248 | (eval "$lt_compile" 2>conftest.err) |
| 15249 | ac_status=$? |
| 15250 | cat conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 15251 | echo "$as_me:15251: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15252 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15253 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15254 | # So say no if there are warnings other than the usual output. |
| 15255 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 15256 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15257 | 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] | 15258 | lt_prog_compiler_pic_works=yes |
| 15259 | fi |
| 15260 | fi |
| 15261 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15262 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15263 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15264 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 15265 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15266 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15267 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 15268 | case $lt_prog_compiler_pic in |
| 15269 | "" | " "*) ;; |
| 15270 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 15271 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15272 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15273 | lt_prog_compiler_pic= |
| 15274 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15275 | fi |
| 15276 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15277 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15278 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15279 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15280 | *djgpp*) |
| 15281 | lt_prog_compiler_pic= |
| 15282 | ;; |
| 15283 | *) |
| 15284 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 15285 | ;; |
| 15286 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15288 | # |
| 15289 | # Check to make sure the static flag actually works. |
| 15290 | # |
| 15291 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 15292 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15293 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 15294 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 15295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15296 | else |
| 15297 | lt_prog_compiler_static_works=no |
| 15298 | save_LDFLAGS="$LDFLAGS" |
| 15299 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15300 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15301 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15302 | # The linker can only warn and ignore the option if not recognized |
| 15303 | # So say no if there are warnings |
| 15304 | if test -s conftest.err; then |
| 15305 | # Append any errors to the config.log. |
| 15306 | cat conftest.err 1>&5 |
| 15307 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 15308 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15309 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15310 | lt_prog_compiler_static_works=yes |
| 15311 | fi |
| 15312 | else |
| 15313 | lt_prog_compiler_static_works=yes |
| 15314 | fi |
| 15315 | fi |
| 15316 | $rm conftest* |
| 15317 | LDFLAGS="$save_LDFLAGS" |
| 15318 | |
| 15319 | fi |
| 15320 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 15321 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 15322 | |
| 15323 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 15324 | : |
| 15325 | else |
| 15326 | lt_prog_compiler_static= |
| 15327 | fi |
| 15328 | |
| 15329 | |
| 15330 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15331 | 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] | 15332 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15334 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15335 | lt_cv_prog_compiler_c_o=no |
| 15336 | $rm -r conftest 2>/dev/null |
| 15337 | mkdir conftest |
| 15338 | cd conftest |
| 15339 | mkdir out |
| 15340 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15341 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15342 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15343 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15344 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15345 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15346 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15347 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15348 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15349 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15350 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 15351 | (eval echo "\"\$as_me:15351: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15352 | (eval "$lt_compile" 2>out/conftest.err) |
| 15353 | ac_status=$? |
| 15354 | cat out/conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 15355 | echo "$as_me:15355: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15356 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15357 | then |
| 15358 | # The compiler can only warn and ignore the option if not recognized |
| 15359 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15360 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 15361 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15362 | 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] | 15363 | lt_cv_prog_compiler_c_o=yes |
| 15364 | fi |
| 15365 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15366 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15367 | $rm conftest* |
| 15368 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15369 | # template instantiation |
| 15370 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15371 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15372 | cd .. |
| 15373 | rmdir conftest |
| 15374 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15375 | |
| 15376 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15377 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 15378 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15379 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15380 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15381 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15382 | 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] | 15383 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15384 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15385 | 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] | 15386 | hard_links=yes |
| 15387 | $rm conftest* |
| 15388 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15389 | touch conftest.a |
| 15390 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15391 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15392 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15393 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15394 | if test "$hard_links" = no; then |
| 15395 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15396 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15397 | need_locks=warn |
| 15398 | fi |
| 15399 | else |
| 15400 | need_locks=no |
| 15401 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15402 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15403 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15404 | 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] | 15405 | |
| 15406 | runpath_var= |
| 15407 | allow_undefined_flag= |
| 15408 | enable_shared_with_static_runtimes=no |
| 15409 | archive_cmds= |
| 15410 | archive_expsym_cmds= |
| 15411 | old_archive_From_new_cmds= |
| 15412 | old_archive_from_expsyms_cmds= |
| 15413 | export_dynamic_flag_spec= |
| 15414 | whole_archive_flag_spec= |
| 15415 | thread_safe_flag_spec= |
| 15416 | hardcode_libdir_flag_spec= |
| 15417 | hardcode_libdir_flag_spec_ld= |
| 15418 | hardcode_libdir_separator= |
| 15419 | hardcode_direct=no |
| 15420 | hardcode_minus_L=no |
| 15421 | hardcode_shlibpath_var=unsupported |
| 15422 | link_all_deplibs=unknown |
| 15423 | hardcode_automatic=no |
| 15424 | module_cmds= |
| 15425 | module_expsym_cmds= |
| 15426 | always_export_symbols=no |
| 15427 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15428 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15429 | # included in the symbol list |
| 15430 | include_expsyms= |
| 15431 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15432 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15433 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15434 | # as well as any symbol that contains `d'. |
| 15435 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 15436 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15437 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15438 | # the symbol is explicitly referenced. Since portable code cannot |
| 15439 | # rely on this symbol name, it's probably fine to never include it in |
| 15440 | # preloaded symbol tables. |
| 15441 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15442 | # Just being paranoid about ensuring that cc_basename is set. |
| 15443 | for cc_temp in $compiler""; do |
| 15444 | case $cc_temp in |
| 15445 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15446 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15447 | \-*) ;; |
| 15448 | *) break;; |
| 15449 | esac |
| 15450 | done |
| 15451 | 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] | 15452 | |
| 15453 | case $host_os in |
| 15454 | cygwin* | mingw* | pw32*) |
| 15455 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15456 | # When not using gcc, we currently assume that we are using |
| 15457 | # Microsoft Visual C++. |
| 15458 | if test "$GCC" != yes; then |
| 15459 | with_gnu_ld=no |
| 15460 | fi |
| 15461 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15462 | interix*) |
| 15463 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 15464 | with_gnu_ld=yes |
| 15465 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15466 | openbsd*) |
| 15467 | with_gnu_ld=no |
| 15468 | ;; |
| 15469 | esac |
| 15470 | |
| 15471 | ld_shlibs=yes |
| 15472 | if test "$with_gnu_ld" = yes; then |
| 15473 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15474 | wlarc='${wl}' |
| 15475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15476 | # Set some defaults for GNU ld with shared library support. These |
| 15477 | # are reset later if shared libraries are not supported. Putting them |
| 15478 | # here allows them to be overridden if necessary. |
| 15479 | runpath_var=LD_RUN_PATH |
| 15480 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 15481 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 15482 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15483 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15484 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15485 | else |
| 15486 | whole_archive_flag_spec= |
| 15487 | fi |
| 15488 | supports_anon_versioning=no |
| 15489 | case `$LD -v 2>/dev/null` in |
| 15490 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15491 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15492 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15493 | *\ 2.11.*) ;; # other 2.11 versions |
| 15494 | *) supports_anon_versioning=yes ;; |
| 15495 | esac |
| 15496 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15497 | # See if GNU ld supports shared libraries. |
| 15498 | case $host_os in |
| 15499 | aix3* | aix4* | aix5*) |
| 15500 | # On AIX/PPC, the GNU linker is very broken |
| 15501 | if test "$host_cpu" != ia64; then |
| 15502 | ld_shlibs=no |
| 15503 | cat <<EOF 1>&2 |
| 15504 | |
| 15505 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15506 | *** to be unable to reliably create shared libraries on AIX. |
| 15507 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15508 | *** really care for shared libraries, you may want to modify your PATH |
| 15509 | *** so that a non-GNU linker is found, and then restart. |
| 15510 | |
| 15511 | EOF |
| 15512 | fi |
| 15513 | ;; |
| 15514 | |
| 15515 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15516 | 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] | 15517 | hardcode_libdir_flag_spec='-L$libdir' |
| 15518 | hardcode_minus_L=yes |
| 15519 | |
| 15520 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15521 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15522 | # to version 4, is to share data among multiple programs linked |
| 15523 | # with the same dynamic library. Since this doesn't match the |
| 15524 | # behavior of shared libraries on other platforms, we can't use |
| 15525 | # them. |
| 15526 | ld_shlibs=no |
| 15527 | ;; |
| 15528 | |
| 15529 | beos*) |
| 15530 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15531 | allow_undefined_flag=unsupported |
| 15532 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15533 | # support --undefined. This deserves some investigation. FIXME |
| 15534 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15535 | else |
| 15536 | ld_shlibs=no |
| 15537 | fi |
| 15538 | ;; |
| 15539 | |
| 15540 | cygwin* | mingw* | pw32*) |
| 15541 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15542 | # as there is no search path for DLLs. |
| 15543 | hardcode_libdir_flag_spec='-L$libdir' |
| 15544 | allow_undefined_flag=unsupported |
| 15545 | always_export_symbols=no |
| 15546 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15547 | 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] | 15548 | |
| 15549 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15550 | 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] | 15551 | # If the export-symbols file already is a .def file (1st line |
| 15552 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15553 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15554 | cp $export_symbols $output_objdir/$soname.def; |
| 15555 | else |
| 15556 | echo EXPORTS > $output_objdir/$soname.def; |
| 15557 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15558 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15559 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15560 | else |
| 15561 | ld_shlibs=no |
| 15562 | fi |
| 15563 | ;; |
| 15564 | |
| 15565 | interix3*) |
| 15566 | hardcode_direct=no |
| 15567 | hardcode_shlibpath_var=no |
| 15568 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15569 | export_dynamic_flag_spec='${wl}-E' |
| 15570 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15571 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15572 | # default) and relocated if they conflict, which is a slow very memory |
| 15573 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15574 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15575 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15576 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15577 | 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' |
| 15578 | ;; |
| 15579 | |
| 15580 | linux*) |
| 15581 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15582 | tmp_addflag= |
| 15583 | case $cc_basename,$host_cpu in |
| 15584 | pgcc*) # Portland Group C compiler |
| 15585 | 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' |
| 15586 | tmp_addflag=' $pic_flag' |
| 15587 | ;; |
| 15588 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15589 | 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' |
| 15590 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15591 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15592 | tmp_addflag=' -i_dynamic' ;; |
| 15593 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15594 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15595 | ifc* | ifort*) # Intel Fortran compiler |
| 15596 | tmp_addflag=' -nofor_main' ;; |
| 15597 | esac |
| 15598 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15599 | |
| 15600 | if test $supports_anon_versioning = yes; then |
| 15601 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15602 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15603 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15604 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15605 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15606 | else |
| 15607 | ld_shlibs=no |
| 15608 | fi |
| 15609 | ;; |
| 15610 | |
| 15611 | netbsd*) |
| 15612 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15613 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15614 | wlarc= |
| 15615 | else |
| 15616 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15617 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15618 | fi |
| 15619 | ;; |
| 15620 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15621 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15622 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15623 | ld_shlibs=no |
| 15624 | cat <<EOF 1>&2 |
| 15625 | |
| 15626 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15627 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15628 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15629 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15630 | *** your PATH or compiler configuration so that the native linker is |
| 15631 | *** used, and then restart. |
| 15632 | |
| 15633 | EOF |
| 15634 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15635 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15636 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15637 | else |
| 15638 | ld_shlibs=no |
| 15639 | fi |
| 15640 | ;; |
| 15641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15642 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15643 | case `$LD -v 2>&1` in |
| 15644 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15645 | ld_shlibs=no |
| 15646 | cat <<_LT_EOF 1>&2 |
| 15647 | |
| 15648 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15649 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15650 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15651 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15652 | *** your PATH or compiler configuration so that the native linker is |
| 15653 | *** used, and then restart. |
| 15654 | |
| 15655 | _LT_EOF |
| 15656 | ;; |
| 15657 | *) |
| 15658 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15659 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15660 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15661 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15662 | else |
| 15663 | ld_shlibs=no |
| 15664 | fi |
| 15665 | ;; |
| 15666 | esac |
| 15667 | ;; |
| 15668 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15669 | sunos4*) |
| 15670 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15671 | wlarc= |
| 15672 | hardcode_direct=yes |
| 15673 | hardcode_shlibpath_var=no |
| 15674 | ;; |
| 15675 | |
| 15676 | *) |
| 15677 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15678 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15679 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15680 | else |
| 15681 | ld_shlibs=no |
| 15682 | fi |
| 15683 | ;; |
| 15684 | esac |
| 15685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15686 | if test "$ld_shlibs" = no; then |
| 15687 | runpath_var= |
| 15688 | hardcode_libdir_flag_spec= |
| 15689 | export_dynamic_flag_spec= |
| 15690 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15691 | fi |
| 15692 | else |
| 15693 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15694 | case $host_os in |
| 15695 | aix3*) |
| 15696 | allow_undefined_flag=unsupported |
| 15697 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15698 | 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] | 15699 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15700 | # are no directories specified by -L. |
| 15701 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15702 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15703 | # Neither direct hardcoding nor static linking is supported with a |
| 15704 | # broken collect2. |
| 15705 | hardcode_direct=unsupported |
| 15706 | fi |
| 15707 | ;; |
| 15708 | |
| 15709 | aix4* | aix5*) |
| 15710 | if test "$host_cpu" = ia64; then |
| 15711 | # On IA64, the linker does run time linking by default, so we don't |
| 15712 | # have to do anything special. |
| 15713 | aix_use_runtimelinking=no |
| 15714 | exp_sym_flag='-Bexport' |
| 15715 | no_entry_flag="" |
| 15716 | else |
| 15717 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15718 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15719 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15720 | 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' |
| 15721 | else |
| 15722 | 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' |
| 15723 | fi |
| 15724 | aix_use_runtimelinking=no |
| 15725 | |
| 15726 | # Test if we are trying to use run time linking or normal |
| 15727 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15728 | # need to do runtime linking. |
| 15729 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15730 | for ld_flag in $LDFLAGS; do |
| 15731 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15732 | aix_use_runtimelinking=yes |
| 15733 | break |
| 15734 | fi |
| 15735 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15736 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15737 | esac |
| 15738 | |
| 15739 | exp_sym_flag='-bexport' |
| 15740 | no_entry_flag='-bnoentry' |
| 15741 | fi |
| 15742 | |
| 15743 | # When large executables or shared objects are built, AIX ld can |
| 15744 | # have problems creating the table of contents. If linking a library |
| 15745 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15746 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15747 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15748 | |
| 15749 | archive_cmds='' |
| 15750 | hardcode_direct=yes |
| 15751 | hardcode_libdir_separator=':' |
| 15752 | link_all_deplibs=yes |
| 15753 | |
| 15754 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15755 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15756 | # We only want to do this on AIX 4.2 and lower, the check |
| 15757 | # below for broken collect2 doesn't work under 4.3+ |
| 15758 | collect2name=`${CC} -print-prog-name=collect2` |
| 15759 | if test -f "$collect2name" && \ |
| 15760 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15761 | then |
| 15762 | # We have reworked collect2 |
| 15763 | hardcode_direct=yes |
| 15764 | else |
| 15765 | # We have old collect2 |
| 15766 | hardcode_direct=unsupported |
| 15767 | # It fails to find uninstalled libraries when the uninstalled |
| 15768 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15769 | # to unsupported forces relinking |
| 15770 | hardcode_minus_L=yes |
| 15771 | hardcode_libdir_flag_spec='-L$libdir' |
| 15772 | hardcode_libdir_separator= |
| 15773 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15774 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15775 | esac |
| 15776 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15777 | if test "$aix_use_runtimelinking" = yes; then |
| 15778 | shared_flag="$shared_flag "'${wl}-G' |
| 15779 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15780 | else |
| 15781 | # not using gcc |
| 15782 | if test "$host_cpu" = ia64; then |
| 15783 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15784 | # chokes on -Wl,-G. The following line is correct: |
| 15785 | shared_flag='-G' |
| 15786 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15787 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15788 | shared_flag='${wl}-G' |
| 15789 | else |
| 15790 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15791 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15792 | fi |
| 15793 | fi |
| 15794 | |
| 15795 | # It seems that -bexpall does not export symbols beginning with |
| 15796 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15797 | always_export_symbols=yes |
| 15798 | if test "$aix_use_runtimelinking" = yes; then |
| 15799 | # Warning - without using the other runtime loading flags (-brtl), |
| 15800 | # -berok will link without error, but may produce a broken library. |
| 15801 | allow_undefined_flag='-berok' |
| 15802 | # Determine the default libpath from the value encoded in an empty executable. |
| 15803 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15804 | /* confdefs.h. */ |
| 15805 | _ACEOF |
| 15806 | cat confdefs.h >>conftest.$ac_ext |
| 15807 | cat >>conftest.$ac_ext <<_ACEOF |
| 15808 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15809 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15810 | int |
| 15811 | main () |
| 15812 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15813 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15814 | ; |
| 15815 | return 0; |
| 15816 | } |
| 15817 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15818 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15819 | if { (ac_try="$ac_link" |
| 15820 | case "(($ac_try" in |
| 15821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15822 | *) ac_try_echo=$ac_try;; |
| 15823 | esac |
| 15824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15825 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15826 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15828 | rm -f conftest.er1 |
| 15829 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15831 | (exit $ac_status); } && |
| 15832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15833 | { (case "(($ac_try" in |
| 15834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15835 | *) ac_try_echo=$ac_try;; |
| 15836 | esac |
| 15837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15838 | (eval "$ac_try") 2>&5 |
| 15839 | ac_status=$? |
| 15840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15841 | (exit $ac_status); }; } && |
| 15842 | { ac_try='test -s conftest$ac_exeext' |
| 15843 | { (case "(($ac_try" in |
| 15844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15845 | *) ac_try_echo=$ac_try;; |
| 15846 | esac |
| 15847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15848 | (eval "$ac_try") 2>&5 |
| 15849 | ac_status=$? |
| 15850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15851 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15852 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15853 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15854 | }'` |
| 15855 | # Check for a 64-bit object if we didn't find anything. |
| 15856 | 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; } |
| 15857 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15858 | else |
| 15859 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15861 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15862 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15863 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15864 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15865 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15866 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15867 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15868 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15869 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15870 | 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] | 15871 | else |
| 15872 | if test "$host_cpu" = ia64; then |
| 15873 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15874 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15875 | 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] | 15876 | else |
| 15877 | # Determine the default libpath from the value encoded in an empty executable. |
| 15878 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15879 | /* confdefs.h. */ |
| 15880 | _ACEOF |
| 15881 | cat confdefs.h >>conftest.$ac_ext |
| 15882 | cat >>conftest.$ac_ext <<_ACEOF |
| 15883 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15884 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15885 | int |
| 15886 | main () |
| 15887 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15888 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15889 | ; |
| 15890 | return 0; |
| 15891 | } |
| 15892 | _ACEOF |
| 15893 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15894 | if { (ac_try="$ac_link" |
| 15895 | case "(($ac_try" in |
| 15896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15897 | *) ac_try_echo=$ac_try;; |
| 15898 | esac |
| 15899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15900 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15901 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15903 | rm -f conftest.er1 |
| 15904 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15906 | (exit $ac_status); } && |
| 15907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15908 | { (case "(($ac_try" in |
| 15909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15910 | *) ac_try_echo=$ac_try;; |
| 15911 | esac |
| 15912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15913 | (eval "$ac_try") 2>&5 |
| 15914 | ac_status=$? |
| 15915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15916 | (exit $ac_status); }; } && |
| 15917 | { ac_try='test -s conftest$ac_exeext' |
| 15918 | { (case "(($ac_try" in |
| 15919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15920 | *) ac_try_echo=$ac_try;; |
| 15921 | esac |
| 15922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15923 | (eval "$ac_try") 2>&5 |
| 15924 | ac_status=$? |
| 15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15926 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15927 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15928 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15929 | }'` |
| 15930 | # Check for a 64-bit object if we didn't find anything. |
| 15931 | 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; } |
| 15932 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15933 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15934 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15937 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15938 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15939 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15940 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15941 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15942 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15943 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15944 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15945 | # Warning - without using the other run time loading flags, |
| 15946 | # -berok will link without error, but may produce a broken library. |
| 15947 | no_undefined_flag=' ${wl}-bernotok' |
| 15948 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15949 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15950 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15951 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15952 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15953 | 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] | 15954 | fi |
| 15955 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15956 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15957 | |
| 15958 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15959 | 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] | 15960 | hardcode_libdir_flag_spec='-L$libdir' |
| 15961 | hardcode_minus_L=yes |
| 15962 | # see comment about different semantics on the GNU ld section |
| 15963 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15964 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15965 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15966 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15967 | export_dynamic_flag_spec=-rdynamic |
| 15968 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15969 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15970 | cygwin* | mingw* | pw32*) |
| 15971 | # When not using gcc, we currently assume that we are using |
| 15972 | # Microsoft Visual C++. |
| 15973 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15974 | # no search path for DLLs. |
| 15975 | hardcode_libdir_flag_spec=' ' |
| 15976 | allow_undefined_flag=unsupported |
| 15977 | # Tell ltmain to make .lib files, not .a files. |
| 15978 | libext=lib |
| 15979 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15980 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15981 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15982 | 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] | 15983 | # The linker will automatically build a .lib file if we build a DLL. |
| 15984 | old_archive_From_new_cmds='true' |
| 15985 | # FIXME: Should let the user specify the lib program. |
| 15986 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15987 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15988 | enable_shared_with_static_runtimes=yes |
| 15989 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15990 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15991 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15992 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15993 | rhapsody* | darwin1.[012]) |
| 15994 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15995 | ;; |
| 15996 | *) # Darwin 1.3 on |
| 15997 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15998 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15999 | else |
| 16000 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 16001 | 10.[012]) |
| 16002 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 16003 | ;; |
| 16004 | 10.*) |
| 16005 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 16006 | ;; |
| 16007 | esac |
| 16008 | fi |
| 16009 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16010 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16011 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16012 | hardcode_direct=no |
| 16013 | hardcode_automatic=yes |
| 16014 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16015 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16016 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16017 | if test "$GCC" = yes ; then |
| 16018 | output_verbose_link_cmd='echo' |
| 16019 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 16020 | 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] | 16021 | # 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] | 16022 | 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}' |
| 16023 | 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] | 16024 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16025 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16026 | xlc*) |
| 16027 | output_verbose_link_cmd='echo' |
| 16028 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 16029 | 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] | 16030 | # 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] | 16031 | 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}' |
| 16032 | 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] | 16033 | ;; |
| 16034 | *) |
| 16035 | ld_shlibs=no |
| 16036 | ;; |
| 16037 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16038 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16039 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16040 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16041 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16042 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16043 | hardcode_libdir_flag_spec='-L$libdir' |
| 16044 | hardcode_shlibpath_var=no |
| 16045 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16046 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16047 | freebsd1*) |
| 16048 | ld_shlibs=no |
| 16049 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16050 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16051 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 16052 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 16053 | # does not break anything, and helps significantly (at the cost of a little |
| 16054 | # extra space). |
| 16055 | freebsd2.2*) |
| 16056 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 16057 | hardcode_libdir_flag_spec='-R$libdir' |
| 16058 | hardcode_direct=yes |
| 16059 | hardcode_shlibpath_var=no |
| 16060 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16061 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16062 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 16063 | freebsd2*) |
| 16064 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16065 | hardcode_direct=yes |
| 16066 | hardcode_minus_L=yes |
| 16067 | hardcode_shlibpath_var=no |
| 16068 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16069 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16070 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16071 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16072 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 16073 | hardcode_libdir_flag_spec='-R$libdir' |
| 16074 | hardcode_direct=yes |
| 16075 | hardcode_shlibpath_var=no |
| 16076 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16077 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16078 | hpux9*) |
| 16079 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16080 | 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] | 16081 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16082 | 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] | 16083 | fi |
| 16084 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 16085 | hardcode_libdir_separator=: |
| 16086 | hardcode_direct=yes |
| 16087 | |
| 16088 | # hardcode_minus_L: Not really in the search PATH, |
| 16089 | # but as the default location of the library. |
| 16090 | hardcode_minus_L=yes |
| 16091 | export_dynamic_flag_spec='${wl}-E' |
| 16092 | ;; |
| 16093 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16094 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16095 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16096 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16097 | else |
| 16098 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 16099 | fi |
| 16100 | if test "$with_gnu_ld" = no; then |
| 16101 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 16102 | hardcode_libdir_separator=: |
| 16103 | |
| 16104 | hardcode_direct=yes |
| 16105 | export_dynamic_flag_spec='${wl}-E' |
| 16106 | |
| 16107 | # hardcode_minus_L: Not really in the search PATH, |
| 16108 | # but as the default location of the library. |
| 16109 | hardcode_minus_L=yes |
| 16110 | fi |
| 16111 | ;; |
| 16112 | |
| 16113 | hpux11*) |
| 16114 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 16115 | case $host_cpu in |
| 16116 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16117 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16118 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16119 | ia64*) |
| 16120 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 16121 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16122 | *) |
| 16123 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16124 | ;; |
| 16125 | esac |
| 16126 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16127 | case $host_cpu in |
| 16128 | hppa*64*) |
| 16129 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16130 | ;; |
| 16131 | ia64*) |
| 16132 | 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] | 16133 | ;; |
| 16134 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16135 | 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] | 16136 | ;; |
| 16137 | esac |
| 16138 | fi |
| 16139 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16140 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 16141 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16143 | case $host_cpu in |
| 16144 | hppa*64*|ia64*) |
| 16145 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 16146 | hardcode_direct=no |
| 16147 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16148 | ;; |
| 16149 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16150 | hardcode_direct=yes |
| 16151 | export_dynamic_flag_spec='${wl}-E' |
| 16152 | |
| 16153 | # hardcode_minus_L: Not really in the search PATH, |
| 16154 | # but as the default location of the library. |
| 16155 | hardcode_minus_L=yes |
| 16156 | ;; |
| 16157 | esac |
| 16158 | fi |
| 16159 | ;; |
| 16160 | |
| 16161 | irix5* | irix6* | nonstopux*) |
| 16162 | if test "$GCC" = yes; then |
| 16163 | 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' |
| 16164 | else |
| 16165 | 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' |
| 16166 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 16167 | fi |
| 16168 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16169 | hardcode_libdir_separator=: |
| 16170 | link_all_deplibs=yes |
| 16171 | ;; |
| 16172 | |
| 16173 | netbsd*) |
| 16174 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16175 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 16176 | else |
| 16177 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 16178 | fi |
| 16179 | hardcode_libdir_flag_spec='-R$libdir' |
| 16180 | hardcode_direct=yes |
| 16181 | hardcode_shlibpath_var=no |
| 16182 | ;; |
| 16183 | |
| 16184 | newsos6) |
| 16185 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16186 | hardcode_direct=yes |
| 16187 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16188 | hardcode_libdir_separator=: |
| 16189 | hardcode_shlibpath_var=no |
| 16190 | ;; |
| 16191 | |
| 16192 | openbsd*) |
| 16193 | hardcode_direct=yes |
| 16194 | hardcode_shlibpath_var=no |
| 16195 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16196 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16197 | 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] | 16198 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 16199 | export_dynamic_flag_spec='${wl}-E' |
| 16200 | else |
| 16201 | case $host_os in |
| 16202 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 16203 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16204 | hardcode_libdir_flag_spec='-R$libdir' |
| 16205 | ;; |
| 16206 | *) |
| 16207 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16208 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 16209 | ;; |
| 16210 | esac |
| 16211 | fi |
| 16212 | ;; |
| 16213 | |
| 16214 | os2*) |
| 16215 | hardcode_libdir_flag_spec='-L$libdir' |
| 16216 | hardcode_minus_L=yes |
| 16217 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16218 | 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] | 16219 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16220 | ;; |
| 16221 | |
| 16222 | osf3*) |
| 16223 | if test "$GCC" = yes; then |
| 16224 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16225 | 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' |
| 16226 | else |
| 16227 | allow_undefined_flag=' -expect_unresolved \*' |
| 16228 | 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' |
| 16229 | fi |
| 16230 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16231 | hardcode_libdir_separator=: |
| 16232 | ;; |
| 16233 | |
| 16234 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16235 | if test "$GCC" = yes; then |
| 16236 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16237 | 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' |
| 16238 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16239 | else |
| 16240 | allow_undefined_flag=' -expect_unresolved \*' |
| 16241 | 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] | 16242 | 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] | 16243 | $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] | 16244 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16245 | # Both c and cxx compiler support -rpath directly |
| 16246 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 16247 | fi |
| 16248 | hardcode_libdir_separator=: |
| 16249 | ;; |
| 16250 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16251 | solaris*) |
| 16252 | no_undefined_flag=' -z text' |
| 16253 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16254 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16255 | 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] | 16256 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16257 | $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] | 16258 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16259 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16260 | 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] | 16261 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16262 | $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] | 16263 | fi |
| 16264 | hardcode_libdir_flag_spec='-R$libdir' |
| 16265 | hardcode_shlibpath_var=no |
| 16266 | case $host_os in |
| 16267 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16268 | *) |
| 16269 | # The compiler driver will combine linker options so we |
| 16270 | # cannot just pass the convience library names through |
| 16271 | # without $wl, iff we do not link with $LD. |
| 16272 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 16273 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16274 | case $wlarc in |
| 16275 | '') |
| 16276 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 16277 | *) |
| 16278 | 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' ;; |
| 16279 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16280 | esac |
| 16281 | link_all_deplibs=yes |
| 16282 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16283 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16284 | sunos4*) |
| 16285 | if test "x$host_vendor" = xsequent; then |
| 16286 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16287 | # files that make .init and .fini sections work. |
| 16288 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16289 | else |
| 16290 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16291 | fi |
| 16292 | hardcode_libdir_flag_spec='-L$libdir' |
| 16293 | hardcode_direct=yes |
| 16294 | hardcode_minus_L=yes |
| 16295 | hardcode_shlibpath_var=no |
| 16296 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16297 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16298 | sysv4) |
| 16299 | case $host_vendor in |
| 16300 | sni) |
| 16301 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16302 | hardcode_direct=yes # is this really true??? |
| 16303 | ;; |
| 16304 | siemens) |
| 16305 | ## LD is ld it makes a PLAMLIB |
| 16306 | ## CC just makes a GrossModule. |
| 16307 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16308 | reload_cmds='$CC -r -o $output$reload_objs' |
| 16309 | hardcode_direct=no |
| 16310 | ;; |
| 16311 | motorola) |
| 16312 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16313 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 16314 | ;; |
| 16315 | esac |
| 16316 | runpath_var='LD_RUN_PATH' |
| 16317 | hardcode_shlibpath_var=no |
| 16318 | ;; |
| 16319 | |
| 16320 | sysv4.3*) |
| 16321 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16322 | hardcode_shlibpath_var=no |
| 16323 | export_dynamic_flag_spec='-Bexport' |
| 16324 | ;; |
| 16325 | |
| 16326 | sysv4*MP*) |
| 16327 | if test -d /usr/nec; then |
| 16328 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16329 | hardcode_shlibpath_var=no |
| 16330 | runpath_var=LD_RUN_PATH |
| 16331 | hardcode_runpath_var=yes |
| 16332 | ld_shlibs=yes |
| 16333 | fi |
| 16334 | ;; |
| 16335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16336 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 16337 | no_undefined_flag='${wl}-z,text' |
| 16338 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16339 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16340 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16341 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16342 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16343 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16344 | 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] | 16345 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16346 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16347 | 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] | 16348 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16349 | ;; |
| 16350 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16351 | sysv5* | sco3.2v5* | sco5v6*) |
| 16352 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 16353 | # link with -lc, and that would cause any symbols used from libc to |
| 16354 | # always be unresolved, which means just about no library would |
| 16355 | # ever link correctly. If we're not using GNU ld we use -z text |
| 16356 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 16357 | # as -z defs. |
| 16358 | no_undefined_flag='${wl}-z,text' |
| 16359 | allow_undefined_flag='${wl}-z,nodefs' |
| 16360 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16361 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16362 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 16363 | hardcode_libdir_separator=':' |
| 16364 | link_all_deplibs=yes |
| 16365 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16366 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16367 | |
| 16368 | if test "$GCC" = yes; then |
| 16369 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16370 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16371 | else |
| 16372 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16373 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16374 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16375 | ;; |
| 16376 | |
| 16377 | uts4*) |
| 16378 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16379 | hardcode_libdir_flag_spec='-L$libdir' |
| 16380 | hardcode_shlibpath_var=no |
| 16381 | ;; |
| 16382 | |
| 16383 | *) |
| 16384 | ld_shlibs=no |
| 16385 | ;; |
| 16386 | esac |
| 16387 | fi |
| 16388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16389 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 16390 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16391 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16392 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16393 | # |
| 16394 | # Do we need to explicitly link libc? |
| 16395 | # |
| 16396 | case "x$archive_cmds_need_lc" in |
| 16397 | x|xyes) |
| 16398 | # Assume -lc should be added |
| 16399 | archive_cmds_need_lc=yes |
| 16400 | |
| 16401 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16402 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16403 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16404 | # FIXME: we may have to deal with multi-command sequences. |
| 16405 | ;; |
| 16406 | '$CC '*) |
| 16407 | # Test whether the compiler implicitly links with -lc since on some |
| 16408 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16409 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16410 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16411 | 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] | 16412 | $rm conftest* |
| 16413 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16414 | |
| 16415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16416 | (eval $ac_compile) 2>&5 |
| 16417 | ac_status=$? |
| 16418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16419 | (exit $ac_status); } 2>conftest.err; then |
| 16420 | soname=conftest |
| 16421 | lib=conftest |
| 16422 | libobjs=conftest.$ac_objext |
| 16423 | deplibs= |
| 16424 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16425 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16426 | compiler_flags=-v |
| 16427 | linker_flags=-v |
| 16428 | verstring= |
| 16429 | output_objdir=. |
| 16430 | libname=conftest |
| 16431 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 16432 | allow_undefined_flag= |
| 16433 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16434 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16435 | ac_status=$? |
| 16436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16437 | (exit $ac_status); } |
| 16438 | then |
| 16439 | archive_cmds_need_lc=no |
| 16440 | else |
| 16441 | archive_cmds_need_lc=yes |
| 16442 | fi |
| 16443 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 16444 | else |
| 16445 | cat conftest.err 1>&5 |
| 16446 | fi |
| 16447 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16448 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 16449 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16450 | ;; |
| 16451 | esac |
| 16452 | fi |
| 16453 | ;; |
| 16454 | esac |
| 16455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16456 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16457 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16458 | library_names_spec= |
| 16459 | libname_spec='lib$name' |
| 16460 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16461 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16462 | postinstall_cmds= |
| 16463 | postuninstall_cmds= |
| 16464 | finish_cmds= |
| 16465 | finish_eval= |
| 16466 | shlibpath_var= |
| 16467 | shlibpath_overrides_runpath=unknown |
| 16468 | version_type=none |
| 16469 | dynamic_linker="$host_os ld.so" |
| 16470 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16471 | if test "$GCC" = yes; then |
| 16472 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16473 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16474 | # if the path contains ";" then we assume it to be the separator |
| 16475 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16476 | # assumed that no part of a normal pathname contains ";" but that should |
| 16477 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16478 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16479 | else |
| 16480 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16481 | fi |
| 16482 | else |
| 16483 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16484 | fi |
| 16485 | need_lib_prefix=unknown |
| 16486 | hardcode_into_libs=no |
| 16487 | |
| 16488 | # when you set need_version to no, make sure it does not cause -set_version |
| 16489 | # flags to be left without arguments |
| 16490 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16491 | |
| 16492 | case $host_os in |
| 16493 | aix3*) |
| 16494 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16495 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16496 | shlibpath_var=LIBPATH |
| 16497 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16498 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16499 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16500 | ;; |
| 16501 | |
| 16502 | aix4* | aix5*) |
| 16503 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16504 | need_lib_prefix=no |
| 16505 | need_version=no |
| 16506 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16507 | if test "$host_cpu" = ia64; then |
| 16508 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16509 | 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] | 16510 | shlibpath_var=LD_LIBRARY_PATH |
| 16511 | else |
| 16512 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16513 | # for dependence libraries. The import file would start with |
| 16514 | # the line `#! .'. This would cause the generated library to |
| 16515 | # depend on `.', always an invalid library. This was fixed in |
| 16516 | # development snapshots of GCC prior to 3.0. |
| 16517 | case $host_os in |
| 16518 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16519 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16520 | echo ' yes ' |
| 16521 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16522 | : |
| 16523 | else |
| 16524 | can_build_shared=no |
| 16525 | fi |
| 16526 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16527 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16528 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16529 | # soname into executable. Probably we can add versioning support to |
| 16530 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16531 | if test "$aix_use_runtimelinking" = yes; then |
| 16532 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16533 | # instead of lib<name>.a to let people know that these are not |
| 16534 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16535 | 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] | 16536 | else |
| 16537 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16538 | # and later when we are not doing run time linking. |
| 16539 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16540 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16541 | fi |
| 16542 | shlibpath_var=LIBPATH |
| 16543 | fi |
| 16544 | ;; |
| 16545 | |
| 16546 | amigaos*) |
| 16547 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16548 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16549 | 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] | 16550 | ;; |
| 16551 | |
| 16552 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16553 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16554 | dynamic_linker="$host_os ld.so" |
| 16555 | shlibpath_var=LIBRARY_PATH |
| 16556 | ;; |
| 16557 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16558 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16559 | version_type=linux |
| 16560 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16562 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16563 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16564 | shlibpath_var=LD_LIBRARY_PATH |
| 16565 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16566 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16567 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16568 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16569 | # libtool to hard-code these into programs |
| 16570 | ;; |
| 16571 | |
| 16572 | cygwin* | mingw* | pw32*) |
| 16573 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16574 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16575 | need_version=no |
| 16576 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16577 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16578 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16579 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16580 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16581 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16582 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16583 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16584 | dldir=$destdir/`dirname \$dlpath`~ |
| 16585 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16586 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16587 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16588 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16589 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16590 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16591 | shlibpath_overrides_runpath=yes |
| 16592 | |
| 16593 | case $host_os in |
| 16594 | cygwin*) |
| 16595 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16596 | 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] | 16597 | 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] | 16598 | ;; |
| 16599 | mingw*) |
| 16600 | # MinGW DLLs use traditional 'lib' prefix |
| 16601 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16602 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16603 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16604 | # It is most probably a Windows format PATH printed by |
| 16605 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16606 | # path with ; separators, and with drive letters. We can handle the |
| 16607 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16608 | # especially as we might pass files found there to a mingw objdump, |
| 16609 | # which wouldn't understand a cygwinified path. Ahh. |
| 16610 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16611 | else |
| 16612 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16613 | fi |
| 16614 | ;; |
| 16615 | pw32*) |
| 16616 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16617 | 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] | 16618 | ;; |
| 16619 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16620 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16621 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16622 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16623 | 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] | 16624 | ;; |
| 16625 | esac |
| 16626 | dynamic_linker='Win32 ld.exe' |
| 16627 | # FIXME: first we should search . and the directory the executable is in |
| 16628 | shlibpath_var=PATH |
| 16629 | ;; |
| 16630 | |
| 16631 | darwin* | rhapsody*) |
| 16632 | dynamic_linker="$host_os dyld" |
| 16633 | version_type=darwin |
| 16634 | need_lib_prefix=no |
| 16635 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16636 | 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] | 16637 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16638 | shlibpath_overrides_runpath=yes |
| 16639 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16640 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16641 | # 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] | 16642 | if test "$GCC" = yes; then |
| 16643 | 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"` |
| 16644 | else |
| 16645 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16646 | fi |
| 16647 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16648 | ;; |
| 16649 | |
| 16650 | dgux*) |
| 16651 | version_type=linux |
| 16652 | need_lib_prefix=no |
| 16653 | need_version=no |
| 16654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16655 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16656 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16657 | ;; |
| 16658 | |
| 16659 | freebsd1*) |
| 16660 | dynamic_linker=no |
| 16661 | ;; |
| 16662 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16663 | kfreebsd*-gnu) |
| 16664 | version_type=linux |
| 16665 | need_lib_prefix=no |
| 16666 | need_version=no |
| 16667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16668 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16669 | shlibpath_var=LD_LIBRARY_PATH |
| 16670 | shlibpath_overrides_runpath=no |
| 16671 | hardcode_into_libs=yes |
| 16672 | dynamic_linker='GNU ld.so' |
| 16673 | ;; |
| 16674 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16675 | freebsd* | dragonfly*) |
| 16676 | # DragonFly does not have aout. When/if they implement a new |
| 16677 | # versioning mechanism, adjust this. |
| 16678 | if test -x /usr/bin/objformat; then |
| 16679 | objformat=`/usr/bin/objformat` |
| 16680 | else |
| 16681 | case $host_os in |
| 16682 | freebsd[123]*) objformat=aout ;; |
| 16683 | *) objformat=elf ;; |
| 16684 | esac |
| 16685 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16686 | version_type=freebsd-$objformat |
| 16687 | case $version_type in |
| 16688 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16689 | 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] | 16690 | need_version=no |
| 16691 | need_lib_prefix=no |
| 16692 | ;; |
| 16693 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16694 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16695 | need_version=yes |
| 16696 | ;; |
| 16697 | esac |
| 16698 | shlibpath_var=LD_LIBRARY_PATH |
| 16699 | case $host_os in |
| 16700 | freebsd2*) |
| 16701 | shlibpath_overrides_runpath=yes |
| 16702 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16703 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16704 | shlibpath_overrides_runpath=yes |
| 16705 | hardcode_into_libs=yes |
| 16706 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16707 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16708 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16709 | shlibpath_overrides_runpath=no |
| 16710 | hardcode_into_libs=yes |
| 16711 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16712 | freebsd*) # from 4.6 on |
| 16713 | shlibpath_overrides_runpath=yes |
| 16714 | hardcode_into_libs=yes |
| 16715 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16716 | esac |
| 16717 | ;; |
| 16718 | |
| 16719 | gnu*) |
| 16720 | version_type=linux |
| 16721 | need_lib_prefix=no |
| 16722 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16724 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16725 | shlibpath_var=LD_LIBRARY_PATH |
| 16726 | hardcode_into_libs=yes |
| 16727 | ;; |
| 16728 | |
| 16729 | hpux9* | hpux10* | hpux11*) |
| 16730 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16731 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16732 | version_type=sunos |
| 16733 | need_lib_prefix=no |
| 16734 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16735 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16736 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16737 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16738 | hardcode_into_libs=yes |
| 16739 | dynamic_linker="$host_os dld.so" |
| 16740 | shlibpath_var=LD_LIBRARY_PATH |
| 16741 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16743 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16744 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16745 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16746 | else |
| 16747 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16748 | fi |
| 16749 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16750 | ;; |
| 16751 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16752 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16753 | hardcode_into_libs=yes |
| 16754 | dynamic_linker="$host_os dld.sl" |
| 16755 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16756 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16758 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16759 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16760 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16761 | ;; |
| 16762 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16763 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16764 | dynamic_linker="$host_os dld.sl" |
| 16765 | shlibpath_var=SHLIB_PATH |
| 16766 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16768 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16769 | ;; |
| 16770 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16771 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16772 | postinstall_cmds='chmod 555 $lib' |
| 16773 | ;; |
| 16774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16775 | interix3*) |
| 16776 | version_type=linux |
| 16777 | need_lib_prefix=no |
| 16778 | need_version=no |
| 16779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16781 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16782 | shlibpath_var=LD_LIBRARY_PATH |
| 16783 | shlibpath_overrides_runpath=no |
| 16784 | hardcode_into_libs=yes |
| 16785 | ;; |
| 16786 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16787 | irix5* | irix6* | nonstopux*) |
| 16788 | case $host_os in |
| 16789 | nonstopux*) version_type=nonstopux ;; |
| 16790 | *) |
| 16791 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16792 | version_type=linux |
| 16793 | else |
| 16794 | version_type=irix |
| 16795 | fi ;; |
| 16796 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16797 | need_lib_prefix=no |
| 16798 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16799 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16800 | 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] | 16801 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16802 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16803 | libsuff= shlibsuff= |
| 16804 | ;; |
| 16805 | *) |
| 16806 | 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] | 16807 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16808 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16809 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16810 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16811 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16812 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16813 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16814 | esac |
| 16815 | ;; |
| 16816 | esac |
| 16817 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16818 | shlibpath_overrides_runpath=no |
| 16819 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16820 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16821 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16822 | ;; |
| 16823 | |
| 16824 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16825 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16826 | dynamic_linker=no |
| 16827 | ;; |
| 16828 | |
| 16829 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16830 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16831 | version_type=linux |
| 16832 | need_lib_prefix=no |
| 16833 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16835 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16836 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16837 | shlibpath_var=LD_LIBRARY_PATH |
| 16838 | shlibpath_overrides_runpath=no |
| 16839 | # This implies no fast_install, which is unacceptable. |
| 16840 | # Some rework will be needed to allow for fast_install |
| 16841 | # before this can be enabled. |
| 16842 | hardcode_into_libs=yes |
| 16843 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16844 | # Append ld.so.conf contents to the search path |
| 16845 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16846 | 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] | 16847 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16848 | fi |
| 16849 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16850 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16851 | # powerpc, because MkLinux only supported shared libraries with the |
| 16852 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16853 | # most powerpc-linux boxes support dynamic linking these days and |
| 16854 | # people can always --disable-shared, the test was removed, and we |
| 16855 | # assume the GNU/Linux dynamic linker is in use. |
| 16856 | dynamic_linker='GNU/Linux ld.so' |
| 16857 | ;; |
| 16858 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16859 | knetbsd*-gnu) |
| 16860 | version_type=linux |
| 16861 | need_lib_prefix=no |
| 16862 | need_version=no |
| 16863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16864 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16865 | shlibpath_var=LD_LIBRARY_PATH |
| 16866 | shlibpath_overrides_runpath=no |
| 16867 | hardcode_into_libs=yes |
| 16868 | dynamic_linker='GNU ld.so' |
| 16869 | ;; |
| 16870 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16871 | netbsd*) |
| 16872 | version_type=sunos |
| 16873 | need_lib_prefix=no |
| 16874 | need_version=no |
| 16875 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16877 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16878 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16879 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16880 | 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] | 16881 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16882 | dynamic_linker='NetBSD ld.elf_so' |
| 16883 | fi |
| 16884 | shlibpath_var=LD_LIBRARY_PATH |
| 16885 | shlibpath_overrides_runpath=yes |
| 16886 | hardcode_into_libs=yes |
| 16887 | ;; |
| 16888 | |
| 16889 | newsos6) |
| 16890 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16892 | shlibpath_var=LD_LIBRARY_PATH |
| 16893 | shlibpath_overrides_runpath=yes |
| 16894 | ;; |
| 16895 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16896 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16897 | version_type=linux |
| 16898 | need_lib_prefix=no |
| 16899 | need_version=no |
| 16900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16901 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16902 | shlibpath_var=LD_LIBRARY_PATH |
| 16903 | shlibpath_overrides_runpath=yes |
| 16904 | ;; |
| 16905 | |
| 16906 | openbsd*) |
| 16907 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16908 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16909 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16910 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16911 | case $host_os in |
| 16912 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16913 | *) need_version=no ;; |
| 16914 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16916 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16917 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16918 | 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] | 16919 | case $host_os in |
| 16920 | openbsd2.[89] | openbsd2.[89].*) |
| 16921 | shlibpath_overrides_runpath=no |
| 16922 | ;; |
| 16923 | *) |
| 16924 | shlibpath_overrides_runpath=yes |
| 16925 | ;; |
| 16926 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16927 | else |
| 16928 | shlibpath_overrides_runpath=yes |
| 16929 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16930 | ;; |
| 16931 | |
| 16932 | os2*) |
| 16933 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16934 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16935 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16936 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16937 | dynamic_linker='OS/2 ld.exe' |
| 16938 | shlibpath_var=LIBPATH |
| 16939 | ;; |
| 16940 | |
| 16941 | osf3* | osf4* | osf5*) |
| 16942 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16943 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16944 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16945 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16946 | 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] | 16947 | shlibpath_var=LD_LIBRARY_PATH |
| 16948 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16949 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16950 | ;; |
| 16951 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16952 | solaris*) |
| 16953 | version_type=linux |
| 16954 | need_lib_prefix=no |
| 16955 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16957 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16958 | shlibpath_var=LD_LIBRARY_PATH |
| 16959 | shlibpath_overrides_runpath=yes |
| 16960 | hardcode_into_libs=yes |
| 16961 | # ldd complains unless libraries are executable |
| 16962 | postinstall_cmds='chmod +x $lib' |
| 16963 | ;; |
| 16964 | |
| 16965 | sunos4*) |
| 16966 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16968 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16969 | shlibpath_var=LD_LIBRARY_PATH |
| 16970 | shlibpath_overrides_runpath=yes |
| 16971 | if test "$with_gnu_ld" = yes; then |
| 16972 | need_lib_prefix=no |
| 16973 | fi |
| 16974 | need_version=yes |
| 16975 | ;; |
| 16976 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16977 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16978 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16980 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16981 | shlibpath_var=LD_LIBRARY_PATH |
| 16982 | case $host_vendor in |
| 16983 | sni) |
| 16984 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16985 | need_lib_prefix=no |
| 16986 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16987 | runpath_var=LD_RUN_PATH |
| 16988 | ;; |
| 16989 | siemens) |
| 16990 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16991 | ;; |
| 16992 | motorola) |
| 16993 | need_lib_prefix=no |
| 16994 | need_version=no |
| 16995 | shlibpath_overrides_runpath=no |
| 16996 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16997 | ;; |
| 16998 | esac |
| 16999 | ;; |
| 17000 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17001 | sysv4*MP*) |
| 17002 | if test -d /usr/nec ;then |
| 17003 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17004 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17005 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17006 | shlibpath_var=LD_LIBRARY_PATH |
| 17007 | fi |
| 17008 | ;; |
| 17009 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17010 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 17011 | version_type=freebsd-elf |
| 17012 | need_lib_prefix=no |
| 17013 | need_version=no |
| 17014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17015 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17016 | shlibpath_var=LD_LIBRARY_PATH |
| 17017 | hardcode_into_libs=yes |
| 17018 | if test "$with_gnu_ld" = yes; then |
| 17019 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 17020 | shlibpath_overrides_runpath=no |
| 17021 | else |
| 17022 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 17023 | shlibpath_overrides_runpath=yes |
| 17024 | case $host_os in |
| 17025 | sco3.2v5*) |
| 17026 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 17027 | ;; |
| 17028 | esac |
| 17029 | fi |
| 17030 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 17031 | ;; |
| 17032 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17033 | uts4*) |
| 17034 | version_type=linux |
| 17035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17036 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17037 | shlibpath_var=LD_LIBRARY_PATH |
| 17038 | ;; |
| 17039 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17040 | *) |
| 17041 | dynamic_linker=no |
| 17042 | ;; |
| 17043 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17044 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17045 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17046 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17048 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 17049 | if test "$GCC" = yes; then |
| 17050 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 17051 | fi |
| 17052 | |
| 17053 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17054 | 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] | 17055 | hardcode_action= |
| 17056 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 17057 | test -n "$runpath_var" || \ |
| 17058 | test "X$hardcode_automatic" = "Xyes" ; then |
| 17059 | |
| 17060 | # We can hardcode non-existant directories. |
| 17061 | if test "$hardcode_direct" != no && |
| 17062 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17063 | # have to relink, otherwise we might link with an installed library |
| 17064 | # when we should be linking with a yet-to-be-installed one |
| 17065 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 17066 | test "$hardcode_minus_L" != no; then |
| 17067 | # Linking always hardcodes the temporary library directory. |
| 17068 | hardcode_action=relink |
| 17069 | else |
| 17070 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17071 | hardcode_action=immediate |
| 17072 | fi |
| 17073 | else |
| 17074 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17075 | # directories. |
| 17076 | hardcode_action=unsupported |
| 17077 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17078 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 17079 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17080 | |
| 17081 | if test "$hardcode_action" = relink; then |
| 17082 | # Fast installation is not supported |
| 17083 | enable_fast_install=no |
| 17084 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17085 | test "$enable_shared" = no; then |
| 17086 | # Fast installation is not necessary |
| 17087 | enable_fast_install=needless |
| 17088 | fi |
| 17089 | |
| 17090 | striplib= |
| 17091 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17092 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 17093 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17094 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 17095 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 17096 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17097 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17098 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17099 | else |
| 17100 | # FIXME - insert some real tests, host_os isn't really good enough |
| 17101 | case $host_os in |
| 17102 | darwin*) |
| 17103 | if test -n "$STRIP" ; then |
| 17104 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17105 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17106 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17107 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17108 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17109 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17110 | fi |
| 17111 | ;; |
| 17112 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17113 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17114 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17115 | ;; |
| 17116 | esac |
| 17117 | fi |
| 17118 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17119 | if test "x$enable_dlopen" != xyes; then |
| 17120 | enable_dlopen=unknown |
| 17121 | enable_dlopen_self=unknown |
| 17122 | enable_dlopen_self_static=unknown |
| 17123 | else |
| 17124 | lt_cv_dlopen=no |
| 17125 | lt_cv_dlopen_libs= |
| 17126 | |
| 17127 | case $host_os in |
| 17128 | beos*) |
| 17129 | lt_cv_dlopen="load_add_on" |
| 17130 | lt_cv_dlopen_libs= |
| 17131 | lt_cv_dlopen_self=yes |
| 17132 | ;; |
| 17133 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17134 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17135 | lt_cv_dlopen="LoadLibrary" |
| 17136 | lt_cv_dlopen_libs= |
| 17137 | ;; |
| 17138 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17139 | cygwin*) |
| 17140 | lt_cv_dlopen="dlopen" |
| 17141 | lt_cv_dlopen_libs= |
| 17142 | ;; |
| 17143 | |
| 17144 | darwin*) |
| 17145 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17146 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17147 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17148 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17150 | else |
| 17151 | ac_check_lib_save_LIBS=$LIBS |
| 17152 | LIBS="-ldl $LIBS" |
| 17153 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17154 | /* confdefs.h. */ |
| 17155 | _ACEOF |
| 17156 | cat confdefs.h >>conftest.$ac_ext |
| 17157 | cat >>conftest.$ac_ext <<_ACEOF |
| 17158 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17159 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17160 | /* Override any GCC internal prototype to avoid an error. |
| 17161 | Use char because int might match the return type of a GCC |
| 17162 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17163 | #ifdef __cplusplus |
| 17164 | extern "C" |
| 17165 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17166 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17167 | int |
| 17168 | main () |
| 17169 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17170 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17171 | ; |
| 17172 | return 0; |
| 17173 | } |
| 17174 | _ACEOF |
| 17175 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17176 | if { (ac_try="$ac_link" |
| 17177 | case "(($ac_try" in |
| 17178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17179 | *) ac_try_echo=$ac_try;; |
| 17180 | esac |
| 17181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17182 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17183 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17185 | rm -f conftest.er1 |
| 17186 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17188 | (exit $ac_status); } && |
| 17189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17190 | { (case "(($ac_try" in |
| 17191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17192 | *) ac_try_echo=$ac_try;; |
| 17193 | esac |
| 17194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17195 | (eval "$ac_try") 2>&5 |
| 17196 | ac_status=$? |
| 17197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17198 | (exit $ac_status); }; } && |
| 17199 | { ac_try='test -s conftest$ac_exeext' |
| 17200 | { (case "(($ac_try" in |
| 17201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17202 | *) ac_try_echo=$ac_try;; |
| 17203 | esac |
| 17204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17205 | (eval "$ac_try") 2>&5 |
| 17206 | ac_status=$? |
| 17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17208 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17209 | ac_cv_lib_dl_dlopen=yes |
| 17210 | else |
| 17211 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17214 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17215 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17216 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17217 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17218 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17219 | LIBS=$ac_check_lib_save_LIBS |
| 17220 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17221 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17222 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17223 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17224 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17225 | else |
| 17226 | |
| 17227 | lt_cv_dlopen="dyld" |
| 17228 | lt_cv_dlopen_libs= |
| 17229 | lt_cv_dlopen_self=yes |
| 17230 | |
| 17231 | fi |
| 17232 | |
| 17233 | ;; |
| 17234 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17235 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17236 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17237 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17238 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17240 | else |
| 17241 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17242 | /* confdefs.h. */ |
| 17243 | _ACEOF |
| 17244 | cat confdefs.h >>conftest.$ac_ext |
| 17245 | cat >>conftest.$ac_ext <<_ACEOF |
| 17246 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17247 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17248 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17249 | #define shl_load innocuous_shl_load |
| 17250 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17251 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17252 | which can conflict with char shl_load (); below. |
| 17253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17254 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17255 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17256 | #ifdef __STDC__ |
| 17257 | # include <limits.h> |
| 17258 | #else |
| 17259 | # include <assert.h> |
| 17260 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17261 | |
| 17262 | #undef shl_load |
| 17263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17264 | /* Override any GCC internal prototype to avoid an error. |
| 17265 | Use char because int might match the return type of a GCC |
| 17266 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17267 | #ifdef __cplusplus |
| 17268 | extern "C" |
| 17269 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17270 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17271 | /* The GNU C library defines this for functions which it implements |
| 17272 | to always fail with ENOSYS. Some functions are actually named |
| 17273 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17274 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17275 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17276 | #endif |
| 17277 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17278 | int |
| 17279 | main () |
| 17280 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17281 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17282 | ; |
| 17283 | return 0; |
| 17284 | } |
| 17285 | _ACEOF |
| 17286 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17287 | if { (ac_try="$ac_link" |
| 17288 | case "(($ac_try" in |
| 17289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17290 | *) ac_try_echo=$ac_try;; |
| 17291 | esac |
| 17292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17293 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17294 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17296 | rm -f conftest.er1 |
| 17297 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17299 | (exit $ac_status); } && |
| 17300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17301 | { (case "(($ac_try" in |
| 17302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17303 | *) ac_try_echo=$ac_try;; |
| 17304 | esac |
| 17305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17306 | (eval "$ac_try") 2>&5 |
| 17307 | ac_status=$? |
| 17308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17309 | (exit $ac_status); }; } && |
| 17310 | { ac_try='test -s conftest$ac_exeext' |
| 17311 | { (case "(($ac_try" in |
| 17312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17313 | *) ac_try_echo=$ac_try;; |
| 17314 | esac |
| 17315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17316 | (eval "$ac_try") 2>&5 |
| 17317 | ac_status=$? |
| 17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17319 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17320 | ac_cv_func_shl_load=yes |
| 17321 | else |
| 17322 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17325 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17326 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17327 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17328 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17329 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17330 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17331 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17332 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17333 | if test $ac_cv_func_shl_load = yes; then |
| 17334 | lt_cv_dlopen="shl_load" |
| 17335 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17336 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17337 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17338 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17340 | else |
| 17341 | ac_check_lib_save_LIBS=$LIBS |
| 17342 | LIBS="-ldld $LIBS" |
| 17343 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17344 | /* confdefs.h. */ |
| 17345 | _ACEOF |
| 17346 | cat confdefs.h >>conftest.$ac_ext |
| 17347 | cat >>conftest.$ac_ext <<_ACEOF |
| 17348 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17349 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17350 | /* Override any GCC internal prototype to avoid an error. |
| 17351 | Use char because int might match the return type of a GCC |
| 17352 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17353 | #ifdef __cplusplus |
| 17354 | extern "C" |
| 17355 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17356 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17357 | int |
| 17358 | main () |
| 17359 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17360 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17361 | ; |
| 17362 | return 0; |
| 17363 | } |
| 17364 | _ACEOF |
| 17365 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17366 | if { (ac_try="$ac_link" |
| 17367 | case "(($ac_try" in |
| 17368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17369 | *) ac_try_echo=$ac_try;; |
| 17370 | esac |
| 17371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17372 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17373 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17375 | rm -f conftest.er1 |
| 17376 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17378 | (exit $ac_status); } && |
| 17379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17380 | { (case "(($ac_try" in |
| 17381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17382 | *) ac_try_echo=$ac_try;; |
| 17383 | esac |
| 17384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17385 | (eval "$ac_try") 2>&5 |
| 17386 | ac_status=$? |
| 17387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17388 | (exit $ac_status); }; } && |
| 17389 | { ac_try='test -s conftest$ac_exeext' |
| 17390 | { (case "(($ac_try" in |
| 17391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17392 | *) ac_try_echo=$ac_try;; |
| 17393 | esac |
| 17394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17395 | (eval "$ac_try") 2>&5 |
| 17396 | ac_status=$? |
| 17397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17398 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17399 | ac_cv_lib_dld_shl_load=yes |
| 17400 | else |
| 17401 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17403 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17404 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17405 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17406 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17407 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17408 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17409 | LIBS=$ac_check_lib_save_LIBS |
| 17410 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17411 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17412 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17413 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17414 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17415 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17416 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17417 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17418 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17420 | else |
| 17421 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17422 | /* confdefs.h. */ |
| 17423 | _ACEOF |
| 17424 | cat confdefs.h >>conftest.$ac_ext |
| 17425 | cat >>conftest.$ac_ext <<_ACEOF |
| 17426 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17427 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17428 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17429 | #define dlopen innocuous_dlopen |
| 17430 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17431 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17432 | which can conflict with char dlopen (); below. |
| 17433 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17434 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17435 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17436 | #ifdef __STDC__ |
| 17437 | # include <limits.h> |
| 17438 | #else |
| 17439 | # include <assert.h> |
| 17440 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17441 | |
| 17442 | #undef dlopen |
| 17443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17444 | /* Override any GCC internal prototype to avoid an error. |
| 17445 | Use char because int might match the return type of a GCC |
| 17446 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17447 | #ifdef __cplusplus |
| 17448 | extern "C" |
| 17449 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17450 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17451 | /* The GNU C library defines this for functions which it implements |
| 17452 | to always fail with ENOSYS. Some functions are actually named |
| 17453 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17454 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17455 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17456 | #endif |
| 17457 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17458 | int |
| 17459 | main () |
| 17460 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17461 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17462 | ; |
| 17463 | return 0; |
| 17464 | } |
| 17465 | _ACEOF |
| 17466 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17467 | if { (ac_try="$ac_link" |
| 17468 | case "(($ac_try" in |
| 17469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17470 | *) ac_try_echo=$ac_try;; |
| 17471 | esac |
| 17472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17473 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17474 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17476 | rm -f conftest.er1 |
| 17477 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17479 | (exit $ac_status); } && |
| 17480 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17481 | { (case "(($ac_try" in |
| 17482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17483 | *) ac_try_echo=$ac_try;; |
| 17484 | esac |
| 17485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17486 | (eval "$ac_try") 2>&5 |
| 17487 | ac_status=$? |
| 17488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17489 | (exit $ac_status); }; } && |
| 17490 | { ac_try='test -s conftest$ac_exeext' |
| 17491 | { (case "(($ac_try" in |
| 17492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17493 | *) ac_try_echo=$ac_try;; |
| 17494 | esac |
| 17495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17496 | (eval "$ac_try") 2>&5 |
| 17497 | ac_status=$? |
| 17498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17499 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17500 | ac_cv_func_dlopen=yes |
| 17501 | else |
| 17502 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17505 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17506 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17507 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17508 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17509 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17510 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17511 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17512 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17513 | if test $ac_cv_func_dlopen = yes; then |
| 17514 | lt_cv_dlopen="dlopen" |
| 17515 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17516 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17517 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17518 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17520 | else |
| 17521 | ac_check_lib_save_LIBS=$LIBS |
| 17522 | LIBS="-ldl $LIBS" |
| 17523 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17524 | /* confdefs.h. */ |
| 17525 | _ACEOF |
| 17526 | cat confdefs.h >>conftest.$ac_ext |
| 17527 | cat >>conftest.$ac_ext <<_ACEOF |
| 17528 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17529 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17530 | /* Override any GCC internal prototype to avoid an error. |
| 17531 | Use char because int might match the return type of a GCC |
| 17532 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17533 | #ifdef __cplusplus |
| 17534 | extern "C" |
| 17535 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17536 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17537 | int |
| 17538 | main () |
| 17539 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17540 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17541 | ; |
| 17542 | return 0; |
| 17543 | } |
| 17544 | _ACEOF |
| 17545 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17546 | if { (ac_try="$ac_link" |
| 17547 | case "(($ac_try" in |
| 17548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17549 | *) ac_try_echo=$ac_try;; |
| 17550 | esac |
| 17551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17552 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17553 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17555 | rm -f conftest.er1 |
| 17556 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17558 | (exit $ac_status); } && |
| 17559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17560 | { (case "(($ac_try" in |
| 17561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17562 | *) ac_try_echo=$ac_try;; |
| 17563 | esac |
| 17564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17565 | (eval "$ac_try") 2>&5 |
| 17566 | ac_status=$? |
| 17567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17568 | (exit $ac_status); }; } && |
| 17569 | { ac_try='test -s conftest$ac_exeext' |
| 17570 | { (case "(($ac_try" in |
| 17571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17572 | *) ac_try_echo=$ac_try;; |
| 17573 | esac |
| 17574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17575 | (eval "$ac_try") 2>&5 |
| 17576 | ac_status=$? |
| 17577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17578 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17579 | ac_cv_lib_dl_dlopen=yes |
| 17580 | else |
| 17581 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17584 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17585 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17586 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17587 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17588 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17589 | LIBS=$ac_check_lib_save_LIBS |
| 17590 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17591 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17592 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17593 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17594 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17595 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17596 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17597 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17598 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17600 | else |
| 17601 | ac_check_lib_save_LIBS=$LIBS |
| 17602 | LIBS="-lsvld $LIBS" |
| 17603 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17604 | /* confdefs.h. */ |
| 17605 | _ACEOF |
| 17606 | cat confdefs.h >>conftest.$ac_ext |
| 17607 | cat >>conftest.$ac_ext <<_ACEOF |
| 17608 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17610 | /* Override any GCC internal prototype to avoid an error. |
| 17611 | Use char because int might match the return type of a GCC |
| 17612 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17613 | #ifdef __cplusplus |
| 17614 | extern "C" |
| 17615 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17616 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17617 | int |
| 17618 | main () |
| 17619 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17620 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17621 | ; |
| 17622 | return 0; |
| 17623 | } |
| 17624 | _ACEOF |
| 17625 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17626 | if { (ac_try="$ac_link" |
| 17627 | case "(($ac_try" in |
| 17628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17629 | *) ac_try_echo=$ac_try;; |
| 17630 | esac |
| 17631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17632 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17633 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17635 | rm -f conftest.er1 |
| 17636 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17638 | (exit $ac_status); } && |
| 17639 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17640 | { (case "(($ac_try" in |
| 17641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17642 | *) ac_try_echo=$ac_try;; |
| 17643 | esac |
| 17644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17645 | (eval "$ac_try") 2>&5 |
| 17646 | ac_status=$? |
| 17647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17648 | (exit $ac_status); }; } && |
| 17649 | { ac_try='test -s conftest$ac_exeext' |
| 17650 | { (case "(($ac_try" in |
| 17651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17652 | *) ac_try_echo=$ac_try;; |
| 17653 | esac |
| 17654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17655 | (eval "$ac_try") 2>&5 |
| 17656 | ac_status=$? |
| 17657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17658 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17659 | ac_cv_lib_svld_dlopen=yes |
| 17660 | else |
| 17661 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17663 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17664 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17665 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17666 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17667 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17668 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17669 | LIBS=$ac_check_lib_save_LIBS |
| 17670 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17671 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17672 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17673 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17674 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17675 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17676 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17677 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17678 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17680 | else |
| 17681 | ac_check_lib_save_LIBS=$LIBS |
| 17682 | LIBS="-ldld $LIBS" |
| 17683 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17684 | /* confdefs.h. */ |
| 17685 | _ACEOF |
| 17686 | cat confdefs.h >>conftest.$ac_ext |
| 17687 | cat >>conftest.$ac_ext <<_ACEOF |
| 17688 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17690 | /* Override any GCC internal prototype to avoid an error. |
| 17691 | Use char because int might match the return type of a GCC |
| 17692 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17693 | #ifdef __cplusplus |
| 17694 | extern "C" |
| 17695 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17696 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17697 | int |
| 17698 | main () |
| 17699 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17700 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17701 | ; |
| 17702 | return 0; |
| 17703 | } |
| 17704 | _ACEOF |
| 17705 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17706 | if { (ac_try="$ac_link" |
| 17707 | case "(($ac_try" in |
| 17708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17709 | *) ac_try_echo=$ac_try;; |
| 17710 | esac |
| 17711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17712 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17713 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17715 | rm -f conftest.er1 |
| 17716 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17718 | (exit $ac_status); } && |
| 17719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17720 | { (case "(($ac_try" in |
| 17721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17722 | *) ac_try_echo=$ac_try;; |
| 17723 | esac |
| 17724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17725 | (eval "$ac_try") 2>&5 |
| 17726 | ac_status=$? |
| 17727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17728 | (exit $ac_status); }; } && |
| 17729 | { ac_try='test -s conftest$ac_exeext' |
| 17730 | { (case "(($ac_try" in |
| 17731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17732 | *) ac_try_echo=$ac_try;; |
| 17733 | esac |
| 17734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17735 | (eval "$ac_try") 2>&5 |
| 17736 | ac_status=$? |
| 17737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17738 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17739 | ac_cv_lib_dld_dld_link=yes |
| 17740 | else |
| 17741 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17743 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17744 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17745 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17746 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17747 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17748 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17749 | LIBS=$ac_check_lib_save_LIBS |
| 17750 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17751 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17752 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17753 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17754 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17755 | fi |
| 17756 | |
| 17757 | |
| 17758 | fi |
| 17759 | |
| 17760 | |
| 17761 | fi |
| 17762 | |
| 17763 | |
| 17764 | fi |
| 17765 | |
| 17766 | |
| 17767 | fi |
| 17768 | |
| 17769 | |
| 17770 | fi |
| 17771 | |
| 17772 | ;; |
| 17773 | esac |
| 17774 | |
| 17775 | if test "x$lt_cv_dlopen" != xno; then |
| 17776 | enable_dlopen=yes |
| 17777 | else |
| 17778 | enable_dlopen=no |
| 17779 | fi |
| 17780 | |
| 17781 | case $lt_cv_dlopen in |
| 17782 | dlopen) |
| 17783 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17784 | 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] | 17785 | |
| 17786 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17787 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17788 | |
| 17789 | save_LIBS="$LIBS" |
| 17790 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17792 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17793 | 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] | 17794 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17796 | else |
| 17797 | if test "$cross_compiling" = yes; then : |
| 17798 | lt_cv_dlopen_self=cross |
| 17799 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17800 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17801 | lt_status=$lt_dlunknown |
| 17802 | cat > conftest.$ac_ext <<EOF |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 17803 | #line 17803 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17804 | #include "confdefs.h" |
| 17805 | |
| 17806 | #if HAVE_DLFCN_H |
| 17807 | #include <dlfcn.h> |
| 17808 | #endif |
| 17809 | |
| 17810 | #include <stdio.h> |
| 17811 | |
| 17812 | #ifdef RTLD_GLOBAL |
| 17813 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17814 | #else |
| 17815 | # ifdef DL_GLOBAL |
| 17816 | # define LT_DLGLOBAL DL_GLOBAL |
| 17817 | # else |
| 17818 | # define LT_DLGLOBAL 0 |
| 17819 | # endif |
| 17820 | #endif |
| 17821 | |
| 17822 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17823 | find out it does not work in some platform. */ |
| 17824 | #ifndef LT_DLLAZY_OR_NOW |
| 17825 | # ifdef RTLD_LAZY |
| 17826 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17827 | # else |
| 17828 | # ifdef DL_LAZY |
| 17829 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17830 | # else |
| 17831 | # ifdef RTLD_NOW |
| 17832 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17833 | # else |
| 17834 | # ifdef DL_NOW |
| 17835 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17836 | # else |
| 17837 | # define LT_DLLAZY_OR_NOW 0 |
| 17838 | # endif |
| 17839 | # endif |
| 17840 | # endif |
| 17841 | # endif |
| 17842 | #endif |
| 17843 | |
| 17844 | #ifdef __cplusplus |
| 17845 | extern "C" void exit (int); |
| 17846 | #endif |
| 17847 | |
| 17848 | void fnord() { int i=42;} |
| 17849 | int main () |
| 17850 | { |
| 17851 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17852 | int status = $lt_dlunknown; |
| 17853 | |
| 17854 | if (self) |
| 17855 | { |
| 17856 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17857 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17858 | /* dlclose (self); */ |
| 17859 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17860 | else |
| 17861 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17862 | |
| 17863 | exit (status); |
| 17864 | } |
| 17865 | EOF |
| 17866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17867 | (eval $ac_link) 2>&5 |
| 17868 | ac_status=$? |
| 17869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17870 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17871 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17872 | lt_status=$? |
| 17873 | case x$lt_status in |
| 17874 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17875 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17876 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17877 | esac |
| 17878 | else : |
| 17879 | # compilation failed |
| 17880 | lt_cv_dlopen_self=no |
| 17881 | fi |
| 17882 | fi |
| 17883 | rm -fr conftest* |
| 17884 | |
| 17885 | |
| 17886 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17887 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17888 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17889 | |
| 17890 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17891 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17892 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17893 | 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] | 17894 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17896 | else |
| 17897 | if test "$cross_compiling" = yes; then : |
| 17898 | lt_cv_dlopen_self_static=cross |
| 17899 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17900 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17901 | lt_status=$lt_dlunknown |
| 17902 | cat > conftest.$ac_ext <<EOF |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 17903 | #line 17903 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17904 | #include "confdefs.h" |
| 17905 | |
| 17906 | #if HAVE_DLFCN_H |
| 17907 | #include <dlfcn.h> |
| 17908 | #endif |
| 17909 | |
| 17910 | #include <stdio.h> |
| 17911 | |
| 17912 | #ifdef RTLD_GLOBAL |
| 17913 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17914 | #else |
| 17915 | # ifdef DL_GLOBAL |
| 17916 | # define LT_DLGLOBAL DL_GLOBAL |
| 17917 | # else |
| 17918 | # define LT_DLGLOBAL 0 |
| 17919 | # endif |
| 17920 | #endif |
| 17921 | |
| 17922 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17923 | find out it does not work in some platform. */ |
| 17924 | #ifndef LT_DLLAZY_OR_NOW |
| 17925 | # ifdef RTLD_LAZY |
| 17926 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17927 | # else |
| 17928 | # ifdef DL_LAZY |
| 17929 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17930 | # else |
| 17931 | # ifdef RTLD_NOW |
| 17932 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17933 | # else |
| 17934 | # ifdef DL_NOW |
| 17935 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17936 | # else |
| 17937 | # define LT_DLLAZY_OR_NOW 0 |
| 17938 | # endif |
| 17939 | # endif |
| 17940 | # endif |
| 17941 | # endif |
| 17942 | #endif |
| 17943 | |
| 17944 | #ifdef __cplusplus |
| 17945 | extern "C" void exit (int); |
| 17946 | #endif |
| 17947 | |
| 17948 | void fnord() { int i=42;} |
| 17949 | int main () |
| 17950 | { |
| 17951 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17952 | int status = $lt_dlunknown; |
| 17953 | |
| 17954 | if (self) |
| 17955 | { |
| 17956 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17957 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17958 | /* dlclose (self); */ |
| 17959 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17960 | else |
| 17961 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17962 | |
| 17963 | exit (status); |
| 17964 | } |
| 17965 | EOF |
| 17966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17967 | (eval $ac_link) 2>&5 |
| 17968 | ac_status=$? |
| 17969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17970 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17971 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17972 | lt_status=$? |
| 17973 | case x$lt_status in |
| 17974 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17975 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17976 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17977 | esac |
| 17978 | else : |
| 17979 | # compilation failed |
| 17980 | lt_cv_dlopen_self_static=no |
| 17981 | fi |
| 17982 | fi |
| 17983 | rm -fr conftest* |
| 17984 | |
| 17985 | |
| 17986 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17987 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17988 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17989 | fi |
| 17990 | |
| 17991 | CPPFLAGS="$save_CPPFLAGS" |
| 17992 | LDFLAGS="$save_LDFLAGS" |
| 17993 | LIBS="$save_LIBS" |
| 17994 | ;; |
| 17995 | esac |
| 17996 | |
| 17997 | case $lt_cv_dlopen_self in |
| 17998 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17999 | *) enable_dlopen_self=unknown ;; |
| 18000 | esac |
| 18001 | |
| 18002 | case $lt_cv_dlopen_self_static in |
| 18003 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18004 | *) enable_dlopen_self_static=unknown ;; |
| 18005 | esac |
| 18006 | fi |
| 18007 | |
| 18008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18009 | # Report which library types will actually be built |
| 18010 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 18011 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 18012 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 18013 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18014 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18015 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 18016 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18017 | test "$can_build_shared" = "no" && enable_shared=no |
| 18018 | |
| 18019 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 18020 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18021 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18022 | aix3*) |
| 18023 | test "$enable_shared" = yes && enable_static=no |
| 18024 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18025 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18026 | postinstall_cmds='$RANLIB $lib' |
| 18027 | fi |
| 18028 | ;; |
| 18029 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18030 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18031 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 18032 | test "$enable_shared" = yes && enable_static=no |
| 18033 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18034 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18035 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18036 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 18037 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18039 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 18040 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18041 | # Make sure either enable_shared or enable_static is yes. |
| 18042 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18043 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 18044 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18045 | |
| 18046 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18047 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18048 | # with your package, and you will get complaints that there are |
| 18049 | # no rules to generate ltmain.sh. |
| 18050 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18051 | # See if we are running on zsh, and set the options which allow our commands through |
| 18052 | # without removal of \ escapes. |
| 18053 | if test -n "${ZSH_VERSION+set}" ; then |
| 18054 | setopt NO_GLOB_SUBST |
| 18055 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18056 | # Now quote all the things that may contain metacharacters while being |
| 18057 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18058 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18059 | 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] | 18060 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18061 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18062 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18063 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18064 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18065 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18066 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18067 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18068 | compiler \ |
| 18069 | CC \ |
| 18070 | LD \ |
| 18071 | lt_prog_compiler_wl \ |
| 18072 | lt_prog_compiler_pic \ |
| 18073 | lt_prog_compiler_static \ |
| 18074 | lt_prog_compiler_no_builtin_flag \ |
| 18075 | export_dynamic_flag_spec \ |
| 18076 | thread_safe_flag_spec \ |
| 18077 | whole_archive_flag_spec \ |
| 18078 | enable_shared_with_static_runtimes \ |
| 18079 | old_archive_cmds \ |
| 18080 | old_archive_from_new_cmds \ |
| 18081 | predep_objects \ |
| 18082 | postdep_objects \ |
| 18083 | predeps \ |
| 18084 | postdeps \ |
| 18085 | compiler_lib_search_path \ |
| 18086 | archive_cmds \ |
| 18087 | archive_expsym_cmds \ |
| 18088 | postinstall_cmds \ |
| 18089 | postuninstall_cmds \ |
| 18090 | old_archive_from_expsyms_cmds \ |
| 18091 | allow_undefined_flag \ |
| 18092 | no_undefined_flag \ |
| 18093 | export_symbols_cmds \ |
| 18094 | hardcode_libdir_flag_spec \ |
| 18095 | hardcode_libdir_flag_spec_ld \ |
| 18096 | hardcode_libdir_separator \ |
| 18097 | hardcode_automatic \ |
| 18098 | module_cmds \ |
| 18099 | module_expsym_cmds \ |
| 18100 | lt_cv_prog_compiler_c_o \ |
| 18101 | exclude_expsyms \ |
| 18102 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18103 | |
| 18104 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18105 | old_archive_cmds | \ |
| 18106 | old_archive_from_new_cmds | \ |
| 18107 | archive_cmds | \ |
| 18108 | archive_expsym_cmds | \ |
| 18109 | module_cmds | \ |
| 18110 | module_expsym_cmds | \ |
| 18111 | old_archive_from_expsyms_cmds | \ |
| 18112 | export_symbols_cmds | \ |
| 18113 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18114 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18115 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18116 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18117 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18118 | 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] | 18119 | ;; |
| 18120 | *) |
| 18121 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18122 | ;; |
| 18123 | esac |
| 18124 | done |
| 18125 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18126 | case $lt_echo in |
| 18127 | *'\$0 --fallback-echo"') |
| 18128 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18129 | ;; |
| 18130 | esac |
| 18131 | |
| 18132 | cfgfile="${ofile}T" |
| 18133 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 18134 | $rm -f "$cfgfile" |
| 18135 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 18136 | echo "$as_me: creating $ofile" >&6;} |
| 18137 | |
| 18138 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18139 | #! $SHELL |
| 18140 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18141 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18142 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 18143 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 18144 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18145 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 18146 | # Free Software Foundation, Inc. |
| 18147 | # |
| 18148 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18149 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 18150 | # |
| 18151 | # This program is free software; you can redistribute it and/or modify |
| 18152 | # it under the terms of the GNU General Public License as published by |
| 18153 | # the Free Software Foundation; either version 2 of the License, or |
| 18154 | # (at your option) any later version. |
| 18155 | # |
| 18156 | # This program is distributed in the hope that it will be useful, but |
| 18157 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18158 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18159 | # General Public License for more details. |
| 18160 | # |
| 18161 | # You should have received a copy of the GNU General Public License |
| 18162 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18163 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18164 | # |
| 18165 | # As a special exception to the GNU General Public License, if you |
| 18166 | # distribute this file as part of a program that contains a |
| 18167 | # configuration script generated by Autoconf, you may include it under |
| 18168 | # the same distribution terms that you use for the rest of that program. |
| 18169 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18170 | # A sed program that does not truncate output. |
| 18171 | SED=$lt_SED |
| 18172 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18173 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18174 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18175 | |
| 18176 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 18177 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18178 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18179 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18180 | # The names of the tagged configurations supported by this script. |
| 18181 | available_tags= |
| 18182 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18183 | # ### BEGIN LIBTOOL CONFIG |
| 18184 | |
| 18185 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18186 | |
| 18187 | # Shell to use when invoking shell scripts. |
| 18188 | SHELL=$lt_SHELL |
| 18189 | |
| 18190 | # Whether or not to build shared libraries. |
| 18191 | build_libtool_libs=$enable_shared |
| 18192 | |
| 18193 | # Whether or not to build static libraries. |
| 18194 | build_old_libs=$enable_static |
| 18195 | |
| 18196 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18197 | build_libtool_need_lc=$archive_cmds_need_lc |
| 18198 | |
| 18199 | # Whether or not to disallow shared libs when runtime libs are static |
| 18200 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18201 | |
| 18202 | # Whether or not to optimize for fast installation. |
| 18203 | fast_install=$enable_fast_install |
| 18204 | |
| 18205 | # The host system. |
| 18206 | host_alias=$host_alias |
| 18207 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18208 | host_os=$host_os |
| 18209 | |
| 18210 | # The build system. |
| 18211 | build_alias=$build_alias |
| 18212 | build=$build |
| 18213 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18214 | |
| 18215 | # An echo program that does not interpret backslashes. |
| 18216 | echo=$lt_echo |
| 18217 | |
| 18218 | # The archiver. |
| 18219 | AR=$lt_AR |
| 18220 | AR_FLAGS=$lt_AR_FLAGS |
| 18221 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18222 | # A C compiler. |
| 18223 | LTCC=$lt_LTCC |
| 18224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18225 | # LTCC compiler flags. |
| 18226 | LTCFLAGS=$lt_LTCFLAGS |
| 18227 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18228 | # A language-specific compiler. |
| 18229 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18230 | |
| 18231 | # Is the compiler the GNU C compiler? |
| 18232 | with_gcc=$GCC |
| 18233 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18234 | # An ERE matcher. |
| 18235 | EGREP=$lt_EGREP |
| 18236 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18237 | # The linker used to build libraries. |
| 18238 | LD=$lt_LD |
| 18239 | |
| 18240 | # Whether we need hard or soft links. |
| 18241 | LN_S=$lt_LN_S |
| 18242 | |
| 18243 | # A BSD-compatible nm program. |
| 18244 | NM=$lt_NM |
| 18245 | |
| 18246 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18247 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18248 | |
| 18249 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18250 | MAGIC_CMD=$MAGIC_CMD |
| 18251 | |
| 18252 | # Used on cygwin: DLL creation program. |
| 18253 | DLLTOOL="$DLLTOOL" |
| 18254 | |
| 18255 | # Used on cygwin: object dumper. |
| 18256 | OBJDUMP="$OBJDUMP" |
| 18257 | |
| 18258 | # Used on cygwin: assembler. |
| 18259 | AS="$AS" |
| 18260 | |
| 18261 | # The name of the directory that contains temporary libtool files. |
| 18262 | objdir=$objdir |
| 18263 | |
| 18264 | # How to create reloadable object files. |
| 18265 | reload_flag=$lt_reload_flag |
| 18266 | reload_cmds=$lt_reload_cmds |
| 18267 | |
| 18268 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18269 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18270 | |
| 18271 | # Object file suffix (normally "o"). |
| 18272 | objext="$ac_objext" |
| 18273 | |
| 18274 | # Old archive suffix (normally "a"). |
| 18275 | libext="$libext" |
| 18276 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18277 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18278 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18279 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18280 | # Executable file suffix (normally ""). |
| 18281 | exeext="$exeext" |
| 18282 | |
| 18283 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18284 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18285 | pic_mode=$pic_mode |
| 18286 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18287 | # What is the maximum length of a command? |
| 18288 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18289 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18290 | # Does compiler simultaneously support -c and -o options? |
| 18291 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18293 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18294 | need_locks=$lt_need_locks |
| 18295 | |
| 18296 | # Do we need the lib prefix for modules? |
| 18297 | need_lib_prefix=$need_lib_prefix |
| 18298 | |
| 18299 | # Do we need a version for libraries? |
| 18300 | need_version=$need_version |
| 18301 | |
| 18302 | # Whether dlopen is supported. |
| 18303 | dlopen_support=$enable_dlopen |
| 18304 | |
| 18305 | # Whether dlopen of programs is supported. |
| 18306 | dlopen_self=$enable_dlopen_self |
| 18307 | |
| 18308 | # Whether dlopen of statically linked programs is supported. |
| 18309 | dlopen_self_static=$enable_dlopen_self_static |
| 18310 | |
| 18311 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18312 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18313 | |
| 18314 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18315 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18316 | |
| 18317 | # Compiler flag to allow reflexive dlopens. |
| 18318 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 18319 | |
| 18320 | # Compiler flag to generate shared objects directly from archives. |
| 18321 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 18322 | |
| 18323 | # Compiler flag to generate thread-safe objects. |
| 18324 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 18325 | |
| 18326 | # Library versioning type. |
| 18327 | version_type=$version_type |
| 18328 | |
| 18329 | # Format of library name prefix. |
| 18330 | libname_spec=$lt_libname_spec |
| 18331 | |
| 18332 | # List of archive names. First name is the real one, the rest are links. |
| 18333 | # The last name is the one that the linker finds with -lNAME. |
| 18334 | library_names_spec=$lt_library_names_spec |
| 18335 | |
| 18336 | # The coded name of the library, if different from the real name. |
| 18337 | soname_spec=$lt_soname_spec |
| 18338 | |
| 18339 | # Commands used to build and install an old-style archive. |
| 18340 | RANLIB=$lt_RANLIB |
| 18341 | old_archive_cmds=$lt_old_archive_cmds |
| 18342 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18343 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18344 | |
| 18345 | # Create an old-style archive from a shared archive. |
| 18346 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 18347 | |
| 18348 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18349 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 18350 | |
| 18351 | # Commands used to build and install a shared archive. |
| 18352 | archive_cmds=$lt_archive_cmds |
| 18353 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 18354 | postinstall_cmds=$lt_postinstall_cmds |
| 18355 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18356 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18357 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18358 | module_cmds=$lt_module_cmds |
| 18359 | module_expsym_cmds=$lt_module_expsym_cmds |
| 18360 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18361 | # Commands to strip libraries. |
| 18362 | old_striplib=$lt_old_striplib |
| 18363 | striplib=$lt_striplib |
| 18364 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18365 | # Dependencies to place before the objects being linked to create a |
| 18366 | # shared library. |
| 18367 | predep_objects=$lt_predep_objects |
| 18368 | |
| 18369 | # Dependencies to place after the objects being linked to create a |
| 18370 | # shared library. |
| 18371 | postdep_objects=$lt_postdep_objects |
| 18372 | |
| 18373 | # Dependencies to place before the objects being linked to create a |
| 18374 | # shared library. |
| 18375 | predeps=$lt_predeps |
| 18376 | |
| 18377 | # Dependencies to place after the objects being linked to create a |
| 18378 | # shared library. |
| 18379 | postdeps=$lt_postdeps |
| 18380 | |
| 18381 | # The library search path used internally by the compiler when linking |
| 18382 | # a shared library. |
| 18383 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 18384 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18385 | # Method to check whether dependent libraries are shared objects. |
| 18386 | deplibs_check_method=$lt_deplibs_check_method |
| 18387 | |
| 18388 | # Command to use when deplibs_check_method == file_magic. |
| 18389 | file_magic_cmd=$lt_file_magic_cmd |
| 18390 | |
| 18391 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18392 | allow_undefined_flag=$lt_allow_undefined_flag |
| 18393 | |
| 18394 | # Flag that forces no undefined symbols. |
| 18395 | no_undefined_flag=$lt_no_undefined_flag |
| 18396 | |
| 18397 | # Commands used to finish a libtool library installation in a directory. |
| 18398 | finish_cmds=$lt_finish_cmds |
| 18399 | |
| 18400 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18401 | finish_eval=$lt_finish_eval |
| 18402 | |
| 18403 | # 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] | 18404 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18405 | |
| 18406 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18407 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18408 | |
| 18409 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18410 | 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] | 18411 | |
| 18412 | # This is the shared library runtime path variable. |
| 18413 | runpath_var=$runpath_var |
| 18414 | |
| 18415 | # This is the shared library path variable. |
| 18416 | shlibpath_var=$shlibpath_var |
| 18417 | |
| 18418 | # Is shlibpath searched before the hard-coded library search path? |
| 18419 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18420 | |
| 18421 | # How to hardcode a shared library path into an executable. |
| 18422 | hardcode_action=$hardcode_action |
| 18423 | |
| 18424 | # Whether we should hardcode library paths into libraries. |
| 18425 | hardcode_into_libs=$hardcode_into_libs |
| 18426 | |
| 18427 | # Flag to hardcode \$libdir into a binary during linking. |
| 18428 | # This must work even if \$libdir does not exist. |
| 18429 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 18430 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18431 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18432 | # a binary during linking. This must work even if \$libdir does |
| 18433 | # not exist. |
| 18434 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 18435 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18436 | # Whether we need a single -rpath flag with a separated argument. |
| 18437 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 18438 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18439 | # 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] | 18440 | # resulting binary. |
| 18441 | hardcode_direct=$hardcode_direct |
| 18442 | |
| 18443 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18444 | # resulting binary. |
| 18445 | hardcode_minus_L=$hardcode_minus_L |
| 18446 | |
| 18447 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18448 | # the resulting binary. |
| 18449 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 18450 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18451 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18452 | # and all subsequent libraries and executables linked against it. |
| 18453 | hardcode_automatic=$hardcode_automatic |
| 18454 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18455 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18456 | # restored at relink time. |
| 18457 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18458 | |
| 18459 | # Whether libtool must link a program against all its dependency libraries. |
| 18460 | link_all_deplibs=$link_all_deplibs |
| 18461 | |
| 18462 | # Compile-time system search path for libraries |
| 18463 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18464 | |
| 18465 | # Run-time system search path for libraries |
| 18466 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18467 | |
| 18468 | # Fix the shell variable \$srcfile for the compiler. |
| 18469 | fix_srcfile_path="$fix_srcfile_path" |
| 18470 | |
| 18471 | # Set to yes if exported symbols are required. |
| 18472 | always_export_symbols=$always_export_symbols |
| 18473 | |
| 18474 | # The commands to list exported symbols. |
| 18475 | export_symbols_cmds=$lt_export_symbols_cmds |
| 18476 | |
| 18477 | # The commands to extract the exported symbol list from a shared archive. |
| 18478 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18479 | |
| 18480 | # Symbols that should not be listed in the preloaded symbols. |
| 18481 | exclude_expsyms=$lt_exclude_expsyms |
| 18482 | |
| 18483 | # Symbols that must always be exported. |
| 18484 | include_expsyms=$lt_include_expsyms |
| 18485 | |
| 18486 | # ### END LIBTOOL CONFIG |
| 18487 | |
| 18488 | __EOF__ |
| 18489 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18490 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18491 | case $host_os in |
| 18492 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18493 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18494 | |
| 18495 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 18496 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 18497 | # vanish in a puff of smoke. |
| 18498 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 18499 | COLLECT_NAMES= |
| 18500 | export COLLECT_NAMES |
| 18501 | fi |
| 18502 | EOF |
| 18503 | ;; |
| 18504 | esac |
| 18505 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18506 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 18507 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 18508 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 18509 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18510 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18511 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18512 | mv -f "$cfgfile" "$ofile" || \ |
| 18513 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18514 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18515 | |
| 18516 | else |
| 18517 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18518 | # `config.status --recheck' to rerun these tests and create the |
| 18519 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18520 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18521 | if test -f "$ltmain_in"; then |
| 18522 | test -f Makefile && make "$ltmain" |
| 18523 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18524 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18525 | |
| 18526 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18527 | ac_ext=c |
| 18528 | ac_cpp='$CPP $CPPFLAGS' |
| 18529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18532 | |
| 18533 | CC="$lt_save_CC" |
| 18534 | |
| 18535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18536 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18537 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18538 | withval=$with_tags; tagnames="$withval" |
| 18539 | fi |
| 18540 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18541 | |
| 18542 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 18543 | if test ! -f "${ofile}"; then |
| 18544 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 18545 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 18546 | fi |
| 18547 | |
| 18548 | if test -z "$LTCC"; then |
| 18549 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 18550 | if test -z "$LTCC"; then |
| 18551 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 18552 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 18553 | else |
| 18554 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 18555 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 18556 | fi |
| 18557 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18558 | if test -z "$LTCFLAGS"; then |
| 18559 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 18560 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18561 | |
| 18562 | # Extract list of available tagged configurations in $ofile. |
| 18563 | # Note that this assumes the entire list is on one line. |
| 18564 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 18565 | |
| 18566 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 18567 | for tagname in $tagnames; do |
| 18568 | IFS="$lt_save_ifs" |
| 18569 | # Check whether tagname contains only valid characters |
| 18570 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18571 | "") ;; |
| 18572 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18573 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18574 | { (exit 1); exit 1; }; } |
| 18575 | ;; |
| 18576 | esac |
| 18577 | |
| 18578 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18579 | then |
| 18580 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18581 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18582 | { (exit 1); exit 1; }; } |
| 18583 | fi |
| 18584 | |
| 18585 | # Update the list of available tags. |
| 18586 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18587 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18588 | |
| 18589 | case $tagname in |
| 18590 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18591 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18592 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18593 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18594 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18595 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18596 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18597 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18598 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18599 | |
| 18600 | |
| 18601 | |
| 18602 | |
| 18603 | archive_cmds_need_lc_CXX=no |
| 18604 | allow_undefined_flag_CXX= |
| 18605 | always_export_symbols_CXX=no |
| 18606 | archive_expsym_cmds_CXX= |
| 18607 | export_dynamic_flag_spec_CXX= |
| 18608 | hardcode_direct_CXX=no |
| 18609 | hardcode_libdir_flag_spec_CXX= |
| 18610 | hardcode_libdir_flag_spec_ld_CXX= |
| 18611 | hardcode_libdir_separator_CXX= |
| 18612 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18613 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18614 | hardcode_automatic_CXX=no |
| 18615 | module_cmds_CXX= |
| 18616 | module_expsym_cmds_CXX= |
| 18617 | link_all_deplibs_CXX=unknown |
| 18618 | old_archive_cmds_CXX=$old_archive_cmds |
| 18619 | no_undefined_flag_CXX= |
| 18620 | whole_archive_flag_spec_CXX= |
| 18621 | enable_shared_with_static_runtimes_CXX=no |
| 18622 | |
| 18623 | # Dependencies to place before and after the object being linked: |
| 18624 | predep_objects_CXX= |
| 18625 | postdep_objects_CXX= |
| 18626 | predeps_CXX= |
| 18627 | postdeps_CXX= |
| 18628 | compiler_lib_search_path_CXX= |
| 18629 | |
| 18630 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18631 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18632 | |
| 18633 | # Object file extension for compiled C++ test sources. |
| 18634 | objext=o |
| 18635 | objext_CXX=$objext |
| 18636 | |
| 18637 | # Code to be used in simple compile tests |
| 18638 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18639 | |
| 18640 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18641 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18642 | |
| 18643 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18644 | |
| 18645 | # If no C compiler was specified, use CC. |
| 18646 | LTCC=${LTCC-"$CC"} |
| 18647 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18648 | # If no C compiler flags were specified, use CFLAGS. |
| 18649 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18650 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18651 | # Allow CC to be a program name with arguments. |
| 18652 | compiler=$CC |
| 18653 | |
| 18654 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18655 | # save warnings/boilerplate of simple test code |
| 18656 | ac_outfile=conftest.$ac_objext |
| 18657 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18658 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18659 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18660 | $rm conftest* |
| 18661 | |
| 18662 | ac_outfile=conftest.$ac_objext |
| 18663 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18664 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18665 | _lt_linker_boilerplate=`cat conftest.err` |
| 18666 | $rm conftest* |
| 18667 | |
| 18668 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18669 | # Allow CC to be a program name with arguments. |
| 18670 | lt_save_CC=$CC |
| 18671 | lt_save_LD=$LD |
| 18672 | lt_save_GCC=$GCC |
| 18673 | GCC=$GXX |
| 18674 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18675 | lt_save_path_LD=$lt_cv_path_LD |
| 18676 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18677 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18678 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18679 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18680 | fi |
| 18681 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18682 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18683 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18684 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18685 | fi |
| 18686 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18687 | CC=${CXX-"c++"} |
| 18688 | compiler=$CC |
| 18689 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18690 | for cc_temp in $compiler""; do |
| 18691 | case $cc_temp in |
| 18692 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18693 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18694 | \-*) ;; |
| 18695 | *) break;; |
| 18696 | esac |
| 18697 | done |
| 18698 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18699 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18700 | |
| 18701 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18702 | # no_builtin_flag separately |
| 18703 | if test "$GXX" = yes; then |
| 18704 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18705 | else |
| 18706 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18707 | fi |
| 18708 | |
| 18709 | if test "$GXX" = yes; then |
| 18710 | # Set up default GNU C++ configuration |
| 18711 | |
| 18712 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18713 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18714 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18715 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18716 | else |
| 18717 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18718 | fi |
| 18719 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18720 | ac_prog=ld |
| 18721 | if test "$GCC" = yes; then |
| 18722 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18723 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18724 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18725 | case $host in |
| 18726 | *-*-mingw*) |
| 18727 | # gcc leaves a trailing carriage return which upsets mingw |
| 18728 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18729 | *) |
| 18730 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18731 | esac |
| 18732 | case $ac_prog in |
| 18733 | # Accept absolute paths. |
| 18734 | [\\/]* | ?:[\\/]*) |
| 18735 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18736 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18737 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18738 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18739 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18740 | done |
| 18741 | test -z "$LD" && LD="$ac_prog" |
| 18742 | ;; |
| 18743 | "") |
| 18744 | # If it fails, then pretend we aren't using GCC. |
| 18745 | ac_prog=ld |
| 18746 | ;; |
| 18747 | *) |
| 18748 | # If it is relative, then search for the first ld in PATH. |
| 18749 | with_gnu_ld=unknown |
| 18750 | ;; |
| 18751 | esac |
| 18752 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18753 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18754 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18755 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18756 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18757 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18758 | fi |
| 18759 | if test "${lt_cv_path_LD+set}" = set; then |
| 18760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18761 | else |
| 18762 | if test -z "$LD"; then |
| 18763 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18764 | for ac_dir in $PATH; do |
| 18765 | IFS="$lt_save_ifs" |
| 18766 | test -z "$ac_dir" && ac_dir=. |
| 18767 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18768 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18769 | # 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] | 18770 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18771 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18772 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18773 | *GNU* | *'with BFD'*) |
| 18774 | test "$with_gnu_ld" != no && break |
| 18775 | ;; |
| 18776 | *) |
| 18777 | test "$with_gnu_ld" != yes && break |
| 18778 | ;; |
| 18779 | esac |
| 18780 | fi |
| 18781 | done |
| 18782 | IFS="$lt_save_ifs" |
| 18783 | else |
| 18784 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18785 | fi |
| 18786 | fi |
| 18787 | |
| 18788 | LD="$lt_cv_path_LD" |
| 18789 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18790 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18791 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18792 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18793 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18794 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18795 | fi |
| 18796 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18797 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18798 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18799 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18800 | 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] | 18801 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18803 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18804 | # 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] | 18805 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18806 | *GNU* | *'with BFD'*) |
| 18807 | lt_cv_prog_gnu_ld=yes |
| 18808 | ;; |
| 18809 | *) |
| 18810 | lt_cv_prog_gnu_ld=no |
| 18811 | ;; |
| 18812 | esac |
| 18813 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18814 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18815 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18816 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18817 | |
| 18818 | |
| 18819 | |
| 18820 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18821 | # archiving commands below assume that GNU ld is being used. |
| 18822 | if test "$with_gnu_ld" = yes; then |
| 18823 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18824 | 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' |
| 18825 | |
| 18826 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18827 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18828 | |
| 18829 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18830 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18831 | # investigate it a little bit more. (MM) |
| 18832 | wlarc='${wl}' |
| 18833 | |
| 18834 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18835 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18836 | grep 'no-whole-archive' > /dev/null; then |
| 18837 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18838 | else |
| 18839 | whole_archive_flag_spec_CXX= |
| 18840 | fi |
| 18841 | else |
| 18842 | with_gnu_ld=no |
| 18843 | wlarc= |
| 18844 | |
| 18845 | # A generic and very simple default shared library creation |
| 18846 | # command for GNU C++ for the case where it uses the native |
| 18847 | # linker, instead of GNU ld. If possible, this setting should |
| 18848 | # overridden to take advantage of the native linker features on |
| 18849 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18850 | 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] | 18851 | fi |
| 18852 | |
| 18853 | # Commands to make compiler produce verbose output that lists |
| 18854 | # what "hidden" libraries, object files and flags are used when |
| 18855 | # linking a shared library. |
| 18856 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18857 | |
| 18858 | else |
| 18859 | GXX=no |
| 18860 | with_gnu_ld=no |
| 18861 | wlarc= |
| 18862 | fi |
| 18863 | |
| 18864 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18865 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18866 | 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] | 18867 | ld_shlibs_CXX=yes |
| 18868 | case $host_os in |
| 18869 | aix3*) |
| 18870 | # FIXME: insert proper C++ library support |
| 18871 | ld_shlibs_CXX=no |
| 18872 | ;; |
| 18873 | aix4* | aix5*) |
| 18874 | if test "$host_cpu" = ia64; then |
| 18875 | # On IA64, the linker does run time linking by default, so we don't |
| 18876 | # have to do anything special. |
| 18877 | aix_use_runtimelinking=no |
| 18878 | exp_sym_flag='-Bexport' |
| 18879 | no_entry_flag="" |
| 18880 | else |
| 18881 | aix_use_runtimelinking=no |
| 18882 | |
| 18883 | # Test if we are trying to use run time linking or normal |
| 18884 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18885 | # need to do runtime linking. |
| 18886 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18887 | for ld_flag in $LDFLAGS; do |
| 18888 | case $ld_flag in |
| 18889 | *-brtl*) |
| 18890 | aix_use_runtimelinking=yes |
| 18891 | break |
| 18892 | ;; |
| 18893 | esac |
| 18894 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18895 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18896 | esac |
| 18897 | |
| 18898 | exp_sym_flag='-bexport' |
| 18899 | no_entry_flag='-bnoentry' |
| 18900 | fi |
| 18901 | |
| 18902 | # When large executables or shared objects are built, AIX ld can |
| 18903 | # have problems creating the table of contents. If linking a library |
| 18904 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18905 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18906 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18907 | |
| 18908 | archive_cmds_CXX='' |
| 18909 | hardcode_direct_CXX=yes |
| 18910 | hardcode_libdir_separator_CXX=':' |
| 18911 | link_all_deplibs_CXX=yes |
| 18912 | |
| 18913 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18914 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18915 | # We only want to do this on AIX 4.2 and lower, the check |
| 18916 | # below for broken collect2 doesn't work under 4.3+ |
| 18917 | collect2name=`${CC} -print-prog-name=collect2` |
| 18918 | if test -f "$collect2name" && \ |
| 18919 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18920 | then |
| 18921 | # We have reworked collect2 |
| 18922 | hardcode_direct_CXX=yes |
| 18923 | else |
| 18924 | # We have old collect2 |
| 18925 | hardcode_direct_CXX=unsupported |
| 18926 | # It fails to find uninstalled libraries when the uninstalled |
| 18927 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18928 | # to unsupported forces relinking |
| 18929 | hardcode_minus_L_CXX=yes |
| 18930 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18931 | hardcode_libdir_separator_CXX= |
| 18932 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18933 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18934 | esac |
| 18935 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18936 | if test "$aix_use_runtimelinking" = yes; then |
| 18937 | shared_flag="$shared_flag "'${wl}-G' |
| 18938 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18939 | else |
| 18940 | # not using gcc |
| 18941 | if test "$host_cpu" = ia64; then |
| 18942 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18943 | # chokes on -Wl,-G. The following line is correct: |
| 18944 | shared_flag='-G' |
| 18945 | else |
| 18946 | if test "$aix_use_runtimelinking" = yes; then |
| 18947 | shared_flag='${wl}-G' |
| 18948 | else |
| 18949 | shared_flag='${wl}-bM:SRE' |
| 18950 | fi |
| 18951 | fi |
| 18952 | fi |
| 18953 | |
| 18954 | # It seems that -bexpall does not export symbols beginning with |
| 18955 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18956 | always_export_symbols_CXX=yes |
| 18957 | if test "$aix_use_runtimelinking" = yes; then |
| 18958 | # Warning - without using the other runtime loading flags (-brtl), |
| 18959 | # -berok will link without error, but may produce a broken library. |
| 18960 | allow_undefined_flag_CXX='-berok' |
| 18961 | # Determine the default libpath from the value encoded in an empty executable. |
| 18962 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18963 | /* confdefs.h. */ |
| 18964 | _ACEOF |
| 18965 | cat confdefs.h >>conftest.$ac_ext |
| 18966 | cat >>conftest.$ac_ext <<_ACEOF |
| 18967 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18968 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18969 | int |
| 18970 | main () |
| 18971 | { |
| 18972 | |
| 18973 | ; |
| 18974 | return 0; |
| 18975 | } |
| 18976 | _ACEOF |
| 18977 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18978 | if { (ac_try="$ac_link" |
| 18979 | case "(($ac_try" in |
| 18980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18981 | *) ac_try_echo=$ac_try;; |
| 18982 | esac |
| 18983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18984 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18985 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18987 | rm -f conftest.er1 |
| 18988 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18990 | (exit $ac_status); } && |
| 18991 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18992 | { (case "(($ac_try" in |
| 18993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18994 | *) ac_try_echo=$ac_try;; |
| 18995 | esac |
| 18996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18997 | (eval "$ac_try") 2>&5 |
| 18998 | ac_status=$? |
| 18999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19000 | (exit $ac_status); }; } && |
| 19001 | { ac_try='test -s conftest$ac_exeext' |
| 19002 | { (case "(($ac_try" in |
| 19003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19004 | *) ac_try_echo=$ac_try;; |
| 19005 | esac |
| 19006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19007 | (eval "$ac_try") 2>&5 |
| 19008 | ac_status=$? |
| 19009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19010 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19011 | |
| 19012 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19013 | }'` |
| 19014 | # Check for a 64-bit object if we didn't find anything. |
| 19015 | 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; } |
| 19016 | }'`; fi |
| 19017 | else |
| 19018 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19021 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19022 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19023 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 19024 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19025 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19026 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19027 | |
| 19028 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19030 | 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] | 19031 | else |
| 19032 | if test "$host_cpu" = ia64; then |
| 19033 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 19034 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19035 | 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] | 19036 | else |
| 19037 | # Determine the default libpath from the value encoded in an empty executable. |
| 19038 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19039 | /* confdefs.h. */ |
| 19040 | _ACEOF |
| 19041 | cat confdefs.h >>conftest.$ac_ext |
| 19042 | cat >>conftest.$ac_ext <<_ACEOF |
| 19043 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19044 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19045 | int |
| 19046 | main () |
| 19047 | { |
| 19048 | |
| 19049 | ; |
| 19050 | return 0; |
| 19051 | } |
| 19052 | _ACEOF |
| 19053 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19054 | if { (ac_try="$ac_link" |
| 19055 | case "(($ac_try" in |
| 19056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19057 | *) ac_try_echo=$ac_try;; |
| 19058 | esac |
| 19059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19060 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19061 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19063 | rm -f conftest.er1 |
| 19064 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 19066 | (exit $ac_status); } && |
| 19067 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19068 | { (case "(($ac_try" in |
| 19069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19070 | *) ac_try_echo=$ac_try;; |
| 19071 | esac |
| 19072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19073 | (eval "$ac_try") 2>&5 |
| 19074 | ac_status=$? |
| 19075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19076 | (exit $ac_status); }; } && |
| 19077 | { ac_try='test -s conftest$ac_exeext' |
| 19078 | { (case "(($ac_try" in |
| 19079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19080 | *) ac_try_echo=$ac_try;; |
| 19081 | esac |
| 19082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19083 | (eval "$ac_try") 2>&5 |
| 19084 | ac_status=$? |
| 19085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19086 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19087 | |
| 19088 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19089 | }'` |
| 19090 | # Check for a 64-bit object if we didn't find anything. |
| 19091 | 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; } |
| 19092 | }'`; fi |
| 19093 | else |
| 19094 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19097 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19099 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 19100 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19101 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19102 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19103 | |
| 19104 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19105 | # Warning - without using the other run time loading flags, |
| 19106 | # -berok will link without error, but may produce a broken library. |
| 19107 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 19108 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19109 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19110 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19111 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19112 | # This is similar to how AIX traditionally builds its shared libraries. |
| 19113 | 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] | 19114 | fi |
| 19115 | fi |
| 19116 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19117 | |
| 19118 | beos*) |
| 19119 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19120 | allow_undefined_flag_CXX=unsupported |
| 19121 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 19122 | # support --undefined. This deserves some investigation. FIXME |
| 19123 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19124 | else |
| 19125 | ld_shlibs_CXX=no |
| 19126 | fi |
| 19127 | ;; |
| 19128 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19129 | chorus*) |
| 19130 | case $cc_basename in |
| 19131 | *) |
| 19132 | # FIXME: insert proper C++ library support |
| 19133 | ld_shlibs_CXX=no |
| 19134 | ;; |
| 19135 | esac |
| 19136 | ;; |
| 19137 | |
| 19138 | cygwin* | mingw* | pw32*) |
| 19139 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 19140 | # as there is no search path for DLLs. |
| 19141 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 19142 | allow_undefined_flag_CXX=unsupported |
| 19143 | always_export_symbols_CXX=no |
| 19144 | enable_shared_with_static_runtimes_CXX=yes |
| 19145 | |
| 19146 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19147 | 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] | 19148 | # If the export-symbols file already is a .def file (1st line |
| 19149 | # is EXPORTS), use it as is; otherwise, prepend... |
| 19150 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 19151 | cp $export_symbols $output_objdir/$soname.def; |
| 19152 | else |
| 19153 | echo EXPORTS > $output_objdir/$soname.def; |
| 19154 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19155 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19156 | $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] | 19157 | else |
| 19158 | ld_shlibs_CXX=no |
| 19159 | fi |
| 19160 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19161 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19162 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19163 | rhapsody* | darwin1.[012]) |
| 19164 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 19165 | ;; |
| 19166 | *) # Darwin 1.3 on |
| 19167 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 19168 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19169 | else |
| 19170 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 19171 | 10.[012]) |
| 19172 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19173 | ;; |
| 19174 | 10.*) |
| 19175 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 19176 | ;; |
| 19177 | esac |
| 19178 | fi |
| 19179 | ;; |
| 19180 | esac |
| 19181 | archive_cmds_need_lc_CXX=no |
| 19182 | hardcode_direct_CXX=no |
| 19183 | hardcode_automatic_CXX=yes |
| 19184 | hardcode_shlibpath_var_CXX=unsupported |
| 19185 | whole_archive_flag_spec_CXX='' |
| 19186 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19187 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19188 | if test "$GXX" = yes ; then |
| 19189 | lt_int_apple_cc_single_mod=no |
| 19190 | output_verbose_link_cmd='echo' |
| 19191 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 19192 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19193 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19194 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19195 | 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] | 19196 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19197 | 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] | 19198 | fi |
| 19199 | 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] | 19200 | # 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] | 19201 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19202 | 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] | 19203 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19204 | 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] | 19205 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19206 | 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] | 19207 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19208 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19209 | xlc*) |
| 19210 | output_verbose_link_cmd='echo' |
| 19211 | 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' |
| 19212 | 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] | 19213 | # 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] | 19214 | 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}' |
| 19215 | 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] | 19216 | ;; |
| 19217 | *) |
| 19218 | ld_shlibs_CXX=no |
| 19219 | ;; |
| 19220 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19221 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19222 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19223 | |
| 19224 | dgux*) |
| 19225 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19226 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19227 | # FIXME: insert proper C++ library support |
| 19228 | ld_shlibs_CXX=no |
| 19229 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19230 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19231 | # Green Hills C++ Compiler |
| 19232 | # FIXME: insert proper C++ library support |
| 19233 | ld_shlibs_CXX=no |
| 19234 | ;; |
| 19235 | *) |
| 19236 | # FIXME: insert proper C++ library support |
| 19237 | ld_shlibs_CXX=no |
| 19238 | ;; |
| 19239 | esac |
| 19240 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19241 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19242 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 19243 | ld_shlibs_CXX=no |
| 19244 | ;; |
| 19245 | freebsd-elf*) |
| 19246 | archive_cmds_need_lc_CXX=no |
| 19247 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19248 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19249 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 19250 | # conventions |
| 19251 | ld_shlibs_CXX=yes |
| 19252 | ;; |
| 19253 | gnu*) |
| 19254 | ;; |
| 19255 | hpux9*) |
| 19256 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19257 | hardcode_libdir_separator_CXX=: |
| 19258 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19259 | hardcode_direct_CXX=yes |
| 19260 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19261 | # but as the default |
| 19262 | # location of the library. |
| 19263 | |
| 19264 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19265 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19266 | # FIXME: insert proper C++ library support |
| 19267 | ld_shlibs_CXX=no |
| 19268 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19269 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19270 | 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] | 19271 | # Commands to make compiler produce verbose output that lists |
| 19272 | # what "hidden" libraries, object files and flags are used when |
| 19273 | # linking a shared library. |
| 19274 | # |
| 19275 | # There doesn't appear to be a way to prevent this compiler from |
| 19276 | # explicitly linking system object files so we need to strip them |
| 19277 | # from the output so that they don't get included in the library |
| 19278 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19279 | 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] | 19280 | ;; |
| 19281 | *) |
| 19282 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19283 | 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] | 19284 | else |
| 19285 | # FIXME: insert proper C++ library support |
| 19286 | ld_shlibs_CXX=no |
| 19287 | fi |
| 19288 | ;; |
| 19289 | esac |
| 19290 | ;; |
| 19291 | hpux10*|hpux11*) |
| 19292 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19293 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19294 | hardcode_libdir_separator_CXX=: |
| 19295 | |
| 19296 | case $host_cpu in |
| 19297 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19298 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19299 | ;; |
| 19300 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19301 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19302 | ;; |
| 19303 | esac |
| 19304 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19305 | case $host_cpu in |
| 19306 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19307 | hardcode_direct_CXX=no |
| 19308 | hardcode_shlibpath_var_CXX=no |
| 19309 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19310 | *) |
| 19311 | hardcode_direct_CXX=yes |
| 19312 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19313 | # but as the default |
| 19314 | # location of the library. |
| 19315 | ;; |
| 19316 | esac |
| 19317 | |
| 19318 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19319 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19320 | # FIXME: insert proper C++ library support |
| 19321 | ld_shlibs_CXX=no |
| 19322 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19323 | aCC*) |
| 19324 | case $host_cpu in |
| 19325 | hppa*64*) |
| 19326 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19327 | ;; |
| 19328 | ia64*) |
| 19329 | 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] | 19330 | ;; |
| 19331 | *) |
| 19332 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19333 | ;; |
| 19334 | esac |
| 19335 | # Commands to make compiler produce verbose output that lists |
| 19336 | # what "hidden" libraries, object files and flags are used when |
| 19337 | # linking a shared library. |
| 19338 | # |
| 19339 | # There doesn't appear to be a way to prevent this compiler from |
| 19340 | # explicitly linking system object files so we need to strip them |
| 19341 | # from the output so that they don't get included in the library |
| 19342 | # dependencies. |
| 19343 | 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' |
| 19344 | ;; |
| 19345 | *) |
| 19346 | if test "$GXX" = yes; then |
| 19347 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19348 | case $host_cpu in |
| 19349 | hppa*64*) |
| 19350 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19351 | ;; |
| 19352 | ia64*) |
| 19353 | 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] | 19354 | ;; |
| 19355 | *) |
| 19356 | 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' |
| 19357 | ;; |
| 19358 | esac |
| 19359 | fi |
| 19360 | else |
| 19361 | # FIXME: insert proper C++ library support |
| 19362 | ld_shlibs_CXX=no |
| 19363 | fi |
| 19364 | ;; |
| 19365 | esac |
| 19366 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19367 | interix3*) |
| 19368 | hardcode_direct_CXX=no |
| 19369 | hardcode_shlibpath_var_CXX=no |
| 19370 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19371 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19372 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 19373 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 19374 | # default) and relocated if they conflict, which is a slow very memory |
| 19375 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 19376 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 19377 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 19378 | 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' |
| 19379 | 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' |
| 19380 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19381 | irix5* | irix6*) |
| 19382 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19383 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19384 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19385 | 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] | 19386 | |
| 19387 | # Archives containing C++ object files must be created using |
| 19388 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 19389 | # necessary to make sure instantiated templates are included |
| 19390 | # in the archive. |
| 19391 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 19392 | ;; |
| 19393 | *) |
| 19394 | if test "$GXX" = yes; then |
| 19395 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19396 | 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] | 19397 | else |
| 19398 | 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' |
| 19399 | fi |
| 19400 | fi |
| 19401 | link_all_deplibs_CXX=yes |
| 19402 | ;; |
| 19403 | esac |
| 19404 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19405 | hardcode_libdir_separator_CXX=: |
| 19406 | ;; |
| 19407 | linux*) |
| 19408 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19409 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19410 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19411 | |
| 19412 | # KCC will only create a shared library if the output file |
| 19413 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19414 | # to its proper name (with version) after linking. |
| 19415 | 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' |
| 19416 | 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' |
| 19417 | # Commands to make compiler produce verbose output that lists |
| 19418 | # what "hidden" libraries, object files and flags are used when |
| 19419 | # linking a shared library. |
| 19420 | # |
| 19421 | # There doesn't appear to be a way to prevent this compiler from |
| 19422 | # explicitly linking system object files so we need to strip them |
| 19423 | # from the output so that they don't get included in the library |
| 19424 | # dependencies. |
| 19425 | 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' |
| 19426 | |
| 19427 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 19428 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19429 | |
| 19430 | # Archives containing C++ object files must be created using |
| 19431 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19432 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19433 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19434 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19435 | # Intel C++ |
| 19436 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19437 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 19438 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 19439 | # earlier do not add the objects themselves. |
| 19440 | case `$CC -V 2>&1` in |
| 19441 | *"Version 7."*) |
| 19442 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19443 | 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' |
| 19444 | ;; |
| 19445 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19446 | tmp_idyn= |
| 19447 | case $host_cpu in |
| 19448 | ia64*) tmp_idyn=' -i_dynamic';; |
| 19449 | esac |
| 19450 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19451 | 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] | 19452 | ;; |
| 19453 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19454 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19455 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19456 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19457 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 19458 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19459 | pgCC*) |
| 19460 | # Portland Group C++ compiler |
| 19461 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 19462 | 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' |
| 19463 | |
| 19464 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 19465 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19466 | 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' |
| 19467 | ;; |
| 19468 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19469 | # Compaq C++ |
| 19470 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19471 | 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' |
| 19472 | |
| 19473 | runpath_var=LD_RUN_PATH |
| 19474 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19475 | hardcode_libdir_separator_CXX=: |
| 19476 | |
| 19477 | # Commands to make compiler produce verbose output that lists |
| 19478 | # what "hidden" libraries, object files and flags are used when |
| 19479 | # linking a shared library. |
| 19480 | # |
| 19481 | # There doesn't appear to be a way to prevent this compiler from |
| 19482 | # explicitly linking system object files so we need to strip them |
| 19483 | # from the output so that they don't get included in the library |
| 19484 | # dependencies. |
| 19485 | 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' |
| 19486 | ;; |
| 19487 | esac |
| 19488 | ;; |
| 19489 | lynxos*) |
| 19490 | # FIXME: insert proper C++ library support |
| 19491 | ld_shlibs_CXX=no |
| 19492 | ;; |
| 19493 | m88k*) |
| 19494 | # FIXME: insert proper C++ library support |
| 19495 | ld_shlibs_CXX=no |
| 19496 | ;; |
| 19497 | mvs*) |
| 19498 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19499 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19500 | # FIXME: insert proper C++ library support |
| 19501 | ld_shlibs_CXX=no |
| 19502 | ;; |
| 19503 | *) |
| 19504 | # FIXME: insert proper C++ library support |
| 19505 | ld_shlibs_CXX=no |
| 19506 | ;; |
| 19507 | esac |
| 19508 | ;; |
| 19509 | netbsd*) |
| 19510 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19511 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 19512 | wlarc= |
| 19513 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19514 | hardcode_direct_CXX=yes |
| 19515 | hardcode_shlibpath_var_CXX=no |
| 19516 | fi |
| 19517 | # Workaround some broken pre-1.5 toolchains |
| 19518 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 19519 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19520 | openbsd2*) |
| 19521 | # C++ shared libraries are fairly broken |
| 19522 | ld_shlibs_CXX=no |
| 19523 | ;; |
| 19524 | openbsd*) |
| 19525 | hardcode_direct_CXX=yes |
| 19526 | hardcode_shlibpath_var_CXX=no |
| 19527 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 19528 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19529 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19530 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 19531 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19532 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19533 | fi |
| 19534 | output_verbose_link_cmd='echo' |
| 19535 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19536 | osf3*) |
| 19537 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19538 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19539 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19540 | |
| 19541 | # KCC will only create a shared library if the output file |
| 19542 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19543 | # to its proper name (with version) after linking. |
| 19544 | 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' |
| 19545 | |
| 19546 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19547 | hardcode_libdir_separator_CXX=: |
| 19548 | |
| 19549 | # Archives containing C++ object files must be created using |
| 19550 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19551 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19552 | |
| 19553 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19554 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19555 | # Rational C++ 2.4.1 |
| 19556 | # FIXME: insert proper C++ library support |
| 19557 | ld_shlibs_CXX=no |
| 19558 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19559 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19560 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19561 | 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] | 19562 | |
| 19563 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19564 | hardcode_libdir_separator_CXX=: |
| 19565 | |
| 19566 | # Commands to make compiler produce verbose output that lists |
| 19567 | # what "hidden" libraries, object files and flags are used when |
| 19568 | # linking a shared library. |
| 19569 | # |
| 19570 | # There doesn't appear to be a way to prevent this compiler from |
| 19571 | # explicitly linking system object files so we need to strip them |
| 19572 | # from the output so that they don't get included in the library |
| 19573 | # dependencies. |
| 19574 | 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' |
| 19575 | ;; |
| 19576 | *) |
| 19577 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19578 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19579 | 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] | 19580 | |
| 19581 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19582 | hardcode_libdir_separator_CXX=: |
| 19583 | |
| 19584 | # Commands to make compiler produce verbose output that lists |
| 19585 | # what "hidden" libraries, object files and flags are used when |
| 19586 | # linking a shared library. |
| 19587 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19588 | |
| 19589 | else |
| 19590 | # FIXME: insert proper C++ library support |
| 19591 | ld_shlibs_CXX=no |
| 19592 | fi |
| 19593 | ;; |
| 19594 | esac |
| 19595 | ;; |
| 19596 | osf4* | osf5*) |
| 19597 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19598 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19599 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19600 | |
| 19601 | # KCC will only create a shared library if the output file |
| 19602 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19603 | # to its proper name (with version) after linking. |
| 19604 | 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' |
| 19605 | |
| 19606 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19607 | hardcode_libdir_separator_CXX=: |
| 19608 | |
| 19609 | # Archives containing C++ object files must be created using |
| 19610 | # the KAI C++ compiler. |
| 19611 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19612 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19613 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19614 | # Rational C++ 2.4.1 |
| 19615 | # FIXME: insert proper C++ library support |
| 19616 | ld_shlibs_CXX=no |
| 19617 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19618 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19619 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19620 | 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] | 19621 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19622 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19623 | $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] | 19624 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19625 | |
| 19626 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19627 | hardcode_libdir_separator_CXX=: |
| 19628 | |
| 19629 | # Commands to make compiler produce verbose output that lists |
| 19630 | # what "hidden" libraries, object files and flags are used when |
| 19631 | # linking a shared library. |
| 19632 | # |
| 19633 | # There doesn't appear to be a way to prevent this compiler from |
| 19634 | # explicitly linking system object files so we need to strip them |
| 19635 | # from the output so that they don't get included in the library |
| 19636 | # dependencies. |
| 19637 | 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' |
| 19638 | ;; |
| 19639 | *) |
| 19640 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19641 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19642 | 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] | 19643 | |
| 19644 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19645 | hardcode_libdir_separator_CXX=: |
| 19646 | |
| 19647 | # Commands to make compiler produce verbose output that lists |
| 19648 | # what "hidden" libraries, object files and flags are used when |
| 19649 | # linking a shared library. |
| 19650 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19651 | |
| 19652 | else |
| 19653 | # FIXME: insert proper C++ library support |
| 19654 | ld_shlibs_CXX=no |
| 19655 | fi |
| 19656 | ;; |
| 19657 | esac |
| 19658 | ;; |
| 19659 | psos*) |
| 19660 | # FIXME: insert proper C++ library support |
| 19661 | ld_shlibs_CXX=no |
| 19662 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19663 | sunos4*) |
| 19664 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19665 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19666 | # Sun C++ 4.x |
| 19667 | # FIXME: insert proper C++ library support |
| 19668 | ld_shlibs_CXX=no |
| 19669 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19670 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19671 | # Lucid |
| 19672 | # FIXME: insert proper C++ library support |
| 19673 | ld_shlibs_CXX=no |
| 19674 | ;; |
| 19675 | *) |
| 19676 | # FIXME: insert proper C++ library support |
| 19677 | ld_shlibs_CXX=no |
| 19678 | ;; |
| 19679 | esac |
| 19680 | ;; |
| 19681 | solaris*) |
| 19682 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19683 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19684 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19685 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19686 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19687 | 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] | 19688 | 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] | 19689 | $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] | 19690 | |
| 19691 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19692 | hardcode_shlibpath_var_CXX=no |
| 19693 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19694 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19695 | *) |
| 19696 | # The C++ compiler is used as linker so we must use $wl |
| 19697 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19698 | # linker. We must also pass each convience library through |
| 19699 | # to the system linker between allextract/defaultextract. |
| 19700 | # The C++ compiler will combine linker options so we |
| 19701 | # cannot just pass the convience library names through |
| 19702 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19703 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19704 | 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] | 19705 | ;; |
| 19706 | esac |
| 19707 | link_all_deplibs_CXX=yes |
| 19708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19709 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19710 | |
| 19711 | # Archives containing C++ object files must be created using |
| 19712 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19713 | # necessary to make sure instantiated templates are included |
| 19714 | # in the archive. |
| 19715 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19716 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19717 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19718 | # Green Hills C++ Compiler |
| 19719 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19720 | |
| 19721 | # The C++ compiler must be used to create the archive. |
| 19722 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19723 | ;; |
| 19724 | *) |
| 19725 | # GNU C++ compiler with Solaris linker |
| 19726 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19727 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19728 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19729 | 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] | 19730 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19731 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19732 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19733 | # Commands to make compiler produce verbose output that lists |
| 19734 | # what "hidden" libraries, object files and flags are used when |
| 19735 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19736 | 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] | 19737 | else |
| 19738 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19739 | # platform. |
| 19740 | 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] | 19741 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19742 | $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] | 19743 | |
| 19744 | # Commands to make compiler produce verbose output that lists |
| 19745 | # what "hidden" libraries, object files and flags are used when |
| 19746 | # linking a shared library. |
| 19747 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19748 | fi |
| 19749 | |
| 19750 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19751 | fi |
| 19752 | ;; |
| 19753 | esac |
| 19754 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19755 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19756 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19757 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19758 | hardcode_shlibpath_var_CXX=no |
| 19759 | runpath_var='LD_RUN_PATH' |
| 19760 | |
| 19761 | case $cc_basename in |
| 19762 | CC*) |
| 19763 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19764 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19765 | ;; |
| 19766 | *) |
| 19767 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19768 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19769 | ;; |
| 19770 | esac |
| 19771 | ;; |
| 19772 | sysv5* | sco3.2v5* | sco5v6*) |
| 19773 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19774 | # link with -lc, and that would cause any symbols used from libc to |
| 19775 | # always be unresolved, which means just about no library would |
| 19776 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19777 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19778 | # as -z defs. |
| 19779 | # For security reasons, it is highly recommended that you always |
| 19780 | # use absolute paths for naming shared libraries, and exclude the |
| 19781 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19782 | # requires that you compile everything twice, which is a pain. |
| 19783 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19784 | # non-empty value in the environment. Most likely only useful for |
| 19785 | # creating official distributions of packages. |
| 19786 | # This is a hack until libtool officially supports absolute path |
| 19787 | # names for shared libraries. |
| 19788 | no_undefined_flag_CXX='${wl}-z,text' |
| 19789 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19790 | archive_cmds_need_lc_CXX=no |
| 19791 | hardcode_shlibpath_var_CXX=no |
| 19792 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19793 | hardcode_libdir_separator_CXX=':' |
| 19794 | link_all_deplibs_CXX=yes |
| 19795 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19796 | runpath_var='LD_RUN_PATH' |
| 19797 | |
| 19798 | case $cc_basename in |
| 19799 | CC*) |
| 19800 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19801 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19802 | ;; |
| 19803 | *) |
| 19804 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19805 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19806 | ;; |
| 19807 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19808 | ;; |
| 19809 | tandem*) |
| 19810 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19811 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19812 | # NonStop-UX NCC 3.20 |
| 19813 | # FIXME: insert proper C++ library support |
| 19814 | ld_shlibs_CXX=no |
| 19815 | ;; |
| 19816 | *) |
| 19817 | # FIXME: insert proper C++ library support |
| 19818 | ld_shlibs_CXX=no |
| 19819 | ;; |
| 19820 | esac |
| 19821 | ;; |
| 19822 | vxworks*) |
| 19823 | # FIXME: insert proper C++ library support |
| 19824 | ld_shlibs_CXX=no |
| 19825 | ;; |
| 19826 | *) |
| 19827 | # FIXME: insert proper C++ library support |
| 19828 | ld_shlibs_CXX=no |
| 19829 | ;; |
| 19830 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19831 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19832 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19833 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19834 | |
| 19835 | GCC_CXX="$GXX" |
| 19836 | LD_CXX="$LD" |
| 19837 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19838 | |
| 19839 | cat > conftest.$ac_ext <<EOF |
| 19840 | class Foo |
| 19841 | { |
| 19842 | public: |
| 19843 | Foo (void) { a = 0; } |
| 19844 | private: |
| 19845 | int a; |
| 19846 | }; |
| 19847 | EOF |
| 19848 | |
| 19849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19850 | (eval $ac_compile) 2>&5 |
| 19851 | ac_status=$? |
| 19852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19853 | (exit $ac_status); }; then |
| 19854 | # Parse the compiler output and extract the necessary |
| 19855 | # objects, libraries and library flags. |
| 19856 | |
| 19857 | # Sentinel used to keep track of whether or not we are before |
| 19858 | # the conftest object file. |
| 19859 | pre_test_object_deps_done=no |
| 19860 | |
| 19861 | # The `*' in the case matches for architectures that use `case' in |
| 19862 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19863 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19864 | 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] | 19865 | |
| 19866 | for p in `eval $output_verbose_link_cmd`; do |
| 19867 | case $p in |
| 19868 | |
| 19869 | -L* | -R* | -l*) |
| 19870 | # Some compilers place space between "-{L,R}" and the path. |
| 19871 | # Remove the space. |
| 19872 | if test $p = "-L" \ |
| 19873 | || test $p = "-R"; then |
| 19874 | prev=$p |
| 19875 | continue |
| 19876 | else |
| 19877 | prev= |
| 19878 | fi |
| 19879 | |
| 19880 | if test "$pre_test_object_deps_done" = no; then |
| 19881 | case $p in |
| 19882 | -L* | -R*) |
| 19883 | # Internal compiler library paths should come after those |
| 19884 | # provided the user. The postdeps already come after the |
| 19885 | # user supplied libs so there is no need to process them. |
| 19886 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19887 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19888 | else |
| 19889 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19890 | fi |
| 19891 | ;; |
| 19892 | # The "-l" case would never come before the object being |
| 19893 | # linked, so don't bother handling this case. |
| 19894 | esac |
| 19895 | else |
| 19896 | if test -z "$postdeps_CXX"; then |
| 19897 | postdeps_CXX="${prev}${p}" |
| 19898 | else |
| 19899 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19900 | fi |
| 19901 | fi |
| 19902 | ;; |
| 19903 | |
| 19904 | *.$objext) |
| 19905 | # This assumes that the test object file only shows up |
| 19906 | # once in the compiler output. |
| 19907 | if test "$p" = "conftest.$objext"; then |
| 19908 | pre_test_object_deps_done=yes |
| 19909 | continue |
| 19910 | fi |
| 19911 | |
| 19912 | if test "$pre_test_object_deps_done" = no; then |
| 19913 | if test -z "$predep_objects_CXX"; then |
| 19914 | predep_objects_CXX="$p" |
| 19915 | else |
| 19916 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19917 | fi |
| 19918 | else |
| 19919 | if test -z "$postdep_objects_CXX"; then |
| 19920 | postdep_objects_CXX="$p" |
| 19921 | else |
| 19922 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19923 | fi |
| 19924 | fi |
| 19925 | ;; |
| 19926 | |
| 19927 | *) ;; # Ignore the rest. |
| 19928 | |
| 19929 | esac |
| 19930 | done |
| 19931 | |
| 19932 | # Clean up. |
| 19933 | rm -f a.out a.exe |
| 19934 | else |
| 19935 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19936 | fi |
| 19937 | |
| 19938 | $rm -f confest.$objext |
| 19939 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19940 | # PORTME: override above test on systems where it is broken |
| 19941 | case $host_os in |
| 19942 | interix3*) |
| 19943 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19944 | # hack all around it, let's just trust "g++" to DTRT. |
| 19945 | predep_objects_CXX= |
| 19946 | postdep_objects_CXX= |
| 19947 | postdeps_CXX= |
| 19948 | ;; |
| 19949 | |
| 19950 | solaris*) |
| 19951 | case $cc_basename in |
| 19952 | CC*) |
| 19953 | # Adding this requires a known-good setup of shared libraries for |
| 19954 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19955 | # archive will be linked into the output, leading to subtle bugs. |
| 19956 | postdeps_CXX='-lCstd -lCrun' |
| 19957 | ;; |
| 19958 | esac |
| 19959 | ;; |
| 19960 | esac |
| 19961 | |
| 19962 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19963 | case " $postdeps_CXX " in |
| 19964 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19965 | esac |
| 19966 | |
| 19967 | lt_prog_compiler_wl_CXX= |
| 19968 | lt_prog_compiler_pic_CXX= |
| 19969 | lt_prog_compiler_static_CXX= |
| 19970 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19971 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19972 | 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] | 19973 | |
| 19974 | # C++ specific cases for pic, static, wl, etc. |
| 19975 | if test "$GXX" = yes; then |
| 19976 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19977 | lt_prog_compiler_static_CXX='-static' |
| 19978 | |
| 19979 | case $host_os in |
| 19980 | aix*) |
| 19981 | # All AIX code is PIC. |
| 19982 | if test "$host_cpu" = ia64; then |
| 19983 | # AIX 5 now supports IA64 processor |
| 19984 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19985 | fi |
| 19986 | ;; |
| 19987 | amigaos*) |
| 19988 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19989 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19990 | # like `-m68040'. |
| 19991 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19992 | ;; |
| 19993 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19994 | # PIC is the default for these OSes. |
| 19995 | ;; |
| 19996 | mingw* | os2* | pw32*) |
| 19997 | # This hack is so that the source file can tell whether it is being |
| 19998 | # built for inclusion in a dll (and should export symbols for example). |
| 19999 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 20000 | ;; |
| 20001 | darwin* | rhapsody*) |
| 20002 | # PIC is the default on this platform |
| 20003 | # Common symbols not allowed in MH_DYLIB files |
| 20004 | lt_prog_compiler_pic_CXX='-fno-common' |
| 20005 | ;; |
| 20006 | *djgpp*) |
| 20007 | # DJGPP does not support shared libraries at all |
| 20008 | lt_prog_compiler_pic_CXX= |
| 20009 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20010 | interix3*) |
| 20011 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20012 | # Instead, we relocate shared libraries at runtime. |
| 20013 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20014 | sysv4*MP*) |
| 20015 | if test -d /usr/nec; then |
| 20016 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 20017 | fi |
| 20018 | ;; |
| 20019 | hpux*) |
| 20020 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20021 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20022 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20023 | hppa*64*|ia64*) |
| 20024 | ;; |
| 20025 | *) |
| 20026 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20027 | ;; |
| 20028 | esac |
| 20029 | ;; |
| 20030 | *) |
| 20031 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20032 | ;; |
| 20033 | esac |
| 20034 | else |
| 20035 | case $host_os in |
| 20036 | aix4* | aix5*) |
| 20037 | # All AIX code is PIC. |
| 20038 | if test "$host_cpu" = ia64; then |
| 20039 | # AIX 5 now supports IA64 processor |
| 20040 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20041 | else |
| 20042 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 20043 | fi |
| 20044 | ;; |
| 20045 | chorus*) |
| 20046 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20047 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20048 | # Green Hills C++ Compiler |
| 20049 | # _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" |
| 20050 | ;; |
| 20051 | esac |
| 20052 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20053 | darwin*) |
| 20054 | # PIC is the default on this platform |
| 20055 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20056 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20057 | xlc*) |
| 20058 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 20059 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20060 | ;; |
| 20061 | esac |
| 20062 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20063 | dgux*) |
| 20064 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20065 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20066 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20067 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20068 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20069 | # Green Hills C++ Compiler |
| 20070 | lt_prog_compiler_pic_CXX='-pic' |
| 20071 | ;; |
| 20072 | *) |
| 20073 | ;; |
| 20074 | esac |
| 20075 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20076 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20077 | # FreeBSD uses GNU C++ |
| 20078 | ;; |
| 20079 | hpux9* | hpux10* | hpux11*) |
| 20080 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20081 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20082 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20083 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20084 | if test "$host_cpu" != ia64; then |
| 20085 | lt_prog_compiler_pic_CXX='+Z' |
| 20086 | fi |
| 20087 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20088 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20089 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20090 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 20091 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20092 | hppa*64*|ia64*) |
| 20093 | # +Z the default |
| 20094 | ;; |
| 20095 | *) |
| 20096 | lt_prog_compiler_pic_CXX='+Z' |
| 20097 | ;; |
| 20098 | esac |
| 20099 | ;; |
| 20100 | *) |
| 20101 | ;; |
| 20102 | esac |
| 20103 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20104 | interix*) |
| 20105 | # This is c89, which is MS Visual C++ (no shared libs) |
| 20106 | # Anyone wants to do a port? |
| 20107 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20108 | irix5* | irix6* | nonstopux*) |
| 20109 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20110 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20111 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20112 | lt_prog_compiler_static_CXX='-non_shared' |
| 20113 | # CC pic flag -KPIC is the default. |
| 20114 | ;; |
| 20115 | *) |
| 20116 | ;; |
| 20117 | esac |
| 20118 | ;; |
| 20119 | linux*) |
| 20120 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20121 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20122 | # KAI C++ Compiler |
| 20123 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 20124 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20125 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20126 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20127 | # Intel C++ |
| 20128 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20129 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20130 | lt_prog_compiler_static_CXX='-static' |
| 20131 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20132 | pgCC*) |
| 20133 | # Portland Group C++ compiler. |
| 20134 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20135 | lt_prog_compiler_pic_CXX='-fpic' |
| 20136 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20137 | ;; |
| 20138 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20139 | # Compaq C++ |
| 20140 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 20141 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20142 | lt_prog_compiler_pic_CXX= |
| 20143 | lt_prog_compiler_static_CXX='-non_shared' |
| 20144 | ;; |
| 20145 | *) |
| 20146 | ;; |
| 20147 | esac |
| 20148 | ;; |
| 20149 | lynxos*) |
| 20150 | ;; |
| 20151 | m88k*) |
| 20152 | ;; |
| 20153 | mvs*) |
| 20154 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20155 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20156 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 20157 | ;; |
| 20158 | *) |
| 20159 | ;; |
| 20160 | esac |
| 20161 | ;; |
| 20162 | netbsd*) |
| 20163 | ;; |
| 20164 | osf3* | osf4* | osf5*) |
| 20165 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20166 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20167 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 20168 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20169 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20170 | # Rational C++ 2.4.1 |
| 20171 | lt_prog_compiler_pic_CXX='-pic' |
| 20172 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20173 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20174 | # Digital/Compaq C++ |
| 20175 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20176 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 20177 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20178 | lt_prog_compiler_pic_CXX= |
| 20179 | lt_prog_compiler_static_CXX='-non_shared' |
| 20180 | ;; |
| 20181 | *) |
| 20182 | ;; |
| 20183 | esac |
| 20184 | ;; |
| 20185 | psos*) |
| 20186 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20187 | solaris*) |
| 20188 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20189 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20190 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 20191 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20192 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20193 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 20194 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20195 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20196 | # Green Hills C++ Compiler |
| 20197 | lt_prog_compiler_pic_CXX='-PIC' |
| 20198 | ;; |
| 20199 | *) |
| 20200 | ;; |
| 20201 | esac |
| 20202 | ;; |
| 20203 | sunos4*) |
| 20204 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20205 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20206 | # Sun C++ 4.x |
| 20207 | lt_prog_compiler_pic_CXX='-pic' |
| 20208 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20209 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20210 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20211 | # Lucid |
| 20212 | lt_prog_compiler_pic_CXX='-pic' |
| 20213 | ;; |
| 20214 | *) |
| 20215 | ;; |
| 20216 | esac |
| 20217 | ;; |
| 20218 | tandem*) |
| 20219 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20220 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20221 | # NonStop-UX NCC 3.20 |
| 20222 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20223 | ;; |
| 20224 | *) |
| 20225 | ;; |
| 20226 | esac |
| 20227 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20228 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20229 | case $cc_basename in |
| 20230 | CC*) |
| 20231 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20232 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20233 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20234 | ;; |
| 20235 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20236 | ;; |
| 20237 | vxworks*) |
| 20238 | ;; |
| 20239 | *) |
| 20240 | lt_prog_compiler_can_build_shared_CXX=no |
| 20241 | ;; |
| 20242 | esac |
| 20243 | fi |
| 20244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20245 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 20246 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20247 | |
| 20248 | # |
| 20249 | # Check to make sure the PIC flag actually works. |
| 20250 | # |
| 20251 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20252 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20253 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 20254 | 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] | 20255 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 20256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20257 | else |
| 20258 | lt_prog_compiler_pic_works_CXX=no |
| 20259 | ac_outfile=conftest.$ac_objext |
| 20260 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20261 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 20262 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20263 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20264 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20265 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20266 | # The option is referenced via a variable to avoid confusing sed. |
| 20267 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20268 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20269 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20270 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 20271 | (eval echo "\"\$as_me:20271: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20272 | (eval "$lt_compile" 2>conftest.err) |
| 20273 | ac_status=$? |
| 20274 | cat conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 20275 | echo "$as_me:20275: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20276 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 20277 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20278 | # So say no if there are warnings other than the usual output. |
| 20279 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 20280 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20281 | 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] | 20282 | lt_prog_compiler_pic_works_CXX=yes |
| 20283 | fi |
| 20284 | fi |
| 20285 | $rm conftest* |
| 20286 | |
| 20287 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20288 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 20289 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20290 | |
| 20291 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 20292 | case $lt_prog_compiler_pic_CXX in |
| 20293 | "" | " "*) ;; |
| 20294 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 20295 | esac |
| 20296 | else |
| 20297 | lt_prog_compiler_pic_CXX= |
| 20298 | lt_prog_compiler_can_build_shared_CXX=no |
| 20299 | fi |
| 20300 | |
| 20301 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20302 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20303 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 20304 | *djgpp*) |
| 20305 | lt_prog_compiler_pic_CXX= |
| 20306 | ;; |
| 20307 | *) |
| 20308 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 20309 | ;; |
| 20310 | esac |
| 20311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20312 | # |
| 20313 | # Check to make sure the static flag actually works. |
| 20314 | # |
| 20315 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 20316 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 20317 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 20318 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 20319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20320 | else |
| 20321 | lt_prog_compiler_static_works_CXX=no |
| 20322 | save_LDFLAGS="$LDFLAGS" |
| 20323 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 20324 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 20325 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 20326 | # The linker can only warn and ignore the option if not recognized |
| 20327 | # So say no if there are warnings |
| 20328 | if test -s conftest.err; then |
| 20329 | # Append any errors to the config.log. |
| 20330 | cat conftest.err 1>&5 |
| 20331 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 20332 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20333 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 20334 | lt_prog_compiler_static_works_CXX=yes |
| 20335 | fi |
| 20336 | else |
| 20337 | lt_prog_compiler_static_works_CXX=yes |
| 20338 | fi |
| 20339 | fi |
| 20340 | $rm conftest* |
| 20341 | LDFLAGS="$save_LDFLAGS" |
| 20342 | |
| 20343 | fi |
| 20344 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 20345 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 20346 | |
| 20347 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 20348 | : |
| 20349 | else |
| 20350 | lt_prog_compiler_static_CXX= |
| 20351 | fi |
| 20352 | |
| 20353 | |
| 20354 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 20355 | 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] | 20356 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 20357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20358 | else |
| 20359 | lt_cv_prog_compiler_c_o_CXX=no |
| 20360 | $rm -r conftest 2>/dev/null |
| 20361 | mkdir conftest |
| 20362 | cd conftest |
| 20363 | mkdir out |
| 20364 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20365 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20366 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 20367 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20368 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20369 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20370 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20371 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20372 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20373 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20374 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 20375 | (eval echo "\"\$as_me:20375: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20376 | (eval "$lt_compile" 2>out/conftest.err) |
| 20377 | ac_status=$? |
| 20378 | cat out/conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 20379 | echo "$as_me:20379: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20380 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 20381 | then |
| 20382 | # The compiler can only warn and ignore the option if not recognized |
| 20383 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20384 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 20385 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 20386 | 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] | 20387 | lt_cv_prog_compiler_c_o_CXX=yes |
| 20388 | fi |
| 20389 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20390 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20391 | $rm conftest* |
| 20392 | # SGI C++ compiler will create directory out/ii_files/ for |
| 20393 | # template instantiation |
| 20394 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 20395 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20396 | cd .. |
| 20397 | rmdir conftest |
| 20398 | $rm conftest* |
| 20399 | |
| 20400 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20401 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 20402 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20403 | |
| 20404 | |
| 20405 | hard_links="nottested" |
| 20406 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 20407 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20408 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 20409 | 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] | 20410 | hard_links=yes |
| 20411 | $rm conftest* |
| 20412 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 20413 | touch conftest.a |
| 20414 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 20415 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20416 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 20417 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20418 | if test "$hard_links" = no; then |
| 20419 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 20420 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 20421 | need_locks=warn |
| 20422 | fi |
| 20423 | else |
| 20424 | need_locks=no |
| 20425 | fi |
| 20426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20427 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 20428 | 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] | 20429 | |
| 20430 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20431 | case $host_os in |
| 20432 | aix4* | aix5*) |
| 20433 | # If we're using GNU nm, then we don't want the "-C" option. |
| 20434 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 20435 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 20436 | 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' |
| 20437 | else |
| 20438 | 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' |
| 20439 | fi |
| 20440 | ;; |
| 20441 | pw32*) |
| 20442 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 20443 | ;; |
| 20444 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20445 | 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] | 20446 | ;; |
| 20447 | *) |
| 20448 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20449 | ;; |
| 20450 | esac |
| 20451 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20452 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 20453 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20454 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 20455 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20456 | # |
| 20457 | # Do we need to explicitly link libc? |
| 20458 | # |
| 20459 | case "x$archive_cmds_need_lc_CXX" in |
| 20460 | x|xyes) |
| 20461 | # Assume -lc should be added |
| 20462 | archive_cmds_need_lc_CXX=yes |
| 20463 | |
| 20464 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 20465 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20466 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20467 | # FIXME: we may have to deal with multi-command sequences. |
| 20468 | ;; |
| 20469 | '$CC '*) |
| 20470 | # Test whether the compiler implicitly links with -lc since on some |
| 20471 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 20472 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20473 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 20474 | 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] | 20475 | $rm conftest* |
| 20476 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20477 | |
| 20478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20479 | (eval $ac_compile) 2>&5 |
| 20480 | ac_status=$? |
| 20481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20482 | (exit $ac_status); } 2>conftest.err; then |
| 20483 | soname=conftest |
| 20484 | lib=conftest |
| 20485 | libobjs=conftest.$ac_objext |
| 20486 | deplibs= |
| 20487 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20488 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20489 | compiler_flags=-v |
| 20490 | linker_flags=-v |
| 20491 | verstring= |
| 20492 | output_objdir=. |
| 20493 | libname=conftest |
| 20494 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 20495 | allow_undefined_flag_CXX= |
| 20496 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20497 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20498 | ac_status=$? |
| 20499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20500 | (exit $ac_status); } |
| 20501 | then |
| 20502 | archive_cmds_need_lc_CXX=no |
| 20503 | else |
| 20504 | archive_cmds_need_lc_CXX=yes |
| 20505 | fi |
| 20506 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 20507 | else |
| 20508 | cat conftest.err 1>&5 |
| 20509 | fi |
| 20510 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20511 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 20512 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20513 | ;; |
| 20514 | esac |
| 20515 | fi |
| 20516 | ;; |
| 20517 | esac |
| 20518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20519 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20520 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20521 | library_names_spec= |
| 20522 | libname_spec='lib$name' |
| 20523 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20524 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20525 | postinstall_cmds= |
| 20526 | postuninstall_cmds= |
| 20527 | finish_cmds= |
| 20528 | finish_eval= |
| 20529 | shlibpath_var= |
| 20530 | shlibpath_overrides_runpath=unknown |
| 20531 | version_type=none |
| 20532 | dynamic_linker="$host_os ld.so" |
| 20533 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20534 | if test "$GCC" = yes; then |
| 20535 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20536 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20537 | # if the path contains ";" then we assume it to be the separator |
| 20538 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20539 | # assumed that no part of a normal pathname contains ";" but that should |
| 20540 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20541 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20542 | else |
| 20543 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20544 | fi |
| 20545 | else |
| 20546 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20547 | fi |
| 20548 | need_lib_prefix=unknown |
| 20549 | hardcode_into_libs=no |
| 20550 | |
| 20551 | # when you set need_version to no, make sure it does not cause -set_version |
| 20552 | # flags to be left without arguments |
| 20553 | need_version=unknown |
| 20554 | |
| 20555 | case $host_os in |
| 20556 | aix3*) |
| 20557 | version_type=linux |
| 20558 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20559 | shlibpath_var=LIBPATH |
| 20560 | |
| 20561 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20562 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20563 | ;; |
| 20564 | |
| 20565 | aix4* | aix5*) |
| 20566 | version_type=linux |
| 20567 | need_lib_prefix=no |
| 20568 | need_version=no |
| 20569 | hardcode_into_libs=yes |
| 20570 | if test "$host_cpu" = ia64; then |
| 20571 | # AIX 5 supports IA64 |
| 20572 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20573 | shlibpath_var=LD_LIBRARY_PATH |
| 20574 | else |
| 20575 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20576 | # for dependence libraries. The import file would start with |
| 20577 | # the line `#! .'. This would cause the generated library to |
| 20578 | # depend on `.', always an invalid library. This was fixed in |
| 20579 | # development snapshots of GCC prior to 3.0. |
| 20580 | case $host_os in |
| 20581 | aix4 | aix4.[01] | aix4.[01].*) |
| 20582 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20583 | echo ' yes ' |
| 20584 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20585 | : |
| 20586 | else |
| 20587 | can_build_shared=no |
| 20588 | fi |
| 20589 | ;; |
| 20590 | esac |
| 20591 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20592 | # soname into executable. Probably we can add versioning support to |
| 20593 | # collect2, so additional links can be useful in future. |
| 20594 | if test "$aix_use_runtimelinking" = yes; then |
| 20595 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20596 | # instead of lib<name>.a to let people know that these are not |
| 20597 | # typical AIX shared libraries. |
| 20598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20599 | else |
| 20600 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20601 | # and later when we are not doing run time linking. |
| 20602 | library_names_spec='${libname}${release}.a $libname.a' |
| 20603 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20604 | fi |
| 20605 | shlibpath_var=LIBPATH |
| 20606 | fi |
| 20607 | ;; |
| 20608 | |
| 20609 | amigaos*) |
| 20610 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20611 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20612 | 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] | 20613 | ;; |
| 20614 | |
| 20615 | beos*) |
| 20616 | library_names_spec='${libname}${shared_ext}' |
| 20617 | dynamic_linker="$host_os ld.so" |
| 20618 | shlibpath_var=LIBRARY_PATH |
| 20619 | ;; |
| 20620 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20621 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20622 | version_type=linux |
| 20623 | need_version=no |
| 20624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20625 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20626 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20627 | shlibpath_var=LD_LIBRARY_PATH |
| 20628 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20629 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20630 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20631 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20632 | # libtool to hard-code these into programs |
| 20633 | ;; |
| 20634 | |
| 20635 | cygwin* | mingw* | pw32*) |
| 20636 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20637 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20638 | need_version=no |
| 20639 | need_lib_prefix=no |
| 20640 | |
| 20641 | case $GCC,$host_os in |
| 20642 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20643 | library_names_spec='$libname.dll.a' |
| 20644 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20645 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20646 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20647 | dldir=$destdir/`dirname \$dlpath`~ |
| 20648 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20649 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20650 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20651 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20652 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20653 | $rm \$dlpath' |
| 20654 | shlibpath_overrides_runpath=yes |
| 20655 | |
| 20656 | case $host_os in |
| 20657 | cygwin*) |
| 20658 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20659 | 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] | 20660 | 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] | 20661 | ;; |
| 20662 | mingw*) |
| 20663 | # MinGW DLLs use traditional 'lib' prefix |
| 20664 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20665 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20666 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20667 | # It is most probably a Windows format PATH printed by |
| 20668 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20669 | # path with ; separators, and with drive letters. We can handle the |
| 20670 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20671 | # especially as we might pass files found there to a mingw objdump, |
| 20672 | # which wouldn't understand a cygwinified path. Ahh. |
| 20673 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20674 | else |
| 20675 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20676 | fi |
| 20677 | ;; |
| 20678 | pw32*) |
| 20679 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20680 | 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] | 20681 | ;; |
| 20682 | esac |
| 20683 | ;; |
| 20684 | |
| 20685 | *) |
| 20686 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20687 | ;; |
| 20688 | esac |
| 20689 | dynamic_linker='Win32 ld.exe' |
| 20690 | # FIXME: first we should search . and the directory the executable is in |
| 20691 | shlibpath_var=PATH |
| 20692 | ;; |
| 20693 | |
| 20694 | darwin* | rhapsody*) |
| 20695 | dynamic_linker="$host_os dyld" |
| 20696 | version_type=darwin |
| 20697 | need_lib_prefix=no |
| 20698 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20699 | 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] | 20700 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20701 | shlibpath_overrides_runpath=yes |
| 20702 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20703 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20704 | # 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] | 20705 | if test "$GCC" = yes; then |
| 20706 | 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"` |
| 20707 | else |
| 20708 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20709 | fi |
| 20710 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20711 | ;; |
| 20712 | |
| 20713 | dgux*) |
| 20714 | version_type=linux |
| 20715 | need_lib_prefix=no |
| 20716 | need_version=no |
| 20717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20718 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20719 | shlibpath_var=LD_LIBRARY_PATH |
| 20720 | ;; |
| 20721 | |
| 20722 | freebsd1*) |
| 20723 | dynamic_linker=no |
| 20724 | ;; |
| 20725 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20726 | kfreebsd*-gnu) |
| 20727 | version_type=linux |
| 20728 | need_lib_prefix=no |
| 20729 | need_version=no |
| 20730 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20731 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20732 | shlibpath_var=LD_LIBRARY_PATH |
| 20733 | shlibpath_overrides_runpath=no |
| 20734 | hardcode_into_libs=yes |
| 20735 | dynamic_linker='GNU ld.so' |
| 20736 | ;; |
| 20737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20738 | freebsd* | dragonfly*) |
| 20739 | # DragonFly does not have aout. When/if they implement a new |
| 20740 | # versioning mechanism, adjust this. |
| 20741 | if test -x /usr/bin/objformat; then |
| 20742 | objformat=`/usr/bin/objformat` |
| 20743 | else |
| 20744 | case $host_os in |
| 20745 | freebsd[123]*) objformat=aout ;; |
| 20746 | *) objformat=elf ;; |
| 20747 | esac |
| 20748 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20749 | version_type=freebsd-$objformat |
| 20750 | case $version_type in |
| 20751 | freebsd-elf*) |
| 20752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20753 | need_version=no |
| 20754 | need_lib_prefix=no |
| 20755 | ;; |
| 20756 | freebsd-*) |
| 20757 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20758 | need_version=yes |
| 20759 | ;; |
| 20760 | esac |
| 20761 | shlibpath_var=LD_LIBRARY_PATH |
| 20762 | case $host_os in |
| 20763 | freebsd2*) |
| 20764 | shlibpath_overrides_runpath=yes |
| 20765 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20766 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20767 | shlibpath_overrides_runpath=yes |
| 20768 | hardcode_into_libs=yes |
| 20769 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20770 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20771 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20772 | shlibpath_overrides_runpath=no |
| 20773 | hardcode_into_libs=yes |
| 20774 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20775 | freebsd*) # from 4.6 on |
| 20776 | shlibpath_overrides_runpath=yes |
| 20777 | hardcode_into_libs=yes |
| 20778 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20779 | esac |
| 20780 | ;; |
| 20781 | |
| 20782 | gnu*) |
| 20783 | version_type=linux |
| 20784 | need_lib_prefix=no |
| 20785 | need_version=no |
| 20786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20787 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20788 | shlibpath_var=LD_LIBRARY_PATH |
| 20789 | hardcode_into_libs=yes |
| 20790 | ;; |
| 20791 | |
| 20792 | hpux9* | hpux10* | hpux11*) |
| 20793 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20794 | # link against other versions. |
| 20795 | version_type=sunos |
| 20796 | need_lib_prefix=no |
| 20797 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20798 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20799 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20800 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20801 | hardcode_into_libs=yes |
| 20802 | dynamic_linker="$host_os dld.so" |
| 20803 | shlibpath_var=LD_LIBRARY_PATH |
| 20804 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20806 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20807 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20808 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20809 | else |
| 20810 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20811 | fi |
| 20812 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20813 | ;; |
| 20814 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20815 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20816 | hardcode_into_libs=yes |
| 20817 | dynamic_linker="$host_os dld.sl" |
| 20818 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20819 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20820 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20821 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20822 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20823 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20824 | ;; |
| 20825 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20826 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20827 | dynamic_linker="$host_os dld.sl" |
| 20828 | shlibpath_var=SHLIB_PATH |
| 20829 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20831 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20832 | ;; |
| 20833 | esac |
| 20834 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20835 | postinstall_cmds='chmod 555 $lib' |
| 20836 | ;; |
| 20837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20838 | interix3*) |
| 20839 | version_type=linux |
| 20840 | need_lib_prefix=no |
| 20841 | need_version=no |
| 20842 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20843 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20844 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20845 | shlibpath_var=LD_LIBRARY_PATH |
| 20846 | shlibpath_overrides_runpath=no |
| 20847 | hardcode_into_libs=yes |
| 20848 | ;; |
| 20849 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20850 | irix5* | irix6* | nonstopux*) |
| 20851 | case $host_os in |
| 20852 | nonstopux*) version_type=nonstopux ;; |
| 20853 | *) |
| 20854 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20855 | version_type=linux |
| 20856 | else |
| 20857 | version_type=irix |
| 20858 | fi ;; |
| 20859 | esac |
| 20860 | need_lib_prefix=no |
| 20861 | need_version=no |
| 20862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20864 | case $host_os in |
| 20865 | irix5* | nonstopux*) |
| 20866 | libsuff= shlibsuff= |
| 20867 | ;; |
| 20868 | *) |
| 20869 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20870 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20871 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20872 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20873 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20874 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20875 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20876 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20877 | esac |
| 20878 | ;; |
| 20879 | esac |
| 20880 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20881 | shlibpath_overrides_runpath=no |
| 20882 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20883 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20884 | hardcode_into_libs=yes |
| 20885 | ;; |
| 20886 | |
| 20887 | # No shared lib support for Linux oldld, aout, or coff. |
| 20888 | linux*oldld* | linux*aout* | linux*coff*) |
| 20889 | dynamic_linker=no |
| 20890 | ;; |
| 20891 | |
| 20892 | # This must be Linux ELF. |
| 20893 | linux*) |
| 20894 | version_type=linux |
| 20895 | need_lib_prefix=no |
| 20896 | need_version=no |
| 20897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20898 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20899 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20900 | shlibpath_var=LD_LIBRARY_PATH |
| 20901 | shlibpath_overrides_runpath=no |
| 20902 | # This implies no fast_install, which is unacceptable. |
| 20903 | # Some rework will be needed to allow for fast_install |
| 20904 | # before this can be enabled. |
| 20905 | hardcode_into_libs=yes |
| 20906 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20907 | # Append ld.so.conf contents to the search path |
| 20908 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20909 | 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] | 20910 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20911 | fi |
| 20912 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20913 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20914 | # powerpc, because MkLinux only supported shared libraries with the |
| 20915 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20916 | # most powerpc-linux boxes support dynamic linking these days and |
| 20917 | # people can always --disable-shared, the test was removed, and we |
| 20918 | # assume the GNU/Linux dynamic linker is in use. |
| 20919 | dynamic_linker='GNU/Linux ld.so' |
| 20920 | ;; |
| 20921 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20922 | knetbsd*-gnu) |
| 20923 | version_type=linux |
| 20924 | need_lib_prefix=no |
| 20925 | need_version=no |
| 20926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20927 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20928 | shlibpath_var=LD_LIBRARY_PATH |
| 20929 | shlibpath_overrides_runpath=no |
| 20930 | hardcode_into_libs=yes |
| 20931 | dynamic_linker='GNU ld.so' |
| 20932 | ;; |
| 20933 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20934 | netbsd*) |
| 20935 | version_type=sunos |
| 20936 | need_lib_prefix=no |
| 20937 | need_version=no |
| 20938 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20940 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20941 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20942 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20943 | 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] | 20944 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20945 | dynamic_linker='NetBSD ld.elf_so' |
| 20946 | fi |
| 20947 | shlibpath_var=LD_LIBRARY_PATH |
| 20948 | shlibpath_overrides_runpath=yes |
| 20949 | hardcode_into_libs=yes |
| 20950 | ;; |
| 20951 | |
| 20952 | newsos6) |
| 20953 | version_type=linux |
| 20954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20955 | shlibpath_var=LD_LIBRARY_PATH |
| 20956 | shlibpath_overrides_runpath=yes |
| 20957 | ;; |
| 20958 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20959 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20960 | version_type=linux |
| 20961 | need_lib_prefix=no |
| 20962 | need_version=no |
| 20963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20964 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20965 | shlibpath_var=LD_LIBRARY_PATH |
| 20966 | shlibpath_overrides_runpath=yes |
| 20967 | ;; |
| 20968 | |
| 20969 | openbsd*) |
| 20970 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20971 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20972 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20973 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20974 | case $host_os in |
| 20975 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20976 | *) need_version=no ;; |
| 20977 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20979 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20980 | shlibpath_var=LD_LIBRARY_PATH |
| 20981 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20982 | case $host_os in |
| 20983 | openbsd2.[89] | openbsd2.[89].*) |
| 20984 | shlibpath_overrides_runpath=no |
| 20985 | ;; |
| 20986 | *) |
| 20987 | shlibpath_overrides_runpath=yes |
| 20988 | ;; |
| 20989 | esac |
| 20990 | else |
| 20991 | shlibpath_overrides_runpath=yes |
| 20992 | fi |
| 20993 | ;; |
| 20994 | |
| 20995 | os2*) |
| 20996 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20997 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20998 | need_lib_prefix=no |
| 20999 | library_names_spec='$libname${shared_ext} $libname.a' |
| 21000 | dynamic_linker='OS/2 ld.exe' |
| 21001 | shlibpath_var=LIBPATH |
| 21002 | ;; |
| 21003 | |
| 21004 | osf3* | osf4* | osf5*) |
| 21005 | version_type=osf |
| 21006 | need_lib_prefix=no |
| 21007 | need_version=no |
| 21008 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21010 | shlibpath_var=LD_LIBRARY_PATH |
| 21011 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 21012 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 21013 | ;; |
| 21014 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21015 | solaris*) |
| 21016 | version_type=linux |
| 21017 | need_lib_prefix=no |
| 21018 | need_version=no |
| 21019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21020 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21021 | shlibpath_var=LD_LIBRARY_PATH |
| 21022 | shlibpath_overrides_runpath=yes |
| 21023 | hardcode_into_libs=yes |
| 21024 | # ldd complains unless libraries are executable |
| 21025 | postinstall_cmds='chmod +x $lib' |
| 21026 | ;; |
| 21027 | |
| 21028 | sunos4*) |
| 21029 | version_type=sunos |
| 21030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 21031 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 21032 | shlibpath_var=LD_LIBRARY_PATH |
| 21033 | shlibpath_overrides_runpath=yes |
| 21034 | if test "$with_gnu_ld" = yes; then |
| 21035 | need_lib_prefix=no |
| 21036 | fi |
| 21037 | need_version=yes |
| 21038 | ;; |
| 21039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21040 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21041 | version_type=linux |
| 21042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21043 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21044 | shlibpath_var=LD_LIBRARY_PATH |
| 21045 | case $host_vendor in |
| 21046 | sni) |
| 21047 | shlibpath_overrides_runpath=no |
| 21048 | need_lib_prefix=no |
| 21049 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 21050 | runpath_var=LD_RUN_PATH |
| 21051 | ;; |
| 21052 | siemens) |
| 21053 | need_lib_prefix=no |
| 21054 | ;; |
| 21055 | motorola) |
| 21056 | need_lib_prefix=no |
| 21057 | need_version=no |
| 21058 | shlibpath_overrides_runpath=no |
| 21059 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 21060 | ;; |
| 21061 | esac |
| 21062 | ;; |
| 21063 | |
| 21064 | sysv4*MP*) |
| 21065 | if test -d /usr/nec ;then |
| 21066 | version_type=linux |
| 21067 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 21068 | soname_spec='$libname${shared_ext}.$major' |
| 21069 | shlibpath_var=LD_LIBRARY_PATH |
| 21070 | fi |
| 21071 | ;; |
| 21072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21073 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 21074 | version_type=freebsd-elf |
| 21075 | need_lib_prefix=no |
| 21076 | need_version=no |
| 21077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 21078 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21079 | shlibpath_var=LD_LIBRARY_PATH |
| 21080 | hardcode_into_libs=yes |
| 21081 | if test "$with_gnu_ld" = yes; then |
| 21082 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 21083 | shlibpath_overrides_runpath=no |
| 21084 | else |
| 21085 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 21086 | shlibpath_overrides_runpath=yes |
| 21087 | case $host_os in |
| 21088 | sco3.2v5*) |
| 21089 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 21090 | ;; |
| 21091 | esac |
| 21092 | fi |
| 21093 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 21094 | ;; |
| 21095 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21096 | uts4*) |
| 21097 | version_type=linux |
| 21098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21099 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21100 | shlibpath_var=LD_LIBRARY_PATH |
| 21101 | ;; |
| 21102 | |
| 21103 | *) |
| 21104 | dynamic_linker=no |
| 21105 | ;; |
| 21106 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21107 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 21108 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21109 | test "$dynamic_linker" = no && can_build_shared=no |
| 21110 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21111 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 21112 | if test "$GCC" = yes; then |
| 21113 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 21114 | fi |
| 21115 | |
| 21116 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 21117 | 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] | 21118 | hardcode_action_CXX= |
| 21119 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 21120 | test -n "$runpath_var_CXX" || \ |
| 21121 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 21122 | |
| 21123 | # We can hardcode non-existant directories. |
| 21124 | if test "$hardcode_direct_CXX" != no && |
| 21125 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 21126 | # have to relink, otherwise we might link with an installed library |
| 21127 | # when we should be linking with a yet-to-be-installed one |
| 21128 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 21129 | test "$hardcode_minus_L_CXX" != no; then |
| 21130 | # Linking always hardcodes the temporary library directory. |
| 21131 | hardcode_action_CXX=relink |
| 21132 | else |
| 21133 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 21134 | hardcode_action_CXX=immediate |
| 21135 | fi |
| 21136 | else |
| 21137 | # We cannot hardcode anything, or else we can only hardcode existing |
| 21138 | # directories. |
| 21139 | hardcode_action_CXX=unsupported |
| 21140 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21141 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 21142 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21143 | |
| 21144 | if test "$hardcode_action_CXX" = relink; then |
| 21145 | # Fast installation is not supported |
| 21146 | enable_fast_install=no |
| 21147 | elif test "$shlibpath_overrides_runpath" = yes || |
| 21148 | test "$enable_shared" = no; then |
| 21149 | # Fast installation is not necessary |
| 21150 | enable_fast_install=needless |
| 21151 | fi |
| 21152 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21153 | |
| 21154 | # The else clause should only fire when bootstrapping the |
| 21155 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 21156 | # with your package, and you will get complaints that there are |
| 21157 | # no rules to generate ltmain.sh. |
| 21158 | if test -f "$ltmain"; then |
| 21159 | # See if we are running on zsh, and set the options which allow our commands through |
| 21160 | # without removal of \ escapes. |
| 21161 | if test -n "${ZSH_VERSION+set}" ; then |
| 21162 | setopt NO_GLOB_SUBST |
| 21163 | fi |
| 21164 | # Now quote all the things that may contain metacharacters while being |
| 21165 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 21166 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21167 | 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] | 21168 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21169 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 21170 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 21171 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 21172 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 21173 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 21174 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 21175 | old_postinstall_cmds old_postuninstall_cmds \ |
| 21176 | compiler_CXX \ |
| 21177 | CC_CXX \ |
| 21178 | LD_CXX \ |
| 21179 | lt_prog_compiler_wl_CXX \ |
| 21180 | lt_prog_compiler_pic_CXX \ |
| 21181 | lt_prog_compiler_static_CXX \ |
| 21182 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 21183 | export_dynamic_flag_spec_CXX \ |
| 21184 | thread_safe_flag_spec_CXX \ |
| 21185 | whole_archive_flag_spec_CXX \ |
| 21186 | enable_shared_with_static_runtimes_CXX \ |
| 21187 | old_archive_cmds_CXX \ |
| 21188 | old_archive_from_new_cmds_CXX \ |
| 21189 | predep_objects_CXX \ |
| 21190 | postdep_objects_CXX \ |
| 21191 | predeps_CXX \ |
| 21192 | postdeps_CXX \ |
| 21193 | compiler_lib_search_path_CXX \ |
| 21194 | archive_cmds_CXX \ |
| 21195 | archive_expsym_cmds_CXX \ |
| 21196 | postinstall_cmds_CXX \ |
| 21197 | postuninstall_cmds_CXX \ |
| 21198 | old_archive_from_expsyms_cmds_CXX \ |
| 21199 | allow_undefined_flag_CXX \ |
| 21200 | no_undefined_flag_CXX \ |
| 21201 | export_symbols_cmds_CXX \ |
| 21202 | hardcode_libdir_flag_spec_CXX \ |
| 21203 | hardcode_libdir_flag_spec_ld_CXX \ |
| 21204 | hardcode_libdir_separator_CXX \ |
| 21205 | hardcode_automatic_CXX \ |
| 21206 | module_cmds_CXX \ |
| 21207 | module_expsym_cmds_CXX \ |
| 21208 | lt_cv_prog_compiler_c_o_CXX \ |
| 21209 | exclude_expsyms_CXX \ |
| 21210 | include_expsyms_CXX; do |
| 21211 | |
| 21212 | case $var in |
| 21213 | old_archive_cmds_CXX | \ |
| 21214 | old_archive_from_new_cmds_CXX | \ |
| 21215 | archive_cmds_CXX | \ |
| 21216 | archive_expsym_cmds_CXX | \ |
| 21217 | module_cmds_CXX | \ |
| 21218 | module_expsym_cmds_CXX | \ |
| 21219 | old_archive_from_expsyms_cmds_CXX | \ |
| 21220 | export_symbols_cmds_CXX | \ |
| 21221 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 21222 | postinstall_cmds | postuninstall_cmds | \ |
| 21223 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 21224 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 21225 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21226 | 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] | 21227 | ;; |
| 21228 | *) |
| 21229 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 21230 | ;; |
| 21231 | esac |
| 21232 | done |
| 21233 | |
| 21234 | case $lt_echo in |
| 21235 | *'\$0 --fallback-echo"') |
| 21236 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 21237 | ;; |
| 21238 | esac |
| 21239 | |
| 21240 | cfgfile="$ofile" |
| 21241 | |
| 21242 | cat <<__EOF__ >> "$cfgfile" |
| 21243 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 21244 | |
| 21245 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 21246 | |
| 21247 | # Shell to use when invoking shell scripts. |
| 21248 | SHELL=$lt_SHELL |
| 21249 | |
| 21250 | # Whether or not to build shared libraries. |
| 21251 | build_libtool_libs=$enable_shared |
| 21252 | |
| 21253 | # Whether or not to build static libraries. |
| 21254 | build_old_libs=$enable_static |
| 21255 | |
| 21256 | # Whether or not to add -lc for building shared libraries. |
| 21257 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 21258 | |
| 21259 | # Whether or not to disallow shared libs when runtime libs are static |
| 21260 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 21261 | |
| 21262 | # Whether or not to optimize for fast installation. |
| 21263 | fast_install=$enable_fast_install |
| 21264 | |
| 21265 | # The host system. |
| 21266 | host_alias=$host_alias |
| 21267 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21268 | host_os=$host_os |
| 21269 | |
| 21270 | # The build system. |
| 21271 | build_alias=$build_alias |
| 21272 | build=$build |
| 21273 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21274 | |
| 21275 | # An echo program that does not interpret backslashes. |
| 21276 | echo=$lt_echo |
| 21277 | |
| 21278 | # The archiver. |
| 21279 | AR=$lt_AR |
| 21280 | AR_FLAGS=$lt_AR_FLAGS |
| 21281 | |
| 21282 | # A C compiler. |
| 21283 | LTCC=$lt_LTCC |
| 21284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21285 | # LTCC compiler flags. |
| 21286 | LTCFLAGS=$lt_LTCFLAGS |
| 21287 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21288 | # A language-specific compiler. |
| 21289 | CC=$lt_compiler_CXX |
| 21290 | |
| 21291 | # Is the compiler the GNU C compiler? |
| 21292 | with_gcc=$GCC_CXX |
| 21293 | |
| 21294 | # An ERE matcher. |
| 21295 | EGREP=$lt_EGREP |
| 21296 | |
| 21297 | # The linker used to build libraries. |
| 21298 | LD=$lt_LD_CXX |
| 21299 | |
| 21300 | # Whether we need hard or soft links. |
| 21301 | LN_S=$lt_LN_S |
| 21302 | |
| 21303 | # A BSD-compatible nm program. |
| 21304 | NM=$lt_NM |
| 21305 | |
| 21306 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21307 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21308 | |
| 21309 | # Used to examine libraries when file_magic_cmd begins "file" |
| 21310 | MAGIC_CMD=$MAGIC_CMD |
| 21311 | |
| 21312 | # Used on cygwin: DLL creation program. |
| 21313 | DLLTOOL="$DLLTOOL" |
| 21314 | |
| 21315 | # Used on cygwin: object dumper. |
| 21316 | OBJDUMP="$OBJDUMP" |
| 21317 | |
| 21318 | # Used on cygwin: assembler. |
| 21319 | AS="$AS" |
| 21320 | |
| 21321 | # The name of the directory that contains temporary libtool files. |
| 21322 | objdir=$objdir |
| 21323 | |
| 21324 | # How to create reloadable object files. |
| 21325 | reload_flag=$lt_reload_flag |
| 21326 | reload_cmds=$lt_reload_cmds |
| 21327 | |
| 21328 | # How to pass a linker flag through the compiler. |
| 21329 | wl=$lt_lt_prog_compiler_wl_CXX |
| 21330 | |
| 21331 | # Object file suffix (normally "o"). |
| 21332 | objext="$ac_objext" |
| 21333 | |
| 21334 | # Old archive suffix (normally "a"). |
| 21335 | libext="$libext" |
| 21336 | |
| 21337 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21338 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21339 | |
| 21340 | # Executable file suffix (normally ""). |
| 21341 | exeext="$exeext" |
| 21342 | |
| 21343 | # Additional compiler flags for building library objects. |
| 21344 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 21345 | pic_mode=$pic_mode |
| 21346 | |
| 21347 | # What is the maximum length of a command? |
| 21348 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 21349 | |
| 21350 | # Does compiler simultaneously support -c and -o options? |
| 21351 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 21352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21353 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21354 | need_locks=$lt_need_locks |
| 21355 | |
| 21356 | # Do we need the lib prefix for modules? |
| 21357 | need_lib_prefix=$need_lib_prefix |
| 21358 | |
| 21359 | # Do we need a version for libraries? |
| 21360 | need_version=$need_version |
| 21361 | |
| 21362 | # Whether dlopen is supported. |
| 21363 | dlopen_support=$enable_dlopen |
| 21364 | |
| 21365 | # Whether dlopen of programs is supported. |
| 21366 | dlopen_self=$enable_dlopen_self |
| 21367 | |
| 21368 | # Whether dlopen of statically linked programs is supported. |
| 21369 | dlopen_self_static=$enable_dlopen_self_static |
| 21370 | |
| 21371 | # Compiler flag to prevent dynamic linking. |
| 21372 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 21373 | |
| 21374 | # Compiler flag to turn off builtin functions. |
| 21375 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 21376 | |
| 21377 | # Compiler flag to allow reflexive dlopens. |
| 21378 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 21379 | |
| 21380 | # Compiler flag to generate shared objects directly from archives. |
| 21381 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 21382 | |
| 21383 | # Compiler flag to generate thread-safe objects. |
| 21384 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 21385 | |
| 21386 | # Library versioning type. |
| 21387 | version_type=$version_type |
| 21388 | |
| 21389 | # Format of library name prefix. |
| 21390 | libname_spec=$lt_libname_spec |
| 21391 | |
| 21392 | # List of archive names. First name is the real one, the rest are links. |
| 21393 | # The last name is the one that the linker finds with -lNAME. |
| 21394 | library_names_spec=$lt_library_names_spec |
| 21395 | |
| 21396 | # The coded name of the library, if different from the real name. |
| 21397 | soname_spec=$lt_soname_spec |
| 21398 | |
| 21399 | # Commands used to build and install an old-style archive. |
| 21400 | RANLIB=$lt_RANLIB |
| 21401 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 21402 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21403 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21404 | |
| 21405 | # Create an old-style archive from a shared archive. |
| 21406 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 21407 | |
| 21408 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21409 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 21410 | |
| 21411 | # Commands used to build and install a shared archive. |
| 21412 | archive_cmds=$lt_archive_cmds_CXX |
| 21413 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 21414 | postinstall_cmds=$lt_postinstall_cmds |
| 21415 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21416 | |
| 21417 | # Commands used to build a loadable module (assumed same as above if empty) |
| 21418 | module_cmds=$lt_module_cmds_CXX |
| 21419 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 21420 | |
| 21421 | # Commands to strip libraries. |
| 21422 | old_striplib=$lt_old_striplib |
| 21423 | striplib=$lt_striplib |
| 21424 | |
| 21425 | # Dependencies to place before the objects being linked to create a |
| 21426 | # shared library. |
| 21427 | predep_objects=$lt_predep_objects_CXX |
| 21428 | |
| 21429 | # Dependencies to place after the objects being linked to create a |
| 21430 | # shared library. |
| 21431 | postdep_objects=$lt_postdep_objects_CXX |
| 21432 | |
| 21433 | # Dependencies to place before the objects being linked to create a |
| 21434 | # shared library. |
| 21435 | predeps=$lt_predeps_CXX |
| 21436 | |
| 21437 | # Dependencies to place after the objects being linked to create a |
| 21438 | # shared library. |
| 21439 | postdeps=$lt_postdeps_CXX |
| 21440 | |
| 21441 | # The library search path used internally by the compiler when linking |
| 21442 | # a shared library. |
| 21443 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 21444 | |
| 21445 | # Method to check whether dependent libraries are shared objects. |
| 21446 | deplibs_check_method=$lt_deplibs_check_method |
| 21447 | |
| 21448 | # Command to use when deplibs_check_method == file_magic. |
| 21449 | file_magic_cmd=$lt_file_magic_cmd |
| 21450 | |
| 21451 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21452 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 21453 | |
| 21454 | # Flag that forces no undefined symbols. |
| 21455 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 21456 | |
| 21457 | # Commands used to finish a libtool library installation in a directory. |
| 21458 | finish_cmds=$lt_finish_cmds |
| 21459 | |
| 21460 | # Same as above, but a single script fragment to be evaled but not shown. |
| 21461 | finish_eval=$lt_finish_eval |
| 21462 | |
| 21463 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 21464 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21465 | |
| 21466 | # Transform the output of nm in a proper C declaration |
| 21467 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21468 | |
| 21469 | # Transform the output of nm in a C name address pair |
| 21470 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21471 | |
| 21472 | # This is the shared library runtime path variable. |
| 21473 | runpath_var=$runpath_var |
| 21474 | |
| 21475 | # This is the shared library path variable. |
| 21476 | shlibpath_var=$shlibpath_var |
| 21477 | |
| 21478 | # Is shlibpath searched before the hard-coded library search path? |
| 21479 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21480 | |
| 21481 | # How to hardcode a shared library path into an executable. |
| 21482 | hardcode_action=$hardcode_action_CXX |
| 21483 | |
| 21484 | # Whether we should hardcode library paths into libraries. |
| 21485 | hardcode_into_libs=$hardcode_into_libs |
| 21486 | |
| 21487 | # Flag to hardcode \$libdir into a binary during linking. |
| 21488 | # This must work even if \$libdir does not exist. |
| 21489 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21490 | |
| 21491 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21492 | # a binary during linking. This must work even if \$libdir does |
| 21493 | # not exist. |
| 21494 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 21495 | |
| 21496 | # Whether we need a single -rpath flag with a separated argument. |
| 21497 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21498 | |
| 21499 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21500 | # resulting binary. |
| 21501 | hardcode_direct=$hardcode_direct_CXX |
| 21502 | |
| 21503 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21504 | # resulting binary. |
| 21505 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21506 | |
| 21507 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21508 | # the resulting binary. |
| 21509 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21510 | |
| 21511 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21512 | # and all subsequent libraries and executables linked against it. |
| 21513 | hardcode_automatic=$hardcode_automatic_CXX |
| 21514 | |
| 21515 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21516 | # restored at relink time. |
| 21517 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21518 | |
| 21519 | # Whether libtool must link a program against all its dependency libraries. |
| 21520 | link_all_deplibs=$link_all_deplibs_CXX |
| 21521 | |
| 21522 | # Compile-time system search path for libraries |
| 21523 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21524 | |
| 21525 | # Run-time system search path for libraries |
| 21526 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21527 | |
| 21528 | # Fix the shell variable \$srcfile for the compiler. |
| 21529 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 21530 | |
| 21531 | # Set to yes if exported symbols are required. |
| 21532 | always_export_symbols=$always_export_symbols_CXX |
| 21533 | |
| 21534 | # The commands to list exported symbols. |
| 21535 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21536 | |
| 21537 | # The commands to extract the exported symbol list from a shared archive. |
| 21538 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21539 | |
| 21540 | # Symbols that should not be listed in the preloaded symbols. |
| 21541 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21542 | |
| 21543 | # Symbols that must always be exported. |
| 21544 | include_expsyms=$lt_include_expsyms_CXX |
| 21545 | |
| 21546 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21547 | |
| 21548 | __EOF__ |
| 21549 | |
| 21550 | |
| 21551 | else |
| 21552 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21553 | # `config.status --recheck' to rerun these tests and create the |
| 21554 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21555 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21556 | if test -f "$ltmain_in"; then |
| 21557 | test -f Makefile && make "$ltmain" |
| 21558 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21559 | fi |
| 21560 | |
| 21561 | |
| 21562 | ac_ext=c |
| 21563 | ac_cpp='$CPP $CPPFLAGS' |
| 21564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21567 | |
| 21568 | CC=$lt_save_CC |
| 21569 | LDCXX=$LD |
| 21570 | LD=$lt_save_LD |
| 21571 | GCC=$lt_save_GCC |
| 21572 | with_gnu_ldcxx=$with_gnu_ld |
| 21573 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21574 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21575 | lt_cv_path_LD=$lt_save_path_LD |
| 21576 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21577 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21578 | |
| 21579 | else |
| 21580 | tagname="" |
| 21581 | fi |
| 21582 | ;; |
| 21583 | |
| 21584 | F77) |
| 21585 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21586 | |
| 21587 | ac_ext=f |
| 21588 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21589 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21590 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21591 | |
| 21592 | |
| 21593 | archive_cmds_need_lc_F77=no |
| 21594 | allow_undefined_flag_F77= |
| 21595 | always_export_symbols_F77=no |
| 21596 | archive_expsym_cmds_F77= |
| 21597 | export_dynamic_flag_spec_F77= |
| 21598 | hardcode_direct_F77=no |
| 21599 | hardcode_libdir_flag_spec_F77= |
| 21600 | hardcode_libdir_flag_spec_ld_F77= |
| 21601 | hardcode_libdir_separator_F77= |
| 21602 | hardcode_minus_L_F77=no |
| 21603 | hardcode_automatic_F77=no |
| 21604 | module_cmds_F77= |
| 21605 | module_expsym_cmds_F77= |
| 21606 | link_all_deplibs_F77=unknown |
| 21607 | old_archive_cmds_F77=$old_archive_cmds |
| 21608 | no_undefined_flag_F77= |
| 21609 | whole_archive_flag_spec_F77= |
| 21610 | enable_shared_with_static_runtimes_F77=no |
| 21611 | |
| 21612 | # Source file extension for f77 test sources. |
| 21613 | ac_ext=f |
| 21614 | |
| 21615 | # Object file extension for compiled f77 test sources. |
| 21616 | objext=o |
| 21617 | objext_F77=$objext |
| 21618 | |
| 21619 | # Code to be used in simple compile tests |
| 21620 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21621 | |
| 21622 | # Code to be used in simple link tests |
| 21623 | lt_simple_link_test_code=" program t\n end\n" |
| 21624 | |
| 21625 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21626 | |
| 21627 | # If no C compiler was specified, use CC. |
| 21628 | LTCC=${LTCC-"$CC"} |
| 21629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21630 | # If no C compiler flags were specified, use CFLAGS. |
| 21631 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21632 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21633 | # Allow CC to be a program name with arguments. |
| 21634 | compiler=$CC |
| 21635 | |
| 21636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21637 | # save warnings/boilerplate of simple test code |
| 21638 | ac_outfile=conftest.$ac_objext |
| 21639 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21640 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21641 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21642 | $rm conftest* |
| 21643 | |
| 21644 | ac_outfile=conftest.$ac_objext |
| 21645 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21646 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21647 | _lt_linker_boilerplate=`cat conftest.err` |
| 21648 | $rm conftest* |
| 21649 | |
| 21650 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21651 | # Allow CC to be a program name with arguments. |
| 21652 | lt_save_CC="$CC" |
| 21653 | CC=${F77-"f77"} |
| 21654 | compiler=$CC |
| 21655 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21656 | for cc_temp in $compiler""; do |
| 21657 | case $cc_temp in |
| 21658 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21659 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21660 | \-*) ;; |
| 21661 | *) break;; |
| 21662 | esac |
| 21663 | done |
| 21664 | 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] | 21665 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21667 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21668 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21669 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21670 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21671 | |
| 21672 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21673 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21674 | test "$can_build_shared" = "no" && enable_shared=no |
| 21675 | |
| 21676 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21677 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21678 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21679 | aix3*) |
| 21680 | test "$enable_shared" = yes && enable_static=no |
| 21681 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21682 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21683 | postinstall_cmds='$RANLIB $lib' |
| 21684 | fi |
| 21685 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21686 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21687 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21688 | test "$enable_shared" = yes && enable_static=no |
| 21689 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21690 | ;; |
| 21691 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21692 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21693 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21695 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21696 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21697 | # Make sure either enable_shared or enable_static is yes. |
| 21698 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21699 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21700 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21701 | |
| 21702 | GCC_F77="$G77" |
| 21703 | LD_F77="$LD" |
| 21704 | |
| 21705 | lt_prog_compiler_wl_F77= |
| 21706 | lt_prog_compiler_pic_F77= |
| 21707 | lt_prog_compiler_static_F77= |
| 21708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21709 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21710 | 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] | 21711 | |
| 21712 | if test "$GCC" = yes; then |
| 21713 | lt_prog_compiler_wl_F77='-Wl,' |
| 21714 | lt_prog_compiler_static_F77='-static' |
| 21715 | |
| 21716 | case $host_os in |
| 21717 | aix*) |
| 21718 | # All AIX code is PIC. |
| 21719 | if test "$host_cpu" = ia64; then |
| 21720 | # AIX 5 now supports IA64 processor |
| 21721 | lt_prog_compiler_static_F77='-Bstatic' |
| 21722 | fi |
| 21723 | ;; |
| 21724 | |
| 21725 | amigaos*) |
| 21726 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21727 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21728 | # like `-m68040'. |
| 21729 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21730 | ;; |
| 21731 | |
| 21732 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21733 | # PIC is the default for these OSes. |
| 21734 | ;; |
| 21735 | |
| 21736 | mingw* | pw32* | os2*) |
| 21737 | # This hack is so that the source file can tell whether it is being |
| 21738 | # built for inclusion in a dll (and should export symbols for example). |
| 21739 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21740 | ;; |
| 21741 | |
| 21742 | darwin* | rhapsody*) |
| 21743 | # PIC is the default on this platform |
| 21744 | # Common symbols not allowed in MH_DYLIB files |
| 21745 | lt_prog_compiler_pic_F77='-fno-common' |
| 21746 | ;; |
| 21747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21748 | interix3*) |
| 21749 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21750 | # Instead, we relocate shared libraries at runtime. |
| 21751 | ;; |
| 21752 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21753 | msdosdjgpp*) |
| 21754 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21755 | # on systems that don't support them. |
| 21756 | lt_prog_compiler_can_build_shared_F77=no |
| 21757 | enable_shared=no |
| 21758 | ;; |
| 21759 | |
| 21760 | sysv4*MP*) |
| 21761 | if test -d /usr/nec; then |
| 21762 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21763 | fi |
| 21764 | ;; |
| 21765 | |
| 21766 | hpux*) |
| 21767 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21768 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21769 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21770 | hppa*64*|ia64*) |
| 21771 | # +Z the default |
| 21772 | ;; |
| 21773 | *) |
| 21774 | lt_prog_compiler_pic_F77='-fPIC' |
| 21775 | ;; |
| 21776 | esac |
| 21777 | ;; |
| 21778 | |
| 21779 | *) |
| 21780 | lt_prog_compiler_pic_F77='-fPIC' |
| 21781 | ;; |
| 21782 | esac |
| 21783 | else |
| 21784 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21785 | case $host_os in |
| 21786 | aix*) |
| 21787 | lt_prog_compiler_wl_F77='-Wl,' |
| 21788 | if test "$host_cpu" = ia64; then |
| 21789 | # AIX 5 now supports IA64 processor |
| 21790 | lt_prog_compiler_static_F77='-Bstatic' |
| 21791 | else |
| 21792 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21793 | fi |
| 21794 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21795 | darwin*) |
| 21796 | # PIC is the default on this platform |
| 21797 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21798 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21799 | xlc*) |
| 21800 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21801 | lt_prog_compiler_wl_F77='-Wl,' |
| 21802 | ;; |
| 21803 | esac |
| 21804 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21805 | |
| 21806 | mingw* | pw32* | os2*) |
| 21807 | # This hack is so that the source file can tell whether it is being |
| 21808 | # built for inclusion in a dll (and should export symbols for example). |
| 21809 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21810 | ;; |
| 21811 | |
| 21812 | hpux9* | hpux10* | hpux11*) |
| 21813 | lt_prog_compiler_wl_F77='-Wl,' |
| 21814 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21815 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21816 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21817 | hppa*64*|ia64*) |
| 21818 | # +Z the default |
| 21819 | ;; |
| 21820 | *) |
| 21821 | lt_prog_compiler_pic_F77='+Z' |
| 21822 | ;; |
| 21823 | esac |
| 21824 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21825 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21826 | ;; |
| 21827 | |
| 21828 | irix5* | irix6* | nonstopux*) |
| 21829 | lt_prog_compiler_wl_F77='-Wl,' |
| 21830 | # PIC (with -KPIC) is the default. |
| 21831 | lt_prog_compiler_static_F77='-non_shared' |
| 21832 | ;; |
| 21833 | |
| 21834 | newsos6) |
| 21835 | lt_prog_compiler_pic_F77='-KPIC' |
| 21836 | lt_prog_compiler_static_F77='-Bstatic' |
| 21837 | ;; |
| 21838 | |
| 21839 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21840 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21841 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21842 | lt_prog_compiler_wl_F77='-Wl,' |
| 21843 | lt_prog_compiler_pic_F77='-KPIC' |
| 21844 | lt_prog_compiler_static_F77='-static' |
| 21845 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21846 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21847 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21848 | # which looks to be a dead project) |
| 21849 | lt_prog_compiler_wl_F77='-Wl,' |
| 21850 | lt_prog_compiler_pic_F77='-fpic' |
| 21851 | lt_prog_compiler_static_F77='-Bstatic' |
| 21852 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21853 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21854 | lt_prog_compiler_wl_F77='-Wl,' |
| 21855 | # All Alpha code is PIC. |
| 21856 | lt_prog_compiler_static_F77='-non_shared' |
| 21857 | ;; |
| 21858 | esac |
| 21859 | ;; |
| 21860 | |
| 21861 | osf3* | osf4* | osf5*) |
| 21862 | lt_prog_compiler_wl_F77='-Wl,' |
| 21863 | # All OSF/1 code is PIC. |
| 21864 | lt_prog_compiler_static_F77='-non_shared' |
| 21865 | ;; |
| 21866 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21867 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21868 | lt_prog_compiler_pic_F77='-KPIC' |
| 21869 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21870 | case $cc_basename in |
| 21871 | f77* | f90* | f95*) |
| 21872 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21873 | *) |
| 21874 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21875 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21876 | ;; |
| 21877 | |
| 21878 | sunos4*) |
| 21879 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21880 | lt_prog_compiler_pic_F77='-PIC' |
| 21881 | lt_prog_compiler_static_F77='-Bstatic' |
| 21882 | ;; |
| 21883 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21884 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21885 | lt_prog_compiler_wl_F77='-Wl,' |
| 21886 | lt_prog_compiler_pic_F77='-KPIC' |
| 21887 | lt_prog_compiler_static_F77='-Bstatic' |
| 21888 | ;; |
| 21889 | |
| 21890 | sysv4*MP*) |
| 21891 | if test -d /usr/nec ;then |
| 21892 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21893 | lt_prog_compiler_static_F77='-Bstatic' |
| 21894 | fi |
| 21895 | ;; |
| 21896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21897 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21898 | lt_prog_compiler_wl_F77='-Wl,' |
| 21899 | lt_prog_compiler_pic_F77='-KPIC' |
| 21900 | lt_prog_compiler_static_F77='-Bstatic' |
| 21901 | ;; |
| 21902 | |
| 21903 | unicos*) |
| 21904 | lt_prog_compiler_wl_F77='-Wl,' |
| 21905 | lt_prog_compiler_can_build_shared_F77=no |
| 21906 | ;; |
| 21907 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21908 | uts4*) |
| 21909 | lt_prog_compiler_pic_F77='-pic' |
| 21910 | lt_prog_compiler_static_F77='-Bstatic' |
| 21911 | ;; |
| 21912 | |
| 21913 | *) |
| 21914 | lt_prog_compiler_can_build_shared_F77=no |
| 21915 | ;; |
| 21916 | esac |
| 21917 | fi |
| 21918 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21919 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21920 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21921 | |
| 21922 | # |
| 21923 | # Check to make sure the PIC flag actually works. |
| 21924 | # |
| 21925 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21927 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21928 | 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] | 21929 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21931 | else |
| 21932 | lt_prog_compiler_pic_works_F77=no |
| 21933 | ac_outfile=conftest.$ac_objext |
| 21934 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21935 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21936 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21937 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21938 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21939 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21940 | # The option is referenced via a variable to avoid confusing sed. |
| 21941 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21942 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21943 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21944 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 21945 | (eval echo "\"\$as_me:21945: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21946 | (eval "$lt_compile" 2>conftest.err) |
| 21947 | ac_status=$? |
| 21948 | cat conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 21949 | echo "$as_me:21949: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21950 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21951 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21952 | # So say no if there are warnings other than the usual output. |
| 21953 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21954 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21955 | 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] | 21956 | lt_prog_compiler_pic_works_F77=yes |
| 21957 | fi |
| 21958 | fi |
| 21959 | $rm conftest* |
| 21960 | |
| 21961 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21962 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21963 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21964 | |
| 21965 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21966 | case $lt_prog_compiler_pic_F77 in |
| 21967 | "" | " "*) ;; |
| 21968 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21969 | esac |
| 21970 | else |
| 21971 | lt_prog_compiler_pic_F77= |
| 21972 | lt_prog_compiler_can_build_shared_F77=no |
| 21973 | fi |
| 21974 | |
| 21975 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21976 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21977 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21978 | *djgpp*) |
| 21979 | lt_prog_compiler_pic_F77= |
| 21980 | ;; |
| 21981 | *) |
| 21982 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21983 | ;; |
| 21984 | esac |
| 21985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21986 | # |
| 21987 | # Check to make sure the static flag actually works. |
| 21988 | # |
| 21989 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21990 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21991 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21992 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21994 | else |
| 21995 | lt_prog_compiler_static_works_F77=no |
| 21996 | save_LDFLAGS="$LDFLAGS" |
| 21997 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21998 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21999 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 22000 | # The linker can only warn and ignore the option if not recognized |
| 22001 | # So say no if there are warnings |
| 22002 | if test -s conftest.err; then |
| 22003 | # Append any errors to the config.log. |
| 22004 | cat conftest.err 1>&5 |
| 22005 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 22006 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 22007 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 22008 | lt_prog_compiler_static_works_F77=yes |
| 22009 | fi |
| 22010 | else |
| 22011 | lt_prog_compiler_static_works_F77=yes |
| 22012 | fi |
| 22013 | fi |
| 22014 | $rm conftest* |
| 22015 | LDFLAGS="$save_LDFLAGS" |
| 22016 | |
| 22017 | fi |
| 22018 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 22019 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 22020 | |
| 22021 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 22022 | : |
| 22023 | else |
| 22024 | lt_prog_compiler_static_F77= |
| 22025 | fi |
| 22026 | |
| 22027 | |
| 22028 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 22029 | 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] | 22030 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 22031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22032 | else |
| 22033 | lt_cv_prog_compiler_c_o_F77=no |
| 22034 | $rm -r conftest 2>/dev/null |
| 22035 | mkdir conftest |
| 22036 | cd conftest |
| 22037 | mkdir out |
| 22038 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22039 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22040 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 22041 | # Insert the option either (1) after the last *FLAGS variable, or |
| 22042 | # (2) before a word containing "conftest.", or (3) at the end. |
| 22043 | # Note that $ac_compile itself does not contain backslashes and begins |
| 22044 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 22045 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22046 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22047 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 22048 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 22049 | (eval echo "\"\$as_me:22049: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22050 | (eval "$lt_compile" 2>out/conftest.err) |
| 22051 | ac_status=$? |
| 22052 | cat out/conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 22053 | echo "$as_me:22053: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22054 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 22055 | then |
| 22056 | # The compiler can only warn and ignore the option if not recognized |
| 22057 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22058 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 22059 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 22060 | 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] | 22061 | lt_cv_prog_compiler_c_o_F77=yes |
| 22062 | fi |
| 22063 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22064 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22065 | $rm conftest* |
| 22066 | # SGI C++ compiler will create directory out/ii_files/ for |
| 22067 | # template instantiation |
| 22068 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 22069 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22070 | cd .. |
| 22071 | rmdir conftest |
| 22072 | $rm conftest* |
| 22073 | |
| 22074 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22075 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 22076 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22077 | |
| 22078 | |
| 22079 | hard_links="nottested" |
| 22080 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 22081 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22082 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 22083 | 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] | 22084 | hard_links=yes |
| 22085 | $rm conftest* |
| 22086 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 22087 | touch conftest.a |
| 22088 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 22089 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22090 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 22091 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22092 | if test "$hard_links" = no; then |
| 22093 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 22094 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 22095 | need_locks=warn |
| 22096 | fi |
| 22097 | else |
| 22098 | need_locks=no |
| 22099 | fi |
| 22100 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22101 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 22102 | 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] | 22103 | |
| 22104 | runpath_var= |
| 22105 | allow_undefined_flag_F77= |
| 22106 | enable_shared_with_static_runtimes_F77=no |
| 22107 | archive_cmds_F77= |
| 22108 | archive_expsym_cmds_F77= |
| 22109 | old_archive_From_new_cmds_F77= |
| 22110 | old_archive_from_expsyms_cmds_F77= |
| 22111 | export_dynamic_flag_spec_F77= |
| 22112 | whole_archive_flag_spec_F77= |
| 22113 | thread_safe_flag_spec_F77= |
| 22114 | hardcode_libdir_flag_spec_F77= |
| 22115 | hardcode_libdir_flag_spec_ld_F77= |
| 22116 | hardcode_libdir_separator_F77= |
| 22117 | hardcode_direct_F77=no |
| 22118 | hardcode_minus_L_F77=no |
| 22119 | hardcode_shlibpath_var_F77=unsupported |
| 22120 | link_all_deplibs_F77=unknown |
| 22121 | hardcode_automatic_F77=no |
| 22122 | module_cmds_F77= |
| 22123 | module_expsym_cmds_F77= |
| 22124 | always_export_symbols_F77=no |
| 22125 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 22126 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 22127 | # included in the symbol list |
| 22128 | include_expsyms_F77= |
| 22129 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 22130 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 22131 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 22132 | # as well as any symbol that contains `d'. |
| 22133 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 22134 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 22135 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 22136 | # the symbol is explicitly referenced. Since portable code cannot |
| 22137 | # rely on this symbol name, it's probably fine to never include it in |
| 22138 | # preloaded symbol tables. |
| 22139 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22140 | # Just being paranoid about ensuring that cc_basename is set. |
| 22141 | for cc_temp in $compiler""; do |
| 22142 | case $cc_temp in |
| 22143 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 22144 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 22145 | \-*) ;; |
| 22146 | *) break;; |
| 22147 | esac |
| 22148 | done |
| 22149 | 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] | 22150 | |
| 22151 | case $host_os in |
| 22152 | cygwin* | mingw* | pw32*) |
| 22153 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 22154 | # When not using gcc, we currently assume that we are using |
| 22155 | # Microsoft Visual C++. |
| 22156 | if test "$GCC" != yes; then |
| 22157 | with_gnu_ld=no |
| 22158 | fi |
| 22159 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22160 | interix*) |
| 22161 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 22162 | with_gnu_ld=yes |
| 22163 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22164 | openbsd*) |
| 22165 | with_gnu_ld=no |
| 22166 | ;; |
| 22167 | esac |
| 22168 | |
| 22169 | ld_shlibs_F77=yes |
| 22170 | if test "$with_gnu_ld" = yes; then |
| 22171 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 22172 | wlarc='${wl}' |
| 22173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22174 | # Set some defaults for GNU ld with shared library support. These |
| 22175 | # are reset later if shared libraries are not supported. Putting them |
| 22176 | # here allows them to be overridden if necessary. |
| 22177 | runpath_var=LD_RUN_PATH |
| 22178 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 22179 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 22180 | # ancient GNU ld didn't support --whole-archive et. al. |
| 22181 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 22182 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 22183 | else |
| 22184 | whole_archive_flag_spec_F77= |
| 22185 | fi |
| 22186 | supports_anon_versioning=no |
| 22187 | case `$LD -v 2>/dev/null` in |
| 22188 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 22189 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 22190 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 22191 | *\ 2.11.*) ;; # other 2.11 versions |
| 22192 | *) supports_anon_versioning=yes ;; |
| 22193 | esac |
| 22194 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22195 | # See if GNU ld supports shared libraries. |
| 22196 | case $host_os in |
| 22197 | aix3* | aix4* | aix5*) |
| 22198 | # On AIX/PPC, the GNU linker is very broken |
| 22199 | if test "$host_cpu" != ia64; then |
| 22200 | ld_shlibs_F77=no |
| 22201 | cat <<EOF 1>&2 |
| 22202 | |
| 22203 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 22204 | *** to be unable to reliably create shared libraries on AIX. |
| 22205 | *** Therefore, libtool is disabling shared libraries support. If you |
| 22206 | *** really care for shared libraries, you may want to modify your PATH |
| 22207 | *** so that a non-GNU linker is found, and then restart. |
| 22208 | |
| 22209 | EOF |
| 22210 | fi |
| 22211 | ;; |
| 22212 | |
| 22213 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22214 | 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] | 22215 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22216 | hardcode_minus_L_F77=yes |
| 22217 | |
| 22218 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 22219 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 22220 | # to version 4, is to share data among multiple programs linked |
| 22221 | # with the same dynamic library. Since this doesn't match the |
| 22222 | # behavior of shared libraries on other platforms, we can't use |
| 22223 | # them. |
| 22224 | ld_shlibs_F77=no |
| 22225 | ;; |
| 22226 | |
| 22227 | beos*) |
| 22228 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22229 | allow_undefined_flag_F77=unsupported |
| 22230 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 22231 | # support --undefined. This deserves some investigation. FIXME |
| 22232 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22233 | else |
| 22234 | ld_shlibs_F77=no |
| 22235 | fi |
| 22236 | ;; |
| 22237 | |
| 22238 | cygwin* | mingw* | pw32*) |
| 22239 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 22240 | # as there is no search path for DLLs. |
| 22241 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22242 | allow_undefined_flag_F77=unsupported |
| 22243 | always_export_symbols_F77=no |
| 22244 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22245 | 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] | 22246 | |
| 22247 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22248 | 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] | 22249 | # If the export-symbols file already is a .def file (1st line |
| 22250 | # is EXPORTS), use it as is; otherwise, prepend... |
| 22251 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 22252 | cp $export_symbols $output_objdir/$soname.def; |
| 22253 | else |
| 22254 | echo EXPORTS > $output_objdir/$soname.def; |
| 22255 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22256 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22257 | $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] | 22258 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22259 | ld_shlibs_F77=no |
| 22260 | fi |
| 22261 | ;; |
| 22262 | |
| 22263 | interix3*) |
| 22264 | hardcode_direct_F77=no |
| 22265 | hardcode_shlibpath_var_F77=no |
| 22266 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22267 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22268 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 22269 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 22270 | # default) and relocated if they conflict, which is a slow very memory |
| 22271 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 22272 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 22273 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 22274 | 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' |
| 22275 | 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' |
| 22276 | ;; |
| 22277 | |
| 22278 | linux*) |
| 22279 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22280 | tmp_addflag= |
| 22281 | case $cc_basename,$host_cpu in |
| 22282 | pgcc*) # Portland Group C compiler |
| 22283 | 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' |
| 22284 | tmp_addflag=' $pic_flag' |
| 22285 | ;; |
| 22286 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 22287 | 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' |
| 22288 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 22289 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 22290 | tmp_addflag=' -i_dynamic' ;; |
| 22291 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 22292 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 22293 | ifc* | ifort*) # Intel Fortran compiler |
| 22294 | tmp_addflag=' -nofor_main' ;; |
| 22295 | esac |
| 22296 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22297 | |
| 22298 | if test $supports_anon_versioning = yes; then |
| 22299 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 22300 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 22301 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 22302 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 22303 | fi |
| 22304 | else |
| 22305 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22306 | fi |
| 22307 | ;; |
| 22308 | |
| 22309 | netbsd*) |
| 22310 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22311 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 22312 | wlarc= |
| 22313 | else |
| 22314 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22315 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22316 | fi |
| 22317 | ;; |
| 22318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22319 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22320 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 22321 | ld_shlibs_F77=no |
| 22322 | cat <<EOF 1>&2 |
| 22323 | |
| 22324 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 22325 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 22326 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22327 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 22328 | *** your PATH or compiler configuration so that the native linker is |
| 22329 | *** used, and then restart. |
| 22330 | |
| 22331 | EOF |
| 22332 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22333 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22334 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22335 | else |
| 22336 | ld_shlibs_F77=no |
| 22337 | fi |
| 22338 | ;; |
| 22339 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22340 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 22341 | case `$LD -v 2>&1` in |
| 22342 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 22343 | ld_shlibs_F77=no |
| 22344 | cat <<_LT_EOF 1>&2 |
| 22345 | |
| 22346 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 22347 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 22348 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22349 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 22350 | *** your PATH or compiler configuration so that the native linker is |
| 22351 | *** used, and then restart. |
| 22352 | |
| 22353 | _LT_EOF |
| 22354 | ;; |
| 22355 | *) |
| 22356 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22357 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 22358 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 22359 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 22360 | else |
| 22361 | ld_shlibs_F77=no |
| 22362 | fi |
| 22363 | ;; |
| 22364 | esac |
| 22365 | ;; |
| 22366 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22367 | sunos4*) |
| 22368 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22369 | wlarc= |
| 22370 | hardcode_direct_F77=yes |
| 22371 | hardcode_shlibpath_var_F77=no |
| 22372 | ;; |
| 22373 | |
| 22374 | *) |
| 22375 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22376 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22377 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22378 | else |
| 22379 | ld_shlibs_F77=no |
| 22380 | fi |
| 22381 | ;; |
| 22382 | esac |
| 22383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22384 | if test "$ld_shlibs_F77" = no; then |
| 22385 | runpath_var= |
| 22386 | hardcode_libdir_flag_spec_F77= |
| 22387 | export_dynamic_flag_spec_F77= |
| 22388 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22389 | fi |
| 22390 | else |
| 22391 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 22392 | case $host_os in |
| 22393 | aix3*) |
| 22394 | allow_undefined_flag_F77=unsupported |
| 22395 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22396 | 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] | 22397 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 22398 | # are no directories specified by -L. |
| 22399 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22400 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22401 | # Neither direct hardcoding nor static linking is supported with a |
| 22402 | # broken collect2. |
| 22403 | hardcode_direct_F77=unsupported |
| 22404 | fi |
| 22405 | ;; |
| 22406 | |
| 22407 | aix4* | aix5*) |
| 22408 | if test "$host_cpu" = ia64; then |
| 22409 | # On IA64, the linker does run time linking by default, so we don't |
| 22410 | # have to do anything special. |
| 22411 | aix_use_runtimelinking=no |
| 22412 | exp_sym_flag='-Bexport' |
| 22413 | no_entry_flag="" |
| 22414 | else |
| 22415 | # If we're using GNU nm, then we don't want the "-C" option. |
| 22416 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 22417 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 22418 | 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' |
| 22419 | else |
| 22420 | 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' |
| 22421 | fi |
| 22422 | aix_use_runtimelinking=no |
| 22423 | |
| 22424 | # Test if we are trying to use run time linking or normal |
| 22425 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 22426 | # need to do runtime linking. |
| 22427 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 22428 | for ld_flag in $LDFLAGS; do |
| 22429 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 22430 | aix_use_runtimelinking=yes |
| 22431 | break |
| 22432 | fi |
| 22433 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22434 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22435 | esac |
| 22436 | |
| 22437 | exp_sym_flag='-bexport' |
| 22438 | no_entry_flag='-bnoentry' |
| 22439 | fi |
| 22440 | |
| 22441 | # When large executables or shared objects are built, AIX ld can |
| 22442 | # have problems creating the table of contents. If linking a library |
| 22443 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 22444 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 22445 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 22446 | |
| 22447 | archive_cmds_F77='' |
| 22448 | hardcode_direct_F77=yes |
| 22449 | hardcode_libdir_separator_F77=':' |
| 22450 | link_all_deplibs_F77=yes |
| 22451 | |
| 22452 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22453 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22454 | # We only want to do this on AIX 4.2 and lower, the check |
| 22455 | # below for broken collect2 doesn't work under 4.3+ |
| 22456 | collect2name=`${CC} -print-prog-name=collect2` |
| 22457 | if test -f "$collect2name" && \ |
| 22458 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 22459 | then |
| 22460 | # We have reworked collect2 |
| 22461 | hardcode_direct_F77=yes |
| 22462 | else |
| 22463 | # We have old collect2 |
| 22464 | hardcode_direct_F77=unsupported |
| 22465 | # It fails to find uninstalled libraries when the uninstalled |
| 22466 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 22467 | # to unsupported forces relinking |
| 22468 | hardcode_minus_L_F77=yes |
| 22469 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22470 | hardcode_libdir_separator_F77= |
| 22471 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22472 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22473 | esac |
| 22474 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22475 | if test "$aix_use_runtimelinking" = yes; then |
| 22476 | shared_flag="$shared_flag "'${wl}-G' |
| 22477 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22478 | else |
| 22479 | # not using gcc |
| 22480 | if test "$host_cpu" = ia64; then |
| 22481 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22482 | # chokes on -Wl,-G. The following line is correct: |
| 22483 | shared_flag='-G' |
| 22484 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22485 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22486 | shared_flag='${wl}-G' |
| 22487 | else |
| 22488 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22489 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22490 | fi |
| 22491 | fi |
| 22492 | |
| 22493 | # It seems that -bexpall does not export symbols beginning with |
| 22494 | # underscore (_), so it is better to generate a list of symbols to export. |
| 22495 | always_export_symbols_F77=yes |
| 22496 | if test "$aix_use_runtimelinking" = yes; then |
| 22497 | # Warning - without using the other runtime loading flags (-brtl), |
| 22498 | # -berok will link without error, but may produce a broken library. |
| 22499 | allow_undefined_flag_F77='-berok' |
| 22500 | # Determine the default libpath from the value encoded in an empty executable. |
| 22501 | cat >conftest.$ac_ext <<_ACEOF |
| 22502 | program main |
| 22503 | |
| 22504 | end |
| 22505 | _ACEOF |
| 22506 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22507 | if { (ac_try="$ac_link" |
| 22508 | case "(($ac_try" in |
| 22509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22510 | *) ac_try_echo=$ac_try;; |
| 22511 | esac |
| 22512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22513 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22514 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22516 | rm -f conftest.er1 |
| 22517 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22519 | (exit $ac_status); } && |
| 22520 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22521 | { (case "(($ac_try" in |
| 22522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22523 | *) ac_try_echo=$ac_try;; |
| 22524 | esac |
| 22525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22526 | (eval "$ac_try") 2>&5 |
| 22527 | ac_status=$? |
| 22528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22529 | (exit $ac_status); }; } && |
| 22530 | { ac_try='test -s conftest$ac_exeext' |
| 22531 | { (case "(($ac_try" in |
| 22532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22533 | *) ac_try_echo=$ac_try;; |
| 22534 | esac |
| 22535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22536 | (eval "$ac_try") 2>&5 |
| 22537 | ac_status=$? |
| 22538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22539 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22540 | |
| 22541 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22542 | }'` |
| 22543 | # Check for a 64-bit object if we didn't find anything. |
| 22544 | 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; } |
| 22545 | }'`; fi |
| 22546 | else |
| 22547 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22549 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22550 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22551 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22552 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22553 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22554 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22555 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22556 | |
| 22557 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22558 | 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] | 22559 | else |
| 22560 | if test "$host_cpu" = ia64; then |
| 22561 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 22562 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22563 | 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] | 22564 | else |
| 22565 | # Determine the default libpath from the value encoded in an empty executable. |
| 22566 | cat >conftest.$ac_ext <<_ACEOF |
| 22567 | program main |
| 22568 | |
| 22569 | end |
| 22570 | _ACEOF |
| 22571 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22572 | if { (ac_try="$ac_link" |
| 22573 | case "(($ac_try" in |
| 22574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22575 | *) ac_try_echo=$ac_try;; |
| 22576 | esac |
| 22577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22578 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22579 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22581 | rm -f conftest.er1 |
| 22582 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22584 | (exit $ac_status); } && |
| 22585 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22586 | { (case "(($ac_try" in |
| 22587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22588 | *) ac_try_echo=$ac_try;; |
| 22589 | esac |
| 22590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22591 | (eval "$ac_try") 2>&5 |
| 22592 | ac_status=$? |
| 22593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22594 | (exit $ac_status); }; } && |
| 22595 | { ac_try='test -s conftest$ac_exeext' |
| 22596 | { (case "(($ac_try" in |
| 22597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22598 | *) ac_try_echo=$ac_try;; |
| 22599 | esac |
| 22600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22601 | (eval "$ac_try") 2>&5 |
| 22602 | ac_status=$? |
| 22603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22604 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22605 | |
| 22606 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22607 | }'` |
| 22608 | # Check for a 64-bit object if we didn't find anything. |
| 22609 | 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; } |
| 22610 | }'`; fi |
| 22611 | else |
| 22612 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22615 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22616 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22617 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22618 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22619 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22620 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22621 | |
| 22622 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22623 | # Warning - without using the other run time loading flags, |
| 22624 | # -berok will link without error, but may produce a broken library. |
| 22625 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22626 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22627 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22628 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22629 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22630 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22631 | 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] | 22632 | fi |
| 22633 | fi |
| 22634 | ;; |
| 22635 | |
| 22636 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22637 | 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] | 22638 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22639 | hardcode_minus_L_F77=yes |
| 22640 | # see comment about different semantics on the GNU ld section |
| 22641 | ld_shlibs_F77=no |
| 22642 | ;; |
| 22643 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22644 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22645 | export_dynamic_flag_spec_F77=-rdynamic |
| 22646 | ;; |
| 22647 | |
| 22648 | cygwin* | mingw* | pw32*) |
| 22649 | # When not using gcc, we currently assume that we are using |
| 22650 | # Microsoft Visual C++. |
| 22651 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22652 | # no search path for DLLs. |
| 22653 | hardcode_libdir_flag_spec_F77=' ' |
| 22654 | allow_undefined_flag_F77=unsupported |
| 22655 | # Tell ltmain to make .lib files, not .a files. |
| 22656 | libext=lib |
| 22657 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22658 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22659 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22660 | 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] | 22661 | # The linker will automatically build a .lib file if we build a DLL. |
| 22662 | old_archive_From_new_cmds_F77='true' |
| 22663 | # FIXME: Should let the user specify the lib program. |
| 22664 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22665 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22666 | enable_shared_with_static_runtimes_F77=yes |
| 22667 | ;; |
| 22668 | |
| 22669 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22670 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22671 | rhapsody* | darwin1.[012]) |
| 22672 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22673 | ;; |
| 22674 | *) # Darwin 1.3 on |
| 22675 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22676 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22677 | else |
| 22678 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22679 | 10.[012]) |
| 22680 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22681 | ;; |
| 22682 | 10.*) |
| 22683 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22684 | ;; |
| 22685 | esac |
| 22686 | fi |
| 22687 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22688 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22689 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22690 | hardcode_direct_F77=no |
| 22691 | hardcode_automatic_F77=yes |
| 22692 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22693 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22694 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22695 | if test "$GCC" = yes ; then |
| 22696 | output_verbose_link_cmd='echo' |
| 22697 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22698 | 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] | 22699 | # 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] | 22700 | 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}' |
| 22701 | 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] | 22702 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22703 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22704 | xlc*) |
| 22705 | output_verbose_link_cmd='echo' |
| 22706 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22707 | 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] | 22708 | # 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] | 22709 | 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}' |
| 22710 | 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] | 22711 | ;; |
| 22712 | *) |
| 22713 | ld_shlibs_F77=no |
| 22714 | ;; |
| 22715 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22716 | fi |
| 22717 | ;; |
| 22718 | |
| 22719 | dgux*) |
| 22720 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22721 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22722 | hardcode_shlibpath_var_F77=no |
| 22723 | ;; |
| 22724 | |
| 22725 | freebsd1*) |
| 22726 | ld_shlibs_F77=no |
| 22727 | ;; |
| 22728 | |
| 22729 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22730 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22731 | # does not break anything, and helps significantly (at the cost of a little |
| 22732 | # extra space). |
| 22733 | freebsd2.2*) |
| 22734 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22735 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22736 | hardcode_direct_F77=yes |
| 22737 | hardcode_shlibpath_var_F77=no |
| 22738 | ;; |
| 22739 | |
| 22740 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22741 | freebsd2*) |
| 22742 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22743 | hardcode_direct_F77=yes |
| 22744 | hardcode_minus_L_F77=yes |
| 22745 | hardcode_shlibpath_var_F77=no |
| 22746 | ;; |
| 22747 | |
| 22748 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22749 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22750 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22751 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22752 | hardcode_direct_F77=yes |
| 22753 | hardcode_shlibpath_var_F77=no |
| 22754 | ;; |
| 22755 | |
| 22756 | hpux9*) |
| 22757 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22758 | 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] | 22759 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22760 | 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] | 22761 | fi |
| 22762 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22763 | hardcode_libdir_separator_F77=: |
| 22764 | hardcode_direct_F77=yes |
| 22765 | |
| 22766 | # hardcode_minus_L: Not really in the search PATH, |
| 22767 | # but as the default location of the library. |
| 22768 | hardcode_minus_L_F77=yes |
| 22769 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22770 | ;; |
| 22771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22772 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22773 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22774 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22775 | else |
| 22776 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22777 | fi |
| 22778 | if test "$with_gnu_ld" = no; then |
| 22779 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22780 | hardcode_libdir_separator_F77=: |
| 22781 | |
| 22782 | hardcode_direct_F77=yes |
| 22783 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22784 | |
| 22785 | # hardcode_minus_L: Not really in the search PATH, |
| 22786 | # but as the default location of the library. |
| 22787 | hardcode_minus_L_F77=yes |
| 22788 | fi |
| 22789 | ;; |
| 22790 | |
| 22791 | hpux11*) |
| 22792 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22793 | case $host_cpu in |
| 22794 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22795 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22796 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22797 | ia64*) |
| 22798 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22799 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22800 | *) |
| 22801 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22802 | ;; |
| 22803 | esac |
| 22804 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22805 | case $host_cpu in |
| 22806 | hppa*64*) |
| 22807 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22808 | ;; |
| 22809 | ia64*) |
| 22810 | 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] | 22811 | ;; |
| 22812 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22813 | 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] | 22814 | ;; |
| 22815 | esac |
| 22816 | fi |
| 22817 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22818 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22819 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22821 | case $host_cpu in |
| 22822 | hppa*64*|ia64*) |
| 22823 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22824 | hardcode_direct_F77=no |
| 22825 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22826 | ;; |
| 22827 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22828 | hardcode_direct_F77=yes |
| 22829 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22830 | |
| 22831 | # hardcode_minus_L: Not really in the search PATH, |
| 22832 | # but as the default location of the library. |
| 22833 | hardcode_minus_L_F77=yes |
| 22834 | ;; |
| 22835 | esac |
| 22836 | fi |
| 22837 | ;; |
| 22838 | |
| 22839 | irix5* | irix6* | nonstopux*) |
| 22840 | if test "$GCC" = yes; then |
| 22841 | 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' |
| 22842 | else |
| 22843 | 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' |
| 22844 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22845 | fi |
| 22846 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22847 | hardcode_libdir_separator_F77=: |
| 22848 | link_all_deplibs_F77=yes |
| 22849 | ;; |
| 22850 | |
| 22851 | netbsd*) |
| 22852 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22853 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22854 | else |
| 22855 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22856 | fi |
| 22857 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22858 | hardcode_direct_F77=yes |
| 22859 | hardcode_shlibpath_var_F77=no |
| 22860 | ;; |
| 22861 | |
| 22862 | newsos6) |
| 22863 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22864 | hardcode_direct_F77=yes |
| 22865 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22866 | hardcode_libdir_separator_F77=: |
| 22867 | hardcode_shlibpath_var_F77=no |
| 22868 | ;; |
| 22869 | |
| 22870 | openbsd*) |
| 22871 | hardcode_direct_F77=yes |
| 22872 | hardcode_shlibpath_var_F77=no |
| 22873 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22874 | 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] | 22875 | 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] | 22876 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22877 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22878 | else |
| 22879 | case $host_os in |
| 22880 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22881 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22882 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22883 | ;; |
| 22884 | *) |
| 22885 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22886 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22887 | ;; |
| 22888 | esac |
| 22889 | fi |
| 22890 | ;; |
| 22891 | |
| 22892 | os2*) |
| 22893 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22894 | hardcode_minus_L_F77=yes |
| 22895 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22896 | 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] | 22897 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22898 | ;; |
| 22899 | |
| 22900 | osf3*) |
| 22901 | if test "$GCC" = yes; then |
| 22902 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22903 | 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' |
| 22904 | else |
| 22905 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22906 | 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' |
| 22907 | fi |
| 22908 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22909 | hardcode_libdir_separator_F77=: |
| 22910 | ;; |
| 22911 | |
| 22912 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22913 | if test "$GCC" = yes; then |
| 22914 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22915 | 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' |
| 22916 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22917 | else |
| 22918 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22919 | 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] | 22920 | 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] | 22921 | $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] | 22922 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22923 | # Both c and cxx compiler support -rpath directly |
| 22924 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22925 | fi |
| 22926 | hardcode_libdir_separator_F77=: |
| 22927 | ;; |
| 22928 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22929 | solaris*) |
| 22930 | no_undefined_flag_F77=' -z text' |
| 22931 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22932 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22933 | 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] | 22934 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22935 | $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] | 22936 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22937 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22938 | 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] | 22939 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22940 | $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] | 22941 | fi |
| 22942 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22943 | hardcode_shlibpath_var_F77=no |
| 22944 | case $host_os in |
| 22945 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22946 | *) |
| 22947 | # The compiler driver will combine linker options so we |
| 22948 | # cannot just pass the convience library names through |
| 22949 | # without $wl, iff we do not link with $LD. |
| 22950 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22951 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22952 | case $wlarc in |
| 22953 | '') |
| 22954 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22955 | *) |
| 22956 | 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' ;; |
| 22957 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22958 | esac |
| 22959 | link_all_deplibs_F77=yes |
| 22960 | ;; |
| 22961 | |
| 22962 | sunos4*) |
| 22963 | if test "x$host_vendor" = xsequent; then |
| 22964 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22965 | # files that make .init and .fini sections work. |
| 22966 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22967 | else |
| 22968 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22969 | fi |
| 22970 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22971 | hardcode_direct_F77=yes |
| 22972 | hardcode_minus_L_F77=yes |
| 22973 | hardcode_shlibpath_var_F77=no |
| 22974 | ;; |
| 22975 | |
| 22976 | sysv4) |
| 22977 | case $host_vendor in |
| 22978 | sni) |
| 22979 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22980 | hardcode_direct_F77=yes # is this really true??? |
| 22981 | ;; |
| 22982 | siemens) |
| 22983 | ## LD is ld it makes a PLAMLIB |
| 22984 | ## CC just makes a GrossModule. |
| 22985 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22986 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22987 | hardcode_direct_F77=no |
| 22988 | ;; |
| 22989 | motorola) |
| 22990 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22991 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22992 | ;; |
| 22993 | esac |
| 22994 | runpath_var='LD_RUN_PATH' |
| 22995 | hardcode_shlibpath_var_F77=no |
| 22996 | ;; |
| 22997 | |
| 22998 | sysv4.3*) |
| 22999 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23000 | hardcode_shlibpath_var_F77=no |
| 23001 | export_dynamic_flag_spec_F77='-Bexport' |
| 23002 | ;; |
| 23003 | |
| 23004 | sysv4*MP*) |
| 23005 | if test -d /usr/nec; then |
| 23006 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23007 | hardcode_shlibpath_var_F77=no |
| 23008 | runpath_var=LD_RUN_PATH |
| 23009 | hardcode_runpath_var=yes |
| 23010 | ld_shlibs_F77=yes |
| 23011 | fi |
| 23012 | ;; |
| 23013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23014 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 23015 | no_undefined_flag_F77='${wl}-z,text' |
| 23016 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23017 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23018 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23019 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23020 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23021 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23022 | 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] | 23023 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23024 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23025 | 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] | 23026 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23027 | ;; |
| 23028 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23029 | sysv5* | sco3.2v5* | sco5v6*) |
| 23030 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 23031 | # link with -lc, and that would cause any symbols used from libc to |
| 23032 | # always be unresolved, which means just about no library would |
| 23033 | # ever link correctly. If we're not using GNU ld we use -z text |
| 23034 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 23035 | # as -z defs. |
| 23036 | no_undefined_flag_F77='${wl}-z,text' |
| 23037 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 23038 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23039 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23040 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 23041 | hardcode_libdir_separator_F77=':' |
| 23042 | link_all_deplibs_F77=yes |
| 23043 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23044 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23045 | |
| 23046 | if test "$GCC" = yes; then |
| 23047 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23048 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23049 | else |
| 23050 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23051 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23052 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23053 | ;; |
| 23054 | |
| 23055 | uts4*) |
| 23056 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23057 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 23058 | hardcode_shlibpath_var_F77=no |
| 23059 | ;; |
| 23060 | |
| 23061 | *) |
| 23062 | ld_shlibs_F77=no |
| 23063 | ;; |
| 23064 | esac |
| 23065 | fi |
| 23066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23067 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 23068 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23069 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 23070 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23071 | # |
| 23072 | # Do we need to explicitly link libc? |
| 23073 | # |
| 23074 | case "x$archive_cmds_need_lc_F77" in |
| 23075 | x|xyes) |
| 23076 | # Assume -lc should be added |
| 23077 | archive_cmds_need_lc_F77=yes |
| 23078 | |
| 23079 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 23080 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23081 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23082 | # FIXME: we may have to deal with multi-command sequences. |
| 23083 | ;; |
| 23084 | '$CC '*) |
| 23085 | # Test whether the compiler implicitly links with -lc since on some |
| 23086 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 23087 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23088 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 23089 | 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] | 23090 | $rm conftest* |
| 23091 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23092 | |
| 23093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23094 | (eval $ac_compile) 2>&5 |
| 23095 | ac_status=$? |
| 23096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23097 | (exit $ac_status); } 2>conftest.err; then |
| 23098 | soname=conftest |
| 23099 | lib=conftest |
| 23100 | libobjs=conftest.$ac_objext |
| 23101 | deplibs= |
| 23102 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23103 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23104 | compiler_flags=-v |
| 23105 | linker_flags=-v |
| 23106 | verstring= |
| 23107 | output_objdir=. |
| 23108 | libname=conftest |
| 23109 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 23110 | allow_undefined_flag_F77= |
| 23111 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 23112 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 23113 | ac_status=$? |
| 23114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23115 | (exit $ac_status); } |
| 23116 | then |
| 23117 | archive_cmds_need_lc_F77=no |
| 23118 | else |
| 23119 | archive_cmds_need_lc_F77=yes |
| 23120 | fi |
| 23121 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 23122 | else |
| 23123 | cat conftest.err 1>&5 |
| 23124 | fi |
| 23125 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23126 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 23127 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23128 | ;; |
| 23129 | esac |
| 23130 | fi |
| 23131 | ;; |
| 23132 | esac |
| 23133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23134 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 23135 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23136 | library_names_spec= |
| 23137 | libname_spec='lib$name' |
| 23138 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23139 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23140 | postinstall_cmds= |
| 23141 | postuninstall_cmds= |
| 23142 | finish_cmds= |
| 23143 | finish_eval= |
| 23144 | shlibpath_var= |
| 23145 | shlibpath_overrides_runpath=unknown |
| 23146 | version_type=none |
| 23147 | dynamic_linker="$host_os ld.so" |
| 23148 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 23149 | if test "$GCC" = yes; then |
| 23150 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 23151 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 23152 | # if the path contains ";" then we assume it to be the separator |
| 23153 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 23154 | # assumed that no part of a normal pathname contains ";" but that should |
| 23155 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 23156 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 23157 | else |
| 23158 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 23159 | fi |
| 23160 | else |
| 23161 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 23162 | fi |
| 23163 | need_lib_prefix=unknown |
| 23164 | hardcode_into_libs=no |
| 23165 | |
| 23166 | # when you set need_version to no, make sure it does not cause -set_version |
| 23167 | # flags to be left without arguments |
| 23168 | need_version=unknown |
| 23169 | |
| 23170 | case $host_os in |
| 23171 | aix3*) |
| 23172 | version_type=linux |
| 23173 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 23174 | shlibpath_var=LIBPATH |
| 23175 | |
| 23176 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 23177 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23178 | ;; |
| 23179 | |
| 23180 | aix4* | aix5*) |
| 23181 | version_type=linux |
| 23182 | need_lib_prefix=no |
| 23183 | need_version=no |
| 23184 | hardcode_into_libs=yes |
| 23185 | if test "$host_cpu" = ia64; then |
| 23186 | # AIX 5 supports IA64 |
| 23187 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 23188 | shlibpath_var=LD_LIBRARY_PATH |
| 23189 | else |
| 23190 | # With GCC up to 2.95.x, collect2 would create an import file |
| 23191 | # for dependence libraries. The import file would start with |
| 23192 | # the line `#! .'. This would cause the generated library to |
| 23193 | # depend on `.', always an invalid library. This was fixed in |
| 23194 | # development snapshots of GCC prior to 3.0. |
| 23195 | case $host_os in |
| 23196 | aix4 | aix4.[01] | aix4.[01].*) |
| 23197 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 23198 | echo ' yes ' |
| 23199 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 23200 | : |
| 23201 | else |
| 23202 | can_build_shared=no |
| 23203 | fi |
| 23204 | ;; |
| 23205 | esac |
| 23206 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 23207 | # soname into executable. Probably we can add versioning support to |
| 23208 | # collect2, so additional links can be useful in future. |
| 23209 | if test "$aix_use_runtimelinking" = yes; then |
| 23210 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 23211 | # instead of lib<name>.a to let people know that these are not |
| 23212 | # typical AIX shared libraries. |
| 23213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23214 | else |
| 23215 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 23216 | # and later when we are not doing run time linking. |
| 23217 | library_names_spec='${libname}${release}.a $libname.a' |
| 23218 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23219 | fi |
| 23220 | shlibpath_var=LIBPATH |
| 23221 | fi |
| 23222 | ;; |
| 23223 | |
| 23224 | amigaos*) |
| 23225 | library_names_spec='$libname.ixlibrary $libname.a' |
| 23226 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23227 | 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] | 23228 | ;; |
| 23229 | |
| 23230 | beos*) |
| 23231 | library_names_spec='${libname}${shared_ext}' |
| 23232 | dynamic_linker="$host_os ld.so" |
| 23233 | shlibpath_var=LIBRARY_PATH |
| 23234 | ;; |
| 23235 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23236 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23237 | version_type=linux |
| 23238 | need_version=no |
| 23239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23240 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23241 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 23242 | shlibpath_var=LD_LIBRARY_PATH |
| 23243 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 23244 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 23245 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 23246 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 23247 | # libtool to hard-code these into programs |
| 23248 | ;; |
| 23249 | |
| 23250 | cygwin* | mingw* | pw32*) |
| 23251 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23252 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23253 | need_version=no |
| 23254 | need_lib_prefix=no |
| 23255 | |
| 23256 | case $GCC,$host_os in |
| 23257 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 23258 | library_names_spec='$libname.dll.a' |
| 23259 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23260 | postinstall_cmds='base_file=`basename \${file}`~ |
| 23261 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 23262 | dldir=$destdir/`dirname \$dlpath`~ |
| 23263 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23264 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 23265 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23266 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 23267 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23268 | $rm \$dlpath' |
| 23269 | shlibpath_overrides_runpath=yes |
| 23270 | |
| 23271 | case $host_os in |
| 23272 | cygwin*) |
| 23273 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 23274 | 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] | 23275 | 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] | 23276 | ;; |
| 23277 | mingw*) |
| 23278 | # MinGW DLLs use traditional 'lib' prefix |
| 23279 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 23280 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 23281 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 23282 | # It is most probably a Windows format PATH printed by |
| 23283 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 23284 | # path with ; separators, and with drive letters. We can handle the |
| 23285 | # drive letters (cygwin fileutils understands them), so leave them, |
| 23286 | # especially as we might pass files found there to a mingw objdump, |
| 23287 | # which wouldn't understand a cygwinified path. Ahh. |
| 23288 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 23289 | else |
| 23290 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 23291 | fi |
| 23292 | ;; |
| 23293 | pw32*) |
| 23294 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23295 | 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] | 23296 | ;; |
| 23297 | esac |
| 23298 | ;; |
| 23299 | |
| 23300 | *) |
| 23301 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 23302 | ;; |
| 23303 | esac |
| 23304 | dynamic_linker='Win32 ld.exe' |
| 23305 | # FIXME: first we should search . and the directory the executable is in |
| 23306 | shlibpath_var=PATH |
| 23307 | ;; |
| 23308 | |
| 23309 | darwin* | rhapsody*) |
| 23310 | dynamic_linker="$host_os dyld" |
| 23311 | version_type=darwin |
| 23312 | need_lib_prefix=no |
| 23313 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23314 | 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] | 23315 | soname_spec='${libname}${release}${major}$shared_ext' |
| 23316 | shlibpath_overrides_runpath=yes |
| 23317 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 23318 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23319 | # 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] | 23320 | if test "$GCC" = yes; then |
| 23321 | 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"` |
| 23322 | else |
| 23323 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23324 | fi |
| 23325 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 23326 | ;; |
| 23327 | |
| 23328 | dgux*) |
| 23329 | version_type=linux |
| 23330 | need_lib_prefix=no |
| 23331 | need_version=no |
| 23332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 23333 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23334 | shlibpath_var=LD_LIBRARY_PATH |
| 23335 | ;; |
| 23336 | |
| 23337 | freebsd1*) |
| 23338 | dynamic_linker=no |
| 23339 | ;; |
| 23340 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23341 | kfreebsd*-gnu) |
| 23342 | version_type=linux |
| 23343 | need_lib_prefix=no |
| 23344 | need_version=no |
| 23345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23346 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23347 | shlibpath_var=LD_LIBRARY_PATH |
| 23348 | shlibpath_overrides_runpath=no |
| 23349 | hardcode_into_libs=yes |
| 23350 | dynamic_linker='GNU ld.so' |
| 23351 | ;; |
| 23352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23353 | freebsd* | dragonfly*) |
| 23354 | # DragonFly does not have aout. When/if they implement a new |
| 23355 | # versioning mechanism, adjust this. |
| 23356 | if test -x /usr/bin/objformat; then |
| 23357 | objformat=`/usr/bin/objformat` |
| 23358 | else |
| 23359 | case $host_os in |
| 23360 | freebsd[123]*) objformat=aout ;; |
| 23361 | *) objformat=elf ;; |
| 23362 | esac |
| 23363 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23364 | version_type=freebsd-$objformat |
| 23365 | case $version_type in |
| 23366 | freebsd-elf*) |
| 23367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23368 | need_version=no |
| 23369 | need_lib_prefix=no |
| 23370 | ;; |
| 23371 | freebsd-*) |
| 23372 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 23373 | need_version=yes |
| 23374 | ;; |
| 23375 | esac |
| 23376 | shlibpath_var=LD_LIBRARY_PATH |
| 23377 | case $host_os in |
| 23378 | freebsd2*) |
| 23379 | shlibpath_overrides_runpath=yes |
| 23380 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23381 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23382 | shlibpath_overrides_runpath=yes |
| 23383 | hardcode_into_libs=yes |
| 23384 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23385 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 23386 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23387 | shlibpath_overrides_runpath=no |
| 23388 | hardcode_into_libs=yes |
| 23389 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23390 | freebsd*) # from 4.6 on |
| 23391 | shlibpath_overrides_runpath=yes |
| 23392 | hardcode_into_libs=yes |
| 23393 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23394 | esac |
| 23395 | ;; |
| 23396 | |
| 23397 | gnu*) |
| 23398 | version_type=linux |
| 23399 | need_lib_prefix=no |
| 23400 | need_version=no |
| 23401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 23402 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23403 | shlibpath_var=LD_LIBRARY_PATH |
| 23404 | hardcode_into_libs=yes |
| 23405 | ;; |
| 23406 | |
| 23407 | hpux9* | hpux10* | hpux11*) |
| 23408 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 23409 | # link against other versions. |
| 23410 | version_type=sunos |
| 23411 | need_lib_prefix=no |
| 23412 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23413 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23414 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23415 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23416 | hardcode_into_libs=yes |
| 23417 | dynamic_linker="$host_os dld.so" |
| 23418 | shlibpath_var=LD_LIBRARY_PATH |
| 23419 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23421 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23422 | if test "X$HPUX_IA64_MODE" = X32; then |
| 23423 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 23424 | else |
| 23425 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 23426 | fi |
| 23427 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23428 | ;; |
| 23429 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23430 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23431 | hardcode_into_libs=yes |
| 23432 | dynamic_linker="$host_os dld.sl" |
| 23433 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 23434 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23436 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23437 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 23438 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23439 | ;; |
| 23440 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23441 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23442 | dynamic_linker="$host_os dld.sl" |
| 23443 | shlibpath_var=SHLIB_PATH |
| 23444 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 23445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23446 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23447 | ;; |
| 23448 | esac |
| 23449 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 23450 | postinstall_cmds='chmod 555 $lib' |
| 23451 | ;; |
| 23452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23453 | interix3*) |
| 23454 | version_type=linux |
| 23455 | need_lib_prefix=no |
| 23456 | need_version=no |
| 23457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23458 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23459 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 23460 | shlibpath_var=LD_LIBRARY_PATH |
| 23461 | shlibpath_overrides_runpath=no |
| 23462 | hardcode_into_libs=yes |
| 23463 | ;; |
| 23464 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23465 | irix5* | irix6* | nonstopux*) |
| 23466 | case $host_os in |
| 23467 | nonstopux*) version_type=nonstopux ;; |
| 23468 | *) |
| 23469 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 23470 | version_type=linux |
| 23471 | else |
| 23472 | version_type=irix |
| 23473 | fi ;; |
| 23474 | esac |
| 23475 | need_lib_prefix=no |
| 23476 | need_version=no |
| 23477 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23479 | case $host_os in |
| 23480 | irix5* | nonstopux*) |
| 23481 | libsuff= shlibsuff= |
| 23482 | ;; |
| 23483 | *) |
| 23484 | case $LD in # libtool.m4 will add one of these switches to LD |
| 23485 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 23486 | libsuff= shlibsuff= libmagic=32-bit;; |
| 23487 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 23488 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 23489 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 23490 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 23491 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 23492 | esac |
| 23493 | ;; |
| 23494 | esac |
| 23495 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 23496 | shlibpath_overrides_runpath=no |
| 23497 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 23498 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 23499 | hardcode_into_libs=yes |
| 23500 | ;; |
| 23501 | |
| 23502 | # No shared lib support for Linux oldld, aout, or coff. |
| 23503 | linux*oldld* | linux*aout* | linux*coff*) |
| 23504 | dynamic_linker=no |
| 23505 | ;; |
| 23506 | |
| 23507 | # This must be Linux ELF. |
| 23508 | linux*) |
| 23509 | version_type=linux |
| 23510 | need_lib_prefix=no |
| 23511 | need_version=no |
| 23512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23513 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23514 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 23515 | shlibpath_var=LD_LIBRARY_PATH |
| 23516 | shlibpath_overrides_runpath=no |
| 23517 | # This implies no fast_install, which is unacceptable. |
| 23518 | # Some rework will be needed to allow for fast_install |
| 23519 | # before this can be enabled. |
| 23520 | hardcode_into_libs=yes |
| 23521 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23522 | # Append ld.so.conf contents to the search path |
| 23523 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23524 | 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] | 23525 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 23526 | fi |
| 23527 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23528 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 23529 | # powerpc, because MkLinux only supported shared libraries with the |
| 23530 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 23531 | # most powerpc-linux boxes support dynamic linking these days and |
| 23532 | # people can always --disable-shared, the test was removed, and we |
| 23533 | # assume the GNU/Linux dynamic linker is in use. |
| 23534 | dynamic_linker='GNU/Linux ld.so' |
| 23535 | ;; |
| 23536 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23537 | knetbsd*-gnu) |
| 23538 | version_type=linux |
| 23539 | need_lib_prefix=no |
| 23540 | need_version=no |
| 23541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23542 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23543 | shlibpath_var=LD_LIBRARY_PATH |
| 23544 | shlibpath_overrides_runpath=no |
| 23545 | hardcode_into_libs=yes |
| 23546 | dynamic_linker='GNU ld.so' |
| 23547 | ;; |
| 23548 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23549 | netbsd*) |
| 23550 | version_type=sunos |
| 23551 | need_lib_prefix=no |
| 23552 | need_version=no |
| 23553 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23555 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23556 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23557 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23558 | 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] | 23559 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23560 | dynamic_linker='NetBSD ld.elf_so' |
| 23561 | fi |
| 23562 | shlibpath_var=LD_LIBRARY_PATH |
| 23563 | shlibpath_overrides_runpath=yes |
| 23564 | hardcode_into_libs=yes |
| 23565 | ;; |
| 23566 | |
| 23567 | newsos6) |
| 23568 | version_type=linux |
| 23569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23570 | shlibpath_var=LD_LIBRARY_PATH |
| 23571 | shlibpath_overrides_runpath=yes |
| 23572 | ;; |
| 23573 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23574 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23575 | version_type=linux |
| 23576 | need_lib_prefix=no |
| 23577 | need_version=no |
| 23578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23579 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23580 | shlibpath_var=LD_LIBRARY_PATH |
| 23581 | shlibpath_overrides_runpath=yes |
| 23582 | ;; |
| 23583 | |
| 23584 | openbsd*) |
| 23585 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23586 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23587 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23588 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23589 | case $host_os in |
| 23590 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23591 | *) need_version=no ;; |
| 23592 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23594 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23595 | shlibpath_var=LD_LIBRARY_PATH |
| 23596 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23597 | case $host_os in |
| 23598 | openbsd2.[89] | openbsd2.[89].*) |
| 23599 | shlibpath_overrides_runpath=no |
| 23600 | ;; |
| 23601 | *) |
| 23602 | shlibpath_overrides_runpath=yes |
| 23603 | ;; |
| 23604 | esac |
| 23605 | else |
| 23606 | shlibpath_overrides_runpath=yes |
| 23607 | fi |
| 23608 | ;; |
| 23609 | |
| 23610 | os2*) |
| 23611 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23612 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23613 | need_lib_prefix=no |
| 23614 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23615 | dynamic_linker='OS/2 ld.exe' |
| 23616 | shlibpath_var=LIBPATH |
| 23617 | ;; |
| 23618 | |
| 23619 | osf3* | osf4* | osf5*) |
| 23620 | version_type=osf |
| 23621 | need_lib_prefix=no |
| 23622 | need_version=no |
| 23623 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23625 | shlibpath_var=LD_LIBRARY_PATH |
| 23626 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23627 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23628 | ;; |
| 23629 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23630 | solaris*) |
| 23631 | version_type=linux |
| 23632 | need_lib_prefix=no |
| 23633 | need_version=no |
| 23634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23635 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23636 | shlibpath_var=LD_LIBRARY_PATH |
| 23637 | shlibpath_overrides_runpath=yes |
| 23638 | hardcode_into_libs=yes |
| 23639 | # ldd complains unless libraries are executable |
| 23640 | postinstall_cmds='chmod +x $lib' |
| 23641 | ;; |
| 23642 | |
| 23643 | sunos4*) |
| 23644 | version_type=sunos |
| 23645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23646 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23647 | shlibpath_var=LD_LIBRARY_PATH |
| 23648 | shlibpath_overrides_runpath=yes |
| 23649 | if test "$with_gnu_ld" = yes; then |
| 23650 | need_lib_prefix=no |
| 23651 | fi |
| 23652 | need_version=yes |
| 23653 | ;; |
| 23654 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23655 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23656 | version_type=linux |
| 23657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23658 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23659 | shlibpath_var=LD_LIBRARY_PATH |
| 23660 | case $host_vendor in |
| 23661 | sni) |
| 23662 | shlibpath_overrides_runpath=no |
| 23663 | need_lib_prefix=no |
| 23664 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23665 | runpath_var=LD_RUN_PATH |
| 23666 | ;; |
| 23667 | siemens) |
| 23668 | need_lib_prefix=no |
| 23669 | ;; |
| 23670 | motorola) |
| 23671 | need_lib_prefix=no |
| 23672 | need_version=no |
| 23673 | shlibpath_overrides_runpath=no |
| 23674 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23675 | ;; |
| 23676 | esac |
| 23677 | ;; |
| 23678 | |
| 23679 | sysv4*MP*) |
| 23680 | if test -d /usr/nec ;then |
| 23681 | version_type=linux |
| 23682 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23683 | soname_spec='$libname${shared_ext}.$major' |
| 23684 | shlibpath_var=LD_LIBRARY_PATH |
| 23685 | fi |
| 23686 | ;; |
| 23687 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23688 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23689 | version_type=freebsd-elf |
| 23690 | need_lib_prefix=no |
| 23691 | need_version=no |
| 23692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23693 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23694 | shlibpath_var=LD_LIBRARY_PATH |
| 23695 | hardcode_into_libs=yes |
| 23696 | if test "$with_gnu_ld" = yes; then |
| 23697 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23698 | shlibpath_overrides_runpath=no |
| 23699 | else |
| 23700 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23701 | shlibpath_overrides_runpath=yes |
| 23702 | case $host_os in |
| 23703 | sco3.2v5*) |
| 23704 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23705 | ;; |
| 23706 | esac |
| 23707 | fi |
| 23708 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23709 | ;; |
| 23710 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23711 | uts4*) |
| 23712 | version_type=linux |
| 23713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23714 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23715 | shlibpath_var=LD_LIBRARY_PATH |
| 23716 | ;; |
| 23717 | |
| 23718 | *) |
| 23719 | dynamic_linker=no |
| 23720 | ;; |
| 23721 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23722 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23723 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23724 | test "$dynamic_linker" = no && can_build_shared=no |
| 23725 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23726 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23727 | if test "$GCC" = yes; then |
| 23728 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23729 | fi |
| 23730 | |
| 23731 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23732 | 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] | 23733 | hardcode_action_F77= |
| 23734 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23735 | test -n "$runpath_var_F77" || \ |
| 23736 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23737 | |
| 23738 | # We can hardcode non-existant directories. |
| 23739 | if test "$hardcode_direct_F77" != no && |
| 23740 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23741 | # have to relink, otherwise we might link with an installed library |
| 23742 | # when we should be linking with a yet-to-be-installed one |
| 23743 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23744 | test "$hardcode_minus_L_F77" != no; then |
| 23745 | # Linking always hardcodes the temporary library directory. |
| 23746 | hardcode_action_F77=relink |
| 23747 | else |
| 23748 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23749 | hardcode_action_F77=immediate |
| 23750 | fi |
| 23751 | else |
| 23752 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23753 | # directories. |
| 23754 | hardcode_action_F77=unsupported |
| 23755 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23756 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23757 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23758 | |
| 23759 | if test "$hardcode_action_F77" = relink; then |
| 23760 | # Fast installation is not supported |
| 23761 | enable_fast_install=no |
| 23762 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23763 | test "$enable_shared" = no; then |
| 23764 | # Fast installation is not necessary |
| 23765 | enable_fast_install=needless |
| 23766 | fi |
| 23767 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23768 | |
| 23769 | # The else clause should only fire when bootstrapping the |
| 23770 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23771 | # with your package, and you will get complaints that there are |
| 23772 | # no rules to generate ltmain.sh. |
| 23773 | if test -f "$ltmain"; then |
| 23774 | # See if we are running on zsh, and set the options which allow our commands through |
| 23775 | # without removal of \ escapes. |
| 23776 | if test -n "${ZSH_VERSION+set}" ; then |
| 23777 | setopt NO_GLOB_SUBST |
| 23778 | fi |
| 23779 | # Now quote all the things that may contain metacharacters while being |
| 23780 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23781 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23782 | 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] | 23783 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23784 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23785 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23786 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23787 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23788 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23789 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23790 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23791 | compiler_F77 \ |
| 23792 | CC_F77 \ |
| 23793 | LD_F77 \ |
| 23794 | lt_prog_compiler_wl_F77 \ |
| 23795 | lt_prog_compiler_pic_F77 \ |
| 23796 | lt_prog_compiler_static_F77 \ |
| 23797 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23798 | export_dynamic_flag_spec_F77 \ |
| 23799 | thread_safe_flag_spec_F77 \ |
| 23800 | whole_archive_flag_spec_F77 \ |
| 23801 | enable_shared_with_static_runtimes_F77 \ |
| 23802 | old_archive_cmds_F77 \ |
| 23803 | old_archive_from_new_cmds_F77 \ |
| 23804 | predep_objects_F77 \ |
| 23805 | postdep_objects_F77 \ |
| 23806 | predeps_F77 \ |
| 23807 | postdeps_F77 \ |
| 23808 | compiler_lib_search_path_F77 \ |
| 23809 | archive_cmds_F77 \ |
| 23810 | archive_expsym_cmds_F77 \ |
| 23811 | postinstall_cmds_F77 \ |
| 23812 | postuninstall_cmds_F77 \ |
| 23813 | old_archive_from_expsyms_cmds_F77 \ |
| 23814 | allow_undefined_flag_F77 \ |
| 23815 | no_undefined_flag_F77 \ |
| 23816 | export_symbols_cmds_F77 \ |
| 23817 | hardcode_libdir_flag_spec_F77 \ |
| 23818 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23819 | hardcode_libdir_separator_F77 \ |
| 23820 | hardcode_automatic_F77 \ |
| 23821 | module_cmds_F77 \ |
| 23822 | module_expsym_cmds_F77 \ |
| 23823 | lt_cv_prog_compiler_c_o_F77 \ |
| 23824 | exclude_expsyms_F77 \ |
| 23825 | include_expsyms_F77; do |
| 23826 | |
| 23827 | case $var in |
| 23828 | old_archive_cmds_F77 | \ |
| 23829 | old_archive_from_new_cmds_F77 | \ |
| 23830 | archive_cmds_F77 | \ |
| 23831 | archive_expsym_cmds_F77 | \ |
| 23832 | module_cmds_F77 | \ |
| 23833 | module_expsym_cmds_F77 | \ |
| 23834 | old_archive_from_expsyms_cmds_F77 | \ |
| 23835 | export_symbols_cmds_F77 | \ |
| 23836 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23837 | postinstall_cmds | postuninstall_cmds | \ |
| 23838 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23839 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23840 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23841 | 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] | 23842 | ;; |
| 23843 | *) |
| 23844 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23845 | ;; |
| 23846 | esac |
| 23847 | done |
| 23848 | |
| 23849 | case $lt_echo in |
| 23850 | *'\$0 --fallback-echo"') |
| 23851 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23852 | ;; |
| 23853 | esac |
| 23854 | |
| 23855 | cfgfile="$ofile" |
| 23856 | |
| 23857 | cat <<__EOF__ >> "$cfgfile" |
| 23858 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23859 | |
| 23860 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23861 | |
| 23862 | # Shell to use when invoking shell scripts. |
| 23863 | SHELL=$lt_SHELL |
| 23864 | |
| 23865 | # Whether or not to build shared libraries. |
| 23866 | build_libtool_libs=$enable_shared |
| 23867 | |
| 23868 | # Whether or not to build static libraries. |
| 23869 | build_old_libs=$enable_static |
| 23870 | |
| 23871 | # Whether or not to add -lc for building shared libraries. |
| 23872 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23873 | |
| 23874 | # Whether or not to disallow shared libs when runtime libs are static |
| 23875 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23876 | |
| 23877 | # Whether or not to optimize for fast installation. |
| 23878 | fast_install=$enable_fast_install |
| 23879 | |
| 23880 | # The host system. |
| 23881 | host_alias=$host_alias |
| 23882 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23883 | host_os=$host_os |
| 23884 | |
| 23885 | # The build system. |
| 23886 | build_alias=$build_alias |
| 23887 | build=$build |
| 23888 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23889 | |
| 23890 | # An echo program that does not interpret backslashes. |
| 23891 | echo=$lt_echo |
| 23892 | |
| 23893 | # The archiver. |
| 23894 | AR=$lt_AR |
| 23895 | AR_FLAGS=$lt_AR_FLAGS |
| 23896 | |
| 23897 | # A C compiler. |
| 23898 | LTCC=$lt_LTCC |
| 23899 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23900 | # LTCC compiler flags. |
| 23901 | LTCFLAGS=$lt_LTCFLAGS |
| 23902 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23903 | # A language-specific compiler. |
| 23904 | CC=$lt_compiler_F77 |
| 23905 | |
| 23906 | # Is the compiler the GNU C compiler? |
| 23907 | with_gcc=$GCC_F77 |
| 23908 | |
| 23909 | # An ERE matcher. |
| 23910 | EGREP=$lt_EGREP |
| 23911 | |
| 23912 | # The linker used to build libraries. |
| 23913 | LD=$lt_LD_F77 |
| 23914 | |
| 23915 | # Whether we need hard or soft links. |
| 23916 | LN_S=$lt_LN_S |
| 23917 | |
| 23918 | # A BSD-compatible nm program. |
| 23919 | NM=$lt_NM |
| 23920 | |
| 23921 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23922 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23923 | |
| 23924 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23925 | MAGIC_CMD=$MAGIC_CMD |
| 23926 | |
| 23927 | # Used on cygwin: DLL creation program. |
| 23928 | DLLTOOL="$DLLTOOL" |
| 23929 | |
| 23930 | # Used on cygwin: object dumper. |
| 23931 | OBJDUMP="$OBJDUMP" |
| 23932 | |
| 23933 | # Used on cygwin: assembler. |
| 23934 | AS="$AS" |
| 23935 | |
| 23936 | # The name of the directory that contains temporary libtool files. |
| 23937 | objdir=$objdir |
| 23938 | |
| 23939 | # How to create reloadable object files. |
| 23940 | reload_flag=$lt_reload_flag |
| 23941 | reload_cmds=$lt_reload_cmds |
| 23942 | |
| 23943 | # How to pass a linker flag through the compiler. |
| 23944 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23945 | |
| 23946 | # Object file suffix (normally "o"). |
| 23947 | objext="$ac_objext" |
| 23948 | |
| 23949 | # Old archive suffix (normally "a"). |
| 23950 | libext="$libext" |
| 23951 | |
| 23952 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23953 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23954 | |
| 23955 | # Executable file suffix (normally ""). |
| 23956 | exeext="$exeext" |
| 23957 | |
| 23958 | # Additional compiler flags for building library objects. |
| 23959 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23960 | pic_mode=$pic_mode |
| 23961 | |
| 23962 | # What is the maximum length of a command? |
| 23963 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23964 | |
| 23965 | # Does compiler simultaneously support -c and -o options? |
| 23966 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23967 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23968 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23969 | need_locks=$lt_need_locks |
| 23970 | |
| 23971 | # Do we need the lib prefix for modules? |
| 23972 | need_lib_prefix=$need_lib_prefix |
| 23973 | |
| 23974 | # Do we need a version for libraries? |
| 23975 | need_version=$need_version |
| 23976 | |
| 23977 | # Whether dlopen is supported. |
| 23978 | dlopen_support=$enable_dlopen |
| 23979 | |
| 23980 | # Whether dlopen of programs is supported. |
| 23981 | dlopen_self=$enable_dlopen_self |
| 23982 | |
| 23983 | # Whether dlopen of statically linked programs is supported. |
| 23984 | dlopen_self_static=$enable_dlopen_self_static |
| 23985 | |
| 23986 | # Compiler flag to prevent dynamic linking. |
| 23987 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23988 | |
| 23989 | # Compiler flag to turn off builtin functions. |
| 23990 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23991 | |
| 23992 | # Compiler flag to allow reflexive dlopens. |
| 23993 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23994 | |
| 23995 | # Compiler flag to generate shared objects directly from archives. |
| 23996 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23997 | |
| 23998 | # Compiler flag to generate thread-safe objects. |
| 23999 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 24000 | |
| 24001 | # Library versioning type. |
| 24002 | version_type=$version_type |
| 24003 | |
| 24004 | # Format of library name prefix. |
| 24005 | libname_spec=$lt_libname_spec |
| 24006 | |
| 24007 | # List of archive names. First name is the real one, the rest are links. |
| 24008 | # The last name is the one that the linker finds with -lNAME. |
| 24009 | library_names_spec=$lt_library_names_spec |
| 24010 | |
| 24011 | # The coded name of the library, if different from the real name. |
| 24012 | soname_spec=$lt_soname_spec |
| 24013 | |
| 24014 | # Commands used to build and install an old-style archive. |
| 24015 | RANLIB=$lt_RANLIB |
| 24016 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 24017 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 24018 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 24019 | |
| 24020 | # Create an old-style archive from a shared archive. |
| 24021 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 24022 | |
| 24023 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24024 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 24025 | |
| 24026 | # Commands used to build and install a shared archive. |
| 24027 | archive_cmds=$lt_archive_cmds_F77 |
| 24028 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 24029 | postinstall_cmds=$lt_postinstall_cmds |
| 24030 | postuninstall_cmds=$lt_postuninstall_cmds |
| 24031 | |
| 24032 | # Commands used to build a loadable module (assumed same as above if empty) |
| 24033 | module_cmds=$lt_module_cmds_F77 |
| 24034 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 24035 | |
| 24036 | # Commands to strip libraries. |
| 24037 | old_striplib=$lt_old_striplib |
| 24038 | striplib=$lt_striplib |
| 24039 | |
| 24040 | # Dependencies to place before the objects being linked to create a |
| 24041 | # shared library. |
| 24042 | predep_objects=$lt_predep_objects_F77 |
| 24043 | |
| 24044 | # Dependencies to place after the objects being linked to create a |
| 24045 | # shared library. |
| 24046 | postdep_objects=$lt_postdep_objects_F77 |
| 24047 | |
| 24048 | # Dependencies to place before the objects being linked to create a |
| 24049 | # shared library. |
| 24050 | predeps=$lt_predeps_F77 |
| 24051 | |
| 24052 | # Dependencies to place after the objects being linked to create a |
| 24053 | # shared library. |
| 24054 | postdeps=$lt_postdeps_F77 |
| 24055 | |
| 24056 | # The library search path used internally by the compiler when linking |
| 24057 | # a shared library. |
| 24058 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 24059 | |
| 24060 | # Method to check whether dependent libraries are shared objects. |
| 24061 | deplibs_check_method=$lt_deplibs_check_method |
| 24062 | |
| 24063 | # Command to use when deplibs_check_method == file_magic. |
| 24064 | file_magic_cmd=$lt_file_magic_cmd |
| 24065 | |
| 24066 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24067 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 24068 | |
| 24069 | # Flag that forces no undefined symbols. |
| 24070 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 24071 | |
| 24072 | # Commands used to finish a libtool library installation in a directory. |
| 24073 | finish_cmds=$lt_finish_cmds |
| 24074 | |
| 24075 | # Same as above, but a single script fragment to be evaled but not shown. |
| 24076 | finish_eval=$lt_finish_eval |
| 24077 | |
| 24078 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 24079 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 24080 | |
| 24081 | # Transform the output of nm in a proper C declaration |
| 24082 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 24083 | |
| 24084 | # Transform the output of nm in a C name address pair |
| 24085 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 24086 | |
| 24087 | # This is the shared library runtime path variable. |
| 24088 | runpath_var=$runpath_var |
| 24089 | |
| 24090 | # This is the shared library path variable. |
| 24091 | shlibpath_var=$shlibpath_var |
| 24092 | |
| 24093 | # Is shlibpath searched before the hard-coded library search path? |
| 24094 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24095 | |
| 24096 | # How to hardcode a shared library path into an executable. |
| 24097 | hardcode_action=$hardcode_action_F77 |
| 24098 | |
| 24099 | # Whether we should hardcode library paths into libraries. |
| 24100 | hardcode_into_libs=$hardcode_into_libs |
| 24101 | |
| 24102 | # Flag to hardcode \$libdir into a binary during linking. |
| 24103 | # This must work even if \$libdir does not exist. |
| 24104 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 24105 | |
| 24106 | # If ld is used when linking, flag to hardcode \$libdir into |
| 24107 | # a binary during linking. This must work even if \$libdir does |
| 24108 | # not exist. |
| 24109 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 24110 | |
| 24111 | # Whether we need a single -rpath flag with a separated argument. |
| 24112 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 24113 | |
| 24114 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 24115 | # resulting binary. |
| 24116 | hardcode_direct=$hardcode_direct_F77 |
| 24117 | |
| 24118 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 24119 | # resulting binary. |
| 24120 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 24121 | |
| 24122 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 24123 | # the resulting binary. |
| 24124 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 24125 | |
| 24126 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 24127 | # and all subsequent libraries and executables linked against it. |
| 24128 | hardcode_automatic=$hardcode_automatic_F77 |
| 24129 | |
| 24130 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24131 | # restored at relink time. |
| 24132 | variables_saved_for_relink="$variables_saved_for_relink" |
| 24133 | |
| 24134 | # Whether libtool must link a program against all its dependency libraries. |
| 24135 | link_all_deplibs=$link_all_deplibs_F77 |
| 24136 | |
| 24137 | # Compile-time system search path for libraries |
| 24138 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24139 | |
| 24140 | # Run-time system search path for libraries |
| 24141 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24142 | |
| 24143 | # Fix the shell variable \$srcfile for the compiler. |
| 24144 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 24145 | |
| 24146 | # Set to yes if exported symbols are required. |
| 24147 | always_export_symbols=$always_export_symbols_F77 |
| 24148 | |
| 24149 | # The commands to list exported symbols. |
| 24150 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 24151 | |
| 24152 | # The commands to extract the exported symbol list from a shared archive. |
| 24153 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24154 | |
| 24155 | # Symbols that should not be listed in the preloaded symbols. |
| 24156 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 24157 | |
| 24158 | # Symbols that must always be exported. |
| 24159 | include_expsyms=$lt_include_expsyms_F77 |
| 24160 | |
| 24161 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24162 | |
| 24163 | __EOF__ |
| 24164 | |
| 24165 | |
| 24166 | else |
| 24167 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24168 | # `config.status --recheck' to rerun these tests and create the |
| 24169 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24170 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24171 | if test -f "$ltmain_in"; then |
| 24172 | test -f Makefile && make "$ltmain" |
| 24173 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24174 | fi |
| 24175 | |
| 24176 | |
| 24177 | ac_ext=c |
| 24178 | ac_cpp='$CPP $CPPFLAGS' |
| 24179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24182 | |
| 24183 | CC="$lt_save_CC" |
| 24184 | |
| 24185 | else |
| 24186 | tagname="" |
| 24187 | fi |
| 24188 | ;; |
| 24189 | |
| 24190 | GCJ) |
| 24191 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24192 | ac_ext=c |
| 24193 | ac_cpp='$CPP $CPPFLAGS' |
| 24194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24197 | |
| 24198 | |
| 24199 | # Source file extension for Java test sources. |
| 24200 | ac_ext=java |
| 24201 | |
| 24202 | # Object file extension for compiled Java test sources. |
| 24203 | objext=o |
| 24204 | objext_GCJ=$objext |
| 24205 | |
| 24206 | # Code to be used in simple compile tests |
| 24207 | lt_simple_compile_test_code="class foo {}\n" |
| 24208 | |
| 24209 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24210 | 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] | 24211 | |
| 24212 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24213 | |
| 24214 | # If no C compiler was specified, use CC. |
| 24215 | LTCC=${LTCC-"$CC"} |
| 24216 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24217 | # If no C compiler flags were specified, use CFLAGS. |
| 24218 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 24219 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24220 | # Allow CC to be a program name with arguments. |
| 24221 | compiler=$CC |
| 24222 | |
| 24223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24224 | # save warnings/boilerplate of simple test code |
| 24225 | ac_outfile=conftest.$ac_objext |
| 24226 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 24227 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24228 | _lt_compiler_boilerplate=`cat conftest.err` |
| 24229 | $rm conftest* |
| 24230 | |
| 24231 | ac_outfile=conftest.$ac_objext |
| 24232 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 24233 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24234 | _lt_linker_boilerplate=`cat conftest.err` |
| 24235 | $rm conftest* |
| 24236 | |
| 24237 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24238 | # Allow CC to be a program name with arguments. |
| 24239 | lt_save_CC="$CC" |
| 24240 | CC=${GCJ-"gcj"} |
| 24241 | compiler=$CC |
| 24242 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24243 | for cc_temp in $compiler""; do |
| 24244 | case $cc_temp in |
| 24245 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24246 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24247 | \-*) ;; |
| 24248 | *) break;; |
| 24249 | esac |
| 24250 | done |
| 24251 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 24252 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24253 | |
| 24254 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 24255 | archive_cmds_need_lc_GCJ=no |
| 24256 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24257 | old_archive_cmds_GCJ=$old_archive_cmds |
| 24258 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24259 | |
| 24260 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 24261 | |
| 24262 | if test "$GCC" = yes; then |
| 24263 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 24264 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24266 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 24267 | 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] | 24268 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 24269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24270 | else |
| 24271 | lt_cv_prog_compiler_rtti_exceptions=no |
| 24272 | ac_outfile=conftest.$ac_objext |
| 24273 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24274 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 24275 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24276 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24277 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24278 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24279 | # The option is referenced via a variable to avoid confusing sed. |
| 24280 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24281 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24282 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24283 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 24284 | (eval echo "\"\$as_me:24284: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24285 | (eval "$lt_compile" 2>conftest.err) |
| 24286 | ac_status=$? |
| 24287 | cat conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 24288 | echo "$as_me:24288: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24289 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24290 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24291 | # So say no if there are warnings other than the usual output. |
| 24292 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24293 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24294 | 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] | 24295 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 24296 | fi |
| 24297 | fi |
| 24298 | $rm conftest* |
| 24299 | |
| 24300 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24301 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 24302 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24303 | |
| 24304 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 24305 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 24306 | else |
| 24307 | : |
| 24308 | fi |
| 24309 | |
| 24310 | fi |
| 24311 | |
| 24312 | lt_prog_compiler_wl_GCJ= |
| 24313 | lt_prog_compiler_pic_GCJ= |
| 24314 | lt_prog_compiler_static_GCJ= |
| 24315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24316 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 24317 | 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] | 24318 | |
| 24319 | if test "$GCC" = yes; then |
| 24320 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24321 | lt_prog_compiler_static_GCJ='-static' |
| 24322 | |
| 24323 | case $host_os in |
| 24324 | aix*) |
| 24325 | # All AIX code is PIC. |
| 24326 | if test "$host_cpu" = ia64; then |
| 24327 | # AIX 5 now supports IA64 processor |
| 24328 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24329 | fi |
| 24330 | ;; |
| 24331 | |
| 24332 | amigaos*) |
| 24333 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 24334 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 24335 | # like `-m68040'. |
| 24336 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 24337 | ;; |
| 24338 | |
| 24339 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 24340 | # PIC is the default for these OSes. |
| 24341 | ;; |
| 24342 | |
| 24343 | mingw* | pw32* | os2*) |
| 24344 | # This hack is so that the source file can tell whether it is being |
| 24345 | # built for inclusion in a dll (and should export symbols for example). |
| 24346 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24347 | ;; |
| 24348 | |
| 24349 | darwin* | rhapsody*) |
| 24350 | # PIC is the default on this platform |
| 24351 | # Common symbols not allowed in MH_DYLIB files |
| 24352 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 24353 | ;; |
| 24354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24355 | interix3*) |
| 24356 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 24357 | # Instead, we relocate shared libraries at runtime. |
| 24358 | ;; |
| 24359 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24360 | msdosdjgpp*) |
| 24361 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 24362 | # on systems that don't support them. |
| 24363 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24364 | enable_shared=no |
| 24365 | ;; |
| 24366 | |
| 24367 | sysv4*MP*) |
| 24368 | if test -d /usr/nec; then |
| 24369 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 24370 | fi |
| 24371 | ;; |
| 24372 | |
| 24373 | hpux*) |
| 24374 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24375 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24376 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24377 | hppa*64*|ia64*) |
| 24378 | # +Z the default |
| 24379 | ;; |
| 24380 | *) |
| 24381 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24382 | ;; |
| 24383 | esac |
| 24384 | ;; |
| 24385 | |
| 24386 | *) |
| 24387 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24388 | ;; |
| 24389 | esac |
| 24390 | else |
| 24391 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 24392 | case $host_os in |
| 24393 | aix*) |
| 24394 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24395 | if test "$host_cpu" = ia64; then |
| 24396 | # AIX 5 now supports IA64 processor |
| 24397 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24398 | else |
| 24399 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 24400 | fi |
| 24401 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24402 | darwin*) |
| 24403 | # PIC is the default on this platform |
| 24404 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24405 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24406 | xlc*) |
| 24407 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 24408 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24409 | ;; |
| 24410 | esac |
| 24411 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24412 | |
| 24413 | mingw* | pw32* | os2*) |
| 24414 | # This hack is so that the source file can tell whether it is being |
| 24415 | # built for inclusion in a dll (and should export symbols for example). |
| 24416 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24417 | ;; |
| 24418 | |
| 24419 | hpux9* | hpux10* | hpux11*) |
| 24420 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24421 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24422 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24423 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24424 | hppa*64*|ia64*) |
| 24425 | # +Z the default |
| 24426 | ;; |
| 24427 | *) |
| 24428 | lt_prog_compiler_pic_GCJ='+Z' |
| 24429 | ;; |
| 24430 | esac |
| 24431 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 24432 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 24433 | ;; |
| 24434 | |
| 24435 | irix5* | irix6* | nonstopux*) |
| 24436 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24437 | # PIC (with -KPIC) is the default. |
| 24438 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24439 | ;; |
| 24440 | |
| 24441 | newsos6) |
| 24442 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24443 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24444 | ;; |
| 24445 | |
| 24446 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24447 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24448 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24449 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24450 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24451 | lt_prog_compiler_static_GCJ='-static' |
| 24452 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24453 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 24454 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 24455 | # which looks to be a dead project) |
| 24456 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24457 | lt_prog_compiler_pic_GCJ='-fpic' |
| 24458 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24459 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24460 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24461 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24462 | # All Alpha code is PIC. |
| 24463 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24464 | ;; |
| 24465 | esac |
| 24466 | ;; |
| 24467 | |
| 24468 | osf3* | osf4* | osf5*) |
| 24469 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24470 | # All OSF/1 code is PIC. |
| 24471 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24472 | ;; |
| 24473 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24474 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24475 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24476 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24477 | case $cc_basename in |
| 24478 | f77* | f90* | f95*) |
| 24479 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 24480 | *) |
| 24481 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 24482 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24483 | ;; |
| 24484 | |
| 24485 | sunos4*) |
| 24486 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 24487 | lt_prog_compiler_pic_GCJ='-PIC' |
| 24488 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24489 | ;; |
| 24490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24491 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24492 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24493 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24494 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24495 | ;; |
| 24496 | |
| 24497 | sysv4*MP*) |
| 24498 | if test -d /usr/nec ;then |
| 24499 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 24500 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24501 | fi |
| 24502 | ;; |
| 24503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24504 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 24505 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24506 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24507 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24508 | ;; |
| 24509 | |
| 24510 | unicos*) |
| 24511 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24512 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24513 | ;; |
| 24514 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24515 | uts4*) |
| 24516 | lt_prog_compiler_pic_GCJ='-pic' |
| 24517 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24518 | ;; |
| 24519 | |
| 24520 | *) |
| 24521 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24522 | ;; |
| 24523 | esac |
| 24524 | fi |
| 24525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24526 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 24527 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24528 | |
| 24529 | # |
| 24530 | # Check to make sure the PIC flag actually works. |
| 24531 | # |
| 24532 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24534 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 24535 | 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] | 24536 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 24537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24538 | else |
| 24539 | lt_prog_compiler_pic_works_GCJ=no |
| 24540 | ac_outfile=conftest.$ac_objext |
| 24541 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24542 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 24543 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24544 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24545 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24546 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24547 | # The option is referenced via a variable to avoid confusing sed. |
| 24548 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24549 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24550 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24551 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 24552 | (eval echo "\"\$as_me:24552: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24553 | (eval "$lt_compile" 2>conftest.err) |
| 24554 | ac_status=$? |
| 24555 | cat conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 24556 | echo "$as_me:24556: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24557 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24558 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24559 | # So say no if there are warnings other than the usual output. |
| 24560 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24561 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24562 | 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] | 24563 | lt_prog_compiler_pic_works_GCJ=yes |
| 24564 | fi |
| 24565 | fi |
| 24566 | $rm conftest* |
| 24567 | |
| 24568 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24569 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24570 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24571 | |
| 24572 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24573 | case $lt_prog_compiler_pic_GCJ in |
| 24574 | "" | " "*) ;; |
| 24575 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24576 | esac |
| 24577 | else |
| 24578 | lt_prog_compiler_pic_GCJ= |
| 24579 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24580 | fi |
| 24581 | |
| 24582 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24583 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24584 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24585 | *djgpp*) |
| 24586 | lt_prog_compiler_pic_GCJ= |
| 24587 | ;; |
| 24588 | *) |
| 24589 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24590 | ;; |
| 24591 | esac |
| 24592 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24593 | # |
| 24594 | # Check to make sure the static flag actually works. |
| 24595 | # |
| 24596 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24597 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24598 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24599 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24601 | else |
| 24602 | lt_prog_compiler_static_works_GCJ=no |
| 24603 | save_LDFLAGS="$LDFLAGS" |
| 24604 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24605 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24606 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24607 | # The linker can only warn and ignore the option if not recognized |
| 24608 | # So say no if there are warnings |
| 24609 | if test -s conftest.err; then |
| 24610 | # Append any errors to the config.log. |
| 24611 | cat conftest.err 1>&5 |
| 24612 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24613 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24614 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24615 | lt_prog_compiler_static_works_GCJ=yes |
| 24616 | fi |
| 24617 | else |
| 24618 | lt_prog_compiler_static_works_GCJ=yes |
| 24619 | fi |
| 24620 | fi |
| 24621 | $rm conftest* |
| 24622 | LDFLAGS="$save_LDFLAGS" |
| 24623 | |
| 24624 | fi |
| 24625 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24626 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24627 | |
| 24628 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24629 | : |
| 24630 | else |
| 24631 | lt_prog_compiler_static_GCJ= |
| 24632 | fi |
| 24633 | |
| 24634 | |
| 24635 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24636 | 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] | 24637 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24639 | else |
| 24640 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24641 | $rm -r conftest 2>/dev/null |
| 24642 | mkdir conftest |
| 24643 | cd conftest |
| 24644 | mkdir out |
| 24645 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24646 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24647 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24648 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24649 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24650 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24651 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24652 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24653 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24654 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24655 | -e 's:$: $lt_compiler_flag:'` |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 24656 | (eval echo "\"\$as_me:24656: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24657 | (eval "$lt_compile" 2>out/conftest.err) |
| 24658 | ac_status=$? |
| 24659 | cat out/conftest.err >&5 |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame^] | 24660 | echo "$as_me:24660: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24661 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24662 | then |
| 24663 | # The compiler can only warn and ignore the option if not recognized |
| 24664 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24665 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24666 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24667 | 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] | 24668 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24669 | fi |
| 24670 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24671 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24672 | $rm conftest* |
| 24673 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24674 | # template instantiation |
| 24675 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24676 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24677 | cd .. |
| 24678 | rmdir conftest |
| 24679 | $rm conftest* |
| 24680 | |
| 24681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24682 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24683 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24684 | |
| 24685 | |
| 24686 | hard_links="nottested" |
| 24687 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24688 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24689 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24690 | 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] | 24691 | hard_links=yes |
| 24692 | $rm conftest* |
| 24693 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24694 | touch conftest.a |
| 24695 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24696 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24697 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24698 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24699 | if test "$hard_links" = no; then |
| 24700 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24701 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24702 | need_locks=warn |
| 24703 | fi |
| 24704 | else |
| 24705 | need_locks=no |
| 24706 | fi |
| 24707 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24708 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24709 | 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] | 24710 | |
| 24711 | runpath_var= |
| 24712 | allow_undefined_flag_GCJ= |
| 24713 | enable_shared_with_static_runtimes_GCJ=no |
| 24714 | archive_cmds_GCJ= |
| 24715 | archive_expsym_cmds_GCJ= |
| 24716 | old_archive_From_new_cmds_GCJ= |
| 24717 | old_archive_from_expsyms_cmds_GCJ= |
| 24718 | export_dynamic_flag_spec_GCJ= |
| 24719 | whole_archive_flag_spec_GCJ= |
| 24720 | thread_safe_flag_spec_GCJ= |
| 24721 | hardcode_libdir_flag_spec_GCJ= |
| 24722 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24723 | hardcode_libdir_separator_GCJ= |
| 24724 | hardcode_direct_GCJ=no |
| 24725 | hardcode_minus_L_GCJ=no |
| 24726 | hardcode_shlibpath_var_GCJ=unsupported |
| 24727 | link_all_deplibs_GCJ=unknown |
| 24728 | hardcode_automatic_GCJ=no |
| 24729 | module_cmds_GCJ= |
| 24730 | module_expsym_cmds_GCJ= |
| 24731 | always_export_symbols_GCJ=no |
| 24732 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24733 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24734 | # included in the symbol list |
| 24735 | include_expsyms_GCJ= |
| 24736 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24737 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24738 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24739 | # as well as any symbol that contains `d'. |
| 24740 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24741 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24742 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24743 | # the symbol is explicitly referenced. Since portable code cannot |
| 24744 | # rely on this symbol name, it's probably fine to never include it in |
| 24745 | # preloaded symbol tables. |
| 24746 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24747 | # Just being paranoid about ensuring that cc_basename is set. |
| 24748 | for cc_temp in $compiler""; do |
| 24749 | case $cc_temp in |
| 24750 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24751 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24752 | \-*) ;; |
| 24753 | *) break;; |
| 24754 | esac |
| 24755 | done |
| 24756 | 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] | 24757 | |
| 24758 | case $host_os in |
| 24759 | cygwin* | mingw* | pw32*) |
| 24760 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24761 | # When not using gcc, we currently assume that we are using |
| 24762 | # Microsoft Visual C++. |
| 24763 | if test "$GCC" != yes; then |
| 24764 | with_gnu_ld=no |
| 24765 | fi |
| 24766 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24767 | interix*) |
| 24768 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24769 | with_gnu_ld=yes |
| 24770 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24771 | openbsd*) |
| 24772 | with_gnu_ld=no |
| 24773 | ;; |
| 24774 | esac |
| 24775 | |
| 24776 | ld_shlibs_GCJ=yes |
| 24777 | if test "$with_gnu_ld" = yes; then |
| 24778 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24779 | wlarc='${wl}' |
| 24780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24781 | # Set some defaults for GNU ld with shared library support. These |
| 24782 | # are reset later if shared libraries are not supported. Putting them |
| 24783 | # here allows them to be overridden if necessary. |
| 24784 | runpath_var=LD_RUN_PATH |
| 24785 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24786 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24787 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24788 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24789 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24790 | else |
| 24791 | whole_archive_flag_spec_GCJ= |
| 24792 | fi |
| 24793 | supports_anon_versioning=no |
| 24794 | case `$LD -v 2>/dev/null` in |
| 24795 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24796 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24797 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24798 | *\ 2.11.*) ;; # other 2.11 versions |
| 24799 | *) supports_anon_versioning=yes ;; |
| 24800 | esac |
| 24801 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24802 | # See if GNU ld supports shared libraries. |
| 24803 | case $host_os in |
| 24804 | aix3* | aix4* | aix5*) |
| 24805 | # On AIX/PPC, the GNU linker is very broken |
| 24806 | if test "$host_cpu" != ia64; then |
| 24807 | ld_shlibs_GCJ=no |
| 24808 | cat <<EOF 1>&2 |
| 24809 | |
| 24810 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24811 | *** to be unable to reliably create shared libraries on AIX. |
| 24812 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24813 | *** really care for shared libraries, you may want to modify your PATH |
| 24814 | *** so that a non-GNU linker is found, and then restart. |
| 24815 | |
| 24816 | EOF |
| 24817 | fi |
| 24818 | ;; |
| 24819 | |
| 24820 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24821 | 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] | 24822 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24823 | hardcode_minus_L_GCJ=yes |
| 24824 | |
| 24825 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24826 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24827 | # to version 4, is to share data among multiple programs linked |
| 24828 | # with the same dynamic library. Since this doesn't match the |
| 24829 | # behavior of shared libraries on other platforms, we can't use |
| 24830 | # them. |
| 24831 | ld_shlibs_GCJ=no |
| 24832 | ;; |
| 24833 | |
| 24834 | beos*) |
| 24835 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24836 | allow_undefined_flag_GCJ=unsupported |
| 24837 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24838 | # support --undefined. This deserves some investigation. FIXME |
| 24839 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24840 | else |
| 24841 | ld_shlibs_GCJ=no |
| 24842 | fi |
| 24843 | ;; |
| 24844 | |
| 24845 | cygwin* | mingw* | pw32*) |
| 24846 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24847 | # as there is no search path for DLLs. |
| 24848 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24849 | allow_undefined_flag_GCJ=unsupported |
| 24850 | always_export_symbols_GCJ=no |
| 24851 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24852 | 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] | 24853 | |
| 24854 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24855 | 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] | 24856 | # If the export-symbols file already is a .def file (1st line |
| 24857 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24858 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24859 | cp $export_symbols $output_objdir/$soname.def; |
| 24860 | else |
| 24861 | echo EXPORTS > $output_objdir/$soname.def; |
| 24862 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24863 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24864 | $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] | 24865 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24866 | ld_shlibs_GCJ=no |
| 24867 | fi |
| 24868 | ;; |
| 24869 | |
| 24870 | interix3*) |
| 24871 | hardcode_direct_GCJ=no |
| 24872 | hardcode_shlibpath_var_GCJ=no |
| 24873 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24874 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24875 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24876 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24877 | # default) and relocated if they conflict, which is a slow very memory |
| 24878 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24879 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24880 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24881 | 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' |
| 24882 | 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' |
| 24883 | ;; |
| 24884 | |
| 24885 | linux*) |
| 24886 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24887 | tmp_addflag= |
| 24888 | case $cc_basename,$host_cpu in |
| 24889 | pgcc*) # Portland Group C compiler |
| 24890 | 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' |
| 24891 | tmp_addflag=' $pic_flag' |
| 24892 | ;; |
| 24893 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24894 | 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' |
| 24895 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24896 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24897 | tmp_addflag=' -i_dynamic' ;; |
| 24898 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24899 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24900 | ifc* | ifort*) # Intel Fortran compiler |
| 24901 | tmp_addflag=' -nofor_main' ;; |
| 24902 | esac |
| 24903 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24904 | |
| 24905 | if test $supports_anon_versioning = yes; then |
| 24906 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24907 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24908 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24909 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24910 | fi |
| 24911 | else |
| 24912 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24913 | fi |
| 24914 | ;; |
| 24915 | |
| 24916 | netbsd*) |
| 24917 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24918 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24919 | wlarc= |
| 24920 | else |
| 24921 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24922 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24923 | fi |
| 24924 | ;; |
| 24925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24926 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24927 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24928 | ld_shlibs_GCJ=no |
| 24929 | cat <<EOF 1>&2 |
| 24930 | |
| 24931 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24932 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24933 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24934 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24935 | *** your PATH or compiler configuration so that the native linker is |
| 24936 | *** used, and then restart. |
| 24937 | |
| 24938 | EOF |
| 24939 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24940 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24941 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24942 | else |
| 24943 | ld_shlibs_GCJ=no |
| 24944 | fi |
| 24945 | ;; |
| 24946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24947 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24948 | case `$LD -v 2>&1` in |
| 24949 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24950 | ld_shlibs_GCJ=no |
| 24951 | cat <<_LT_EOF 1>&2 |
| 24952 | |
| 24953 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24954 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24955 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24956 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24957 | *** your PATH or compiler configuration so that the native linker is |
| 24958 | *** used, and then restart. |
| 24959 | |
| 24960 | _LT_EOF |
| 24961 | ;; |
| 24962 | *) |
| 24963 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24964 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24965 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24966 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24967 | else |
| 24968 | ld_shlibs_GCJ=no |
| 24969 | fi |
| 24970 | ;; |
| 24971 | esac |
| 24972 | ;; |
| 24973 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24974 | sunos4*) |
| 24975 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24976 | wlarc= |
| 24977 | hardcode_direct_GCJ=yes |
| 24978 | hardcode_shlibpath_var_GCJ=no |
| 24979 | ;; |
| 24980 | |
| 24981 | *) |
| 24982 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24983 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24984 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24985 | else |
| 24986 | ld_shlibs_GCJ=no |
| 24987 | fi |
| 24988 | ;; |
| 24989 | esac |
| 24990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24991 | if test "$ld_shlibs_GCJ" = no; then |
| 24992 | runpath_var= |
| 24993 | hardcode_libdir_flag_spec_GCJ= |
| 24994 | export_dynamic_flag_spec_GCJ= |
| 24995 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24996 | fi |
| 24997 | else |
| 24998 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24999 | case $host_os in |
| 25000 | aix3*) |
| 25001 | allow_undefined_flag_GCJ=unsupported |
| 25002 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25003 | 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] | 25004 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 25005 | # are no directories specified by -L. |
| 25006 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25007 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25008 | # Neither direct hardcoding nor static linking is supported with a |
| 25009 | # broken collect2. |
| 25010 | hardcode_direct_GCJ=unsupported |
| 25011 | fi |
| 25012 | ;; |
| 25013 | |
| 25014 | aix4* | aix5*) |
| 25015 | if test "$host_cpu" = ia64; then |
| 25016 | # On IA64, the linker does run time linking by default, so we don't |
| 25017 | # have to do anything special. |
| 25018 | aix_use_runtimelinking=no |
| 25019 | exp_sym_flag='-Bexport' |
| 25020 | no_entry_flag="" |
| 25021 | else |
| 25022 | # If we're using GNU nm, then we don't want the "-C" option. |
| 25023 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 25024 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 25025 | 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' |
| 25026 | else |
| 25027 | 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' |
| 25028 | fi |
| 25029 | aix_use_runtimelinking=no |
| 25030 | |
| 25031 | # Test if we are trying to use run time linking or normal |
| 25032 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 25033 | # need to do runtime linking. |
| 25034 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 25035 | for ld_flag in $LDFLAGS; do |
| 25036 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 25037 | aix_use_runtimelinking=yes |
| 25038 | break |
| 25039 | fi |
| 25040 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25041 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25042 | esac |
| 25043 | |
| 25044 | exp_sym_flag='-bexport' |
| 25045 | no_entry_flag='-bnoentry' |
| 25046 | fi |
| 25047 | |
| 25048 | # When large executables or shared objects are built, AIX ld can |
| 25049 | # have problems creating the table of contents. If linking a library |
| 25050 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 25051 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 25052 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 25053 | |
| 25054 | archive_cmds_GCJ='' |
| 25055 | hardcode_direct_GCJ=yes |
| 25056 | hardcode_libdir_separator_GCJ=':' |
| 25057 | link_all_deplibs_GCJ=yes |
| 25058 | |
| 25059 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25060 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25061 | # We only want to do this on AIX 4.2 and lower, the check |
| 25062 | # below for broken collect2 doesn't work under 4.3+ |
| 25063 | collect2name=`${CC} -print-prog-name=collect2` |
| 25064 | if test -f "$collect2name" && \ |
| 25065 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 25066 | then |
| 25067 | # We have reworked collect2 |
| 25068 | hardcode_direct_GCJ=yes |
| 25069 | else |
| 25070 | # We have old collect2 |
| 25071 | hardcode_direct_GCJ=unsupported |
| 25072 | # It fails to find uninstalled libraries when the uninstalled |
| 25073 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 25074 | # to unsupported forces relinking |
| 25075 | hardcode_minus_L_GCJ=yes |
| 25076 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25077 | hardcode_libdir_separator_GCJ= |
| 25078 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25079 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25080 | esac |
| 25081 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25082 | if test "$aix_use_runtimelinking" = yes; then |
| 25083 | shared_flag="$shared_flag "'${wl}-G' |
| 25084 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25085 | else |
| 25086 | # not using gcc |
| 25087 | if test "$host_cpu" = ia64; then |
| 25088 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 25089 | # chokes on -Wl,-G. The following line is correct: |
| 25090 | shared_flag='-G' |
| 25091 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25092 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25093 | shared_flag='${wl}-G' |
| 25094 | else |
| 25095 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25096 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25097 | fi |
| 25098 | fi |
| 25099 | |
| 25100 | # It seems that -bexpall does not export symbols beginning with |
| 25101 | # underscore (_), so it is better to generate a list of symbols to export. |
| 25102 | always_export_symbols_GCJ=yes |
| 25103 | if test "$aix_use_runtimelinking" = yes; then |
| 25104 | # Warning - without using the other runtime loading flags (-brtl), |
| 25105 | # -berok will link without error, but may produce a broken library. |
| 25106 | allow_undefined_flag_GCJ='-berok' |
| 25107 | # Determine the default libpath from the value encoded in an empty executable. |
| 25108 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25109 | /* confdefs.h. */ |
| 25110 | _ACEOF |
| 25111 | cat confdefs.h >>conftest.$ac_ext |
| 25112 | cat >>conftest.$ac_ext <<_ACEOF |
| 25113 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25114 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25115 | int |
| 25116 | main () |
| 25117 | { |
| 25118 | |
| 25119 | ; |
| 25120 | return 0; |
| 25121 | } |
| 25122 | _ACEOF |
| 25123 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25124 | if { (ac_try="$ac_link" |
| 25125 | case "(($ac_try" in |
| 25126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25127 | *) ac_try_echo=$ac_try;; |
| 25128 | esac |
| 25129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25130 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25131 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25133 | rm -f conftest.er1 |
| 25134 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25136 | (exit $ac_status); } && |
| 25137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 25138 | { (case "(($ac_try" in |
| 25139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25140 | *) ac_try_echo=$ac_try;; |
| 25141 | esac |
| 25142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25143 | (eval "$ac_try") 2>&5 |
| 25144 | ac_status=$? |
| 25145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25146 | (exit $ac_status); }; } && |
| 25147 | { ac_try='test -s conftest$ac_exeext' |
| 25148 | { (case "(($ac_try" in |
| 25149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25150 | *) ac_try_echo=$ac_try;; |
| 25151 | esac |
| 25152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25153 | (eval "$ac_try") 2>&5 |
| 25154 | ac_status=$? |
| 25155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25156 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25157 | |
| 25158 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 25159 | }'` |
| 25160 | # Check for a 64-bit object if we didn't find anything. |
| 25161 | 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; } |
| 25162 | }'`; fi |
| 25163 | else |
| 25164 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25167 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25168 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25169 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25170 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25171 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25172 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 25173 | |
| 25174 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25175 | 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] | 25176 | else |
| 25177 | if test "$host_cpu" = ia64; then |
| 25178 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 25179 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25180 | 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] | 25181 | else |
| 25182 | # Determine the default libpath from the value encoded in an empty executable. |
| 25183 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25184 | /* confdefs.h. */ |
| 25185 | _ACEOF |
| 25186 | cat confdefs.h >>conftest.$ac_ext |
| 25187 | cat >>conftest.$ac_ext <<_ACEOF |
| 25188 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25189 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25190 | int |
| 25191 | main () |
| 25192 | { |
| 25193 | |
| 25194 | ; |
| 25195 | return 0; |
| 25196 | } |
| 25197 | _ACEOF |
| 25198 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25199 | if { (ac_try="$ac_link" |
| 25200 | case "(($ac_try" in |
| 25201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25202 | *) ac_try_echo=$ac_try;; |
| 25203 | esac |
| 25204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25205 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25206 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25208 | rm -f conftest.er1 |
| 25209 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25211 | (exit $ac_status); } && |
| 25212 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 25213 | { (case "(($ac_try" in |
| 25214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25215 | *) ac_try_echo=$ac_try;; |
| 25216 | esac |
| 25217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25218 | (eval "$ac_try") 2>&5 |
| 25219 | ac_status=$? |
| 25220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25221 | (exit $ac_status); }; } && |
| 25222 | { ac_try='test -s conftest$ac_exeext' |
| 25223 | { (case "(($ac_try" in |
| 25224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25225 | *) ac_try_echo=$ac_try;; |
| 25226 | esac |
| 25227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25228 | (eval "$ac_try") 2>&5 |
| 25229 | ac_status=$? |
| 25230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25231 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25232 | |
| 25233 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 25234 | }'` |
| 25235 | # Check for a 64-bit object if we didn't find anything. |
| 25236 | 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; } |
| 25237 | }'`; fi |
| 25238 | else |
| 25239 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25242 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25244 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25245 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25246 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25247 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 25248 | |
| 25249 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 25250 | # Warning - without using the other run time loading flags, |
| 25251 | # -berok will link without error, but may produce a broken library. |
| 25252 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 25253 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25254 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25255 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25256 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25257 | # This is similar to how AIX traditionally builds its shared libraries. |
| 25258 | 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] | 25259 | fi |
| 25260 | fi |
| 25261 | ;; |
| 25262 | |
| 25263 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25264 | 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] | 25265 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25266 | hardcode_minus_L_GCJ=yes |
| 25267 | # see comment about different semantics on the GNU ld section |
| 25268 | ld_shlibs_GCJ=no |
| 25269 | ;; |
| 25270 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25271 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25272 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 25273 | ;; |
| 25274 | |
| 25275 | cygwin* | mingw* | pw32*) |
| 25276 | # When not using gcc, we currently assume that we are using |
| 25277 | # Microsoft Visual C++. |
| 25278 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 25279 | # no search path for DLLs. |
| 25280 | hardcode_libdir_flag_spec_GCJ=' ' |
| 25281 | allow_undefined_flag_GCJ=unsupported |
| 25282 | # Tell ltmain to make .lib files, not .a files. |
| 25283 | libext=lib |
| 25284 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25285 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25286 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25287 | 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] | 25288 | # The linker will automatically build a .lib file if we build a DLL. |
| 25289 | old_archive_From_new_cmds_GCJ='true' |
| 25290 | # FIXME: Should let the user specify the lib program. |
| 25291 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25292 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25293 | enable_shared_with_static_runtimes_GCJ=yes |
| 25294 | ;; |
| 25295 | |
| 25296 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25297 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25298 | rhapsody* | darwin1.[012]) |
| 25299 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 25300 | ;; |
| 25301 | *) # Darwin 1.3 on |
| 25302 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 25303 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25304 | else |
| 25305 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 25306 | 10.[012]) |
| 25307 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25308 | ;; |
| 25309 | 10.*) |
| 25310 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 25311 | ;; |
| 25312 | esac |
| 25313 | fi |
| 25314 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25315 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25316 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25317 | hardcode_direct_GCJ=no |
| 25318 | hardcode_automatic_GCJ=yes |
| 25319 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25320 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25321 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25322 | if test "$GCC" = yes ; then |
| 25323 | output_verbose_link_cmd='echo' |
| 25324 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 25325 | 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] | 25326 | # 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] | 25327 | 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}' |
| 25328 | 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] | 25329 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25330 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25331 | xlc*) |
| 25332 | output_verbose_link_cmd='echo' |
| 25333 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 25334 | 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] | 25335 | # 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] | 25336 | 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}' |
| 25337 | 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] | 25338 | ;; |
| 25339 | *) |
| 25340 | ld_shlibs_GCJ=no |
| 25341 | ;; |
| 25342 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25343 | fi |
| 25344 | ;; |
| 25345 | |
| 25346 | dgux*) |
| 25347 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25348 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25349 | hardcode_shlibpath_var_GCJ=no |
| 25350 | ;; |
| 25351 | |
| 25352 | freebsd1*) |
| 25353 | ld_shlibs_GCJ=no |
| 25354 | ;; |
| 25355 | |
| 25356 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 25357 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 25358 | # does not break anything, and helps significantly (at the cost of a little |
| 25359 | # extra space). |
| 25360 | freebsd2.2*) |
| 25361 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 25362 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25363 | hardcode_direct_GCJ=yes |
| 25364 | hardcode_shlibpath_var_GCJ=no |
| 25365 | ;; |
| 25366 | |
| 25367 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 25368 | freebsd2*) |
| 25369 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25370 | hardcode_direct_GCJ=yes |
| 25371 | hardcode_minus_L_GCJ=yes |
| 25372 | hardcode_shlibpath_var_GCJ=no |
| 25373 | ;; |
| 25374 | |
| 25375 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25376 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25377 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 25378 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25379 | hardcode_direct_GCJ=yes |
| 25380 | hardcode_shlibpath_var_GCJ=no |
| 25381 | ;; |
| 25382 | |
| 25383 | hpux9*) |
| 25384 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25385 | 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] | 25386 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25387 | 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] | 25388 | fi |
| 25389 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25390 | hardcode_libdir_separator_GCJ=: |
| 25391 | hardcode_direct_GCJ=yes |
| 25392 | |
| 25393 | # hardcode_minus_L: Not really in the search PATH, |
| 25394 | # but as the default location of the library. |
| 25395 | hardcode_minus_L_GCJ=yes |
| 25396 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25397 | ;; |
| 25398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25399 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25400 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25401 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25402 | else |
| 25403 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 25404 | fi |
| 25405 | if test "$with_gnu_ld" = no; then |
| 25406 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25407 | hardcode_libdir_separator_GCJ=: |
| 25408 | |
| 25409 | hardcode_direct_GCJ=yes |
| 25410 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25411 | |
| 25412 | # hardcode_minus_L: Not really in the search PATH, |
| 25413 | # but as the default location of the library. |
| 25414 | hardcode_minus_L_GCJ=yes |
| 25415 | fi |
| 25416 | ;; |
| 25417 | |
| 25418 | hpux11*) |
| 25419 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 25420 | case $host_cpu in |
| 25421 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25422 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25423 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25424 | ia64*) |
| 25425 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 25426 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25427 | *) |
| 25428 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25429 | ;; |
| 25430 | esac |
| 25431 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25432 | case $host_cpu in |
| 25433 | hppa*64*) |
| 25434 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25435 | ;; |
| 25436 | ia64*) |
| 25437 | 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] | 25438 | ;; |
| 25439 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25440 | 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] | 25441 | ;; |
| 25442 | esac |
| 25443 | fi |
| 25444 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25445 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25446 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25448 | case $host_cpu in |
| 25449 | hppa*64*|ia64*) |
| 25450 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 25451 | hardcode_direct_GCJ=no |
| 25452 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25453 | ;; |
| 25454 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25455 | hardcode_direct_GCJ=yes |
| 25456 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25457 | |
| 25458 | # hardcode_minus_L: Not really in the search PATH, |
| 25459 | # but as the default location of the library. |
| 25460 | hardcode_minus_L_GCJ=yes |
| 25461 | ;; |
| 25462 | esac |
| 25463 | fi |
| 25464 | ;; |
| 25465 | |
| 25466 | irix5* | irix6* | nonstopux*) |
| 25467 | if test "$GCC" = yes; then |
| 25468 | 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' |
| 25469 | else |
| 25470 | 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' |
| 25471 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 25472 | fi |
| 25473 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25474 | hardcode_libdir_separator_GCJ=: |
| 25475 | link_all_deplibs_GCJ=yes |
| 25476 | ;; |
| 25477 | |
| 25478 | netbsd*) |
| 25479 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25480 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 25481 | else |
| 25482 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 25483 | fi |
| 25484 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25485 | hardcode_direct_GCJ=yes |
| 25486 | hardcode_shlibpath_var_GCJ=no |
| 25487 | ;; |
| 25488 | |
| 25489 | newsos6) |
| 25490 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25491 | hardcode_direct_GCJ=yes |
| 25492 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25493 | hardcode_libdir_separator_GCJ=: |
| 25494 | hardcode_shlibpath_var_GCJ=no |
| 25495 | ;; |
| 25496 | |
| 25497 | openbsd*) |
| 25498 | hardcode_direct_GCJ=yes |
| 25499 | hardcode_shlibpath_var_GCJ=no |
| 25500 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25501 | 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] | 25502 | 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] | 25503 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25504 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25505 | else |
| 25506 | case $host_os in |
| 25507 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 25508 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25509 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25510 | ;; |
| 25511 | *) |
| 25512 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25513 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25514 | ;; |
| 25515 | esac |
| 25516 | fi |
| 25517 | ;; |
| 25518 | |
| 25519 | os2*) |
| 25520 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25521 | hardcode_minus_L_GCJ=yes |
| 25522 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25523 | 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] | 25524 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 25525 | ;; |
| 25526 | |
| 25527 | osf3*) |
| 25528 | if test "$GCC" = yes; then |
| 25529 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25530 | 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' |
| 25531 | else |
| 25532 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25533 | 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' |
| 25534 | fi |
| 25535 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25536 | hardcode_libdir_separator_GCJ=: |
| 25537 | ;; |
| 25538 | |
| 25539 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25540 | if test "$GCC" = yes; then |
| 25541 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25542 | 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' |
| 25543 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25544 | else |
| 25545 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25546 | 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] | 25547 | 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] | 25548 | $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] | 25549 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25550 | # Both c and cxx compiler support -rpath directly |
| 25551 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 25552 | fi |
| 25553 | hardcode_libdir_separator_GCJ=: |
| 25554 | ;; |
| 25555 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25556 | solaris*) |
| 25557 | no_undefined_flag_GCJ=' -z text' |
| 25558 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25559 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25560 | 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] | 25561 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25562 | $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] | 25563 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25564 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25565 | 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] | 25566 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25567 | $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] | 25568 | fi |
| 25569 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25570 | hardcode_shlibpath_var_GCJ=no |
| 25571 | case $host_os in |
| 25572 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25573 | *) |
| 25574 | # The compiler driver will combine linker options so we |
| 25575 | # cannot just pass the convience library names through |
| 25576 | # without $wl, iff we do not link with $LD. |
| 25577 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25578 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25579 | case $wlarc in |
| 25580 | '') |
| 25581 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25582 | *) |
| 25583 | 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' ;; |
| 25584 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25585 | esac |
| 25586 | link_all_deplibs_GCJ=yes |
| 25587 | ;; |
| 25588 | |
| 25589 | sunos4*) |
| 25590 | if test "x$host_vendor" = xsequent; then |
| 25591 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25592 | # files that make .init and .fini sections work. |
| 25593 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25594 | else |
| 25595 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25596 | fi |
| 25597 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25598 | hardcode_direct_GCJ=yes |
| 25599 | hardcode_minus_L_GCJ=yes |
| 25600 | hardcode_shlibpath_var_GCJ=no |
| 25601 | ;; |
| 25602 | |
| 25603 | sysv4) |
| 25604 | case $host_vendor in |
| 25605 | sni) |
| 25606 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25607 | hardcode_direct_GCJ=yes # is this really true??? |
| 25608 | ;; |
| 25609 | siemens) |
| 25610 | ## LD is ld it makes a PLAMLIB |
| 25611 | ## CC just makes a GrossModule. |
| 25612 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25613 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25614 | hardcode_direct_GCJ=no |
| 25615 | ;; |
| 25616 | motorola) |
| 25617 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25618 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25619 | ;; |
| 25620 | esac |
| 25621 | runpath_var='LD_RUN_PATH' |
| 25622 | hardcode_shlibpath_var_GCJ=no |
| 25623 | ;; |
| 25624 | |
| 25625 | sysv4.3*) |
| 25626 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25627 | hardcode_shlibpath_var_GCJ=no |
| 25628 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25629 | ;; |
| 25630 | |
| 25631 | sysv4*MP*) |
| 25632 | if test -d /usr/nec; then |
| 25633 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25634 | hardcode_shlibpath_var_GCJ=no |
| 25635 | runpath_var=LD_RUN_PATH |
| 25636 | hardcode_runpath_var=yes |
| 25637 | ld_shlibs_GCJ=yes |
| 25638 | fi |
| 25639 | ;; |
| 25640 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25641 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25642 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25643 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25644 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25645 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25646 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25647 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25648 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25649 | 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] | 25650 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25651 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25652 | 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] | 25653 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25654 | ;; |
| 25655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25656 | sysv5* | sco3.2v5* | sco5v6*) |
| 25657 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25658 | # link with -lc, and that would cause any symbols used from libc to |
| 25659 | # always be unresolved, which means just about no library would |
| 25660 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25661 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25662 | # as -z defs. |
| 25663 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25664 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25665 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25666 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25667 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25668 | hardcode_libdir_separator_GCJ=':' |
| 25669 | link_all_deplibs_GCJ=yes |
| 25670 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25671 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25672 | |
| 25673 | if test "$GCC" = yes; then |
| 25674 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25675 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25676 | else |
| 25677 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25678 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25679 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25680 | ;; |
| 25681 | |
| 25682 | uts4*) |
| 25683 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25684 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25685 | hardcode_shlibpath_var_GCJ=no |
| 25686 | ;; |
| 25687 | |
| 25688 | *) |
| 25689 | ld_shlibs_GCJ=no |
| 25690 | ;; |
| 25691 | esac |
| 25692 | fi |
| 25693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25694 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25695 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25696 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25697 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25698 | # |
| 25699 | # Do we need to explicitly link libc? |
| 25700 | # |
| 25701 | case "x$archive_cmds_need_lc_GCJ" in |
| 25702 | x|xyes) |
| 25703 | # Assume -lc should be added |
| 25704 | archive_cmds_need_lc_GCJ=yes |
| 25705 | |
| 25706 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25707 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25708 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25709 | # FIXME: we may have to deal with multi-command sequences. |
| 25710 | ;; |
| 25711 | '$CC '*) |
| 25712 | # Test whether the compiler implicitly links with -lc since on some |
| 25713 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25714 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25715 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25716 | 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] | 25717 | $rm conftest* |
| 25718 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25719 | |
| 25720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25721 | (eval $ac_compile) 2>&5 |
| 25722 | ac_status=$? |
| 25723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25724 | (exit $ac_status); } 2>conftest.err; then |
| 25725 | soname=conftest |
| 25726 | lib=conftest |
| 25727 | libobjs=conftest.$ac_objext |
| 25728 | deplibs= |
| 25729 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25730 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25731 | compiler_flags=-v |
| 25732 | linker_flags=-v |
| 25733 | verstring= |
| 25734 | output_objdir=. |
| 25735 | libname=conftest |
| 25736 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25737 | allow_undefined_flag_GCJ= |
| 25738 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25739 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25740 | ac_status=$? |
| 25741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25742 | (exit $ac_status); } |
| 25743 | then |
| 25744 | archive_cmds_need_lc_GCJ=no |
| 25745 | else |
| 25746 | archive_cmds_need_lc_GCJ=yes |
| 25747 | fi |
| 25748 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25749 | else |
| 25750 | cat conftest.err 1>&5 |
| 25751 | fi |
| 25752 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25753 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25754 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25755 | ;; |
| 25756 | esac |
| 25757 | fi |
| 25758 | ;; |
| 25759 | esac |
| 25760 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25761 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25762 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25763 | library_names_spec= |
| 25764 | libname_spec='lib$name' |
| 25765 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25766 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25767 | postinstall_cmds= |
| 25768 | postuninstall_cmds= |
| 25769 | finish_cmds= |
| 25770 | finish_eval= |
| 25771 | shlibpath_var= |
| 25772 | shlibpath_overrides_runpath=unknown |
| 25773 | version_type=none |
| 25774 | dynamic_linker="$host_os ld.so" |
| 25775 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25776 | if test "$GCC" = yes; then |
| 25777 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25778 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25779 | # if the path contains ";" then we assume it to be the separator |
| 25780 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25781 | # assumed that no part of a normal pathname contains ";" but that should |
| 25782 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25783 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25784 | else |
| 25785 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25786 | fi |
| 25787 | else |
| 25788 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25789 | fi |
| 25790 | need_lib_prefix=unknown |
| 25791 | hardcode_into_libs=no |
| 25792 | |
| 25793 | # when you set need_version to no, make sure it does not cause -set_version |
| 25794 | # flags to be left without arguments |
| 25795 | need_version=unknown |
| 25796 | |
| 25797 | case $host_os in |
| 25798 | aix3*) |
| 25799 | version_type=linux |
| 25800 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25801 | shlibpath_var=LIBPATH |
| 25802 | |
| 25803 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25804 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25805 | ;; |
| 25806 | |
| 25807 | aix4* | aix5*) |
| 25808 | version_type=linux |
| 25809 | need_lib_prefix=no |
| 25810 | need_version=no |
| 25811 | hardcode_into_libs=yes |
| 25812 | if test "$host_cpu" = ia64; then |
| 25813 | # AIX 5 supports IA64 |
| 25814 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25815 | shlibpath_var=LD_LIBRARY_PATH |
| 25816 | else |
| 25817 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25818 | # for dependence libraries. The import file would start with |
| 25819 | # the line `#! .'. This would cause the generated library to |
| 25820 | # depend on `.', always an invalid library. This was fixed in |
| 25821 | # development snapshots of GCC prior to 3.0. |
| 25822 | case $host_os in |
| 25823 | aix4 | aix4.[01] | aix4.[01].*) |
| 25824 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25825 | echo ' yes ' |
| 25826 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25827 | : |
| 25828 | else |
| 25829 | can_build_shared=no |
| 25830 | fi |
| 25831 | ;; |
| 25832 | esac |
| 25833 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25834 | # soname into executable. Probably we can add versioning support to |
| 25835 | # collect2, so additional links can be useful in future. |
| 25836 | if test "$aix_use_runtimelinking" = yes; then |
| 25837 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25838 | # instead of lib<name>.a to let people know that these are not |
| 25839 | # typical AIX shared libraries. |
| 25840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25841 | else |
| 25842 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25843 | # and later when we are not doing run time linking. |
| 25844 | library_names_spec='${libname}${release}.a $libname.a' |
| 25845 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25846 | fi |
| 25847 | shlibpath_var=LIBPATH |
| 25848 | fi |
| 25849 | ;; |
| 25850 | |
| 25851 | amigaos*) |
| 25852 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25853 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25854 | 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] | 25855 | ;; |
| 25856 | |
| 25857 | beos*) |
| 25858 | library_names_spec='${libname}${shared_ext}' |
| 25859 | dynamic_linker="$host_os ld.so" |
| 25860 | shlibpath_var=LIBRARY_PATH |
| 25861 | ;; |
| 25862 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25863 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25864 | version_type=linux |
| 25865 | need_version=no |
| 25866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25867 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25869 | shlibpath_var=LD_LIBRARY_PATH |
| 25870 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25871 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25872 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25873 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25874 | # libtool to hard-code these into programs |
| 25875 | ;; |
| 25876 | |
| 25877 | cygwin* | mingw* | pw32*) |
| 25878 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25879 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25880 | need_version=no |
| 25881 | need_lib_prefix=no |
| 25882 | |
| 25883 | case $GCC,$host_os in |
| 25884 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25885 | library_names_spec='$libname.dll.a' |
| 25886 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25887 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25888 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25889 | dldir=$destdir/`dirname \$dlpath`~ |
| 25890 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25891 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25892 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25893 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25894 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25895 | $rm \$dlpath' |
| 25896 | shlibpath_overrides_runpath=yes |
| 25897 | |
| 25898 | case $host_os in |
| 25899 | cygwin*) |
| 25900 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25901 | 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] | 25902 | 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] | 25903 | ;; |
| 25904 | mingw*) |
| 25905 | # MinGW DLLs use traditional 'lib' prefix |
| 25906 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25907 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25908 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25909 | # It is most probably a Windows format PATH printed by |
| 25910 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25911 | # path with ; separators, and with drive letters. We can handle the |
| 25912 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25913 | # especially as we might pass files found there to a mingw objdump, |
| 25914 | # which wouldn't understand a cygwinified path. Ahh. |
| 25915 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25916 | else |
| 25917 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25918 | fi |
| 25919 | ;; |
| 25920 | pw32*) |
| 25921 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25922 | 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] | 25923 | ;; |
| 25924 | esac |
| 25925 | ;; |
| 25926 | |
| 25927 | *) |
| 25928 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25929 | ;; |
| 25930 | esac |
| 25931 | dynamic_linker='Win32 ld.exe' |
| 25932 | # FIXME: first we should search . and the directory the executable is in |
| 25933 | shlibpath_var=PATH |
| 25934 | ;; |
| 25935 | |
| 25936 | darwin* | rhapsody*) |
| 25937 | dynamic_linker="$host_os dyld" |
| 25938 | version_type=darwin |
| 25939 | need_lib_prefix=no |
| 25940 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25941 | 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] | 25942 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25943 | shlibpath_overrides_runpath=yes |
| 25944 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25945 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25946 | # 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] | 25947 | if test "$GCC" = yes; then |
| 25948 | 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"` |
| 25949 | else |
| 25950 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25951 | fi |
| 25952 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25953 | ;; |
| 25954 | |
| 25955 | dgux*) |
| 25956 | version_type=linux |
| 25957 | need_lib_prefix=no |
| 25958 | need_version=no |
| 25959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25960 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25961 | shlibpath_var=LD_LIBRARY_PATH |
| 25962 | ;; |
| 25963 | |
| 25964 | freebsd1*) |
| 25965 | dynamic_linker=no |
| 25966 | ;; |
| 25967 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25968 | kfreebsd*-gnu) |
| 25969 | version_type=linux |
| 25970 | need_lib_prefix=no |
| 25971 | need_version=no |
| 25972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25973 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25974 | shlibpath_var=LD_LIBRARY_PATH |
| 25975 | shlibpath_overrides_runpath=no |
| 25976 | hardcode_into_libs=yes |
| 25977 | dynamic_linker='GNU ld.so' |
| 25978 | ;; |
| 25979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25980 | freebsd* | dragonfly*) |
| 25981 | # DragonFly does not have aout. When/if they implement a new |
| 25982 | # versioning mechanism, adjust this. |
| 25983 | if test -x /usr/bin/objformat; then |
| 25984 | objformat=`/usr/bin/objformat` |
| 25985 | else |
| 25986 | case $host_os in |
| 25987 | freebsd[123]*) objformat=aout ;; |
| 25988 | *) objformat=elf ;; |
| 25989 | esac |
| 25990 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25991 | version_type=freebsd-$objformat |
| 25992 | case $version_type in |
| 25993 | freebsd-elf*) |
| 25994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25995 | need_version=no |
| 25996 | need_lib_prefix=no |
| 25997 | ;; |
| 25998 | freebsd-*) |
| 25999 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 26000 | need_version=yes |
| 26001 | ;; |
| 26002 | esac |
| 26003 | shlibpath_var=LD_LIBRARY_PATH |
| 26004 | case $host_os in |
| 26005 | freebsd2*) |
| 26006 | shlibpath_overrides_runpath=yes |
| 26007 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26008 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26009 | shlibpath_overrides_runpath=yes |
| 26010 | hardcode_into_libs=yes |
| 26011 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26012 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 26013 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26014 | shlibpath_overrides_runpath=no |
| 26015 | hardcode_into_libs=yes |
| 26016 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26017 | freebsd*) # from 4.6 on |
| 26018 | shlibpath_overrides_runpath=yes |
| 26019 | hardcode_into_libs=yes |
| 26020 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26021 | esac |
| 26022 | ;; |
| 26023 | |
| 26024 | gnu*) |
| 26025 | version_type=linux |
| 26026 | need_lib_prefix=no |
| 26027 | need_version=no |
| 26028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 26029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26030 | shlibpath_var=LD_LIBRARY_PATH |
| 26031 | hardcode_into_libs=yes |
| 26032 | ;; |
| 26033 | |
| 26034 | hpux9* | hpux10* | hpux11*) |
| 26035 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 26036 | # link against other versions. |
| 26037 | version_type=sunos |
| 26038 | need_lib_prefix=no |
| 26039 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26040 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26041 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26042 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26043 | hardcode_into_libs=yes |
| 26044 | dynamic_linker="$host_os dld.so" |
| 26045 | shlibpath_var=LD_LIBRARY_PATH |
| 26046 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 26047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26048 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26049 | if test "X$HPUX_IA64_MODE" = X32; then |
| 26050 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 26051 | else |
| 26052 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 26053 | fi |
| 26054 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 26055 | ;; |
| 26056 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26057 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26058 | hardcode_into_libs=yes |
| 26059 | dynamic_linker="$host_os dld.sl" |
| 26060 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 26061 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 26062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26063 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26064 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 26065 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 26066 | ;; |
| 26067 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26068 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26069 | dynamic_linker="$host_os dld.sl" |
| 26070 | shlibpath_var=SHLIB_PATH |
| 26071 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 26072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26073 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26074 | ;; |
| 26075 | esac |
| 26076 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 26077 | postinstall_cmds='chmod 555 $lib' |
| 26078 | ;; |
| 26079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26080 | interix3*) |
| 26081 | version_type=linux |
| 26082 | need_lib_prefix=no |
| 26083 | need_version=no |
| 26084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 26085 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26086 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 26087 | shlibpath_var=LD_LIBRARY_PATH |
| 26088 | shlibpath_overrides_runpath=no |
| 26089 | hardcode_into_libs=yes |
| 26090 | ;; |
| 26091 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26092 | irix5* | irix6* | nonstopux*) |
| 26093 | case $host_os in |
| 26094 | nonstopux*) version_type=nonstopux ;; |
| 26095 | *) |
| 26096 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 26097 | version_type=linux |
| 26098 | else |
| 26099 | version_type=irix |
| 26100 | fi ;; |
| 26101 | esac |
| 26102 | need_lib_prefix=no |
| 26103 | need_version=no |
| 26104 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 26106 | case $host_os in |
| 26107 | irix5* | nonstopux*) |
| 26108 | libsuff= shlibsuff= |
| 26109 | ;; |
| 26110 | *) |
| 26111 | case $LD in # libtool.m4 will add one of these switches to LD |
| 26112 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 26113 | libsuff= shlibsuff= libmagic=32-bit;; |
| 26114 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 26115 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 26116 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 26117 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 26118 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 26119 | esac |
| 26120 | ;; |
| 26121 | esac |
| 26122 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 26123 | shlibpath_overrides_runpath=no |
| 26124 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 26125 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 26126 | hardcode_into_libs=yes |
| 26127 | ;; |
| 26128 | |
| 26129 | # No shared lib support for Linux oldld, aout, or coff. |
| 26130 | linux*oldld* | linux*aout* | linux*coff*) |
| 26131 | dynamic_linker=no |
| 26132 | ;; |
| 26133 | |
| 26134 | # This must be Linux ELF. |
| 26135 | linux*) |
| 26136 | version_type=linux |
| 26137 | need_lib_prefix=no |
| 26138 | need_version=no |
| 26139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26140 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26141 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 26142 | shlibpath_var=LD_LIBRARY_PATH |
| 26143 | shlibpath_overrides_runpath=no |
| 26144 | # This implies no fast_install, which is unacceptable. |
| 26145 | # Some rework will be needed to allow for fast_install |
| 26146 | # before this can be enabled. |
| 26147 | hardcode_into_libs=yes |
| 26148 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26149 | # Append ld.so.conf contents to the search path |
| 26150 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26151 | 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] | 26152 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 26153 | fi |
| 26154 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26155 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 26156 | # powerpc, because MkLinux only supported shared libraries with the |
| 26157 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 26158 | # most powerpc-linux boxes support dynamic linking these days and |
| 26159 | # people can always --disable-shared, the test was removed, and we |
| 26160 | # assume the GNU/Linux dynamic linker is in use. |
| 26161 | dynamic_linker='GNU/Linux ld.so' |
| 26162 | ;; |
| 26163 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26164 | knetbsd*-gnu) |
| 26165 | version_type=linux |
| 26166 | need_lib_prefix=no |
| 26167 | need_version=no |
| 26168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 26169 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26170 | shlibpath_var=LD_LIBRARY_PATH |
| 26171 | shlibpath_overrides_runpath=no |
| 26172 | hardcode_into_libs=yes |
| 26173 | dynamic_linker='GNU ld.so' |
| 26174 | ;; |
| 26175 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26176 | netbsd*) |
| 26177 | version_type=sunos |
| 26178 | need_lib_prefix=no |
| 26179 | need_version=no |
| 26180 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 26181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26182 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 26183 | dynamic_linker='NetBSD (a.out) ld.so' |
| 26184 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26185 | 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] | 26186 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26187 | dynamic_linker='NetBSD ld.elf_so' |
| 26188 | fi |
| 26189 | shlibpath_var=LD_LIBRARY_PATH |
| 26190 | shlibpath_overrides_runpath=yes |
| 26191 | hardcode_into_libs=yes |
| 26192 | ;; |
| 26193 | |
| 26194 | newsos6) |
| 26195 | version_type=linux |
| 26196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26197 | shlibpath_var=LD_LIBRARY_PATH |
| 26198 | shlibpath_overrides_runpath=yes |
| 26199 | ;; |
| 26200 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26201 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26202 | version_type=linux |
| 26203 | need_lib_prefix=no |
| 26204 | need_version=no |
| 26205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26206 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26207 | shlibpath_var=LD_LIBRARY_PATH |
| 26208 | shlibpath_overrides_runpath=yes |
| 26209 | ;; |
| 26210 | |
| 26211 | openbsd*) |
| 26212 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26213 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26214 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26215 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 26216 | case $host_os in |
| 26217 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 26218 | *) need_version=no ;; |
| 26219 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26221 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 26222 | shlibpath_var=LD_LIBRARY_PATH |
| 26223 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 26224 | case $host_os in |
| 26225 | openbsd2.[89] | openbsd2.[89].*) |
| 26226 | shlibpath_overrides_runpath=no |
| 26227 | ;; |
| 26228 | *) |
| 26229 | shlibpath_overrides_runpath=yes |
| 26230 | ;; |
| 26231 | esac |
| 26232 | else |
| 26233 | shlibpath_overrides_runpath=yes |
| 26234 | fi |
| 26235 | ;; |
| 26236 | |
| 26237 | os2*) |
| 26238 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26239 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26240 | need_lib_prefix=no |
| 26241 | library_names_spec='$libname${shared_ext} $libname.a' |
| 26242 | dynamic_linker='OS/2 ld.exe' |
| 26243 | shlibpath_var=LIBPATH |
| 26244 | ;; |
| 26245 | |
| 26246 | osf3* | osf4* | osf5*) |
| 26247 | version_type=osf |
| 26248 | need_lib_prefix=no |
| 26249 | need_version=no |
| 26250 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26252 | shlibpath_var=LD_LIBRARY_PATH |
| 26253 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 26254 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 26255 | ;; |
| 26256 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26257 | solaris*) |
| 26258 | version_type=linux |
| 26259 | need_lib_prefix=no |
| 26260 | need_version=no |
| 26261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26262 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26263 | shlibpath_var=LD_LIBRARY_PATH |
| 26264 | shlibpath_overrides_runpath=yes |
| 26265 | hardcode_into_libs=yes |
| 26266 | # ldd complains unless libraries are executable |
| 26267 | postinstall_cmds='chmod +x $lib' |
| 26268 | ;; |
| 26269 | |
| 26270 | sunos4*) |
| 26271 | version_type=sunos |
| 26272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26273 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 26274 | shlibpath_var=LD_LIBRARY_PATH |
| 26275 | shlibpath_overrides_runpath=yes |
| 26276 | if test "$with_gnu_ld" = yes; then |
| 26277 | need_lib_prefix=no |
| 26278 | fi |
| 26279 | need_version=yes |
| 26280 | ;; |
| 26281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26282 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26283 | version_type=linux |
| 26284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26285 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26286 | shlibpath_var=LD_LIBRARY_PATH |
| 26287 | case $host_vendor in |
| 26288 | sni) |
| 26289 | shlibpath_overrides_runpath=no |
| 26290 | need_lib_prefix=no |
| 26291 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 26292 | runpath_var=LD_RUN_PATH |
| 26293 | ;; |
| 26294 | siemens) |
| 26295 | need_lib_prefix=no |
| 26296 | ;; |
| 26297 | motorola) |
| 26298 | need_lib_prefix=no |
| 26299 | need_version=no |
| 26300 | shlibpath_overrides_runpath=no |
| 26301 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 26302 | ;; |
| 26303 | esac |
| 26304 | ;; |
| 26305 | |
| 26306 | sysv4*MP*) |
| 26307 | if test -d /usr/nec ;then |
| 26308 | version_type=linux |
| 26309 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 26310 | soname_spec='$libname${shared_ext}.$major' |
| 26311 | shlibpath_var=LD_LIBRARY_PATH |
| 26312 | fi |
| 26313 | ;; |
| 26314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26315 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 26316 | version_type=freebsd-elf |
| 26317 | need_lib_prefix=no |
| 26318 | need_version=no |
| 26319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 26320 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26321 | shlibpath_var=LD_LIBRARY_PATH |
| 26322 | hardcode_into_libs=yes |
| 26323 | if test "$with_gnu_ld" = yes; then |
| 26324 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 26325 | shlibpath_overrides_runpath=no |
| 26326 | else |
| 26327 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 26328 | shlibpath_overrides_runpath=yes |
| 26329 | case $host_os in |
| 26330 | sco3.2v5*) |
| 26331 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 26332 | ;; |
| 26333 | esac |
| 26334 | fi |
| 26335 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 26336 | ;; |
| 26337 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26338 | uts4*) |
| 26339 | version_type=linux |
| 26340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26341 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26342 | shlibpath_var=LD_LIBRARY_PATH |
| 26343 | ;; |
| 26344 | |
| 26345 | *) |
| 26346 | dynamic_linker=no |
| 26347 | ;; |
| 26348 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26349 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 26350 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26351 | test "$dynamic_linker" = no && can_build_shared=no |
| 26352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26353 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 26354 | if test "$GCC" = yes; then |
| 26355 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 26356 | fi |
| 26357 | |
| 26358 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 26359 | 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] | 26360 | hardcode_action_GCJ= |
| 26361 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 26362 | test -n "$runpath_var_GCJ" || \ |
| 26363 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 26364 | |
| 26365 | # We can hardcode non-existant directories. |
| 26366 | if test "$hardcode_direct_GCJ" != no && |
| 26367 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 26368 | # have to relink, otherwise we might link with an installed library |
| 26369 | # when we should be linking with a yet-to-be-installed one |
| 26370 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 26371 | test "$hardcode_minus_L_GCJ" != no; then |
| 26372 | # Linking always hardcodes the temporary library directory. |
| 26373 | hardcode_action_GCJ=relink |
| 26374 | else |
| 26375 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 26376 | hardcode_action_GCJ=immediate |
| 26377 | fi |
| 26378 | else |
| 26379 | # We cannot hardcode anything, or else we can only hardcode existing |
| 26380 | # directories. |
| 26381 | hardcode_action_GCJ=unsupported |
| 26382 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26383 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 26384 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26385 | |
| 26386 | if test "$hardcode_action_GCJ" = relink; then |
| 26387 | # Fast installation is not supported |
| 26388 | enable_fast_install=no |
| 26389 | elif test "$shlibpath_overrides_runpath" = yes || |
| 26390 | test "$enable_shared" = no; then |
| 26391 | # Fast installation is not necessary |
| 26392 | enable_fast_install=needless |
| 26393 | fi |
| 26394 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26395 | |
| 26396 | # The else clause should only fire when bootstrapping the |
| 26397 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26398 | # with your package, and you will get complaints that there are |
| 26399 | # no rules to generate ltmain.sh. |
| 26400 | if test -f "$ltmain"; then |
| 26401 | # See if we are running on zsh, and set the options which allow our commands through |
| 26402 | # without removal of \ escapes. |
| 26403 | if test -n "${ZSH_VERSION+set}" ; then |
| 26404 | setopt NO_GLOB_SUBST |
| 26405 | fi |
| 26406 | # Now quote all the things that may contain metacharacters while being |
| 26407 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26408 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26409 | 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] | 26410 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26411 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26412 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26413 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26414 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26415 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26416 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26417 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26418 | compiler_GCJ \ |
| 26419 | CC_GCJ \ |
| 26420 | LD_GCJ \ |
| 26421 | lt_prog_compiler_wl_GCJ \ |
| 26422 | lt_prog_compiler_pic_GCJ \ |
| 26423 | lt_prog_compiler_static_GCJ \ |
| 26424 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 26425 | export_dynamic_flag_spec_GCJ \ |
| 26426 | thread_safe_flag_spec_GCJ \ |
| 26427 | whole_archive_flag_spec_GCJ \ |
| 26428 | enable_shared_with_static_runtimes_GCJ \ |
| 26429 | old_archive_cmds_GCJ \ |
| 26430 | old_archive_from_new_cmds_GCJ \ |
| 26431 | predep_objects_GCJ \ |
| 26432 | postdep_objects_GCJ \ |
| 26433 | predeps_GCJ \ |
| 26434 | postdeps_GCJ \ |
| 26435 | compiler_lib_search_path_GCJ \ |
| 26436 | archive_cmds_GCJ \ |
| 26437 | archive_expsym_cmds_GCJ \ |
| 26438 | postinstall_cmds_GCJ \ |
| 26439 | postuninstall_cmds_GCJ \ |
| 26440 | old_archive_from_expsyms_cmds_GCJ \ |
| 26441 | allow_undefined_flag_GCJ \ |
| 26442 | no_undefined_flag_GCJ \ |
| 26443 | export_symbols_cmds_GCJ \ |
| 26444 | hardcode_libdir_flag_spec_GCJ \ |
| 26445 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 26446 | hardcode_libdir_separator_GCJ \ |
| 26447 | hardcode_automatic_GCJ \ |
| 26448 | module_cmds_GCJ \ |
| 26449 | module_expsym_cmds_GCJ \ |
| 26450 | lt_cv_prog_compiler_c_o_GCJ \ |
| 26451 | exclude_expsyms_GCJ \ |
| 26452 | include_expsyms_GCJ; do |
| 26453 | |
| 26454 | case $var in |
| 26455 | old_archive_cmds_GCJ | \ |
| 26456 | old_archive_from_new_cmds_GCJ | \ |
| 26457 | archive_cmds_GCJ | \ |
| 26458 | archive_expsym_cmds_GCJ | \ |
| 26459 | module_cmds_GCJ | \ |
| 26460 | module_expsym_cmds_GCJ | \ |
| 26461 | old_archive_from_expsyms_cmds_GCJ | \ |
| 26462 | export_symbols_cmds_GCJ | \ |
| 26463 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26464 | postinstall_cmds | postuninstall_cmds | \ |
| 26465 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26466 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26467 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26468 | 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] | 26469 | ;; |
| 26470 | *) |
| 26471 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26472 | ;; |
| 26473 | esac |
| 26474 | done |
| 26475 | |
| 26476 | case $lt_echo in |
| 26477 | *'\$0 --fallback-echo"') |
| 26478 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26479 | ;; |
| 26480 | esac |
| 26481 | |
| 26482 | cfgfile="$ofile" |
| 26483 | |
| 26484 | cat <<__EOF__ >> "$cfgfile" |
| 26485 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26486 | |
| 26487 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26488 | |
| 26489 | # Shell to use when invoking shell scripts. |
| 26490 | SHELL=$lt_SHELL |
| 26491 | |
| 26492 | # Whether or not to build shared libraries. |
| 26493 | build_libtool_libs=$enable_shared |
| 26494 | |
| 26495 | # Whether or not to build static libraries. |
| 26496 | build_old_libs=$enable_static |
| 26497 | |
| 26498 | # Whether or not to add -lc for building shared libraries. |
| 26499 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 26500 | |
| 26501 | # Whether or not to disallow shared libs when runtime libs are static |
| 26502 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 26503 | |
| 26504 | # Whether or not to optimize for fast installation. |
| 26505 | fast_install=$enable_fast_install |
| 26506 | |
| 26507 | # The host system. |
| 26508 | host_alias=$host_alias |
| 26509 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26510 | host_os=$host_os |
| 26511 | |
| 26512 | # The build system. |
| 26513 | build_alias=$build_alias |
| 26514 | build=$build |
| 26515 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26516 | |
| 26517 | # An echo program that does not interpret backslashes. |
| 26518 | echo=$lt_echo |
| 26519 | |
| 26520 | # The archiver. |
| 26521 | AR=$lt_AR |
| 26522 | AR_FLAGS=$lt_AR_FLAGS |
| 26523 | |
| 26524 | # A C compiler. |
| 26525 | LTCC=$lt_LTCC |
| 26526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26527 | # LTCC compiler flags. |
| 26528 | LTCFLAGS=$lt_LTCFLAGS |
| 26529 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26530 | # A language-specific compiler. |
| 26531 | CC=$lt_compiler_GCJ |
| 26532 | |
| 26533 | # Is the compiler the GNU C compiler? |
| 26534 | with_gcc=$GCC_GCJ |
| 26535 | |
| 26536 | # An ERE matcher. |
| 26537 | EGREP=$lt_EGREP |
| 26538 | |
| 26539 | # The linker used to build libraries. |
| 26540 | LD=$lt_LD_GCJ |
| 26541 | |
| 26542 | # Whether we need hard or soft links. |
| 26543 | LN_S=$lt_LN_S |
| 26544 | |
| 26545 | # A BSD-compatible nm program. |
| 26546 | NM=$lt_NM |
| 26547 | |
| 26548 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26549 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26550 | |
| 26551 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26552 | MAGIC_CMD=$MAGIC_CMD |
| 26553 | |
| 26554 | # Used on cygwin: DLL creation program. |
| 26555 | DLLTOOL="$DLLTOOL" |
| 26556 | |
| 26557 | # Used on cygwin: object dumper. |
| 26558 | OBJDUMP="$OBJDUMP" |
| 26559 | |
| 26560 | # Used on cygwin: assembler. |
| 26561 | AS="$AS" |
| 26562 | |
| 26563 | # The name of the directory that contains temporary libtool files. |
| 26564 | objdir=$objdir |
| 26565 | |
| 26566 | # How to create reloadable object files. |
| 26567 | reload_flag=$lt_reload_flag |
| 26568 | reload_cmds=$lt_reload_cmds |
| 26569 | |
| 26570 | # How to pass a linker flag through the compiler. |
| 26571 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26572 | |
| 26573 | # Object file suffix (normally "o"). |
| 26574 | objext="$ac_objext" |
| 26575 | |
| 26576 | # Old archive suffix (normally "a"). |
| 26577 | libext="$libext" |
| 26578 | |
| 26579 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26580 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26581 | |
| 26582 | # Executable file suffix (normally ""). |
| 26583 | exeext="$exeext" |
| 26584 | |
| 26585 | # Additional compiler flags for building library objects. |
| 26586 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26587 | pic_mode=$pic_mode |
| 26588 | |
| 26589 | # What is the maximum length of a command? |
| 26590 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26591 | |
| 26592 | # Does compiler simultaneously support -c and -o options? |
| 26593 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26595 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26596 | need_locks=$lt_need_locks |
| 26597 | |
| 26598 | # Do we need the lib prefix for modules? |
| 26599 | need_lib_prefix=$need_lib_prefix |
| 26600 | |
| 26601 | # Do we need a version for libraries? |
| 26602 | need_version=$need_version |
| 26603 | |
| 26604 | # Whether dlopen is supported. |
| 26605 | dlopen_support=$enable_dlopen |
| 26606 | |
| 26607 | # Whether dlopen of programs is supported. |
| 26608 | dlopen_self=$enable_dlopen_self |
| 26609 | |
| 26610 | # Whether dlopen of statically linked programs is supported. |
| 26611 | dlopen_self_static=$enable_dlopen_self_static |
| 26612 | |
| 26613 | # Compiler flag to prevent dynamic linking. |
| 26614 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26615 | |
| 26616 | # Compiler flag to turn off builtin functions. |
| 26617 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26618 | |
| 26619 | # Compiler flag to allow reflexive dlopens. |
| 26620 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26621 | |
| 26622 | # Compiler flag to generate shared objects directly from archives. |
| 26623 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26624 | |
| 26625 | # Compiler flag to generate thread-safe objects. |
| 26626 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26627 | |
| 26628 | # Library versioning type. |
| 26629 | version_type=$version_type |
| 26630 | |
| 26631 | # Format of library name prefix. |
| 26632 | libname_spec=$lt_libname_spec |
| 26633 | |
| 26634 | # List of archive names. First name is the real one, the rest are links. |
| 26635 | # The last name is the one that the linker finds with -lNAME. |
| 26636 | library_names_spec=$lt_library_names_spec |
| 26637 | |
| 26638 | # The coded name of the library, if different from the real name. |
| 26639 | soname_spec=$lt_soname_spec |
| 26640 | |
| 26641 | # Commands used to build and install an old-style archive. |
| 26642 | RANLIB=$lt_RANLIB |
| 26643 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26644 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26645 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26646 | |
| 26647 | # Create an old-style archive from a shared archive. |
| 26648 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26649 | |
| 26650 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26651 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26652 | |
| 26653 | # Commands used to build and install a shared archive. |
| 26654 | archive_cmds=$lt_archive_cmds_GCJ |
| 26655 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26656 | postinstall_cmds=$lt_postinstall_cmds |
| 26657 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26658 | |
| 26659 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26660 | module_cmds=$lt_module_cmds_GCJ |
| 26661 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26662 | |
| 26663 | # Commands to strip libraries. |
| 26664 | old_striplib=$lt_old_striplib |
| 26665 | striplib=$lt_striplib |
| 26666 | |
| 26667 | # Dependencies to place before the objects being linked to create a |
| 26668 | # shared library. |
| 26669 | predep_objects=$lt_predep_objects_GCJ |
| 26670 | |
| 26671 | # Dependencies to place after the objects being linked to create a |
| 26672 | # shared library. |
| 26673 | postdep_objects=$lt_postdep_objects_GCJ |
| 26674 | |
| 26675 | # Dependencies to place before the objects being linked to create a |
| 26676 | # shared library. |
| 26677 | predeps=$lt_predeps_GCJ |
| 26678 | |
| 26679 | # Dependencies to place after the objects being linked to create a |
| 26680 | # shared library. |
| 26681 | postdeps=$lt_postdeps_GCJ |
| 26682 | |
| 26683 | # The library search path used internally by the compiler when linking |
| 26684 | # a shared library. |
| 26685 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26686 | |
| 26687 | # Method to check whether dependent libraries are shared objects. |
| 26688 | deplibs_check_method=$lt_deplibs_check_method |
| 26689 | |
| 26690 | # Command to use when deplibs_check_method == file_magic. |
| 26691 | file_magic_cmd=$lt_file_magic_cmd |
| 26692 | |
| 26693 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26694 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26695 | |
| 26696 | # Flag that forces no undefined symbols. |
| 26697 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26698 | |
| 26699 | # Commands used to finish a libtool library installation in a directory. |
| 26700 | finish_cmds=$lt_finish_cmds |
| 26701 | |
| 26702 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26703 | finish_eval=$lt_finish_eval |
| 26704 | |
| 26705 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26706 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26707 | |
| 26708 | # Transform the output of nm in a proper C declaration |
| 26709 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26710 | |
| 26711 | # Transform the output of nm in a C name address pair |
| 26712 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26713 | |
| 26714 | # This is the shared library runtime path variable. |
| 26715 | runpath_var=$runpath_var |
| 26716 | |
| 26717 | # This is the shared library path variable. |
| 26718 | shlibpath_var=$shlibpath_var |
| 26719 | |
| 26720 | # Is shlibpath searched before the hard-coded library search path? |
| 26721 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26722 | |
| 26723 | # How to hardcode a shared library path into an executable. |
| 26724 | hardcode_action=$hardcode_action_GCJ |
| 26725 | |
| 26726 | # Whether we should hardcode library paths into libraries. |
| 26727 | hardcode_into_libs=$hardcode_into_libs |
| 26728 | |
| 26729 | # Flag to hardcode \$libdir into a binary during linking. |
| 26730 | # This must work even if \$libdir does not exist. |
| 26731 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26732 | |
| 26733 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26734 | # a binary during linking. This must work even if \$libdir does |
| 26735 | # not exist. |
| 26736 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26737 | |
| 26738 | # Whether we need a single -rpath flag with a separated argument. |
| 26739 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26740 | |
| 26741 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26742 | # resulting binary. |
| 26743 | hardcode_direct=$hardcode_direct_GCJ |
| 26744 | |
| 26745 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26746 | # resulting binary. |
| 26747 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26748 | |
| 26749 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26750 | # the resulting binary. |
| 26751 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26752 | |
| 26753 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26754 | # and all subsequent libraries and executables linked against it. |
| 26755 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26756 | |
| 26757 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26758 | # restored at relink time. |
| 26759 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26760 | |
| 26761 | # Whether libtool must link a program against all its dependency libraries. |
| 26762 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26763 | |
| 26764 | # Compile-time system search path for libraries |
| 26765 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26766 | |
| 26767 | # Run-time system search path for libraries |
| 26768 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26769 | |
| 26770 | # Fix the shell variable \$srcfile for the compiler. |
| 26771 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26772 | |
| 26773 | # Set to yes if exported symbols are required. |
| 26774 | always_export_symbols=$always_export_symbols_GCJ |
| 26775 | |
| 26776 | # The commands to list exported symbols. |
| 26777 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26778 | |
| 26779 | # The commands to extract the exported symbol list from a shared archive. |
| 26780 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26781 | |
| 26782 | # Symbols that should not be listed in the preloaded symbols. |
| 26783 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26784 | |
| 26785 | # Symbols that must always be exported. |
| 26786 | include_expsyms=$lt_include_expsyms_GCJ |
| 26787 | |
| 26788 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26789 | |
| 26790 | __EOF__ |
| 26791 | |
| 26792 | |
| 26793 | else |
| 26794 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26795 | # `config.status --recheck' to rerun these tests and create the |
| 26796 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26797 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26798 | if test -f "$ltmain_in"; then |
| 26799 | test -f Makefile && make "$ltmain" |
| 26800 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26801 | fi |
| 26802 | |
| 26803 | |
| 26804 | ac_ext=c |
| 26805 | ac_cpp='$CPP $CPPFLAGS' |
| 26806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26809 | |
| 26810 | CC="$lt_save_CC" |
| 26811 | |
| 26812 | else |
| 26813 | tagname="" |
| 26814 | fi |
| 26815 | ;; |
| 26816 | |
| 26817 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26818 | ac_ext=c |
| 26819 | ac_cpp='$CPP $CPPFLAGS' |
| 26820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26823 | |
| 26824 | |
| 26825 | # Source file extension for RC test sources. |
| 26826 | ac_ext=rc |
| 26827 | |
| 26828 | # Object file extension for compiled RC test sources. |
| 26829 | objext=o |
| 26830 | objext_RC=$objext |
| 26831 | |
| 26832 | # Code to be used in simple compile tests |
| 26833 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26834 | |
| 26835 | # Code to be used in simple link tests |
| 26836 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26837 | |
| 26838 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26839 | |
| 26840 | # If no C compiler was specified, use CC. |
| 26841 | LTCC=${LTCC-"$CC"} |
| 26842 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26843 | # If no C compiler flags were specified, use CFLAGS. |
| 26844 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26845 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26846 | # Allow CC to be a program name with arguments. |
| 26847 | compiler=$CC |
| 26848 | |
| 26849 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26850 | # save warnings/boilerplate of simple test code |
| 26851 | ac_outfile=conftest.$ac_objext |
| 26852 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26853 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26854 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26855 | $rm conftest* |
| 26856 | |
| 26857 | ac_outfile=conftest.$ac_objext |
| 26858 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26859 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26860 | _lt_linker_boilerplate=`cat conftest.err` |
| 26861 | $rm conftest* |
| 26862 | |
| 26863 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26864 | # Allow CC to be a program name with arguments. |
| 26865 | lt_save_CC="$CC" |
| 26866 | CC=${RC-"windres"} |
| 26867 | compiler=$CC |
| 26868 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26869 | for cc_temp in $compiler""; do |
| 26870 | case $cc_temp in |
| 26871 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26872 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26873 | \-*) ;; |
| 26874 | *) break;; |
| 26875 | esac |
| 26876 | done |
| 26877 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26878 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26879 | lt_cv_prog_compiler_c_o_RC=yes |
| 26880 | |
| 26881 | # The else clause should only fire when bootstrapping the |
| 26882 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26883 | # with your package, and you will get complaints that there are |
| 26884 | # no rules to generate ltmain.sh. |
| 26885 | if test -f "$ltmain"; then |
| 26886 | # See if we are running on zsh, and set the options which allow our commands through |
| 26887 | # without removal of \ escapes. |
| 26888 | if test -n "${ZSH_VERSION+set}" ; then |
| 26889 | setopt NO_GLOB_SUBST |
| 26890 | fi |
| 26891 | # Now quote all the things that may contain metacharacters while being |
| 26892 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26893 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26894 | 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] | 26895 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26896 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26897 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26898 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26899 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26900 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26901 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26902 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26903 | compiler_RC \ |
| 26904 | CC_RC \ |
| 26905 | LD_RC \ |
| 26906 | lt_prog_compiler_wl_RC \ |
| 26907 | lt_prog_compiler_pic_RC \ |
| 26908 | lt_prog_compiler_static_RC \ |
| 26909 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26910 | export_dynamic_flag_spec_RC \ |
| 26911 | thread_safe_flag_spec_RC \ |
| 26912 | whole_archive_flag_spec_RC \ |
| 26913 | enable_shared_with_static_runtimes_RC \ |
| 26914 | old_archive_cmds_RC \ |
| 26915 | old_archive_from_new_cmds_RC \ |
| 26916 | predep_objects_RC \ |
| 26917 | postdep_objects_RC \ |
| 26918 | predeps_RC \ |
| 26919 | postdeps_RC \ |
| 26920 | compiler_lib_search_path_RC \ |
| 26921 | archive_cmds_RC \ |
| 26922 | archive_expsym_cmds_RC \ |
| 26923 | postinstall_cmds_RC \ |
| 26924 | postuninstall_cmds_RC \ |
| 26925 | old_archive_from_expsyms_cmds_RC \ |
| 26926 | allow_undefined_flag_RC \ |
| 26927 | no_undefined_flag_RC \ |
| 26928 | export_symbols_cmds_RC \ |
| 26929 | hardcode_libdir_flag_spec_RC \ |
| 26930 | hardcode_libdir_flag_spec_ld_RC \ |
| 26931 | hardcode_libdir_separator_RC \ |
| 26932 | hardcode_automatic_RC \ |
| 26933 | module_cmds_RC \ |
| 26934 | module_expsym_cmds_RC \ |
| 26935 | lt_cv_prog_compiler_c_o_RC \ |
| 26936 | exclude_expsyms_RC \ |
| 26937 | include_expsyms_RC; do |
| 26938 | |
| 26939 | case $var in |
| 26940 | old_archive_cmds_RC | \ |
| 26941 | old_archive_from_new_cmds_RC | \ |
| 26942 | archive_cmds_RC | \ |
| 26943 | archive_expsym_cmds_RC | \ |
| 26944 | module_cmds_RC | \ |
| 26945 | module_expsym_cmds_RC | \ |
| 26946 | old_archive_from_expsyms_cmds_RC | \ |
| 26947 | export_symbols_cmds_RC | \ |
| 26948 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26949 | postinstall_cmds | postuninstall_cmds | \ |
| 26950 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26951 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26952 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26953 | 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] | 26954 | ;; |
| 26955 | *) |
| 26956 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26957 | ;; |
| 26958 | esac |
| 26959 | done |
| 26960 | |
| 26961 | case $lt_echo in |
| 26962 | *'\$0 --fallback-echo"') |
| 26963 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26964 | ;; |
| 26965 | esac |
| 26966 | |
| 26967 | cfgfile="$ofile" |
| 26968 | |
| 26969 | cat <<__EOF__ >> "$cfgfile" |
| 26970 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26971 | |
| 26972 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26973 | |
| 26974 | # Shell to use when invoking shell scripts. |
| 26975 | SHELL=$lt_SHELL |
| 26976 | |
| 26977 | # Whether or not to build shared libraries. |
| 26978 | build_libtool_libs=$enable_shared |
| 26979 | |
| 26980 | # Whether or not to build static libraries. |
| 26981 | build_old_libs=$enable_static |
| 26982 | |
| 26983 | # Whether or not to add -lc for building shared libraries. |
| 26984 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26985 | |
| 26986 | # Whether or not to disallow shared libs when runtime libs are static |
| 26987 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26988 | |
| 26989 | # Whether or not to optimize for fast installation. |
| 26990 | fast_install=$enable_fast_install |
| 26991 | |
| 26992 | # The host system. |
| 26993 | host_alias=$host_alias |
| 26994 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26995 | host_os=$host_os |
| 26996 | |
| 26997 | # The build system. |
| 26998 | build_alias=$build_alias |
| 26999 | build=$build |
| 27000 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27001 | |
| 27002 | # An echo program that does not interpret backslashes. |
| 27003 | echo=$lt_echo |
| 27004 | |
| 27005 | # The archiver. |
| 27006 | AR=$lt_AR |
| 27007 | AR_FLAGS=$lt_AR_FLAGS |
| 27008 | |
| 27009 | # A C compiler. |
| 27010 | LTCC=$lt_LTCC |
| 27011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27012 | # LTCC compiler flags. |
| 27013 | LTCFLAGS=$lt_LTCFLAGS |
| 27014 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27015 | # A language-specific compiler. |
| 27016 | CC=$lt_compiler_RC |
| 27017 | |
| 27018 | # Is the compiler the GNU C compiler? |
| 27019 | with_gcc=$GCC_RC |
| 27020 | |
| 27021 | # An ERE matcher. |
| 27022 | EGREP=$lt_EGREP |
| 27023 | |
| 27024 | # The linker used to build libraries. |
| 27025 | LD=$lt_LD_RC |
| 27026 | |
| 27027 | # Whether we need hard or soft links. |
| 27028 | LN_S=$lt_LN_S |
| 27029 | |
| 27030 | # A BSD-compatible nm program. |
| 27031 | NM=$lt_NM |
| 27032 | |
| 27033 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27034 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27035 | |
| 27036 | # Used to examine libraries when file_magic_cmd begins "file" |
| 27037 | MAGIC_CMD=$MAGIC_CMD |
| 27038 | |
| 27039 | # Used on cygwin: DLL creation program. |
| 27040 | DLLTOOL="$DLLTOOL" |
| 27041 | |
| 27042 | # Used on cygwin: object dumper. |
| 27043 | OBJDUMP="$OBJDUMP" |
| 27044 | |
| 27045 | # Used on cygwin: assembler. |
| 27046 | AS="$AS" |
| 27047 | |
| 27048 | # The name of the directory that contains temporary libtool files. |
| 27049 | objdir=$objdir |
| 27050 | |
| 27051 | # How to create reloadable object files. |
| 27052 | reload_flag=$lt_reload_flag |
| 27053 | reload_cmds=$lt_reload_cmds |
| 27054 | |
| 27055 | # How to pass a linker flag through the compiler. |
| 27056 | wl=$lt_lt_prog_compiler_wl_RC |
| 27057 | |
| 27058 | # Object file suffix (normally "o"). |
| 27059 | objext="$ac_objext" |
| 27060 | |
| 27061 | # Old archive suffix (normally "a"). |
| 27062 | libext="$libext" |
| 27063 | |
| 27064 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27065 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27066 | |
| 27067 | # Executable file suffix (normally ""). |
| 27068 | exeext="$exeext" |
| 27069 | |
| 27070 | # Additional compiler flags for building library objects. |
| 27071 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 27072 | pic_mode=$pic_mode |
| 27073 | |
| 27074 | # What is the maximum length of a command? |
| 27075 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 27076 | |
| 27077 | # Does compiler simultaneously support -c and -o options? |
| 27078 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 27079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27080 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27081 | need_locks=$lt_need_locks |
| 27082 | |
| 27083 | # Do we need the lib prefix for modules? |
| 27084 | need_lib_prefix=$need_lib_prefix |
| 27085 | |
| 27086 | # Do we need a version for libraries? |
| 27087 | need_version=$need_version |
| 27088 | |
| 27089 | # Whether dlopen is supported. |
| 27090 | dlopen_support=$enable_dlopen |
| 27091 | |
| 27092 | # Whether dlopen of programs is supported. |
| 27093 | dlopen_self=$enable_dlopen_self |
| 27094 | |
| 27095 | # Whether dlopen of statically linked programs is supported. |
| 27096 | dlopen_self_static=$enable_dlopen_self_static |
| 27097 | |
| 27098 | # Compiler flag to prevent dynamic linking. |
| 27099 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 27100 | |
| 27101 | # Compiler flag to turn off builtin functions. |
| 27102 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 27103 | |
| 27104 | # Compiler flag to allow reflexive dlopens. |
| 27105 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 27106 | |
| 27107 | # Compiler flag to generate shared objects directly from archives. |
| 27108 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 27109 | |
| 27110 | # Compiler flag to generate thread-safe objects. |
| 27111 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 27112 | |
| 27113 | # Library versioning type. |
| 27114 | version_type=$version_type |
| 27115 | |
| 27116 | # Format of library name prefix. |
| 27117 | libname_spec=$lt_libname_spec |
| 27118 | |
| 27119 | # List of archive names. First name is the real one, the rest are links. |
| 27120 | # The last name is the one that the linker finds with -lNAME. |
| 27121 | library_names_spec=$lt_library_names_spec |
| 27122 | |
| 27123 | # The coded name of the library, if different from the real name. |
| 27124 | soname_spec=$lt_soname_spec |
| 27125 | |
| 27126 | # Commands used to build and install an old-style archive. |
| 27127 | RANLIB=$lt_RANLIB |
| 27128 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 27129 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 27130 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 27131 | |
| 27132 | # Create an old-style archive from a shared archive. |
| 27133 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 27134 | |
| 27135 | # Create a temporary old-style archive to link instead of a shared archive. |
| 27136 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 27137 | |
| 27138 | # Commands used to build and install a shared archive. |
| 27139 | archive_cmds=$lt_archive_cmds_RC |
| 27140 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 27141 | postinstall_cmds=$lt_postinstall_cmds |
| 27142 | postuninstall_cmds=$lt_postuninstall_cmds |
| 27143 | |
| 27144 | # Commands used to build a loadable module (assumed same as above if empty) |
| 27145 | module_cmds=$lt_module_cmds_RC |
| 27146 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 27147 | |
| 27148 | # Commands to strip libraries. |
| 27149 | old_striplib=$lt_old_striplib |
| 27150 | striplib=$lt_striplib |
| 27151 | |
| 27152 | # Dependencies to place before the objects being linked to create a |
| 27153 | # shared library. |
| 27154 | predep_objects=$lt_predep_objects_RC |
| 27155 | |
| 27156 | # Dependencies to place after the objects being linked to create a |
| 27157 | # shared library. |
| 27158 | postdep_objects=$lt_postdep_objects_RC |
| 27159 | |
| 27160 | # Dependencies to place before the objects being linked to create a |
| 27161 | # shared library. |
| 27162 | predeps=$lt_predeps_RC |
| 27163 | |
| 27164 | # Dependencies to place after the objects being linked to create a |
| 27165 | # shared library. |
| 27166 | postdeps=$lt_postdeps_RC |
| 27167 | |
| 27168 | # The library search path used internally by the compiler when linking |
| 27169 | # a shared library. |
| 27170 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 27171 | |
| 27172 | # Method to check whether dependent libraries are shared objects. |
| 27173 | deplibs_check_method=$lt_deplibs_check_method |
| 27174 | |
| 27175 | # Command to use when deplibs_check_method == file_magic. |
| 27176 | file_magic_cmd=$lt_file_magic_cmd |
| 27177 | |
| 27178 | # Flag that allows shared libraries with undefined symbols to be built. |
| 27179 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 27180 | |
| 27181 | # Flag that forces no undefined symbols. |
| 27182 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 27183 | |
| 27184 | # Commands used to finish a libtool library installation in a directory. |
| 27185 | finish_cmds=$lt_finish_cmds |
| 27186 | |
| 27187 | # Same as above, but a single script fragment to be evaled but not shown. |
| 27188 | finish_eval=$lt_finish_eval |
| 27189 | |
| 27190 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 27191 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 27192 | |
| 27193 | # Transform the output of nm in a proper C declaration |
| 27194 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 27195 | |
| 27196 | # Transform the output of nm in a C name address pair |
| 27197 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 27198 | |
| 27199 | # This is the shared library runtime path variable. |
| 27200 | runpath_var=$runpath_var |
| 27201 | |
| 27202 | # This is the shared library path variable. |
| 27203 | shlibpath_var=$shlibpath_var |
| 27204 | |
| 27205 | # Is shlibpath searched before the hard-coded library search path? |
| 27206 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 27207 | |
| 27208 | # How to hardcode a shared library path into an executable. |
| 27209 | hardcode_action=$hardcode_action_RC |
| 27210 | |
| 27211 | # Whether we should hardcode library paths into libraries. |
| 27212 | hardcode_into_libs=$hardcode_into_libs |
| 27213 | |
| 27214 | # Flag to hardcode \$libdir into a binary during linking. |
| 27215 | # This must work even if \$libdir does not exist. |
| 27216 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 27217 | |
| 27218 | # If ld is used when linking, flag to hardcode \$libdir into |
| 27219 | # a binary during linking. This must work even if \$libdir does |
| 27220 | # not exist. |
| 27221 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 27222 | |
| 27223 | # Whether we need a single -rpath flag with a separated argument. |
| 27224 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 27225 | |
| 27226 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 27227 | # resulting binary. |
| 27228 | hardcode_direct=$hardcode_direct_RC |
| 27229 | |
| 27230 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 27231 | # resulting binary. |
| 27232 | hardcode_minus_L=$hardcode_minus_L_RC |
| 27233 | |
| 27234 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 27235 | # the resulting binary. |
| 27236 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 27237 | |
| 27238 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 27239 | # and all subsequent libraries and executables linked against it. |
| 27240 | hardcode_automatic=$hardcode_automatic_RC |
| 27241 | |
| 27242 | # Variables whose values should be saved in libtool wrapper scripts and |
| 27243 | # restored at relink time. |
| 27244 | variables_saved_for_relink="$variables_saved_for_relink" |
| 27245 | |
| 27246 | # Whether libtool must link a program against all its dependency libraries. |
| 27247 | link_all_deplibs=$link_all_deplibs_RC |
| 27248 | |
| 27249 | # Compile-time system search path for libraries |
| 27250 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 27251 | |
| 27252 | # Run-time system search path for libraries |
| 27253 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 27254 | |
| 27255 | # Fix the shell variable \$srcfile for the compiler. |
| 27256 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 27257 | |
| 27258 | # Set to yes if exported symbols are required. |
| 27259 | always_export_symbols=$always_export_symbols_RC |
| 27260 | |
| 27261 | # The commands to list exported symbols. |
| 27262 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 27263 | |
| 27264 | # The commands to extract the exported symbol list from a shared archive. |
| 27265 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 27266 | |
| 27267 | # Symbols that should not be listed in the preloaded symbols. |
| 27268 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 27269 | |
| 27270 | # Symbols that must always be exported. |
| 27271 | include_expsyms=$lt_include_expsyms_RC |
| 27272 | |
| 27273 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 27274 | |
| 27275 | __EOF__ |
| 27276 | |
| 27277 | |
| 27278 | else |
| 27279 | # If there is no Makefile yet, we rely on a make rule to execute |
| 27280 | # `config.status --recheck' to rerun these tests and create the |
| 27281 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27282 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 27283 | if test -f "$ltmain_in"; then |
| 27284 | test -f Makefile && make "$ltmain" |
| 27285 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27286 | fi |
| 27287 | |
| 27288 | |
| 27289 | ac_ext=c |
| 27290 | ac_cpp='$CPP $CPPFLAGS' |
| 27291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27294 | |
| 27295 | CC="$lt_save_CC" |
| 27296 | |
| 27297 | ;; |
| 27298 | |
| 27299 | *) |
| 27300 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 27301 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 27302 | { (exit 1); exit 1; }; } |
| 27303 | ;; |
| 27304 | esac |
| 27305 | |
| 27306 | # Append the new tag name to the list of available tags. |
| 27307 | if test -n "$tagname" ; then |
| 27308 | available_tags="$available_tags $tagname" |
| 27309 | fi |
| 27310 | fi |
| 27311 | done |
| 27312 | IFS="$lt_save_ifs" |
| 27313 | |
| 27314 | # Now substitute the updated list of available tags. |
| 27315 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 27316 | mv "${ofile}T" "$ofile" |
| 27317 | chmod +x "$ofile" |
| 27318 | else |
| 27319 | rm -f "${ofile}T" |
| 27320 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 27321 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 27322 | { (exit 1); exit 1; }; } |
| 27323 | fi |
| 27324 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27325 | |
| 27326 | |
| 27327 | |
| 27328 | # This can be used to rebuild libtool when needed |
| 27329 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 27330 | |
| 27331 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27332 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27333 | |
| 27334 | # Prevent multiple expansion |
| 27335 | |
| 27336 | |
| 27337 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27338 | |
| 27339 | |
| 27340 | |
| 27341 | |
| 27342 | |
| 27343 | |
| 27344 | |
| 27345 | |
| 27346 | |
| 27347 | |
| 27348 | |
| 27349 | |
| 27350 | |
| 27351 | |
| 27352 | |
| 27353 | |
| 27354 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27355 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 27356 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 27357 | |
| 27358 | cat >>confdefs.h <<\_ACEOF |
| 27359 | #define CAN_DLOPEN_SELF 1 |
| 27360 | _ACEOF |
| 27361 | |
| 27362 | fi |
| 27363 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 27364 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27365 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27366 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 27367 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27368 | LLVMGCCCOMMAND="$LLVMGCC" |
| 27369 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27370 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27371 | |
| 27372 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27373 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27374 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 27375 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27376 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27378 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 27379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27380 | else |
| 27381 | case $LLVMGCC in |
| 27382 | [\\/]* | ?:[\\/]*) |
| 27383 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 27384 | ;; |
| 27385 | *) |
| 27386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27387 | for as_dir in $PATH |
| 27388 | do |
| 27389 | IFS=$as_save_IFS |
| 27390 | test -z "$as_dir" && as_dir=. |
| 27391 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27392 | 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] | 27393 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 27394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27395 | break 2 |
| 27396 | fi |
| 27397 | done |
| 27398 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27399 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27400 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27401 | ;; |
| 27402 | esac |
| 27403 | fi |
| 27404 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27405 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27406 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 27407 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27408 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27409 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27410 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27411 | fi |
| 27412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27413 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27414 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 27415 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27416 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27418 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 27419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27420 | else |
| 27421 | case $LLVMGXX in |
| 27422 | [\\/]* | ?:[\\/]*) |
| 27423 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 27424 | ;; |
| 27425 | *) |
| 27426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27427 | for as_dir in $PATH |
| 27428 | do |
| 27429 | IFS=$as_save_IFS |
| 27430 | test -z "$as_dir" && as_dir=. |
| 27431 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27432 | 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] | 27433 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 27434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27435 | break 2 |
| 27436 | fi |
| 27437 | done |
| 27438 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27439 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27440 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27441 | ;; |
| 27442 | esac |
| 27443 | fi |
| 27444 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27445 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27446 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 27447 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27448 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27449 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27450 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27451 | fi |
| 27452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27453 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27454 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27455 | if test -z "$LLVMGCC"; then |
| 27456 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27457 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27458 | fi |
| 27459 | if test -z "$LLVMGXX"; then |
| 27460 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27461 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27462 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27463 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27464 | LLVMGCC=$LLVMGCC |
| 27465 | |
| 27466 | LLVMGXX=$LLVMGXX |
| 27467 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27468 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27469 | |
| 27470 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27471 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27472 | fi |
| 27473 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27474 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27475 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 27476 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27477 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27478 | ICC=no |
| 27479 | IXX=no |
| 27480 | case $CC in |
| 27481 | icc*|icpc*) |
| 27482 | ICC=yes |
| 27483 | IXX=yes |
| 27484 | ;; |
| 27485 | *) |
| 27486 | ;; |
| 27487 | esac |
| 27488 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 27489 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 27490 | then |
| 27491 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 27492 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 27493 | { (exit 1); exit 1; }; } |
| 27494 | fi |
| 27495 | |
| 27496 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 27497 | then |
| 27498 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 27499 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 27500 | { (exit 1); exit 1; }; } |
| 27501 | fi |
| 27502 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27503 | if test "$GCC" = "yes" |
| 27504 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27505 | cat >conftest.$ac_ext <<_ACEOF |
| 27506 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 27507 | #error Unsupported GCC version |
| 27508 | #endif |
| 27509 | |
| 27510 | _ACEOF |
| 27511 | rm -f conftest.$ac_objext |
| 27512 | if { (ac_try="$ac_compile" |
| 27513 | case "(($ac_try" in |
| 27514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27515 | *) ac_try_echo=$ac_try;; |
| 27516 | esac |
| 27517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27518 | (eval "$ac_compile") 2>conftest.er1 |
| 27519 | ac_status=$? |
| 27520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27521 | rm -f conftest.er1 |
| 27522 | cat conftest.err >&5 |
| 27523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27524 | (exit $ac_status); } && |
| 27525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27526 | { (case "(($ac_try" in |
| 27527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27528 | *) ac_try_echo=$ac_try;; |
| 27529 | esac |
| 27530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27531 | (eval "$ac_try") 2>&5 |
| 27532 | ac_status=$? |
| 27533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27534 | (exit $ac_status); }; } && |
| 27535 | { ac_try='test -s conftest.$ac_objext' |
| 27536 | { (case "(($ac_try" in |
| 27537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27538 | *) ac_try_echo=$ac_try;; |
| 27539 | esac |
| 27540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27541 | (eval "$ac_try") 2>&5 |
| 27542 | ac_status=$? |
| 27543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27544 | (exit $ac_status); }; }; then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27545 | : |
| 27546 | else |
| 27547 | echo "$as_me: failed program was:" >&5 |
| 27548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27549 | |
| 27550 | { { 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] | 27551 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 27552 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27553 | fi |
| 27554 | |
| 27555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27556 | fi |
| 27557 | |
| 27558 | if test -z "$llvm_cv_gnu_make_command" |
| 27559 | then |
| 27560 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 27561 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 27562 | { (exit 1); exit 1; }; } |
| 27563 | fi |
| 27564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27565 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 27566 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27567 | |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 27568 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 27569 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
| 27570 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 27571 | |
| 27572 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 27573 | |
| 27574 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 27575 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
| 27576 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 27577 | |
| 27578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27579 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27580 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27581 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27583 | else |
| 27584 | ac_check_lib_save_LIBS=$LIBS |
| 27585 | LIBS="-lm $LIBS" |
| 27586 | cat >conftest.$ac_ext <<_ACEOF |
| 27587 | /* confdefs.h. */ |
| 27588 | _ACEOF |
| 27589 | cat confdefs.h >>conftest.$ac_ext |
| 27590 | cat >>conftest.$ac_ext <<_ACEOF |
| 27591 | /* end confdefs.h. */ |
| 27592 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27593 | /* Override any GCC internal prototype to avoid an error. |
| 27594 | Use char because int might match the return type of a GCC |
| 27595 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27596 | #ifdef __cplusplus |
| 27597 | extern "C" |
| 27598 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27599 | char sin (); |
| 27600 | int |
| 27601 | main () |
| 27602 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27603 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27604 | ; |
| 27605 | return 0; |
| 27606 | } |
| 27607 | _ACEOF |
| 27608 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27609 | if { (ac_try="$ac_link" |
| 27610 | case "(($ac_try" in |
| 27611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27612 | *) ac_try_echo=$ac_try;; |
| 27613 | esac |
| 27614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27615 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27616 | ac_status=$? |
| 27617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27618 | rm -f conftest.er1 |
| 27619 | cat conftest.err >&5 |
| 27620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27621 | (exit $ac_status); } && |
| 27622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27623 | { (case "(($ac_try" in |
| 27624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27625 | *) ac_try_echo=$ac_try;; |
| 27626 | esac |
| 27627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27628 | (eval "$ac_try") 2>&5 |
| 27629 | ac_status=$? |
| 27630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27631 | (exit $ac_status); }; } && |
| 27632 | { ac_try='test -s conftest$ac_exeext' |
| 27633 | { (case "(($ac_try" in |
| 27634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27635 | *) ac_try_echo=$ac_try;; |
| 27636 | esac |
| 27637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27638 | (eval "$ac_try") 2>&5 |
| 27639 | ac_status=$? |
| 27640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27641 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27642 | ac_cv_lib_m_sin=yes |
| 27643 | else |
| 27644 | echo "$as_me: failed program was:" >&5 |
| 27645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27647 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27648 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27649 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27650 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27651 | conftest$ac_exeext conftest.$ac_ext |
| 27652 | LIBS=$ac_check_lib_save_LIBS |
| 27653 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27654 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27655 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27656 | if test $ac_cv_lib_m_sin = yes; then |
| 27657 | cat >>confdefs.h <<_ACEOF |
| 27658 | #define HAVE_LIBM 1 |
| 27659 | _ACEOF |
| 27660 | |
| 27661 | LIBS="-lm $LIBS" |
| 27662 | |
| 27663 | fi |
| 27664 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27665 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27667 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27668 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27669 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27671 | else |
| 27672 | ac_check_lib_save_LIBS=$LIBS |
| 27673 | LIBS="-limagehlp $LIBS" |
| 27674 | cat >conftest.$ac_ext <<_ACEOF |
| 27675 | /* confdefs.h. */ |
| 27676 | _ACEOF |
| 27677 | cat confdefs.h >>conftest.$ac_ext |
| 27678 | cat >>conftest.$ac_ext <<_ACEOF |
| 27679 | /* end confdefs.h. */ |
| 27680 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27681 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27682 | int |
| 27683 | main () |
| 27684 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27685 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27686 | ; |
| 27687 | return 0; |
| 27688 | } |
| 27689 | _ACEOF |
| 27690 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27691 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27698 | ac_status=$? |
| 27699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27700 | rm -f conftest.er1 |
| 27701 | cat conftest.err >&5 |
| 27702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27703 | (exit $ac_status); } && |
| 27704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27705 | { (case "(($ac_try" in |
| 27706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27707 | *) ac_try_echo=$ac_try;; |
| 27708 | esac |
| 27709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27710 | (eval "$ac_try") 2>&5 |
| 27711 | ac_status=$? |
| 27712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27713 | (exit $ac_status); }; } && |
| 27714 | { ac_try='test -s conftest$ac_exeext' |
| 27715 | { (case "(($ac_try" in |
| 27716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27717 | *) ac_try_echo=$ac_try;; |
| 27718 | esac |
| 27719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27720 | (eval "$ac_try") 2>&5 |
| 27721 | ac_status=$? |
| 27722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27723 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27724 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27725 | else |
| 27726 | echo "$as_me: failed program was:" >&5 |
| 27727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27729 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27730 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27731 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27732 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27733 | conftest$ac_exeext conftest.$ac_ext |
| 27734 | LIBS=$ac_check_lib_save_LIBS |
| 27735 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27736 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27737 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27738 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27739 | cat >>confdefs.h <<_ACEOF |
| 27740 | #define HAVE_LIBIMAGEHLP 1 |
| 27741 | _ACEOF |
| 27742 | |
| 27743 | LIBS="-limagehlp $LIBS" |
| 27744 | |
| 27745 | fi |
| 27746 | |
| 27747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27748 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27749 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27750 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27752 | else |
| 27753 | ac_check_lib_save_LIBS=$LIBS |
| 27754 | LIBS="-lpsapi $LIBS" |
| 27755 | cat >conftest.$ac_ext <<_ACEOF |
| 27756 | /* confdefs.h. */ |
| 27757 | _ACEOF |
| 27758 | cat confdefs.h >>conftest.$ac_ext |
| 27759 | cat >>conftest.$ac_ext <<_ACEOF |
| 27760 | /* end confdefs.h. */ |
| 27761 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27762 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27763 | int |
| 27764 | main () |
| 27765 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27766 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27767 | ; |
| 27768 | return 0; |
| 27769 | } |
| 27770 | _ACEOF |
| 27771 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27772 | if { (ac_try="$ac_link" |
| 27773 | case "(($ac_try" in |
| 27774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27775 | *) ac_try_echo=$ac_try;; |
| 27776 | esac |
| 27777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27778 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27779 | ac_status=$? |
| 27780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27781 | rm -f conftest.er1 |
| 27782 | cat conftest.err >&5 |
| 27783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27784 | (exit $ac_status); } && |
| 27785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27786 | { (case "(($ac_try" in |
| 27787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27788 | *) ac_try_echo=$ac_try;; |
| 27789 | esac |
| 27790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27791 | (eval "$ac_try") 2>&5 |
| 27792 | ac_status=$? |
| 27793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27794 | (exit $ac_status); }; } && |
| 27795 | { ac_try='test -s conftest$ac_exeext' |
| 27796 | { (case "(($ac_try" in |
| 27797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27798 | *) ac_try_echo=$ac_try;; |
| 27799 | esac |
| 27800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27801 | (eval "$ac_try") 2>&5 |
| 27802 | ac_status=$? |
| 27803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27804 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27805 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27806 | else |
| 27807 | echo "$as_me: failed program was:" >&5 |
| 27808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27810 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27811 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27812 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27813 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27814 | conftest$ac_exeext conftest.$ac_ext |
| 27815 | LIBS=$ac_check_lib_save_LIBS |
| 27816 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27817 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27818 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27819 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27820 | cat >>confdefs.h <<_ACEOF |
| 27821 | #define HAVE_LIBPSAPI 1 |
| 27822 | _ACEOF |
| 27823 | |
| 27824 | LIBS="-lpsapi $LIBS" |
| 27825 | |
| 27826 | fi |
| 27827 | |
| 27828 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27829 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27830 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27831 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27832 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27834 | else |
| 27835 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27836 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27837 | /* confdefs.h. */ |
| 27838 | _ACEOF |
| 27839 | cat confdefs.h >>conftest.$ac_ext |
| 27840 | cat >>conftest.$ac_ext <<_ACEOF |
| 27841 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27842 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27843 | /* Override any GCC internal prototype to avoid an error. |
| 27844 | Use char because int might match the return type of a GCC |
| 27845 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27846 | #ifdef __cplusplus |
| 27847 | extern "C" |
| 27848 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27849 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27850 | int |
| 27851 | main () |
| 27852 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27853 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27854 | ; |
| 27855 | return 0; |
| 27856 | } |
| 27857 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27858 | for ac_lib in '' dl; do |
| 27859 | if test -z "$ac_lib"; then |
| 27860 | ac_res="none required" |
| 27861 | else |
| 27862 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27863 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27864 | fi |
| 27865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27866 | if { (ac_try="$ac_link" |
| 27867 | case "(($ac_try" in |
| 27868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27869 | *) ac_try_echo=$ac_try;; |
| 27870 | esac |
| 27871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27872 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27873 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27875 | rm -f conftest.er1 |
| 27876 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27878 | (exit $ac_status); } && |
| 27879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27880 | { (case "(($ac_try" in |
| 27881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27882 | *) ac_try_echo=$ac_try;; |
| 27883 | esac |
| 27884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27885 | (eval "$ac_try") 2>&5 |
| 27886 | ac_status=$? |
| 27887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27888 | (exit $ac_status); }; } && |
| 27889 | { ac_try='test -s conftest$ac_exeext' |
| 27890 | { (case "(($ac_try" in |
| 27891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27892 | *) ac_try_echo=$ac_try;; |
| 27893 | esac |
| 27894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27895 | (eval "$ac_try") 2>&5 |
| 27896 | ac_status=$? |
| 27897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27898 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27899 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27900 | else |
| 27901 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27903 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27904 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27905 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27906 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27907 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27908 | conftest$ac_exeext |
| 27909 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27910 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27911 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27912 | done |
| 27913 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27914 | : |
| 27915 | else |
| 27916 | ac_cv_search_dlopen=no |
| 27917 | fi |
| 27918 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27919 | LIBS=$ac_func_search_save_LIBS |
| 27920 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27921 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27922 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27923 | ac_res=$ac_cv_search_dlopen |
| 27924 | if test "$ac_res" != no; then |
| 27925 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27926 | |
| 27927 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27928 | #define HAVE_DLOPEN 1 |
| 27929 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27930 | |
| 27931 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27932 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27933 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27934 | fi |
| 27935 | |
| 27936 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27937 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
| 27938 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27939 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 27940 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27942 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27943 | ac_func_search_save_LIBS=$LIBS |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27944 | cat >conftest.$ac_ext <<_ACEOF |
| 27945 | /* confdefs.h. */ |
| 27946 | _ACEOF |
| 27947 | cat confdefs.h >>conftest.$ac_ext |
| 27948 | cat >>conftest.$ac_ext <<_ACEOF |
| 27949 | /* end confdefs.h. */ |
| 27950 | |
| 27951 | /* Override any GCC internal prototype to avoid an error. |
| 27952 | Use char because int might match the return type of a GCC |
| 27953 | builtin and then its argument prototype would still apply. */ |
| 27954 | #ifdef __cplusplus |
| 27955 | extern "C" |
| 27956 | #endif |
| 27957 | char ffi_call (); |
| 27958 | int |
| 27959 | main () |
| 27960 | { |
| 27961 | return ffi_call (); |
| 27962 | ; |
| 27963 | return 0; |
| 27964 | } |
| 27965 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27966 | for ac_lib in '' ffi; do |
| 27967 | if test -z "$ac_lib"; then |
| 27968 | ac_res="none required" |
| 27969 | else |
| 27970 | ac_res=-l$ac_lib |
| 27971 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 27972 | fi |
| 27973 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27974 | if { (ac_try="$ac_link" |
| 27975 | case "(($ac_try" in |
| 27976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27977 | *) ac_try_echo=$ac_try;; |
| 27978 | esac |
| 27979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27980 | (eval "$ac_link") 2>conftest.er1 |
| 27981 | ac_status=$? |
| 27982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27983 | rm -f conftest.er1 |
| 27984 | cat conftest.err >&5 |
| 27985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27986 | (exit $ac_status); } && |
| 27987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27988 | { (case "(($ac_try" in |
| 27989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27990 | *) ac_try_echo=$ac_try;; |
| 27991 | esac |
| 27992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27993 | (eval "$ac_try") 2>&5 |
| 27994 | ac_status=$? |
| 27995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27996 | (exit $ac_status); }; } && |
| 27997 | { ac_try='test -s conftest$ac_exeext' |
| 27998 | { (case "(($ac_try" in |
| 27999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28000 | *) ac_try_echo=$ac_try;; |
| 28001 | esac |
| 28002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28003 | (eval "$ac_try") 2>&5 |
| 28004 | ac_status=$? |
| 28005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28006 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 28007 | ac_cv_search_ffi_call=$ac_res |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28008 | else |
| 28009 | echo "$as_me: failed program was:" >&5 |
| 28010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28011 | |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 28012 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28013 | fi |
| 28014 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28015 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 28016 | conftest$ac_exeext |
| 28017 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 28018 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28019 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 28020 | done |
| 28021 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 28022 | : |
| 28023 | else |
| 28024 | ac_cv_search_ffi_call=no |
| 28025 | fi |
| 28026 | rm conftest.$ac_ext |
| 28027 | LIBS=$ac_func_search_save_LIBS |
| 28028 | fi |
| 28029 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 28030 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
| 28031 | ac_res=$ac_cv_search_ffi_call |
| 28032 | if test "$ac_res" != no; then |
| 28033 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28034 | |
| 28035 | cat >>confdefs.h <<\_ACEOF |
| 28036 | #define HAVE_FFI_CALL 1 |
| 28037 | _ACEOF |
| 28038 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28039 | else |
| 28040 | { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5 |
| 28041 | echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;} |
| 28042 | fi |
| 28043 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 28044 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28046 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 28047 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28048 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 28049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28050 | else |
| 28051 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28052 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28053 | /* confdefs.h. */ |
| 28054 | _ACEOF |
| 28055 | cat confdefs.h >>conftest.$ac_ext |
| 28056 | cat >>conftest.$ac_ext <<_ACEOF |
| 28057 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28058 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28059 | /* Override any GCC internal prototype to avoid an error. |
| 28060 | Use char because int might match the return type of a GCC |
| 28061 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28062 | #ifdef __cplusplus |
| 28063 | extern "C" |
| 28064 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28065 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28066 | int |
| 28067 | main () |
| 28068 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28069 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28070 | ; |
| 28071 | return 0; |
| 28072 | } |
| 28073 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28074 | for ac_lib in '' malloc; do |
| 28075 | if test -z "$ac_lib"; then |
| 28076 | ac_res="none required" |
| 28077 | else |
| 28078 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28079 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28080 | fi |
| 28081 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28082 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28089 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28091 | rm -f conftest.er1 |
| 28092 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28094 | (exit $ac_status); } && |
| 28095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28096 | { (case "(($ac_try" in |
| 28097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28098 | *) ac_try_echo=$ac_try;; |
| 28099 | esac |
| 28100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28101 | (eval "$ac_try") 2>&5 |
| 28102 | ac_status=$? |
| 28103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28104 | (exit $ac_status); }; } && |
| 28105 | { ac_try='test -s conftest$ac_exeext' |
| 28106 | { (case "(($ac_try" in |
| 28107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28108 | *) ac_try_echo=$ac_try;; |
| 28109 | esac |
| 28110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28111 | (eval "$ac_try") 2>&5 |
| 28112 | ac_status=$? |
| 28113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28114 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28115 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28116 | else |
| 28117 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28119 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28120 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28121 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28122 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28123 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28124 | conftest$ac_exeext |
| 28125 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 28126 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28127 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28128 | done |
| 28129 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 28130 | : |
| 28131 | else |
| 28132 | ac_cv_search_mallinfo=no |
| 28133 | fi |
| 28134 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28135 | LIBS=$ac_func_search_save_LIBS |
| 28136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28137 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 28138 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 28139 | ac_res=$ac_cv_search_mallinfo |
| 28140 | if test "$ac_res" != no; then |
| 28141 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 28142 | |
| 28143 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28144 | #define HAVE_MALLINFO 1 |
| 28145 | _ACEOF |
| 28146 | |
| 28147 | fi |
| 28148 | |
| 28149 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28150 | if test "$ENABLE_THREADS" -eq 1 ; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28151 | |
| 28152 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 28153 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 28154 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28156 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28157 | ac_check_lib_save_LIBS=$LIBS |
| 28158 | LIBS="-lpthread $LIBS" |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28159 | cat >conftest.$ac_ext <<_ACEOF |
| 28160 | /* confdefs.h. */ |
| 28161 | _ACEOF |
| 28162 | cat confdefs.h >>conftest.$ac_ext |
| 28163 | cat >>conftest.$ac_ext <<_ACEOF |
| 28164 | /* end confdefs.h. */ |
| 28165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28166 | /* Override any GCC internal prototype to avoid an error. |
| 28167 | Use char because int might match the return type of a GCC |
| 28168 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28169 | #ifdef __cplusplus |
| 28170 | extern "C" |
| 28171 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28172 | char pthread_mutex_init (); |
| 28173 | int |
| 28174 | main () |
| 28175 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28176 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28177 | ; |
| 28178 | return 0; |
| 28179 | } |
| 28180 | _ACEOF |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28181 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28182 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28189 | ac_status=$? |
| 28190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28191 | rm -f conftest.er1 |
| 28192 | cat conftest.err >&5 |
| 28193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28194 | (exit $ac_status); } && |
| 28195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28196 | { (case "(($ac_try" in |
| 28197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28198 | *) ac_try_echo=$ac_try;; |
| 28199 | esac |
| 28200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28201 | (eval "$ac_try") 2>&5 |
| 28202 | ac_status=$? |
| 28203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28204 | (exit $ac_status); }; } && |
| 28205 | { ac_try='test -s conftest$ac_exeext' |
| 28206 | { (case "(($ac_try" in |
| 28207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28208 | *) ac_try_echo=$ac_try;; |
| 28209 | esac |
| 28210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28211 | (eval "$ac_try") 2>&5 |
| 28212 | ac_status=$? |
| 28213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28214 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28215 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28216 | else |
| 28217 | echo "$as_me: failed program was:" >&5 |
| 28218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28219 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28220 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28221 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28222 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28223 | rm -f core conftest.err conftest.$ac_objext \ |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28224 | conftest$ac_exeext conftest.$ac_ext |
| 28225 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28226 | fi |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28227 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 28228 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 28229 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 28230 | cat >>confdefs.h <<_ACEOF |
| 28231 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 28232 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28233 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28234 | LIBS="-lpthread $LIBS" |
| 28235 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28236 | fi |
| 28237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28238 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 28239 | 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] | 28240 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28242 | else |
| 28243 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28244 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28245 | /* confdefs.h. */ |
| 28246 | _ACEOF |
| 28247 | cat confdefs.h >>conftest.$ac_ext |
| 28248 | cat >>conftest.$ac_ext <<_ACEOF |
| 28249 | /* end confdefs.h. */ |
| 28250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28251 | /* Override any GCC internal prototype to avoid an error. |
| 28252 | Use char because int might match the return type of a GCC |
| 28253 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28254 | #ifdef __cplusplus |
| 28255 | extern "C" |
| 28256 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28257 | char pthread_mutex_lock (); |
| 28258 | int |
| 28259 | main () |
| 28260 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28261 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28262 | ; |
| 28263 | return 0; |
| 28264 | } |
| 28265 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28266 | for ac_lib in '' pthread; do |
| 28267 | if test -z "$ac_lib"; then |
| 28268 | ac_res="none required" |
| 28269 | else |
| 28270 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28271 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28272 | fi |
| 28273 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28274 | if { (ac_try="$ac_link" |
| 28275 | case "(($ac_try" in |
| 28276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28277 | *) ac_try_echo=$ac_try;; |
| 28278 | esac |
| 28279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28280 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28281 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28283 | rm -f conftest.er1 |
| 28284 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28286 | (exit $ac_status); } && |
| 28287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28288 | { (case "(($ac_try" in |
| 28289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28290 | *) ac_try_echo=$ac_try;; |
| 28291 | esac |
| 28292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28293 | (eval "$ac_try") 2>&5 |
| 28294 | ac_status=$? |
| 28295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28296 | (exit $ac_status); }; } && |
| 28297 | { ac_try='test -s conftest$ac_exeext' |
| 28298 | { (case "(($ac_try" in |
| 28299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28300 | *) ac_try_echo=$ac_try;; |
| 28301 | esac |
| 28302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28303 | (eval "$ac_try") 2>&5 |
| 28304 | ac_status=$? |
| 28305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28306 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28307 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28308 | else |
| 28309 | echo "$as_me: failed program was:" >&5 |
| 28310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28312 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28313 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28314 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28315 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28316 | conftest$ac_exeext |
| 28317 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28318 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28319 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28320 | done |
| 28321 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28322 | : |
| 28323 | else |
| 28324 | ac_cv_search_pthread_mutex_lock=no |
| 28325 | fi |
| 28326 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28327 | LIBS=$ac_func_search_save_LIBS |
| 28328 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28329 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 28330 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 28331 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 28332 | if test "$ac_res" != no; then |
| 28333 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28334 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28335 | cat >>confdefs.h <<\_ACEOF |
| 28336 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 28337 | _ACEOF |
| 28338 | |
| 28339 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28340 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 28341 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 28342 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 28343 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28345 | else |
| 28346 | ac_func_search_save_LIBS=$LIBS |
| 28347 | cat >conftest.$ac_ext <<_ACEOF |
| 28348 | /* confdefs.h. */ |
| 28349 | _ACEOF |
| 28350 | cat confdefs.h >>conftest.$ac_ext |
| 28351 | cat >>conftest.$ac_ext <<_ACEOF |
| 28352 | /* end confdefs.h. */ |
| 28353 | |
| 28354 | /* Override any GCC internal prototype to avoid an error. |
| 28355 | Use char because int might match the return type of a GCC |
| 28356 | builtin and then its argument prototype would still apply. */ |
| 28357 | #ifdef __cplusplus |
| 28358 | extern "C" |
| 28359 | #endif |
| 28360 | char pthread_rwlock_init (); |
| 28361 | int |
| 28362 | main () |
| 28363 | { |
| 28364 | return pthread_rwlock_init (); |
| 28365 | ; |
| 28366 | return 0; |
| 28367 | } |
| 28368 | _ACEOF |
| 28369 | for ac_lib in '' pthread; do |
| 28370 | if test -z "$ac_lib"; then |
| 28371 | ac_res="none required" |
| 28372 | else |
| 28373 | ac_res=-l$ac_lib |
| 28374 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28375 | fi |
| 28376 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28377 | if { (ac_try="$ac_link" |
| 28378 | case "(($ac_try" in |
| 28379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28380 | *) ac_try_echo=$ac_try;; |
| 28381 | esac |
| 28382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28383 | (eval "$ac_link") 2>conftest.er1 |
| 28384 | ac_status=$? |
| 28385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28386 | rm -f conftest.er1 |
| 28387 | cat conftest.err >&5 |
| 28388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28389 | (exit $ac_status); } && |
| 28390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28391 | { (case "(($ac_try" in |
| 28392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28393 | *) ac_try_echo=$ac_try;; |
| 28394 | esac |
| 28395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28396 | (eval "$ac_try") 2>&5 |
| 28397 | ac_status=$? |
| 28398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28399 | (exit $ac_status); }; } && |
| 28400 | { ac_try='test -s conftest$ac_exeext' |
| 28401 | { (case "(($ac_try" in |
| 28402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28403 | *) ac_try_echo=$ac_try;; |
| 28404 | esac |
| 28405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28406 | (eval "$ac_try") 2>&5 |
| 28407 | ac_status=$? |
| 28408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28409 | (exit $ac_status); }; }; then |
| 28410 | ac_cv_search_pthread_rwlock_init=$ac_res |
| 28411 | else |
| 28412 | echo "$as_me: failed program was:" >&5 |
| 28413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28414 | |
| 28415 | |
| 28416 | fi |
| 28417 | |
| 28418 | rm -f core conftest.err conftest.$ac_objext \ |
| 28419 | conftest$ac_exeext |
| 28420 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28421 | break |
| 28422 | fi |
| 28423 | done |
| 28424 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28425 | : |
| 28426 | else |
| 28427 | ac_cv_search_pthread_rwlock_init=no |
| 28428 | fi |
| 28429 | rm conftest.$ac_ext |
| 28430 | LIBS=$ac_func_search_save_LIBS |
| 28431 | fi |
| 28432 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 28433 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
| 28434 | ac_res=$ac_cv_search_pthread_rwlock_init |
| 28435 | if test "$ac_res" != no; then |
| 28436 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28437 | |
| 28438 | cat >>confdefs.h <<\_ACEOF |
| 28439 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 28440 | _ACEOF |
| 28441 | |
| 28442 | fi |
| 28443 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 28444 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 28445 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 28446 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28448 | else |
| 28449 | ac_func_search_save_LIBS=$LIBS |
| 28450 | cat >conftest.$ac_ext <<_ACEOF |
| 28451 | /* confdefs.h. */ |
| 28452 | _ACEOF |
| 28453 | cat confdefs.h >>conftest.$ac_ext |
| 28454 | cat >>conftest.$ac_ext <<_ACEOF |
| 28455 | /* end confdefs.h. */ |
| 28456 | |
| 28457 | /* Override any GCC internal prototype to avoid an error. |
| 28458 | Use char because int might match the return type of a GCC |
| 28459 | builtin and then its argument prototype would still apply. */ |
| 28460 | #ifdef __cplusplus |
| 28461 | extern "C" |
| 28462 | #endif |
| 28463 | char pthread_getspecific (); |
| 28464 | int |
| 28465 | main () |
| 28466 | { |
| 28467 | return pthread_getspecific (); |
| 28468 | ; |
| 28469 | return 0; |
| 28470 | } |
| 28471 | _ACEOF |
| 28472 | for ac_lib in '' pthread; do |
| 28473 | if test -z "$ac_lib"; then |
| 28474 | ac_res="none required" |
| 28475 | else |
| 28476 | ac_res=-l$ac_lib |
| 28477 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28478 | fi |
| 28479 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28480 | if { (ac_try="$ac_link" |
| 28481 | case "(($ac_try" in |
| 28482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28483 | *) ac_try_echo=$ac_try;; |
| 28484 | esac |
| 28485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28486 | (eval "$ac_link") 2>conftest.er1 |
| 28487 | ac_status=$? |
| 28488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28489 | rm -f conftest.er1 |
| 28490 | cat conftest.err >&5 |
| 28491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28492 | (exit $ac_status); } && |
| 28493 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28494 | { (case "(($ac_try" in |
| 28495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28496 | *) ac_try_echo=$ac_try;; |
| 28497 | esac |
| 28498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28499 | (eval "$ac_try") 2>&5 |
| 28500 | ac_status=$? |
| 28501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28502 | (exit $ac_status); }; } && |
| 28503 | { ac_try='test -s conftest$ac_exeext' |
| 28504 | { (case "(($ac_try" in |
| 28505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28506 | *) ac_try_echo=$ac_try;; |
| 28507 | esac |
| 28508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28509 | (eval "$ac_try") 2>&5 |
| 28510 | ac_status=$? |
| 28511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28512 | (exit $ac_status); }; }; then |
| 28513 | ac_cv_search_pthread_getspecific=$ac_res |
| 28514 | else |
| 28515 | echo "$as_me: failed program was:" >&5 |
| 28516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28517 | |
| 28518 | |
| 28519 | fi |
| 28520 | |
| 28521 | rm -f core conftest.err conftest.$ac_objext \ |
| 28522 | conftest$ac_exeext |
| 28523 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28524 | break |
| 28525 | fi |
| 28526 | done |
| 28527 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28528 | : |
| 28529 | else |
| 28530 | ac_cv_search_pthread_getspecific=no |
| 28531 | fi |
| 28532 | rm conftest.$ac_ext |
| 28533 | LIBS=$ac_func_search_save_LIBS |
| 28534 | fi |
| 28535 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 28536 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
| 28537 | ac_res=$ac_cv_search_pthread_getspecific |
| 28538 | if test "$ac_res" != no; then |
| 28539 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28540 | |
| 28541 | cat >>confdefs.h <<\_ACEOF |
| 28542 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 28543 | _ACEOF |
| 28544 | |
| 28545 | fi |
| 28546 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28547 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 28548 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28549 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28550 | # Check whether --with-udis86 was given. |
| 28551 | if test "${with_udis86+set}" = set; then |
| 28552 | withval=$with_udis86; |
| 28553 | USE_UDIS86=1 |
| 28554 | |
| 28555 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 28556 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28557 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 28558 | esac |
| 28559 | |
| 28560 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 28561 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 28562 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 28563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28564 | else |
| 28565 | ac_check_lib_save_LIBS=$LIBS |
| 28566 | LIBS="-ludis86 $LIBS" |
| 28567 | cat >conftest.$ac_ext <<_ACEOF |
| 28568 | /* confdefs.h. */ |
| 28569 | _ACEOF |
| 28570 | cat confdefs.h >>conftest.$ac_ext |
| 28571 | cat >>conftest.$ac_ext <<_ACEOF |
| 28572 | /* end confdefs.h. */ |
| 28573 | |
| 28574 | /* Override any GCC internal prototype to avoid an error. |
| 28575 | Use char because int might match the return type of a GCC |
| 28576 | builtin and then its argument prototype would still apply. */ |
| 28577 | #ifdef __cplusplus |
| 28578 | extern "C" |
| 28579 | #endif |
| 28580 | char ud_init (); |
| 28581 | int |
| 28582 | main () |
| 28583 | { |
| 28584 | return ud_init (); |
| 28585 | ; |
| 28586 | return 0; |
| 28587 | } |
| 28588 | _ACEOF |
| 28589 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28590 | if { (ac_try="$ac_link" |
| 28591 | case "(($ac_try" in |
| 28592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28593 | *) ac_try_echo=$ac_try;; |
| 28594 | esac |
| 28595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28596 | (eval "$ac_link") 2>conftest.er1 |
| 28597 | ac_status=$? |
| 28598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28599 | rm -f conftest.er1 |
| 28600 | cat conftest.err >&5 |
| 28601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28602 | (exit $ac_status); } && |
| 28603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 28610 | ac_status=$? |
| 28611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28612 | (exit $ac_status); }; } && |
| 28613 | { ac_try='test -s conftest$ac_exeext' |
| 28614 | { (case "(($ac_try" in |
| 28615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28616 | *) ac_try_echo=$ac_try;; |
| 28617 | esac |
| 28618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28619 | (eval "$ac_try") 2>&5 |
| 28620 | ac_status=$? |
| 28621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28622 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28623 | ac_cv_lib_udis86_ud_init=yes |
| 28624 | else |
| 28625 | echo "$as_me: failed program was:" >&5 |
| 28626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28627 | |
| 28628 | ac_cv_lib_udis86_ud_init=no |
| 28629 | fi |
| 28630 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28631 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28632 | conftest$ac_exeext conftest.$ac_ext |
| 28633 | LIBS=$ac_check_lib_save_LIBS |
| 28634 | fi |
| 28635 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 28636 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 28637 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 28638 | cat >>confdefs.h <<_ACEOF |
| 28639 | #define HAVE_LIBUDIS86 1 |
| 28640 | _ACEOF |
| 28641 | |
| 28642 | LIBS="-ludis86 $LIBS" |
| 28643 | |
| 28644 | else |
| 28645 | |
| 28646 | echo "Error! You need to have libudis86 around." |
| 28647 | exit -1 |
| 28648 | |
| 28649 | fi |
| 28650 | |
| 28651 | |
| 28652 | else |
| 28653 | USE_UDIS86=0 |
| 28654 | |
| 28655 | fi |
| 28656 | |
| 28657 | |
| 28658 | cat >>confdefs.h <<_ACEOF |
| 28659 | #define USE_UDIS86 $USE_UDIS86 |
| 28660 | _ACEOF |
| 28661 | |
| 28662 | |
| 28663 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28664 | # Check whether --with-oprofile was given. |
| 28665 | if test "${with_oprofile+set}" = set; then |
| 28666 | withval=$with_oprofile; |
| 28667 | USE_OPROFILE=1 |
| 28668 | |
| 28669 | case "$withval" in |
| 28670 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 28671 | no) llvm_cv_oppath= |
| 28672 | USE_OPROFILE=0 |
| 28673 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28674 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 28675 | CPPFLAGS="-I${withval}/include";; |
| 28676 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 28677 | if test -n "$llvm_cv_oppath" ; then |
| 28678 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
| 28679 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 28680 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 28681 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 28682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28683 | else |
| 28684 | ac_func_search_save_LIBS=$LIBS |
| 28685 | cat >conftest.$ac_ext <<_ACEOF |
| 28686 | /* confdefs.h. */ |
| 28687 | _ACEOF |
| 28688 | cat confdefs.h >>conftest.$ac_ext |
| 28689 | cat >>conftest.$ac_ext <<_ACEOF |
| 28690 | /* end confdefs.h. */ |
| 28691 | |
| 28692 | /* Override any GCC internal prototype to avoid an error. |
| 28693 | Use char because int might match the return type of a GCC |
| 28694 | builtin and then its argument prototype would still apply. */ |
| 28695 | #ifdef __cplusplus |
| 28696 | extern "C" |
| 28697 | #endif |
| 28698 | char bfd_init (); |
| 28699 | int |
| 28700 | main () |
| 28701 | { |
| 28702 | return bfd_init (); |
| 28703 | ; |
| 28704 | return 0; |
| 28705 | } |
| 28706 | _ACEOF |
| 28707 | for ac_lib in '' bfd; do |
| 28708 | if test -z "$ac_lib"; then |
| 28709 | ac_res="none required" |
| 28710 | else |
| 28711 | ac_res=-l$ac_lib |
| 28712 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28713 | fi |
| 28714 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28715 | if { (ac_try="$ac_link" |
| 28716 | case "(($ac_try" in |
| 28717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28718 | *) ac_try_echo=$ac_try;; |
| 28719 | esac |
| 28720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28721 | (eval "$ac_link") 2>conftest.er1 |
| 28722 | ac_status=$? |
| 28723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28724 | rm -f conftest.er1 |
| 28725 | cat conftest.err >&5 |
| 28726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28727 | (exit $ac_status); } && |
| 28728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28729 | { (case "(($ac_try" in |
| 28730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28731 | *) ac_try_echo=$ac_try;; |
| 28732 | esac |
| 28733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28734 | (eval "$ac_try") 2>&5 |
| 28735 | ac_status=$? |
| 28736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28737 | (exit $ac_status); }; } && |
| 28738 | { ac_try='test -s conftest$ac_exeext' |
| 28739 | { (case "(($ac_try" in |
| 28740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28741 | *) ac_try_echo=$ac_try;; |
| 28742 | esac |
| 28743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28744 | (eval "$ac_try") 2>&5 |
| 28745 | ac_status=$? |
| 28746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28747 | (exit $ac_status); }; }; then |
| 28748 | ac_cv_search_bfd_init=$ac_res |
| 28749 | else |
| 28750 | echo "$as_me: failed program was:" >&5 |
| 28751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28752 | |
| 28753 | |
| 28754 | fi |
| 28755 | |
| 28756 | rm -f core conftest.err conftest.$ac_objext \ |
| 28757 | conftest$ac_exeext |
| 28758 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 28759 | break |
| 28760 | fi |
| 28761 | done |
| 28762 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 28763 | : |
| 28764 | else |
| 28765 | ac_cv_search_bfd_init=no |
| 28766 | fi |
| 28767 | rm conftest.$ac_ext |
| 28768 | LIBS=$ac_func_search_save_LIBS |
| 28769 | fi |
| 28770 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 28771 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
| 28772 | ac_res=$ac_cv_search_bfd_init |
| 28773 | if test "$ac_res" != no; then |
| 28774 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28775 | |
| 28776 | fi |
| 28777 | |
| 28778 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28779 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 28780 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28782 | else |
| 28783 | ac_func_search_save_LIBS=$LIBS |
| 28784 | cat >conftest.$ac_ext <<_ACEOF |
| 28785 | /* confdefs.h. */ |
| 28786 | _ACEOF |
| 28787 | cat confdefs.h >>conftest.$ac_ext |
| 28788 | cat >>conftest.$ac_ext <<_ACEOF |
| 28789 | /* end confdefs.h. */ |
| 28790 | |
| 28791 | /* Override any GCC internal prototype to avoid an error. |
| 28792 | Use char because int might match the return type of a GCC |
| 28793 | builtin and then its argument prototype would still apply. */ |
| 28794 | #ifdef __cplusplus |
| 28795 | extern "C" |
| 28796 | #endif |
| 28797 | char op_open_agent (); |
| 28798 | int |
| 28799 | main () |
| 28800 | { |
| 28801 | return op_open_agent (); |
| 28802 | ; |
| 28803 | return 0; |
| 28804 | } |
| 28805 | _ACEOF |
| 28806 | for ac_lib in '' opagent; do |
| 28807 | if test -z "$ac_lib"; then |
| 28808 | ac_res="none required" |
| 28809 | else |
| 28810 | ac_res=-l$ac_lib |
| 28811 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28812 | fi |
| 28813 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28814 | if { (ac_try="$ac_link" |
| 28815 | case "(($ac_try" in |
| 28816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28817 | *) ac_try_echo=$ac_try;; |
| 28818 | esac |
| 28819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28820 | (eval "$ac_link") 2>conftest.er1 |
| 28821 | ac_status=$? |
| 28822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28823 | rm -f conftest.er1 |
| 28824 | cat conftest.err >&5 |
| 28825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28826 | (exit $ac_status); } && |
| 28827 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28828 | { (case "(($ac_try" in |
| 28829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28830 | *) ac_try_echo=$ac_try;; |
| 28831 | esac |
| 28832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28833 | (eval "$ac_try") 2>&5 |
| 28834 | ac_status=$? |
| 28835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28836 | (exit $ac_status); }; } && |
| 28837 | { ac_try='test -s conftest$ac_exeext' |
| 28838 | { (case "(($ac_try" in |
| 28839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28840 | *) ac_try_echo=$ac_try;; |
| 28841 | esac |
| 28842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28843 | (eval "$ac_try") 2>&5 |
| 28844 | ac_status=$? |
| 28845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28846 | (exit $ac_status); }; }; then |
| 28847 | ac_cv_search_op_open_agent=$ac_res |
| 28848 | else |
| 28849 | echo "$as_me: failed program was:" >&5 |
| 28850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28851 | |
| 28852 | |
| 28853 | fi |
| 28854 | |
| 28855 | rm -f core conftest.err conftest.$ac_objext \ |
| 28856 | conftest$ac_exeext |
| 28857 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28858 | break |
| 28859 | fi |
| 28860 | done |
| 28861 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28862 | : |
| 28863 | else |
| 28864 | ac_cv_search_op_open_agent=no |
| 28865 | fi |
| 28866 | rm conftest.$ac_ext |
| 28867 | LIBS=$ac_func_search_save_LIBS |
| 28868 | fi |
| 28869 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 28870 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 28871 | ac_res=$ac_cv_search_op_open_agent |
| 28872 | if test "$ac_res" != no; then |
| 28873 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28874 | |
| 28875 | else |
| 28876 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 28877 | echo "Error! You need to have libopagent around." |
| 28878 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28879 | |
| 28880 | fi |
| 28881 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 28882 | if test "${ac_cv_header_opagent_h+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28883 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28884 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28885 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28887 | fi |
| 28888 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28889 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28890 | else |
| 28891 | # Is the header compilable? |
| 28892 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 28893 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 28894 | cat >conftest.$ac_ext <<_ACEOF |
| 28895 | /* confdefs.h. */ |
| 28896 | _ACEOF |
| 28897 | cat confdefs.h >>conftest.$ac_ext |
| 28898 | cat >>conftest.$ac_ext <<_ACEOF |
| 28899 | /* end confdefs.h. */ |
| 28900 | $ac_includes_default |
| 28901 | #include <opagent.h> |
| 28902 | _ACEOF |
| 28903 | rm -f conftest.$ac_objext |
| 28904 | if { (ac_try="$ac_compile" |
| 28905 | case "(($ac_try" in |
| 28906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28907 | *) ac_try_echo=$ac_try;; |
| 28908 | esac |
| 28909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28910 | (eval "$ac_compile") 2>conftest.er1 |
| 28911 | ac_status=$? |
| 28912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28913 | rm -f conftest.er1 |
| 28914 | cat conftest.err >&5 |
| 28915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28916 | (exit $ac_status); } && |
| 28917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28918 | { (case "(($ac_try" in |
| 28919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28920 | *) ac_try_echo=$ac_try;; |
| 28921 | esac |
| 28922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28923 | (eval "$ac_try") 2>&5 |
| 28924 | ac_status=$? |
| 28925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28926 | (exit $ac_status); }; } && |
| 28927 | { ac_try='test -s conftest.$ac_objext' |
| 28928 | { (case "(($ac_try" in |
| 28929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28930 | *) ac_try_echo=$ac_try;; |
| 28931 | esac |
| 28932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28933 | (eval "$ac_try") 2>&5 |
| 28934 | ac_status=$? |
| 28935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28936 | (exit $ac_status); }; }; then |
| 28937 | ac_header_compiler=yes |
| 28938 | else |
| 28939 | echo "$as_me: failed program was:" >&5 |
| 28940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28941 | |
| 28942 | ac_header_compiler=no |
| 28943 | fi |
| 28944 | |
| 28945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28946 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28947 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28948 | |
| 28949 | # Is the header present? |
| 28950 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 28951 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 28952 | cat >conftest.$ac_ext <<_ACEOF |
| 28953 | /* confdefs.h. */ |
| 28954 | _ACEOF |
| 28955 | cat confdefs.h >>conftest.$ac_ext |
| 28956 | cat >>conftest.$ac_ext <<_ACEOF |
| 28957 | /* end confdefs.h. */ |
| 28958 | #include <opagent.h> |
| 28959 | _ACEOF |
| 28960 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28961 | case "(($ac_try" in |
| 28962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28963 | *) ac_try_echo=$ac_try;; |
| 28964 | esac |
| 28965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28966 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28967 | ac_status=$? |
| 28968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28969 | rm -f conftest.er1 |
| 28970 | cat conftest.err >&5 |
| 28971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28972 | (exit $ac_status); } >/dev/null; then |
| 28973 | if test -s conftest.err; then |
| 28974 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28975 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28976 | else |
| 28977 | ac_cpp_err= |
| 28978 | fi |
| 28979 | else |
| 28980 | ac_cpp_err=yes |
| 28981 | fi |
| 28982 | if test -z "$ac_cpp_err"; then |
| 28983 | ac_header_preproc=yes |
| 28984 | else |
| 28985 | echo "$as_me: failed program was:" >&5 |
| 28986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28987 | |
| 28988 | ac_header_preproc=no |
| 28989 | fi |
| 28990 | |
| 28991 | rm -f conftest.err conftest.$ac_ext |
| 28992 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28993 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 28994 | |
| 28995 | # So? What about this header? |
| 28996 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28997 | yes:no: ) |
| 28998 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28999 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29000 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 29001 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 29002 | ac_header_preproc=yes |
| 29003 | ;; |
| 29004 | no:yes:* ) |
| 29005 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 29006 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 29007 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 29008 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 29009 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 29010 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 29011 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 29012 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29013 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 29014 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 29015 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 29016 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 29017 | ( cat <<\_ASBOX |
| 29018 | ## ----------------------------------- ## |
| 29019 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29020 | ## ----------------------------------- ## |
| 29021 | _ASBOX |
| 29022 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29023 | ;; |
| 29024 | esac |
| 29025 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 29026 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 29027 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 29028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29029 | else |
| 29030 | ac_cv_header_opagent_h=$ac_header_preproc |
| 29031 | fi |
| 29032 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 29033 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 29034 | |
| 29035 | fi |
| 29036 | if test $ac_cv_header_opagent_h = yes; then |
| 29037 | : |
| 29038 | else |
| 29039 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 29040 | echo "Error! You need to have opagent.h around." |
| 29041 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 29042 | |
| 29043 | fi |
| 29044 | |
| 29045 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 29046 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 29047 | |
| 29048 | else |
| 29049 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 29050 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 29051 | |
| 29052 | |
| 29053 | fi |
| 29054 | |
| 29055 | |
| 29056 | cat >>confdefs.h <<_ACEOF |
| 29057 | #define USE_OPROFILE $USE_OPROFILE |
| 29058 | _ACEOF |
| 29059 | |
| 29060 | |
| 29061 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29062 | |
| 29063 | |
| 29064 | |
| 29065 | |
| 29066 | |
| 29067 | ac_header_dirent=no |
| 29068 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 29069 | 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] | 29070 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 29071 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 29072 | 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] | 29073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29074 | else |
| 29075 | cat >conftest.$ac_ext <<_ACEOF |
| 29076 | /* confdefs.h. */ |
| 29077 | _ACEOF |
| 29078 | cat confdefs.h >>conftest.$ac_ext |
| 29079 | cat >>conftest.$ac_ext <<_ACEOF |
| 29080 | /* end confdefs.h. */ |
| 29081 | #include <sys/types.h> |
| 29082 | #include <$ac_hdr> |
| 29083 | |
| 29084 | int |
| 29085 | main () |
| 29086 | { |
| 29087 | if ((DIR *) 0) |
| 29088 | return 0; |
| 29089 | ; |
| 29090 | return 0; |
| 29091 | } |
| 29092 | _ACEOF |
| 29093 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29094 | if { (ac_try="$ac_compile" |
| 29095 | case "(($ac_try" in |
| 29096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29097 | *) ac_try_echo=$ac_try;; |
| 29098 | esac |
| 29099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29100 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29101 | ac_status=$? |
| 29102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29103 | rm -f conftest.er1 |
| 29104 | cat conftest.err >&5 |
| 29105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29106 | (exit $ac_status); } && |
| 29107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29108 | { (case "(($ac_try" in |
| 29109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29110 | *) ac_try_echo=$ac_try;; |
| 29111 | esac |
| 29112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29113 | (eval "$ac_try") 2>&5 |
| 29114 | ac_status=$? |
| 29115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29116 | (exit $ac_status); }; } && |
| 29117 | { ac_try='test -s conftest.$ac_objext' |
| 29118 | { (case "(($ac_try" in |
| 29119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29120 | *) ac_try_echo=$ac_try;; |
| 29121 | esac |
| 29122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29123 | (eval "$ac_try") 2>&5 |
| 29124 | ac_status=$? |
| 29125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29126 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29127 | eval "$as_ac_Header=yes" |
| 29128 | else |
| 29129 | echo "$as_me: failed program was:" >&5 |
| 29130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29131 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29132 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29133 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29134 | |
| 29135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29137 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29138 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29139 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29140 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29141 | cat >>confdefs.h <<_ACEOF |
| 29142 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 29143 | _ACEOF |
| 29144 | |
| 29145 | ac_header_dirent=$ac_hdr; break |
| 29146 | fi |
| 29147 | |
| 29148 | done |
| 29149 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 29150 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29151 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29152 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29153 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29155 | else |
| 29156 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29157 | cat >conftest.$ac_ext <<_ACEOF |
| 29158 | /* confdefs.h. */ |
| 29159 | _ACEOF |
| 29160 | cat confdefs.h >>conftest.$ac_ext |
| 29161 | cat >>conftest.$ac_ext <<_ACEOF |
| 29162 | /* end confdefs.h. */ |
| 29163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29164 | /* Override any GCC internal prototype to avoid an error. |
| 29165 | Use char because int might match the return type of a GCC |
| 29166 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29167 | #ifdef __cplusplus |
| 29168 | extern "C" |
| 29169 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29170 | char opendir (); |
| 29171 | int |
| 29172 | main () |
| 29173 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29174 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29175 | ; |
| 29176 | return 0; |
| 29177 | } |
| 29178 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29179 | for ac_lib in '' dir; do |
| 29180 | if test -z "$ac_lib"; then |
| 29181 | ac_res="none required" |
| 29182 | else |
| 29183 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29184 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29185 | fi |
| 29186 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29187 | if { (ac_try="$ac_link" |
| 29188 | case "(($ac_try" in |
| 29189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29190 | *) ac_try_echo=$ac_try;; |
| 29191 | esac |
| 29192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29193 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29194 | ac_status=$? |
| 29195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29196 | rm -f conftest.er1 |
| 29197 | cat conftest.err >&5 |
| 29198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29199 | (exit $ac_status); } && |
| 29200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29201 | { (case "(($ac_try" in |
| 29202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29203 | *) ac_try_echo=$ac_try;; |
| 29204 | esac |
| 29205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29206 | (eval "$ac_try") 2>&5 |
| 29207 | ac_status=$? |
| 29208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29209 | (exit $ac_status); }; } && |
| 29210 | { ac_try='test -s conftest$ac_exeext' |
| 29211 | { (case "(($ac_try" in |
| 29212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29213 | *) ac_try_echo=$ac_try;; |
| 29214 | esac |
| 29215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29216 | (eval "$ac_try") 2>&5 |
| 29217 | ac_status=$? |
| 29218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29219 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29220 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29221 | else |
| 29222 | echo "$as_me: failed program was:" >&5 |
| 29223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29225 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29226 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29227 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29228 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29229 | conftest$ac_exeext |
| 29230 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29231 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29232 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29233 | done |
| 29234 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29235 | : |
| 29236 | else |
| 29237 | ac_cv_search_opendir=no |
| 29238 | fi |
| 29239 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29240 | LIBS=$ac_func_search_save_LIBS |
| 29241 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29242 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29243 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29244 | ac_res=$ac_cv_search_opendir |
| 29245 | if test "$ac_res" != no; then |
| 29246 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29247 | |
| 29248 | fi |
| 29249 | |
| 29250 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29251 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29252 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29253 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29255 | else |
| 29256 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29257 | cat >conftest.$ac_ext <<_ACEOF |
| 29258 | /* confdefs.h. */ |
| 29259 | _ACEOF |
| 29260 | cat confdefs.h >>conftest.$ac_ext |
| 29261 | cat >>conftest.$ac_ext <<_ACEOF |
| 29262 | /* end confdefs.h. */ |
| 29263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29264 | /* Override any GCC internal prototype to avoid an error. |
| 29265 | Use char because int might match the return type of a GCC |
| 29266 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29267 | #ifdef __cplusplus |
| 29268 | extern "C" |
| 29269 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29270 | char opendir (); |
| 29271 | int |
| 29272 | main () |
| 29273 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29274 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29275 | ; |
| 29276 | return 0; |
| 29277 | } |
| 29278 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29279 | for ac_lib in '' x; do |
| 29280 | if test -z "$ac_lib"; then |
| 29281 | ac_res="none required" |
| 29282 | else |
| 29283 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29284 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29285 | fi |
| 29286 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29287 | if { (ac_try="$ac_link" |
| 29288 | case "(($ac_try" in |
| 29289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29290 | *) ac_try_echo=$ac_try;; |
| 29291 | esac |
| 29292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29293 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29294 | ac_status=$? |
| 29295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29296 | rm -f conftest.er1 |
| 29297 | cat conftest.err >&5 |
| 29298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29299 | (exit $ac_status); } && |
| 29300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29301 | { (case "(($ac_try" in |
| 29302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29303 | *) ac_try_echo=$ac_try;; |
| 29304 | esac |
| 29305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29306 | (eval "$ac_try") 2>&5 |
| 29307 | ac_status=$? |
| 29308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29309 | (exit $ac_status); }; } && |
| 29310 | { ac_try='test -s conftest$ac_exeext' |
| 29311 | { (case "(($ac_try" in |
| 29312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29313 | *) ac_try_echo=$ac_try;; |
| 29314 | esac |
| 29315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29316 | (eval "$ac_try") 2>&5 |
| 29317 | ac_status=$? |
| 29318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29319 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29320 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29321 | else |
| 29322 | echo "$as_me: failed program was:" >&5 |
| 29323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29325 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29326 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29327 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29328 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29329 | conftest$ac_exeext |
| 29330 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29331 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29332 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29333 | done |
| 29334 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29335 | : |
| 29336 | else |
| 29337 | ac_cv_search_opendir=no |
| 29338 | fi |
| 29339 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29340 | LIBS=$ac_func_search_save_LIBS |
| 29341 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29342 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29343 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29344 | ac_res=$ac_cv_search_opendir |
| 29345 | if test "$ac_res" != no; then |
| 29346 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29347 | |
| 29348 | fi |
| 29349 | |
| 29350 | fi |
| 29351 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29352 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 29353 | 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] | 29354 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 29355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29356 | else |
| 29357 | ac_ext=c |
| 29358 | ac_cpp='$CPP $CPPFLAGS' |
| 29359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29362 | |
| 29363 | cat >conftest.$ac_ext <<_ACEOF |
| 29364 | /* confdefs.h. */ |
| 29365 | _ACEOF |
| 29366 | cat confdefs.h >>conftest.$ac_ext |
| 29367 | cat >>conftest.$ac_ext <<_ACEOF |
| 29368 | /* end confdefs.h. */ |
| 29369 | #include <sys/mman.h> |
| 29370 | #include <unistd.h> |
| 29371 | #include <fcntl.h> |
| 29372 | int |
| 29373 | main () |
| 29374 | { |
| 29375 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 29376 | ; |
| 29377 | return 0; |
| 29378 | } |
| 29379 | _ACEOF |
| 29380 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29381 | if { (ac_try="$ac_compile" |
| 29382 | case "(($ac_try" in |
| 29383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29384 | *) ac_try_echo=$ac_try;; |
| 29385 | esac |
| 29386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29387 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29388 | ac_status=$? |
| 29389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29390 | rm -f conftest.er1 |
| 29391 | cat conftest.err >&5 |
| 29392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29393 | (exit $ac_status); } && |
| 29394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29395 | { (case "(($ac_try" in |
| 29396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29397 | *) ac_try_echo=$ac_try;; |
| 29398 | esac |
| 29399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29400 | (eval "$ac_try") 2>&5 |
| 29401 | ac_status=$? |
| 29402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29403 | (exit $ac_status); }; } && |
| 29404 | { ac_try='test -s conftest.$ac_objext' |
| 29405 | { (case "(($ac_try" in |
| 29406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29407 | *) ac_try_echo=$ac_try;; |
| 29408 | esac |
| 29409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29410 | (eval "$ac_try") 2>&5 |
| 29411 | ac_status=$? |
| 29412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29413 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29414 | ac_cv_header_mmap_anon=yes |
| 29415 | else |
| 29416 | echo "$as_me: failed program was:" >&5 |
| 29417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29419 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29420 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29421 | |
| 29422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29423 | ac_ext=c |
| 29424 | ac_cpp='$CPP $CPPFLAGS' |
| 29425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29428 | |
| 29429 | |
| 29430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29431 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 29432 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29433 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 29434 | |
| 29435 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29436 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29437 | _ACEOF |
| 29438 | |
| 29439 | fi |
| 29440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29441 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 29442 | 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] | 29443 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 29444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29445 | else |
| 29446 | cat >conftest.$ac_ext <<_ACEOF |
| 29447 | /* confdefs.h. */ |
| 29448 | _ACEOF |
| 29449 | cat confdefs.h >>conftest.$ac_ext |
| 29450 | cat >>conftest.$ac_ext <<_ACEOF |
| 29451 | /* end confdefs.h. */ |
| 29452 | #include <sys/types.h> |
| 29453 | #include <sys/stat.h> |
| 29454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29455 | #if defined S_ISBLK && defined S_IFDIR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29456 | # if S_ISBLK (S_IFDIR) |
| 29457 | You lose. |
| 29458 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29459 | #endif |
| 29460 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29461 | #if defined S_ISBLK && defined S_IFCHR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29462 | # if S_ISBLK (S_IFCHR) |
| 29463 | You lose. |
| 29464 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29465 | #endif |
| 29466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29467 | #if defined S_ISLNK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29468 | # if S_ISLNK (S_IFREG) |
| 29469 | You lose. |
| 29470 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29471 | #endif |
| 29472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29473 | #if defined S_ISSOCK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29474 | # if S_ISSOCK (S_IFREG) |
| 29475 | You lose. |
| 29476 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29477 | #endif |
| 29478 | |
| 29479 | _ACEOF |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 29481 | $EGREP "You lose" >/dev/null 2>&1; then |
| 29482 | ac_cv_header_stat_broken=yes |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29483 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29484 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29485 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29486 | rm -f conftest* |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29487 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29488 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29489 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 29490 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29491 | if test $ac_cv_header_stat_broken = yes; then |
| 29492 | |
| 29493 | cat >>confdefs.h <<\_ACEOF |
| 29494 | #define STAT_MACROS_BROKEN 1 |
| 29495 | _ACEOF |
| 29496 | |
| 29497 | fi |
| 29498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29499 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 29500 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29501 | if test "${ac_cv_header_stdc+set}" = set; then |
| 29502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29503 | else |
| 29504 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29505 | /* confdefs.h. */ |
| 29506 | _ACEOF |
| 29507 | cat confdefs.h >>conftest.$ac_ext |
| 29508 | cat >>conftest.$ac_ext <<_ACEOF |
| 29509 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29510 | #include <stdlib.h> |
| 29511 | #include <stdarg.h> |
| 29512 | #include <string.h> |
| 29513 | #include <float.h> |
| 29514 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29515 | int |
| 29516 | main () |
| 29517 | { |
| 29518 | |
| 29519 | ; |
| 29520 | return 0; |
| 29521 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29522 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29523 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29524 | if { (ac_try="$ac_compile" |
| 29525 | case "(($ac_try" in |
| 29526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29527 | *) ac_try_echo=$ac_try;; |
| 29528 | esac |
| 29529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29530 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29531 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29533 | rm -f conftest.er1 |
| 29534 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29536 | (exit $ac_status); } && |
| 29537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29538 | { (case "(($ac_try" in |
| 29539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29540 | *) ac_try_echo=$ac_try;; |
| 29541 | esac |
| 29542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29543 | (eval "$ac_try") 2>&5 |
| 29544 | ac_status=$? |
| 29545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29546 | (exit $ac_status); }; } && |
| 29547 | { ac_try='test -s conftest.$ac_objext' |
| 29548 | { (case "(($ac_try" in |
| 29549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29550 | *) ac_try_echo=$ac_try;; |
| 29551 | esac |
| 29552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29553 | (eval "$ac_try") 2>&5 |
| 29554 | ac_status=$? |
| 29555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29556 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29557 | ac_cv_header_stdc=yes |
| 29558 | else |
| 29559 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29562 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29563 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29564 | |
| 29565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29566 | |
| 29567 | if test $ac_cv_header_stdc = yes; then |
| 29568 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 29569 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29570 | /* confdefs.h. */ |
| 29571 | _ACEOF |
| 29572 | cat confdefs.h >>conftest.$ac_ext |
| 29573 | cat >>conftest.$ac_ext <<_ACEOF |
| 29574 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29575 | #include <string.h> |
| 29576 | |
| 29577 | _ACEOF |
| 29578 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29579 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29580 | : |
| 29581 | else |
| 29582 | ac_cv_header_stdc=no |
| 29583 | fi |
| 29584 | rm -f conftest* |
| 29585 | |
| 29586 | fi |
| 29587 | |
| 29588 | if test $ac_cv_header_stdc = yes; then |
| 29589 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 29590 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29591 | /* confdefs.h. */ |
| 29592 | _ACEOF |
| 29593 | cat confdefs.h >>conftest.$ac_ext |
| 29594 | cat >>conftest.$ac_ext <<_ACEOF |
| 29595 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29596 | #include <stdlib.h> |
| 29597 | |
| 29598 | _ACEOF |
| 29599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29600 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29601 | : |
| 29602 | else |
| 29603 | ac_cv_header_stdc=no |
| 29604 | fi |
| 29605 | rm -f conftest* |
| 29606 | |
| 29607 | fi |
| 29608 | |
| 29609 | if test $ac_cv_header_stdc = yes; then |
| 29610 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 29611 | if test "$cross_compiling" = yes; then |
| 29612 | : |
| 29613 | else |
| 29614 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29615 | /* confdefs.h. */ |
| 29616 | _ACEOF |
| 29617 | cat confdefs.h >>conftest.$ac_ext |
| 29618 | cat >>conftest.$ac_ext <<_ACEOF |
| 29619 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29620 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29621 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29622 | #if ((' ' & 0x0FF) == 0x020) |
| 29623 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 29624 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 29625 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29626 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29627 | (('a' <= (c) && (c) <= 'i') \ |
| 29628 | || ('j' <= (c) && (c) <= 'r') \ |
| 29629 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29630 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 29631 | #endif |
| 29632 | |
| 29633 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 29634 | int |
| 29635 | main () |
| 29636 | { |
| 29637 | int i; |
| 29638 | for (i = 0; i < 256; i++) |
| 29639 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29640 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29641 | return 2; |
| 29642 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29643 | } |
| 29644 | _ACEOF |
| 29645 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29646 | if { (ac_try="$ac_link" |
| 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_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29653 | ac_status=$? |
| 29654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29656 | { (case "(($ac_try" in |
| 29657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29658 | *) ac_try_echo=$ac_try;; |
| 29659 | esac |
| 29660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29661 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29662 | ac_status=$? |
| 29663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29664 | (exit $ac_status); }; }; then |
| 29665 | : |
| 29666 | else |
| 29667 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29668 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29670 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29671 | ( exit $ac_status ) |
| 29672 | ac_cv_header_stdc=no |
| 29673 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29674 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29675 | fi |
| 29676 | |
| 29677 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29678 | fi |
| 29679 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29680 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 29681 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29682 | if test $ac_cv_header_stdc = yes; then |
| 29683 | |
| 29684 | cat >>confdefs.h <<\_ACEOF |
| 29685 | #define STDC_HEADERS 1 |
| 29686 | _ACEOF |
| 29687 | |
| 29688 | fi |
| 29689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29690 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 29691 | 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] | 29692 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 29693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29694 | else |
| 29695 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29696 | /* confdefs.h. */ |
| 29697 | _ACEOF |
| 29698 | cat confdefs.h >>conftest.$ac_ext |
| 29699 | cat >>conftest.$ac_ext <<_ACEOF |
| 29700 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29701 | #include <sys/types.h> |
| 29702 | #include <sys/wait.h> |
| 29703 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29704 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29705 | #endif |
| 29706 | #ifndef WIFEXITED |
| 29707 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 29708 | #endif |
| 29709 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29710 | int |
| 29711 | main () |
| 29712 | { |
| 29713 | int s; |
| 29714 | wait (&s); |
| 29715 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 29716 | ; |
| 29717 | return 0; |
| 29718 | } |
| 29719 | _ACEOF |
| 29720 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29721 | if { (ac_try="$ac_compile" |
| 29722 | case "(($ac_try" in |
| 29723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29724 | *) ac_try_echo=$ac_try;; |
| 29725 | esac |
| 29726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29727 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29728 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29730 | rm -f conftest.er1 |
| 29731 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29733 | (exit $ac_status); } && |
| 29734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29735 | { (case "(($ac_try" in |
| 29736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29737 | *) ac_try_echo=$ac_try;; |
| 29738 | esac |
| 29739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29740 | (eval "$ac_try") 2>&5 |
| 29741 | ac_status=$? |
| 29742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29743 | (exit $ac_status); }; } && |
| 29744 | { ac_try='test -s conftest.$ac_objext' |
| 29745 | { (case "(($ac_try" in |
| 29746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29747 | *) ac_try_echo=$ac_try;; |
| 29748 | esac |
| 29749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29750 | (eval "$ac_try") 2>&5 |
| 29751 | ac_status=$? |
| 29752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29753 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29754 | ac_cv_header_sys_wait_h=yes |
| 29755 | else |
| 29756 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29759 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29760 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29761 | |
| 29762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29763 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29764 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 29765 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29766 | if test $ac_cv_header_sys_wait_h = yes; then |
| 29767 | |
| 29768 | cat >>confdefs.h <<\_ACEOF |
| 29769 | #define HAVE_SYS_WAIT_H 1 |
| 29770 | _ACEOF |
| 29771 | |
| 29772 | fi |
| 29773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29774 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 29775 | 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] | 29776 | if test "${ac_cv_header_time+set}" = set; then |
| 29777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29778 | else |
| 29779 | cat >conftest.$ac_ext <<_ACEOF |
| 29780 | /* confdefs.h. */ |
| 29781 | _ACEOF |
| 29782 | cat confdefs.h >>conftest.$ac_ext |
| 29783 | cat >>conftest.$ac_ext <<_ACEOF |
| 29784 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29785 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29786 | #include <sys/time.h> |
| 29787 | #include <time.h> |
| 29788 | |
| 29789 | int |
| 29790 | main () |
| 29791 | { |
| 29792 | if ((struct tm *) 0) |
| 29793 | return 0; |
| 29794 | ; |
| 29795 | return 0; |
| 29796 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29797 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29798 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29799 | if { (ac_try="$ac_compile" |
| 29800 | case "(($ac_try" in |
| 29801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29802 | *) ac_try_echo=$ac_try;; |
| 29803 | esac |
| 29804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29805 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29806 | ac_status=$? |
| 29807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29808 | rm -f conftest.er1 |
| 29809 | cat conftest.err >&5 |
| 29810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29811 | (exit $ac_status); } && |
| 29812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29813 | { (case "(($ac_try" in |
| 29814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29815 | *) ac_try_echo=$ac_try;; |
| 29816 | esac |
| 29817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29818 | (eval "$ac_try") 2>&5 |
| 29819 | ac_status=$? |
| 29820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29821 | (exit $ac_status); }; } && |
| 29822 | { ac_try='test -s conftest.$ac_objext' |
| 29823 | { (case "(($ac_try" in |
| 29824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29825 | *) ac_try_echo=$ac_try;; |
| 29826 | esac |
| 29827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29828 | (eval "$ac_try") 2>&5 |
| 29829 | ac_status=$? |
| 29830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29831 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29832 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29833 | else |
| 29834 | echo "$as_me: failed program was:" >&5 |
| 29835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29837 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29838 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29839 | |
| 29840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29841 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29842 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 29843 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29844 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29845 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29846 | cat >>confdefs.h <<\_ACEOF |
| 29847 | #define TIME_WITH_SYS_TIME 1 |
| 29848 | _ACEOF |
| 29849 | |
| 29850 | fi |
| 29851 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29852 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29853 | |
| 29854 | |
| 29855 | |
| 29856 | |
| 29857 | |
| 29858 | |
| 29859 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 29860 | do |
| 29861 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29863 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29865 | 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] | 29866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29867 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29868 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29869 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29870 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29871 | else |
| 29872 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29873 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29874 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29875 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29876 | /* confdefs.h. */ |
| 29877 | _ACEOF |
| 29878 | cat confdefs.h >>conftest.$ac_ext |
| 29879 | cat >>conftest.$ac_ext <<_ACEOF |
| 29880 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29881 | $ac_includes_default |
| 29882 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29883 | _ACEOF |
| 29884 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29885 | if { (ac_try="$ac_compile" |
| 29886 | case "(($ac_try" in |
| 29887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29888 | *) ac_try_echo=$ac_try;; |
| 29889 | esac |
| 29890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29891 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29892 | ac_status=$? |
| 29893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29894 | rm -f conftest.er1 |
| 29895 | cat conftest.err >&5 |
| 29896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29897 | (exit $ac_status); } && |
| 29898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29899 | { (case "(($ac_try" in |
| 29900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29901 | *) ac_try_echo=$ac_try;; |
| 29902 | esac |
| 29903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29904 | (eval "$ac_try") 2>&5 |
| 29905 | ac_status=$? |
| 29906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29907 | (exit $ac_status); }; } && |
| 29908 | { ac_try='test -s conftest.$ac_objext' |
| 29909 | { (case "(($ac_try" in |
| 29910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29911 | *) ac_try_echo=$ac_try;; |
| 29912 | esac |
| 29913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29914 | (eval "$ac_try") 2>&5 |
| 29915 | ac_status=$? |
| 29916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29917 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29918 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29919 | else |
| 29920 | echo "$as_me: failed program was:" >&5 |
| 29921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29922 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29923 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29924 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29925 | |
| 29926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29927 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29928 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29929 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29930 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29931 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29933 | cat >conftest.$ac_ext <<_ACEOF |
| 29934 | /* confdefs.h. */ |
| 29935 | _ACEOF |
| 29936 | cat confdefs.h >>conftest.$ac_ext |
| 29937 | cat >>conftest.$ac_ext <<_ACEOF |
| 29938 | /* end confdefs.h. */ |
| 29939 | #include <$ac_header> |
| 29940 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29942 | case "(($ac_try" in |
| 29943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29944 | *) ac_try_echo=$ac_try;; |
| 29945 | esac |
| 29946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29948 | ac_status=$? |
| 29949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29950 | rm -f conftest.er1 |
| 29951 | cat conftest.err >&5 |
| 29952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29953 | (exit $ac_status); } >/dev/null; then |
| 29954 | if test -s conftest.err; then |
| 29955 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29956 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29957 | else |
| 29958 | ac_cpp_err= |
| 29959 | fi |
| 29960 | else |
| 29961 | ac_cpp_err=yes |
| 29962 | fi |
| 29963 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29964 | ac_header_preproc=yes |
| 29965 | else |
| 29966 | echo "$as_me: failed program was:" >&5 |
| 29967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29968 | |
| 29969 | ac_header_preproc=no |
| 29970 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29971 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29972 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29973 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29974 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29975 | |
| 29976 | # So? What about this header? |
| 29977 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29978 | yes:no: ) |
| 29979 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29980 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29981 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29982 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29983 | ac_header_preproc=yes |
| 29984 | ;; |
| 29985 | no:yes:* ) |
| 29986 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29987 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29988 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29989 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29990 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29991 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29992 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29993 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29994 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29995 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29996 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29997 | 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] | 29998 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29999 | ## ----------------------------------- ## |
| 30000 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30001 | ## ----------------------------------- ## |
| 30002 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30003 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30004 | ;; |
| 30005 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30006 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30007 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30008 | 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] | 30009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30010 | else |
| 30011 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30012 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30013 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30014 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30015 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30016 | |
| 30017 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30018 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30019 | cat >>confdefs.h <<_ACEOF |
| 30020 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30021 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30022 | |
| 30023 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30024 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30025 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30026 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30027 | |
| 30028 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30029 | |
| 30030 | |
| 30031 | |
| 30032 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30033 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30034 | do |
| 30035 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30037 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30038 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30039 | 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] | 30040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30041 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30042 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30043 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30044 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30045 | else |
| 30046 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30047 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30048 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30049 | cat >conftest.$ac_ext <<_ACEOF |
| 30050 | /* confdefs.h. */ |
| 30051 | _ACEOF |
| 30052 | cat confdefs.h >>conftest.$ac_ext |
| 30053 | cat >>conftest.$ac_ext <<_ACEOF |
| 30054 | /* end confdefs.h. */ |
| 30055 | $ac_includes_default |
| 30056 | #include <$ac_header> |
| 30057 | _ACEOF |
| 30058 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30059 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30066 | ac_status=$? |
| 30067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30068 | rm -f conftest.er1 |
| 30069 | cat conftest.err >&5 |
| 30070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30071 | (exit $ac_status); } && |
| 30072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30073 | { (case "(($ac_try" in |
| 30074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30075 | *) ac_try_echo=$ac_try;; |
| 30076 | esac |
| 30077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30078 | (eval "$ac_try") 2>&5 |
| 30079 | ac_status=$? |
| 30080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30081 | (exit $ac_status); }; } && |
| 30082 | { ac_try='test -s conftest.$ac_objext' |
| 30083 | { (case "(($ac_try" in |
| 30084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30085 | *) ac_try_echo=$ac_try;; |
| 30086 | esac |
| 30087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30088 | (eval "$ac_try") 2>&5 |
| 30089 | ac_status=$? |
| 30090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30091 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30092 | ac_header_compiler=yes |
| 30093 | else |
| 30094 | echo "$as_me: failed program was:" >&5 |
| 30095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30097 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30099 | |
| 30100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30101 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30102 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30103 | |
| 30104 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30105 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30106 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30107 | cat >conftest.$ac_ext <<_ACEOF |
| 30108 | /* confdefs.h. */ |
| 30109 | _ACEOF |
| 30110 | cat confdefs.h >>conftest.$ac_ext |
| 30111 | cat >>conftest.$ac_ext <<_ACEOF |
| 30112 | /* end confdefs.h. */ |
| 30113 | #include <$ac_header> |
| 30114 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30115 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30116 | case "(($ac_try" in |
| 30117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30118 | *) ac_try_echo=$ac_try;; |
| 30119 | esac |
| 30120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30121 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30122 | ac_status=$? |
| 30123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30124 | rm -f conftest.er1 |
| 30125 | cat conftest.err >&5 |
| 30126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30127 | (exit $ac_status); } >/dev/null; then |
| 30128 | if test -s conftest.err; then |
| 30129 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30130 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30131 | else |
| 30132 | ac_cpp_err= |
| 30133 | fi |
| 30134 | else |
| 30135 | ac_cpp_err=yes |
| 30136 | fi |
| 30137 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30138 | ac_header_preproc=yes |
| 30139 | else |
| 30140 | echo "$as_me: failed program was:" >&5 |
| 30141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30142 | |
| 30143 | ac_header_preproc=no |
| 30144 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30145 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30146 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30147 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30148 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30149 | |
| 30150 | # So? What about this header? |
| 30151 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30152 | yes:no: ) |
| 30153 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30154 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30155 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30156 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30157 | ac_header_preproc=yes |
| 30158 | ;; |
| 30159 | no:yes:* ) |
| 30160 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30161 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30162 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30163 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30164 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30165 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30166 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30167 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30169 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30170 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30171 | 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] | 30172 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30173 | ## ----------------------------------- ## |
| 30174 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30175 | ## ----------------------------------- ## |
| 30176 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30177 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30178 | ;; |
| 30179 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30180 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30182 | 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] | 30183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30184 | else |
| 30185 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30186 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30187 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30188 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30189 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30190 | |
| 30191 | fi |
| 30192 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30193 | cat >>confdefs.h <<_ACEOF |
| 30194 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30195 | _ACEOF |
| 30196 | |
| 30197 | fi |
| 30198 | |
| 30199 | done |
| 30200 | |
| 30201 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30202 | |
| 30203 | for ac_header in utime.h windows.h |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30204 | do |
| 30205 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30206 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30207 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30209 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30211 | fi |
| 30212 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30213 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30214 | echo "${ECHO_T}$ac_res" >&6; } |
| 30215 | else |
| 30216 | # Is the header compilable? |
| 30217 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30218 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30219 | cat >conftest.$ac_ext <<_ACEOF |
| 30220 | /* confdefs.h. */ |
| 30221 | _ACEOF |
| 30222 | cat confdefs.h >>conftest.$ac_ext |
| 30223 | cat >>conftest.$ac_ext <<_ACEOF |
| 30224 | /* end confdefs.h. */ |
| 30225 | $ac_includes_default |
| 30226 | #include <$ac_header> |
| 30227 | _ACEOF |
| 30228 | rm -f conftest.$ac_objext |
| 30229 | if { (ac_try="$ac_compile" |
| 30230 | case "(($ac_try" in |
| 30231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30232 | *) ac_try_echo=$ac_try;; |
| 30233 | esac |
| 30234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30235 | (eval "$ac_compile") 2>conftest.er1 |
| 30236 | ac_status=$? |
| 30237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30238 | rm -f conftest.er1 |
| 30239 | cat conftest.err >&5 |
| 30240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30241 | (exit $ac_status); } && |
| 30242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30243 | { (case "(($ac_try" in |
| 30244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30245 | *) ac_try_echo=$ac_try;; |
| 30246 | esac |
| 30247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30248 | (eval "$ac_try") 2>&5 |
| 30249 | ac_status=$? |
| 30250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30251 | (exit $ac_status); }; } && |
| 30252 | { ac_try='test -s conftest.$ac_objext' |
| 30253 | { (case "(($ac_try" in |
| 30254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30255 | *) ac_try_echo=$ac_try;; |
| 30256 | esac |
| 30257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30258 | (eval "$ac_try") 2>&5 |
| 30259 | ac_status=$? |
| 30260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30261 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30262 | ac_header_compiler=yes |
| 30263 | else |
| 30264 | echo "$as_me: failed program was:" >&5 |
| 30265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30266 | |
| 30267 | ac_header_compiler=no |
| 30268 | fi |
| 30269 | |
| 30270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30271 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30272 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30273 | |
| 30274 | # Is the header present? |
| 30275 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30276 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30277 | cat >conftest.$ac_ext <<_ACEOF |
| 30278 | /* confdefs.h. */ |
| 30279 | _ACEOF |
| 30280 | cat confdefs.h >>conftest.$ac_ext |
| 30281 | cat >>conftest.$ac_ext <<_ACEOF |
| 30282 | /* end confdefs.h. */ |
| 30283 | #include <$ac_header> |
| 30284 | _ACEOF |
| 30285 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30286 | case "(($ac_try" in |
| 30287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30288 | *) ac_try_echo=$ac_try;; |
| 30289 | esac |
| 30290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30291 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 30292 | ac_status=$? |
| 30293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30294 | rm -f conftest.er1 |
| 30295 | cat conftest.err >&5 |
| 30296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30297 | (exit $ac_status); } >/dev/null; then |
| 30298 | if test -s conftest.err; then |
| 30299 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30300 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30301 | else |
| 30302 | ac_cpp_err= |
| 30303 | fi |
| 30304 | else |
| 30305 | ac_cpp_err=yes |
| 30306 | fi |
| 30307 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30308 | ac_header_preproc=yes |
| 30309 | else |
| 30310 | echo "$as_me: failed program was:" >&5 |
| 30311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30312 | |
| 30313 | ac_header_preproc=no |
| 30314 | fi |
| 30315 | |
| 30316 | rm -f conftest.err conftest.$ac_ext |
| 30317 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30318 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 30319 | |
| 30320 | # So? What about this header? |
| 30321 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30322 | yes:no: ) |
| 30323 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30324 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30325 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30326 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30327 | ac_header_preproc=yes |
| 30328 | ;; |
| 30329 | no:yes:* ) |
| 30330 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30331 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30332 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30333 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30334 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30335 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30336 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30337 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30339 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30340 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30341 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 30342 | ( cat <<\_ASBOX |
| 30343 | ## ----------------------------------- ## |
| 30344 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30345 | ## ----------------------------------- ## |
| 30346 | _ASBOX |
| 30347 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 30348 | ;; |
| 30349 | esac |
| 30350 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30352 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30354 | else |
| 30355 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30356 | fi |
| 30357 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30358 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30359 | echo "${ECHO_T}$ac_res" >&6; } |
| 30360 | |
| 30361 | fi |
| 30362 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30363 | cat >>confdefs.h <<_ACEOF |
| 30364 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30365 | _ACEOF |
| 30366 | |
| 30367 | fi |
| 30368 | |
| 30369 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30370 | |
| 30371 | |
| 30372 | |
| 30373 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30374 | |
| 30375 | 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] | 30376 | do |
| 30377 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30378 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30379 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30381 | 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] | 30382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30383 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30384 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30385 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30386 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30387 | else |
| 30388 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30389 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30391 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30392 | /* confdefs.h. */ |
| 30393 | _ACEOF |
| 30394 | cat confdefs.h >>conftest.$ac_ext |
| 30395 | cat >>conftest.$ac_ext <<_ACEOF |
| 30396 | /* end confdefs.h. */ |
| 30397 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30398 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30399 | _ACEOF |
| 30400 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30401 | if { (ac_try="$ac_compile" |
| 30402 | case "(($ac_try" in |
| 30403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30404 | *) ac_try_echo=$ac_try;; |
| 30405 | esac |
| 30406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30407 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30408 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30410 | rm -f conftest.er1 |
| 30411 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30413 | (exit $ac_status); } && |
| 30414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30415 | { (case "(($ac_try" in |
| 30416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30417 | *) ac_try_echo=$ac_try;; |
| 30418 | esac |
| 30419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30420 | (eval "$ac_try") 2>&5 |
| 30421 | ac_status=$? |
| 30422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30423 | (exit $ac_status); }; } && |
| 30424 | { ac_try='test -s conftest.$ac_objext' |
| 30425 | { (case "(($ac_try" in |
| 30426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30427 | *) ac_try_echo=$ac_try;; |
| 30428 | esac |
| 30429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30430 | (eval "$ac_try") 2>&5 |
| 30431 | ac_status=$? |
| 30432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30433 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30434 | ac_header_compiler=yes |
| 30435 | else |
| 30436 | echo "$as_me: failed program was:" >&5 |
| 30437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30439 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30440 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30441 | |
| 30442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30443 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30444 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30445 | |
| 30446 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30447 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30448 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30449 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30450 | /* confdefs.h. */ |
| 30451 | _ACEOF |
| 30452 | cat confdefs.h >>conftest.$ac_ext |
| 30453 | cat >>conftest.$ac_ext <<_ACEOF |
| 30454 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30455 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30456 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30457 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30458 | case "(($ac_try" in |
| 30459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30460 | *) ac_try_echo=$ac_try;; |
| 30461 | esac |
| 30462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30463 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30464 | ac_status=$? |
| 30465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30466 | rm -f conftest.er1 |
| 30467 | cat conftest.err >&5 |
| 30468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30469 | (exit $ac_status); } >/dev/null; then |
| 30470 | if test -s conftest.err; then |
| 30471 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30472 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30473 | else |
| 30474 | ac_cpp_err= |
| 30475 | fi |
| 30476 | else |
| 30477 | ac_cpp_err=yes |
| 30478 | fi |
| 30479 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30480 | ac_header_preproc=yes |
| 30481 | else |
| 30482 | echo "$as_me: failed program was:" >&5 |
| 30483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30484 | |
| 30485 | ac_header_preproc=no |
| 30486 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30487 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30488 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30489 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30490 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30491 | |
| 30492 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30493 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30494 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30495 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30496 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30498 | 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] | 30499 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30500 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30501 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30502 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30503 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30504 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30505 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30506 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30507 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30508 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30509 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30510 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30511 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30512 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30513 | 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] | 30514 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30515 | ## ----------------------------------- ## |
| 30516 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30517 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30518 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30519 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30520 | ;; |
| 30521 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30522 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30523 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30524 | 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] | 30525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30526 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30527 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30529 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30530 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30531 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30532 | |
| 30533 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30534 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30535 | cat >>confdefs.h <<_ACEOF |
| 30536 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30537 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30538 | |
| 30539 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30540 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30541 | done |
| 30542 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30543 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30544 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 30545 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 30546 | |
| 30547 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30548 | do |
| 30549 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30550 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30551 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30553 | 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] | 30554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30556 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30557 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30558 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30559 | else |
| 30560 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30561 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30562 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30563 | cat >conftest.$ac_ext <<_ACEOF |
| 30564 | /* confdefs.h. */ |
| 30565 | _ACEOF |
| 30566 | cat confdefs.h >>conftest.$ac_ext |
| 30567 | cat >>conftest.$ac_ext <<_ACEOF |
| 30568 | /* end confdefs.h. */ |
| 30569 | $ac_includes_default |
| 30570 | #include <$ac_header> |
| 30571 | _ACEOF |
| 30572 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30573 | if { (ac_try="$ac_compile" |
| 30574 | case "(($ac_try" in |
| 30575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30576 | *) ac_try_echo=$ac_try;; |
| 30577 | esac |
| 30578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30579 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30580 | ac_status=$? |
| 30581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30582 | rm -f conftest.er1 |
| 30583 | cat conftest.err >&5 |
| 30584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30585 | (exit $ac_status); } && |
| 30586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30587 | { (case "(($ac_try" in |
| 30588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30589 | *) ac_try_echo=$ac_try;; |
| 30590 | esac |
| 30591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30592 | (eval "$ac_try") 2>&5 |
| 30593 | ac_status=$? |
| 30594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30595 | (exit $ac_status); }; } && |
| 30596 | { ac_try='test -s conftest.$ac_objext' |
| 30597 | { (case "(($ac_try" in |
| 30598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30599 | *) ac_try_echo=$ac_try;; |
| 30600 | esac |
| 30601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30602 | (eval "$ac_try") 2>&5 |
| 30603 | ac_status=$? |
| 30604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30605 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30606 | ac_header_compiler=yes |
| 30607 | else |
| 30608 | echo "$as_me: failed program was:" >&5 |
| 30609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30610 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30611 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30612 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30613 | |
| 30614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30615 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30616 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30617 | |
| 30618 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30619 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30620 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30621 | cat >conftest.$ac_ext <<_ACEOF |
| 30622 | /* confdefs.h. */ |
| 30623 | _ACEOF |
| 30624 | cat confdefs.h >>conftest.$ac_ext |
| 30625 | cat >>conftest.$ac_ext <<_ACEOF |
| 30626 | /* end confdefs.h. */ |
| 30627 | #include <$ac_header> |
| 30628 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30629 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30630 | case "(($ac_try" in |
| 30631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30632 | *) ac_try_echo=$ac_try;; |
| 30633 | esac |
| 30634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30635 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30636 | ac_status=$? |
| 30637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30638 | rm -f conftest.er1 |
| 30639 | cat conftest.err >&5 |
| 30640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30641 | (exit $ac_status); } >/dev/null; then |
| 30642 | if test -s conftest.err; then |
| 30643 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30644 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30645 | else |
| 30646 | ac_cpp_err= |
| 30647 | fi |
| 30648 | else |
| 30649 | ac_cpp_err=yes |
| 30650 | fi |
| 30651 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30652 | ac_header_preproc=yes |
| 30653 | else |
| 30654 | echo "$as_me: failed program was:" >&5 |
| 30655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30656 | |
| 30657 | ac_header_preproc=no |
| 30658 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30659 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30660 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30661 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30662 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30663 | |
| 30664 | # So? What about this header? |
| 30665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30666 | yes:no: ) |
| 30667 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30668 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30670 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30671 | ac_header_preproc=yes |
| 30672 | ;; |
| 30673 | no:yes:* ) |
| 30674 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30675 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30676 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30677 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30678 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30679 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30680 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30681 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30682 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30683 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30684 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30685 | 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] | 30686 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30687 | ## ----------------------------------- ## |
| 30688 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30689 | ## ----------------------------------- ## |
| 30690 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30691 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30692 | ;; |
| 30693 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30694 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30696 | 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] | 30697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30698 | else |
| 30699 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30700 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30701 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30702 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30703 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30704 | |
| 30705 | fi |
| 30706 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30707 | cat >>confdefs.h <<_ACEOF |
| 30708 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30709 | _ACEOF |
| 30710 | |
| 30711 | fi |
| 30712 | |
| 30713 | done |
| 30714 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30715 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30716 | |
| 30717 | for ac_header in pthread.h |
| 30718 | do |
| 30719 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30721 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30723 | 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] | 30724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30725 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30726 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30728 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30729 | else |
| 30730 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30731 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30732 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30733 | cat >conftest.$ac_ext <<_ACEOF |
| 30734 | /* confdefs.h. */ |
| 30735 | _ACEOF |
| 30736 | cat confdefs.h >>conftest.$ac_ext |
| 30737 | cat >>conftest.$ac_ext <<_ACEOF |
| 30738 | /* end confdefs.h. */ |
| 30739 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30740 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30741 | _ACEOF |
| 30742 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30743 | if { (ac_try="$ac_compile" |
| 30744 | case "(($ac_try" in |
| 30745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30746 | *) ac_try_echo=$ac_try;; |
| 30747 | esac |
| 30748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30749 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30750 | ac_status=$? |
| 30751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30752 | rm -f conftest.er1 |
| 30753 | cat conftest.err >&5 |
| 30754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30755 | (exit $ac_status); } && |
| 30756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30757 | { (case "(($ac_try" in |
| 30758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30759 | *) ac_try_echo=$ac_try;; |
| 30760 | esac |
| 30761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30762 | (eval "$ac_try") 2>&5 |
| 30763 | ac_status=$? |
| 30764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30765 | (exit $ac_status); }; } && |
| 30766 | { ac_try='test -s conftest.$ac_objext' |
| 30767 | { (case "(($ac_try" in |
| 30768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30769 | *) ac_try_echo=$ac_try;; |
| 30770 | esac |
| 30771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30772 | (eval "$ac_try") 2>&5 |
| 30773 | ac_status=$? |
| 30774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30775 | (exit $ac_status); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30776 | ac_header_compiler=yes |
| 30777 | else |
| 30778 | echo "$as_me: failed program was:" >&5 |
| 30779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30781 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30783 | |
| 30784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30785 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30786 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30787 | |
| 30788 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30789 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30790 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30791 | cat >conftest.$ac_ext <<_ACEOF |
| 30792 | /* confdefs.h. */ |
| 30793 | _ACEOF |
| 30794 | cat confdefs.h >>conftest.$ac_ext |
| 30795 | cat >>conftest.$ac_ext <<_ACEOF |
| 30796 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30797 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30798 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30799 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30800 | case "(($ac_try" in |
| 30801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30802 | *) ac_try_echo=$ac_try;; |
| 30803 | esac |
| 30804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30805 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30806 | ac_status=$? |
| 30807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30808 | rm -f conftest.er1 |
| 30809 | cat conftest.err >&5 |
| 30810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30811 | (exit $ac_status); } >/dev/null; then |
| 30812 | if test -s conftest.err; then |
| 30813 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30814 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30815 | else |
| 30816 | ac_cpp_err= |
| 30817 | fi |
| 30818 | else |
| 30819 | ac_cpp_err=yes |
| 30820 | fi |
| 30821 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30822 | ac_header_preproc=yes |
| 30823 | else |
| 30824 | echo "$as_me: failed program was:" >&5 |
| 30825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30826 | |
| 30827 | ac_header_preproc=no |
| 30828 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30829 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30830 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30831 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30832 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30833 | |
| 30834 | # So? What about this header? |
| 30835 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30836 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30837 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30838 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30839 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30840 | 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] | 30841 | ac_header_preproc=yes |
| 30842 | ;; |
| 30843 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30844 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30845 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30846 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30847 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30848 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30849 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30850 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30851 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30852 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30853 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30854 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30855 | 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] | 30856 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30857 | ## ----------------------------------- ## |
| 30858 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30859 | ## ----------------------------------- ## |
| 30860 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30861 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30862 | ;; |
| 30863 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30864 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30865 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30866 | 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] | 30867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30868 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30869 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30870 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30871 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30872 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30873 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30874 | |
| 30875 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30876 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30877 | cat >>confdefs.h <<_ACEOF |
| 30878 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30879 | _ACEOF |
| 30880 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30881 | |
| 30882 | else |
| 30883 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30884 | |
| 30885 | fi |
| 30886 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30887 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30888 | |
| 30889 | else |
| 30890 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30891 | |
| 30892 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 30893 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 30894 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30895 | |
| 30896 | |
| 30897 | for ac_header in ffi.h ffi/ffi.h |
| 30898 | do |
| 30899 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30900 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30901 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30902 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30903 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30905 | fi |
| 30906 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30907 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30908 | echo "${ECHO_T}$ac_res" >&6; } |
| 30909 | else |
| 30910 | # Is the header compilable? |
| 30911 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30912 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30913 | cat >conftest.$ac_ext <<_ACEOF |
| 30914 | /* confdefs.h. */ |
| 30915 | _ACEOF |
| 30916 | cat confdefs.h >>conftest.$ac_ext |
| 30917 | cat >>conftest.$ac_ext <<_ACEOF |
| 30918 | /* end confdefs.h. */ |
| 30919 | $ac_includes_default |
| 30920 | #include <$ac_header> |
| 30921 | _ACEOF |
| 30922 | rm -f conftest.$ac_objext |
| 30923 | if { (ac_try="$ac_compile" |
| 30924 | case "(($ac_try" in |
| 30925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30926 | *) ac_try_echo=$ac_try;; |
| 30927 | esac |
| 30928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30929 | (eval "$ac_compile") 2>conftest.er1 |
| 30930 | ac_status=$? |
| 30931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30932 | rm -f conftest.er1 |
| 30933 | cat conftest.err >&5 |
| 30934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30935 | (exit $ac_status); } && |
| 30936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30937 | { (case "(($ac_try" in |
| 30938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30939 | *) ac_try_echo=$ac_try;; |
| 30940 | esac |
| 30941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30942 | (eval "$ac_try") 2>&5 |
| 30943 | ac_status=$? |
| 30944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30945 | (exit $ac_status); }; } && |
| 30946 | { ac_try='test -s conftest.$ac_objext' |
| 30947 | { (case "(($ac_try" in |
| 30948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30949 | *) ac_try_echo=$ac_try;; |
| 30950 | esac |
| 30951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30952 | (eval "$ac_try") 2>&5 |
| 30953 | ac_status=$? |
| 30954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30955 | (exit $ac_status); }; }; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30956 | ac_header_compiler=yes |
| 30957 | else |
| 30958 | echo "$as_me: failed program was:" >&5 |
| 30959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30960 | |
| 30961 | ac_header_compiler=no |
| 30962 | fi |
| 30963 | |
| 30964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30965 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30966 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30967 | |
| 30968 | # Is the header present? |
| 30969 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30970 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30971 | cat >conftest.$ac_ext <<_ACEOF |
| 30972 | /* confdefs.h. */ |
| 30973 | _ACEOF |
| 30974 | cat confdefs.h >>conftest.$ac_ext |
| 30975 | cat >>conftest.$ac_ext <<_ACEOF |
| 30976 | /* end confdefs.h. */ |
| 30977 | #include <$ac_header> |
| 30978 | _ACEOF |
| 30979 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30980 | case "(($ac_try" in |
| 30981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30982 | *) ac_try_echo=$ac_try;; |
| 30983 | esac |
| 30984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30985 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 30986 | ac_status=$? |
| 30987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30988 | rm -f conftest.er1 |
| 30989 | cat conftest.err >&5 |
| 30990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30991 | (exit $ac_status); } >/dev/null; then |
| 30992 | if test -s conftest.err; then |
| 30993 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30994 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30995 | else |
| 30996 | ac_cpp_err= |
| 30997 | fi |
| 30998 | else |
| 30999 | ac_cpp_err=yes |
| 31000 | fi |
| 31001 | if test -z "$ac_cpp_err"; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31002 | ac_header_preproc=yes |
| 31003 | else |
| 31004 | echo "$as_me: failed program was:" >&5 |
| 31005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31006 | |
| 31007 | ac_header_preproc=no |
| 31008 | fi |
| 31009 | |
| 31010 | rm -f conftest.err conftest.$ac_ext |
| 31011 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 31012 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 31013 | |
| 31014 | # So? What about this header? |
| 31015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 31016 | yes:no: ) |
| 31017 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 31018 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 31019 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 31020 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 31021 | ac_header_preproc=yes |
| 31022 | ;; |
| 31023 | no:yes:* ) |
| 31024 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 31025 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 31026 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 31027 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 31028 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 31029 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 31030 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 31031 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 31032 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 31033 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 31034 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 31035 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 31036 | ( cat <<\_ASBOX |
| 31037 | ## ----------------------------------- ## |
| 31038 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 31039 | ## ----------------------------------- ## |
| 31040 | _ASBOX |
| 31041 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 31042 | ;; |
| 31043 | esac |
| 31044 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 31045 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 31046 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31048 | else |
| 31049 | eval "$as_ac_Header=\$ac_header_preproc" |
| 31050 | fi |
| 31051 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 31052 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31053 | echo "${ECHO_T}$ac_res" >&6; } |
| 31054 | |
| 31055 | fi |
| 31056 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 31057 | cat >>confdefs.h <<_ACEOF |
| 31058 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31059 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31060 | |
| 31061 | fi |
| 31062 | |
| 31063 | done |
| 31064 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 31065 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31066 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 31067 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 31068 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31069 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 31070 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 31071 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 31072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31073 | else |
| 31074 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31075 | ac_ext=cpp |
| 31076 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31077 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31078 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31079 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31080 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31081 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31082 | if test "$cross_compiling" = yes; then |
| 31083 | ac_cv_huge_val_sanity=yes |
| 31084 | else |
| 31085 | cat >conftest.$ac_ext <<_ACEOF |
| 31086 | /* confdefs.h. */ |
| 31087 | _ACEOF |
| 31088 | cat confdefs.h >>conftest.$ac_ext |
| 31089 | cat >>conftest.$ac_ext <<_ACEOF |
| 31090 | /* end confdefs.h. */ |
| 31091 | #include <math.h> |
| 31092 | int |
| 31093 | main () |
| 31094 | { |
| 31095 | double x = HUGE_VAL; return x != x; |
| 31096 | ; |
| 31097 | return 0; |
| 31098 | } |
| 31099 | _ACEOF |
| 31100 | rm -f conftest$ac_exeext |
| 31101 | if { (ac_try="$ac_link" |
| 31102 | case "(($ac_try" in |
| 31103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31104 | *) ac_try_echo=$ac_try;; |
| 31105 | esac |
| 31106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31107 | (eval "$ac_link") 2>&5 |
| 31108 | ac_status=$? |
| 31109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31110 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 31111 | { (case "(($ac_try" in |
| 31112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31113 | *) ac_try_echo=$ac_try;; |
| 31114 | esac |
| 31115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31116 | (eval "$ac_try") 2>&5 |
| 31117 | ac_status=$? |
| 31118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31119 | (exit $ac_status); }; }; then |
| 31120 | ac_cv_huge_val_sanity=yes |
| 31121 | else |
| 31122 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31123 | echo "$as_me: failed program was:" >&5 |
| 31124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31125 | |
| 31126 | ( exit $ac_status ) |
| 31127 | ac_cv_huge_val_sanity=no |
| 31128 | fi |
| 31129 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 31130 | fi |
| 31131 | |
| 31132 | |
| 31133 | ac_ext=c |
| 31134 | ac_cpp='$CPP $CPPFLAGS' |
| 31135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31138 | |
| 31139 | |
| 31140 | fi |
| 31141 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 31142 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 31143 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 31144 | |
| 31145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31146 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 31147 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31148 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 31149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31150 | else |
| 31151 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31152 | /* confdefs.h. */ |
| 31153 | _ACEOF |
| 31154 | cat confdefs.h >>conftest.$ac_ext |
| 31155 | cat >>conftest.$ac_ext <<_ACEOF |
| 31156 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31157 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31158 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31159 | int |
| 31160 | main () |
| 31161 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31162 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31163 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31164 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31165 | return 0; |
| 31166 | ; |
| 31167 | return 0; |
| 31168 | } |
| 31169 | _ACEOF |
| 31170 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31171 | if { (ac_try="$ac_compile" |
| 31172 | case "(($ac_try" in |
| 31173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31174 | *) ac_try_echo=$ac_try;; |
| 31175 | esac |
| 31176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31177 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31178 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31180 | rm -f conftest.er1 |
| 31181 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31183 | (exit $ac_status); } && |
| 31184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31185 | { (case "(($ac_try" in |
| 31186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31187 | *) ac_try_echo=$ac_try;; |
| 31188 | esac |
| 31189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31190 | (eval "$ac_try") 2>&5 |
| 31191 | ac_status=$? |
| 31192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31193 | (exit $ac_status); }; } && |
| 31194 | { ac_try='test -s conftest.$ac_objext' |
| 31195 | { (case "(($ac_try" in |
| 31196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31197 | *) ac_try_echo=$ac_try;; |
| 31198 | esac |
| 31199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31200 | (eval "$ac_try") 2>&5 |
| 31201 | ac_status=$? |
| 31202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31203 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31204 | ac_cv_type_pid_t=yes |
| 31205 | else |
| 31206 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31208 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31209 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31210 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31211 | |
| 31212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31213 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31214 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 31215 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31216 | if test $ac_cv_type_pid_t = yes; then |
| 31217 | : |
| 31218 | else |
| 31219 | |
| 31220 | cat >>confdefs.h <<_ACEOF |
| 31221 | #define pid_t int |
| 31222 | _ACEOF |
| 31223 | |
| 31224 | fi |
| 31225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31226 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 31227 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31228 | if test "${ac_cv_type_size_t+set}" = set; then |
| 31229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31230 | else |
| 31231 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31232 | /* confdefs.h. */ |
| 31233 | _ACEOF |
| 31234 | cat confdefs.h >>conftest.$ac_ext |
| 31235 | cat >>conftest.$ac_ext <<_ACEOF |
| 31236 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31237 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31238 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31239 | int |
| 31240 | main () |
| 31241 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31242 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31243 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31244 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31245 | return 0; |
| 31246 | ; |
| 31247 | return 0; |
| 31248 | } |
| 31249 | _ACEOF |
| 31250 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31251 | if { (ac_try="$ac_compile" |
| 31252 | case "(($ac_try" in |
| 31253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31254 | *) ac_try_echo=$ac_try;; |
| 31255 | esac |
| 31256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31257 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31258 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31260 | rm -f conftest.er1 |
| 31261 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31263 | (exit $ac_status); } && |
| 31264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31265 | { (case "(($ac_try" in |
| 31266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31267 | *) ac_try_echo=$ac_try;; |
| 31268 | esac |
| 31269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31270 | (eval "$ac_try") 2>&5 |
| 31271 | ac_status=$? |
| 31272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31273 | (exit $ac_status); }; } && |
| 31274 | { ac_try='test -s conftest.$ac_objext' |
| 31275 | { (case "(($ac_try" in |
| 31276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31277 | *) ac_try_echo=$ac_try;; |
| 31278 | esac |
| 31279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31280 | (eval "$ac_try") 2>&5 |
| 31281 | ac_status=$? |
| 31282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31283 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31284 | ac_cv_type_size_t=yes |
| 31285 | else |
| 31286 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31289 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31290 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31291 | |
| 31292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31293 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31294 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 31295 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31296 | if test $ac_cv_type_size_t = yes; then |
| 31297 | : |
| 31298 | else |
| 31299 | |
| 31300 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31301 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31302 | _ACEOF |
| 31303 | |
| 31304 | fi |
| 31305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31306 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 31307 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31308 | if test "${ac_cv_type_signal+set}" = set; then |
| 31309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31310 | else |
| 31311 | cat >conftest.$ac_ext <<_ACEOF |
| 31312 | /* confdefs.h. */ |
| 31313 | _ACEOF |
| 31314 | cat confdefs.h >>conftest.$ac_ext |
| 31315 | cat >>conftest.$ac_ext <<_ACEOF |
| 31316 | /* end confdefs.h. */ |
| 31317 | #include <sys/types.h> |
| 31318 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31319 | |
| 31320 | int |
| 31321 | main () |
| 31322 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31323 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31324 | ; |
| 31325 | return 0; |
| 31326 | } |
| 31327 | _ACEOF |
| 31328 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31329 | if { (ac_try="$ac_compile" |
| 31330 | case "(($ac_try" in |
| 31331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31332 | *) ac_try_echo=$ac_try;; |
| 31333 | esac |
| 31334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31335 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31336 | ac_status=$? |
| 31337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31338 | rm -f conftest.er1 |
| 31339 | cat conftest.err >&5 |
| 31340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31341 | (exit $ac_status); } && |
| 31342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31343 | { (case "(($ac_try" in |
| 31344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31345 | *) ac_try_echo=$ac_try;; |
| 31346 | esac |
| 31347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31348 | (eval "$ac_try") 2>&5 |
| 31349 | ac_status=$? |
| 31350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31351 | (exit $ac_status); }; } && |
| 31352 | { ac_try='test -s conftest.$ac_objext' |
| 31353 | { (case "(($ac_try" in |
| 31354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31355 | *) ac_try_echo=$ac_try;; |
| 31356 | esac |
| 31357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31358 | (eval "$ac_try") 2>&5 |
| 31359 | ac_status=$? |
| 31360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31361 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31362 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31363 | else |
| 31364 | echo "$as_me: failed program was:" >&5 |
| 31365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31366 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31367 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31368 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31369 | |
| 31370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31371 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31372 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 31373 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31374 | |
| 31375 | cat >>confdefs.h <<_ACEOF |
| 31376 | #define RETSIGTYPE $ac_cv_type_signal |
| 31377 | _ACEOF |
| 31378 | |
| 31379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31380 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 31381 | 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] | 31382 | if test "${ac_cv_struct_tm+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 | #include <sys/types.h> |
| 31392 | #include <time.h> |
| 31393 | |
| 31394 | int |
| 31395 | main () |
| 31396 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31397 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31398 | ; |
| 31399 | return 0; |
| 31400 | } |
| 31401 | _ACEOF |
| 31402 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31403 | if { (ac_try="$ac_compile" |
| 31404 | case "(($ac_try" in |
| 31405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31406 | *) ac_try_echo=$ac_try;; |
| 31407 | esac |
| 31408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31409 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31410 | ac_status=$? |
| 31411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31412 | rm -f conftest.er1 |
| 31413 | cat conftest.err >&5 |
| 31414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31415 | (exit $ac_status); } && |
| 31416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31417 | { (case "(($ac_try" in |
| 31418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31419 | *) ac_try_echo=$ac_try;; |
| 31420 | esac |
| 31421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31422 | (eval "$ac_try") 2>&5 |
| 31423 | ac_status=$? |
| 31424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31425 | (exit $ac_status); }; } && |
| 31426 | { ac_try='test -s conftest.$ac_objext' |
| 31427 | { (case "(($ac_try" in |
| 31428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31429 | *) ac_try_echo=$ac_try;; |
| 31430 | esac |
| 31431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31432 | (eval "$ac_try") 2>&5 |
| 31433 | ac_status=$? |
| 31434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31435 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31436 | ac_cv_struct_tm=time.h |
| 31437 | else |
| 31438 | echo "$as_me: failed program was:" >&5 |
| 31439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31441 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31442 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31443 | |
| 31444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31445 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31446 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 31447 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31448 | if test $ac_cv_struct_tm = sys/time.h; then |
| 31449 | |
| 31450 | cat >>confdefs.h <<\_ACEOF |
| 31451 | #define TM_IN_SYS_TIME 1 |
| 31452 | _ACEOF |
| 31453 | |
| 31454 | fi |
| 31455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31456 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 31457 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31458 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 31459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31460 | else |
| 31461 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31462 | /* confdefs.h. */ |
| 31463 | _ACEOF |
| 31464 | cat confdefs.h >>conftest.$ac_ext |
| 31465 | cat >>conftest.$ac_ext <<_ACEOF |
| 31466 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31467 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31468 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31469 | int |
| 31470 | main () |
| 31471 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31472 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31473 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31474 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31475 | return 0; |
| 31476 | ; |
| 31477 | return 0; |
| 31478 | } |
| 31479 | _ACEOF |
| 31480 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31481 | if { (ac_try="$ac_compile" |
| 31482 | case "(($ac_try" in |
| 31483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31484 | *) ac_try_echo=$ac_try;; |
| 31485 | esac |
| 31486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31487 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31488 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31490 | rm -f conftest.er1 |
| 31491 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31493 | (exit $ac_status); } && |
| 31494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31495 | { (case "(($ac_try" in |
| 31496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31497 | *) ac_try_echo=$ac_try;; |
| 31498 | esac |
| 31499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31500 | (eval "$ac_try") 2>&5 |
| 31501 | ac_status=$? |
| 31502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31503 | (exit $ac_status); }; } && |
| 31504 | { ac_try='test -s conftest.$ac_objext' |
| 31505 | { (case "(($ac_try" in |
| 31506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31507 | *) ac_try_echo=$ac_try;; |
| 31508 | esac |
| 31509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31510 | (eval "$ac_try") 2>&5 |
| 31511 | ac_status=$? |
| 31512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31513 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31514 | ac_cv_type_int64_t=yes |
| 31515 | else |
| 31516 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31519 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31520 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31521 | |
| 31522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31523 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31524 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 31525 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31526 | if test $ac_cv_type_int64_t = yes; then |
| 31527 | |
| 31528 | cat >>confdefs.h <<_ACEOF |
| 31529 | #define HAVE_INT64_T 1 |
| 31530 | _ACEOF |
| 31531 | |
| 31532 | |
| 31533 | else |
| 31534 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 31535 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 31536 | { (exit 1); exit 1; }; } |
| 31537 | fi |
| 31538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31539 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 31540 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31541 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 31542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31543 | else |
| 31544 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31545 | /* confdefs.h. */ |
| 31546 | _ACEOF |
| 31547 | cat confdefs.h >>conftest.$ac_ext |
| 31548 | cat >>conftest.$ac_ext <<_ACEOF |
| 31549 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31550 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31551 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31552 | int |
| 31553 | main () |
| 31554 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31555 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31556 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31557 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31558 | return 0; |
| 31559 | ; |
| 31560 | return 0; |
| 31561 | } |
| 31562 | _ACEOF |
| 31563 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31564 | if { (ac_try="$ac_compile" |
| 31565 | case "(($ac_try" in |
| 31566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31567 | *) ac_try_echo=$ac_try;; |
| 31568 | esac |
| 31569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31570 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31571 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31573 | rm -f conftest.er1 |
| 31574 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31576 | (exit $ac_status); } && |
| 31577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31578 | { (case "(($ac_try" in |
| 31579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31580 | *) ac_try_echo=$ac_try;; |
| 31581 | esac |
| 31582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31583 | (eval "$ac_try") 2>&5 |
| 31584 | ac_status=$? |
| 31585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31586 | (exit $ac_status); }; } && |
| 31587 | { ac_try='test -s conftest.$ac_objext' |
| 31588 | { (case "(($ac_try" in |
| 31589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31590 | *) ac_try_echo=$ac_try;; |
| 31591 | esac |
| 31592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31593 | (eval "$ac_try") 2>&5 |
| 31594 | ac_status=$? |
| 31595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31596 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31597 | ac_cv_type_uint64_t=yes |
| 31598 | else |
| 31599 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31602 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31603 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31604 | |
| 31605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31606 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31607 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 31608 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31609 | if test $ac_cv_type_uint64_t = yes; then |
| 31610 | |
| 31611 | cat >>confdefs.h <<_ACEOF |
| 31612 | #define HAVE_UINT64_T 1 |
| 31613 | _ACEOF |
| 31614 | |
| 31615 | |
| 31616 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31617 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 31618 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31619 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 31620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31621 | else |
| 31622 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31623 | /* confdefs.h. */ |
| 31624 | _ACEOF |
| 31625 | cat confdefs.h >>conftest.$ac_ext |
| 31626 | cat >>conftest.$ac_ext <<_ACEOF |
| 31627 | /* end confdefs.h. */ |
| 31628 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31629 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31630 | int |
| 31631 | main () |
| 31632 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31633 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31634 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31635 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31636 | return 0; |
| 31637 | ; |
| 31638 | return 0; |
| 31639 | } |
| 31640 | _ACEOF |
| 31641 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31642 | if { (ac_try="$ac_compile" |
| 31643 | case "(($ac_try" in |
| 31644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31645 | *) ac_try_echo=$ac_try;; |
| 31646 | esac |
| 31647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31648 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31649 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31651 | rm -f conftest.er1 |
| 31652 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31654 | (exit $ac_status); } && |
| 31655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31656 | { (case "(($ac_try" in |
| 31657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31658 | *) ac_try_echo=$ac_try;; |
| 31659 | esac |
| 31660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31661 | (eval "$ac_try") 2>&5 |
| 31662 | ac_status=$? |
| 31663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31664 | (exit $ac_status); }; } && |
| 31665 | { ac_try='test -s conftest.$ac_objext' |
| 31666 | { (case "(($ac_try" in |
| 31667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31668 | *) ac_try_echo=$ac_try;; |
| 31669 | esac |
| 31670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31671 | (eval "$ac_try") 2>&5 |
| 31672 | ac_status=$? |
| 31673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31674 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31675 | ac_cv_type_u_int64_t=yes |
| 31676 | else |
| 31677 | echo "$as_me: failed program was:" >&5 |
| 31678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31680 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31682 | |
| 31683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31684 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31685 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 31686 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31687 | if test $ac_cv_type_u_int64_t = yes; then |
| 31688 | |
| 31689 | cat >>confdefs.h <<_ACEOF |
| 31690 | #define HAVE_U_INT64_T 1 |
| 31691 | _ACEOF |
| 31692 | |
| 31693 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 31694 | else |
| 31695 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 31696 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 31697 | { (exit 1); exit 1; }; } |
| 31698 | fi |
| 31699 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31700 | fi |
| 31701 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31702 | |
| 31703 | |
| 31704 | |
| 31705 | |
| 31706 | |
| 31707 | |
| 31708 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 31709 | |
| 31710 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31711 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31712 | do |
| 31713 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31714 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31715 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31716 | 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] | 31717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31718 | else |
| 31719 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31720 | /* confdefs.h. */ |
| 31721 | _ACEOF |
| 31722 | cat confdefs.h >>conftest.$ac_ext |
| 31723 | cat >>conftest.$ac_ext <<_ACEOF |
| 31724 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31725 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31726 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31727 | #define $ac_func innocuous_$ac_func |
| 31728 | |
| 31729 | /* System header to define __stub macros and hopefully few prototypes, |
| 31730 | which can conflict with char $ac_func (); below. |
| 31731 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31732 | <limits.h> exists even on freestanding compilers. */ |
| 31733 | |
| 31734 | #ifdef __STDC__ |
| 31735 | # include <limits.h> |
| 31736 | #else |
| 31737 | # include <assert.h> |
| 31738 | #endif |
| 31739 | |
| 31740 | #undef $ac_func |
| 31741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31742 | /* Override any GCC internal prototype to avoid an error. |
| 31743 | Use char because int might match the return type of a GCC |
| 31744 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31745 | #ifdef __cplusplus |
| 31746 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31747 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31748 | char $ac_func (); |
| 31749 | /* The GNU C library defines this for functions which it implements |
| 31750 | to always fail with ENOSYS. Some functions are actually named |
| 31751 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31752 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31753 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31754 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31755 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31756 | int |
| 31757 | main () |
| 31758 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31759 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31760 | ; |
| 31761 | return 0; |
| 31762 | } |
| 31763 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31764 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31765 | if { (ac_try="$ac_link" |
| 31766 | case "(($ac_try" in |
| 31767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31768 | *) ac_try_echo=$ac_try;; |
| 31769 | esac |
| 31770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31771 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31772 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31774 | rm -f conftest.er1 |
| 31775 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31777 | (exit $ac_status); } && |
| 31778 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31779 | { (case "(($ac_try" in |
| 31780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31781 | *) ac_try_echo=$ac_try;; |
| 31782 | esac |
| 31783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31784 | (eval "$ac_try") 2>&5 |
| 31785 | ac_status=$? |
| 31786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31787 | (exit $ac_status); }; } && |
| 31788 | { ac_try='test -s conftest$ac_exeext' |
| 31789 | { (case "(($ac_try" in |
| 31790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31791 | *) ac_try_echo=$ac_try;; |
| 31792 | esac |
| 31793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31794 | (eval "$ac_try") 2>&5 |
| 31795 | ac_status=$? |
| 31796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31797 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31798 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31799 | else |
| 31800 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31802 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31803 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31804 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31805 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31806 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31807 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31808 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31809 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31810 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31811 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31812 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31813 | cat >>confdefs.h <<_ACEOF |
| 31814 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31815 | _ACEOF |
| 31816 | |
| 31817 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31818 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31819 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31820 | |
| 31821 | |
| 31822 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31823 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31824 | for ac_func in powf fmodf strtof round |
| 31825 | do |
| 31826 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31827 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31828 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31829 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31831 | else |
| 31832 | cat >conftest.$ac_ext <<_ACEOF |
| 31833 | /* confdefs.h. */ |
| 31834 | _ACEOF |
| 31835 | cat confdefs.h >>conftest.$ac_ext |
| 31836 | cat >>conftest.$ac_ext <<_ACEOF |
| 31837 | /* end confdefs.h. */ |
| 31838 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31839 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31840 | #define $ac_func innocuous_$ac_func |
| 31841 | |
| 31842 | /* System header to define __stub macros and hopefully few prototypes, |
| 31843 | which can conflict with char $ac_func (); below. |
| 31844 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31845 | <limits.h> exists even on freestanding compilers. */ |
| 31846 | |
| 31847 | #ifdef __STDC__ |
| 31848 | # include <limits.h> |
| 31849 | #else |
| 31850 | # include <assert.h> |
| 31851 | #endif |
| 31852 | |
| 31853 | #undef $ac_func |
| 31854 | |
| 31855 | /* Override any GCC internal prototype to avoid an error. |
| 31856 | Use char because int might match the return type of a GCC |
| 31857 | builtin and then its argument prototype would still apply. */ |
| 31858 | #ifdef __cplusplus |
| 31859 | extern "C" |
| 31860 | #endif |
| 31861 | char $ac_func (); |
| 31862 | /* The GNU C library defines this for functions which it implements |
| 31863 | to always fail with ENOSYS. Some functions are actually named |
| 31864 | something starting with __ and the normal name is an alias. */ |
| 31865 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31866 | choke me |
| 31867 | #endif |
| 31868 | |
| 31869 | int |
| 31870 | main () |
| 31871 | { |
| 31872 | return $ac_func (); |
| 31873 | ; |
| 31874 | return 0; |
| 31875 | } |
| 31876 | _ACEOF |
| 31877 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31878 | if { (ac_try="$ac_link" |
| 31879 | case "(($ac_try" in |
| 31880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31881 | *) ac_try_echo=$ac_try;; |
| 31882 | esac |
| 31883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31884 | (eval "$ac_link") 2>conftest.er1 |
| 31885 | ac_status=$? |
| 31886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31887 | rm -f conftest.er1 |
| 31888 | cat conftest.err >&5 |
| 31889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31890 | (exit $ac_status); } && |
| 31891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31892 | { (case "(($ac_try" in |
| 31893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31894 | *) ac_try_echo=$ac_try;; |
| 31895 | esac |
| 31896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31897 | (eval "$ac_try") 2>&5 |
| 31898 | ac_status=$? |
| 31899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31900 | (exit $ac_status); }; } && |
| 31901 | { ac_try='test -s conftest$ac_exeext' |
| 31902 | { (case "(($ac_try" in |
| 31903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31904 | *) ac_try_echo=$ac_try;; |
| 31905 | esac |
| 31906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31907 | (eval "$ac_try") 2>&5 |
| 31908 | ac_status=$? |
| 31909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31910 | (exit $ac_status); }; }; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31911 | eval "$as_ac_var=yes" |
| 31912 | else |
| 31913 | echo "$as_me: failed program was:" >&5 |
| 31914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31915 | |
| 31916 | eval "$as_ac_var=no" |
| 31917 | fi |
| 31918 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31919 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31920 | conftest$ac_exeext conftest.$ac_ext |
| 31921 | fi |
| 31922 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31923 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31924 | echo "${ECHO_T}$ac_res" >&6; } |
| 31925 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31926 | cat >>confdefs.h <<_ACEOF |
| 31927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31928 | _ACEOF |
| 31929 | |
| 31930 | fi |
| 31931 | done |
| 31932 | |
| 31933 | |
| 31934 | |
| 31935 | |
| 31936 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31937 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31938 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 31939 | do |
| 31940 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31941 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31942 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31943 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31945 | else |
| 31946 | cat >conftest.$ac_ext <<_ACEOF |
| 31947 | /* confdefs.h. */ |
| 31948 | _ACEOF |
| 31949 | cat confdefs.h >>conftest.$ac_ext |
| 31950 | cat >>conftest.$ac_ext <<_ACEOF |
| 31951 | /* end confdefs.h. */ |
| 31952 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31953 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31954 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31955 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31956 | /* System header to define __stub macros and hopefully few prototypes, |
| 31957 | which can conflict with char $ac_func (); below. |
| 31958 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31959 | <limits.h> exists even on freestanding compilers. */ |
| 31960 | |
| 31961 | #ifdef __STDC__ |
| 31962 | # include <limits.h> |
| 31963 | #else |
| 31964 | # include <assert.h> |
| 31965 | #endif |
| 31966 | |
| 31967 | #undef $ac_func |
| 31968 | |
| 31969 | /* Override any GCC internal prototype to avoid an error. |
| 31970 | Use char because int might match the return type of a GCC |
| 31971 | builtin and then its argument prototype would still apply. */ |
| 31972 | #ifdef __cplusplus |
| 31973 | extern "C" |
| 31974 | #endif |
| 31975 | char $ac_func (); |
| 31976 | /* The GNU C library defines this for functions which it implements |
| 31977 | to always fail with ENOSYS. Some functions are actually named |
| 31978 | something starting with __ and the normal name is an alias. */ |
| 31979 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31980 | choke me |
| 31981 | #endif |
| 31982 | |
| 31983 | int |
| 31984 | main () |
| 31985 | { |
| 31986 | return $ac_func (); |
| 31987 | ; |
| 31988 | return 0; |
| 31989 | } |
| 31990 | _ACEOF |
| 31991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31992 | if { (ac_try="$ac_link" |
| 31993 | case "(($ac_try" in |
| 31994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31995 | *) ac_try_echo=$ac_try;; |
| 31996 | esac |
| 31997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31998 | (eval "$ac_link") 2>conftest.er1 |
| 31999 | ac_status=$? |
| 32000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32001 | rm -f conftest.er1 |
| 32002 | cat conftest.err >&5 |
| 32003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32004 | (exit $ac_status); } && |
| 32005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32006 | { (case "(($ac_try" in |
| 32007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32008 | *) ac_try_echo=$ac_try;; |
| 32009 | esac |
| 32010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32011 | (eval "$ac_try") 2>&5 |
| 32012 | ac_status=$? |
| 32013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32014 | (exit $ac_status); }; } && |
| 32015 | { ac_try='test -s conftest$ac_exeext' |
| 32016 | { (case "(($ac_try" in |
| 32017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32018 | *) ac_try_echo=$ac_try;; |
| 32019 | esac |
| 32020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32021 | (eval "$ac_try") 2>&5 |
| 32022 | ac_status=$? |
| 32023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32024 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 32025 | eval "$as_ac_var=yes" |
| 32026 | else |
| 32027 | echo "$as_me: failed program was:" >&5 |
| 32028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32029 | |
| 32030 | eval "$as_ac_var=no" |
| 32031 | fi |
| 32032 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32033 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 32034 | conftest$ac_exeext conftest.$ac_ext |
| 32035 | fi |
| 32036 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32037 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32038 | echo "${ECHO_T}$ac_res" >&6; } |
| 32039 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32040 | cat >>confdefs.h <<_ACEOF |
| 32041 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32042 | _ACEOF |
| 32043 | |
| 32044 | fi |
| 32045 | done |
| 32046 | |
| 32047 | |
| 32048 | |
| 32049 | |
| 32050 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32051 | do |
| 32052 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32053 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32054 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32055 | 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] | 32056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32057 | else |
| 32058 | cat >conftest.$ac_ext <<_ACEOF |
| 32059 | /* confdefs.h. */ |
| 32060 | _ACEOF |
| 32061 | cat confdefs.h >>conftest.$ac_ext |
| 32062 | cat >>conftest.$ac_ext <<_ACEOF |
| 32063 | /* end confdefs.h. */ |
| 32064 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32066 | #define $ac_func innocuous_$ac_func |
| 32067 | |
| 32068 | /* System header to define __stub macros and hopefully few prototypes, |
| 32069 | which can conflict with char $ac_func (); below. |
| 32070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32071 | <limits.h> exists even on freestanding compilers. */ |
| 32072 | |
| 32073 | #ifdef __STDC__ |
| 32074 | # include <limits.h> |
| 32075 | #else |
| 32076 | # include <assert.h> |
| 32077 | #endif |
| 32078 | |
| 32079 | #undef $ac_func |
| 32080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32081 | /* Override any GCC internal prototype to avoid an error. |
| 32082 | Use char because int might match the return type of a GCC |
| 32083 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32084 | #ifdef __cplusplus |
| 32085 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32086 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32087 | char $ac_func (); |
| 32088 | /* The GNU C library defines this for functions which it implements |
| 32089 | to always fail with ENOSYS. Some functions are actually named |
| 32090 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32091 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32092 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32093 | #endif |
| 32094 | |
| 32095 | int |
| 32096 | main () |
| 32097 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32098 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32099 | ; |
| 32100 | return 0; |
| 32101 | } |
| 32102 | _ACEOF |
| 32103 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32104 | if { (ac_try="$ac_link" |
| 32105 | case "(($ac_try" in |
| 32106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32107 | *) ac_try_echo=$ac_try;; |
| 32108 | esac |
| 32109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32110 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32111 | ac_status=$? |
| 32112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32113 | rm -f conftest.er1 |
| 32114 | cat conftest.err >&5 |
| 32115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32116 | (exit $ac_status); } && |
| 32117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32118 | { (case "(($ac_try" in |
| 32119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32120 | *) ac_try_echo=$ac_try;; |
| 32121 | esac |
| 32122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32123 | (eval "$ac_try") 2>&5 |
| 32124 | ac_status=$? |
| 32125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32126 | (exit $ac_status); }; } && |
| 32127 | { ac_try='test -s conftest$ac_exeext' |
| 32128 | { (case "(($ac_try" in |
| 32129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32130 | *) ac_try_echo=$ac_try;; |
| 32131 | esac |
| 32132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32133 | (eval "$ac_try") 2>&5 |
| 32134 | ac_status=$? |
| 32135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32136 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32137 | eval "$as_ac_var=yes" |
| 32138 | else |
| 32139 | echo "$as_me: failed program was:" >&5 |
| 32140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32141 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32142 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32143 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32144 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32145 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32146 | conftest$ac_exeext conftest.$ac_ext |
| 32147 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32148 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32149 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32150 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32151 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32152 | cat >>confdefs.h <<_ACEOF |
| 32153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32154 | _ACEOF |
| 32155 | |
| 32156 | fi |
| 32157 | done |
| 32158 | |
| 32159 | |
| 32160 | |
| 32161 | |
| 32162 | |
| 32163 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32164 | for ac_func in mktemp realpath sbrk setrlimit strdup |
| 32165 | do |
| 32166 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 32167 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32168 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32169 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32171 | else |
| 32172 | cat >conftest.$ac_ext <<_ACEOF |
| 32173 | /* confdefs.h. */ |
| 32174 | _ACEOF |
| 32175 | cat confdefs.h >>conftest.$ac_ext |
| 32176 | cat >>conftest.$ac_ext <<_ACEOF |
| 32177 | /* end confdefs.h. */ |
| 32178 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32179 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32180 | #define $ac_func innocuous_$ac_func |
| 32181 | |
| 32182 | /* System header to define __stub macros and hopefully few prototypes, |
| 32183 | which can conflict with char $ac_func (); below. |
| 32184 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32185 | <limits.h> exists even on freestanding compilers. */ |
| 32186 | |
| 32187 | #ifdef __STDC__ |
| 32188 | # include <limits.h> |
| 32189 | #else |
| 32190 | # include <assert.h> |
| 32191 | #endif |
| 32192 | |
| 32193 | #undef $ac_func |
| 32194 | |
| 32195 | /* Override any GCC internal prototype to avoid an error. |
| 32196 | Use char because int might match the return type of a GCC |
| 32197 | builtin and then its argument prototype would still apply. */ |
| 32198 | #ifdef __cplusplus |
| 32199 | extern "C" |
| 32200 | #endif |
| 32201 | char $ac_func (); |
| 32202 | /* The GNU C library defines this for functions which it implements |
| 32203 | to always fail with ENOSYS. Some functions are actually named |
| 32204 | something starting with __ and the normal name is an alias. */ |
| 32205 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 32206 | choke me |
| 32207 | #endif |
| 32208 | |
| 32209 | int |
| 32210 | main () |
| 32211 | { |
| 32212 | return $ac_func (); |
| 32213 | ; |
| 32214 | return 0; |
| 32215 | } |
| 32216 | _ACEOF |
| 32217 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32218 | if { (ac_try="$ac_link" |
| 32219 | case "(($ac_try" in |
| 32220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32221 | *) ac_try_echo=$ac_try;; |
| 32222 | esac |
| 32223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32224 | (eval "$ac_link") 2>conftest.er1 |
| 32225 | ac_status=$? |
| 32226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32227 | rm -f conftest.er1 |
| 32228 | cat conftest.err >&5 |
| 32229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32230 | (exit $ac_status); } && |
| 32231 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32232 | { (case "(($ac_try" in |
| 32233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32234 | *) ac_try_echo=$ac_try;; |
| 32235 | esac |
| 32236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32237 | (eval "$ac_try") 2>&5 |
| 32238 | ac_status=$? |
| 32239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32240 | (exit $ac_status); }; } && |
| 32241 | { ac_try='test -s conftest$ac_exeext' |
| 32242 | { (case "(($ac_try" in |
| 32243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32244 | *) ac_try_echo=$ac_try;; |
| 32245 | esac |
| 32246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32247 | (eval "$ac_try") 2>&5 |
| 32248 | ac_status=$? |
| 32249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32250 | (exit $ac_status); }; }; then |
| 32251 | eval "$as_ac_var=yes" |
| 32252 | else |
| 32253 | echo "$as_me: failed program was:" >&5 |
| 32254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32255 | |
| 32256 | eval "$as_ac_var=no" |
| 32257 | fi |
| 32258 | |
| 32259 | rm -f core conftest.err conftest.$ac_objext \ |
| 32260 | conftest$ac_exeext conftest.$ac_ext |
| 32261 | fi |
| 32262 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32263 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32264 | echo "${ECHO_T}$ac_res" >&6; } |
| 32265 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32266 | cat >>confdefs.h <<_ACEOF |
| 32267 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32268 | _ACEOF |
| 32269 | |
| 32270 | fi |
| 32271 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32272 | |
| 32273 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32274 | |
| 32275 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 32276 | |
| 32277 | for ac_func in strerror strerror_r strerror_s setenv |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32278 | do |
| 32279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32280 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32282 | 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] | 32283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32284 | else |
| 32285 | cat >conftest.$ac_ext <<_ACEOF |
| 32286 | /* confdefs.h. */ |
| 32287 | _ACEOF |
| 32288 | cat confdefs.h >>conftest.$ac_ext |
| 32289 | cat >>conftest.$ac_ext <<_ACEOF |
| 32290 | /* end confdefs.h. */ |
| 32291 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32292 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32293 | #define $ac_func innocuous_$ac_func |
| 32294 | |
| 32295 | /* System header to define __stub macros and hopefully few prototypes, |
| 32296 | which can conflict with char $ac_func (); below. |
| 32297 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32298 | <limits.h> exists even on freestanding compilers. */ |
| 32299 | |
| 32300 | #ifdef __STDC__ |
| 32301 | # include <limits.h> |
| 32302 | #else |
| 32303 | # include <assert.h> |
| 32304 | #endif |
| 32305 | |
| 32306 | #undef $ac_func |
| 32307 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32308 | /* Override any GCC internal prototype to avoid an error. |
| 32309 | Use char because int might match the return type of a GCC |
| 32310 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32311 | #ifdef __cplusplus |
| 32312 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32313 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32314 | char $ac_func (); |
| 32315 | /* The GNU C library defines this for functions which it implements |
| 32316 | to always fail with ENOSYS. Some functions are actually named |
| 32317 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32318 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32319 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32320 | #endif |
| 32321 | |
| 32322 | int |
| 32323 | main () |
| 32324 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32325 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32326 | ; |
| 32327 | return 0; |
| 32328 | } |
| 32329 | _ACEOF |
| 32330 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32331 | if { (ac_try="$ac_link" |
| 32332 | case "(($ac_try" in |
| 32333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32334 | *) ac_try_echo=$ac_try;; |
| 32335 | esac |
| 32336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32337 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32338 | ac_status=$? |
| 32339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32340 | rm -f conftest.er1 |
| 32341 | cat conftest.err >&5 |
| 32342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32343 | (exit $ac_status); } && |
| 32344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32345 | { (case "(($ac_try" in |
| 32346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32347 | *) ac_try_echo=$ac_try;; |
| 32348 | esac |
| 32349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32350 | (eval "$ac_try") 2>&5 |
| 32351 | ac_status=$? |
| 32352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32353 | (exit $ac_status); }; } && |
| 32354 | { ac_try='test -s conftest$ac_exeext' |
| 32355 | { (case "(($ac_try" in |
| 32356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32357 | *) ac_try_echo=$ac_try;; |
| 32358 | esac |
| 32359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32360 | (eval "$ac_try") 2>&5 |
| 32361 | ac_status=$? |
| 32362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32363 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32364 | eval "$as_ac_var=yes" |
| 32365 | else |
| 32366 | echo "$as_me: failed program was:" >&5 |
| 32367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32369 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32370 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32371 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32372 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32373 | conftest$ac_exeext conftest.$ac_ext |
| 32374 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32375 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32376 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32377 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32378 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32379 | cat >>confdefs.h <<_ACEOF |
| 32380 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32381 | _ACEOF |
| 32382 | |
| 32383 | fi |
| 32384 | done |
| 32385 | |
| 32386 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 32387 | |
| 32388 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 32389 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 32390 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32391 | do |
| 32392 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32393 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32394 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32395 | 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] | 32396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32397 | else |
| 32398 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32399 | /* confdefs.h. */ |
| 32400 | _ACEOF |
| 32401 | cat confdefs.h >>conftest.$ac_ext |
| 32402 | cat >>conftest.$ac_ext <<_ACEOF |
| 32403 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32404 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32405 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32406 | #define $ac_func innocuous_$ac_func |
| 32407 | |
| 32408 | /* System header to define __stub macros and hopefully few prototypes, |
| 32409 | which can conflict with char $ac_func (); below. |
| 32410 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32411 | <limits.h> exists even on freestanding compilers. */ |
| 32412 | |
| 32413 | #ifdef __STDC__ |
| 32414 | # include <limits.h> |
| 32415 | #else |
| 32416 | # include <assert.h> |
| 32417 | #endif |
| 32418 | |
| 32419 | #undef $ac_func |
| 32420 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32421 | /* Override any GCC internal prototype to avoid an error. |
| 32422 | Use char because int might match the return type of a GCC |
| 32423 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32424 | #ifdef __cplusplus |
| 32425 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32426 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32427 | char $ac_func (); |
| 32428 | /* The GNU C library defines this for functions which it implements |
| 32429 | to always fail with ENOSYS. Some functions are actually named |
| 32430 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32431 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32432 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32433 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32434 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32435 | int |
| 32436 | main () |
| 32437 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32438 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32439 | ; |
| 32440 | return 0; |
| 32441 | } |
| 32442 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32443 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32444 | if { (ac_try="$ac_link" |
| 32445 | case "(($ac_try" in |
| 32446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32447 | *) ac_try_echo=$ac_try;; |
| 32448 | esac |
| 32449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32450 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32451 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32453 | rm -f conftest.er1 |
| 32454 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32456 | (exit $ac_status); } && |
| 32457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32458 | { (case "(($ac_try" in |
| 32459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32460 | *) ac_try_echo=$ac_try;; |
| 32461 | esac |
| 32462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32463 | (eval "$ac_try") 2>&5 |
| 32464 | ac_status=$? |
| 32465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32466 | (exit $ac_status); }; } && |
| 32467 | { ac_try='test -s conftest$ac_exeext' |
| 32468 | { (case "(($ac_try" in |
| 32469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32470 | *) ac_try_echo=$ac_try;; |
| 32471 | esac |
| 32472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32473 | (eval "$ac_try") 2>&5 |
| 32474 | ac_status=$? |
| 32475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32476 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32477 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32478 | else |
| 32479 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32482 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32483 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32484 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32485 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32486 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32487 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32488 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32489 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32490 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32491 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32492 | cat >>confdefs.h <<_ACEOF |
| 32493 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32494 | _ACEOF |
| 32495 | |
| 32496 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32497 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32498 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32499 | |
| 32500 | |
| 32501 | |
| 32502 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 32503 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32504 | do |
| 32505 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32506 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32507 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32508 | 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] | 32509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32510 | else |
| 32511 | cat >conftest.$ac_ext <<_ACEOF |
| 32512 | /* confdefs.h. */ |
| 32513 | _ACEOF |
| 32514 | cat confdefs.h >>conftest.$ac_ext |
| 32515 | cat >>conftest.$ac_ext <<_ACEOF |
| 32516 | /* end confdefs.h. */ |
| 32517 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32519 | #define $ac_func innocuous_$ac_func |
| 32520 | |
| 32521 | /* System header to define __stub macros and hopefully few prototypes, |
| 32522 | which can conflict with char $ac_func (); below. |
| 32523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32524 | <limits.h> exists even on freestanding compilers. */ |
| 32525 | |
| 32526 | #ifdef __STDC__ |
| 32527 | # include <limits.h> |
| 32528 | #else |
| 32529 | # include <assert.h> |
| 32530 | #endif |
| 32531 | |
| 32532 | #undef $ac_func |
| 32533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32534 | /* Override any GCC internal prototype to avoid an error. |
| 32535 | Use char because int might match the return type of a GCC |
| 32536 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32537 | #ifdef __cplusplus |
| 32538 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32539 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32540 | char $ac_func (); |
| 32541 | /* The GNU C library defines this for functions which it implements |
| 32542 | to always fail with ENOSYS. Some functions are actually named |
| 32543 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32544 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32545 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32546 | #endif |
| 32547 | |
| 32548 | int |
| 32549 | main () |
| 32550 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32551 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32552 | ; |
| 32553 | return 0; |
| 32554 | } |
| 32555 | _ACEOF |
| 32556 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32557 | if { (ac_try="$ac_link" |
| 32558 | case "(($ac_try" in |
| 32559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32560 | *) ac_try_echo=$ac_try;; |
| 32561 | esac |
| 32562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32563 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32564 | ac_status=$? |
| 32565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32566 | rm -f conftest.er1 |
| 32567 | cat conftest.err >&5 |
| 32568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32569 | (exit $ac_status); } && |
| 32570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32571 | { (case "(($ac_try" in |
| 32572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32573 | *) ac_try_echo=$ac_try;; |
| 32574 | esac |
| 32575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32576 | (eval "$ac_try") 2>&5 |
| 32577 | ac_status=$? |
| 32578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32579 | (exit $ac_status); }; } && |
| 32580 | { ac_try='test -s conftest$ac_exeext' |
| 32581 | { (case "(($ac_try" in |
| 32582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32583 | *) ac_try_echo=$ac_try;; |
| 32584 | esac |
| 32585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32586 | (eval "$ac_try") 2>&5 |
| 32587 | ac_status=$? |
| 32588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32589 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32590 | eval "$as_ac_var=yes" |
| 32591 | else |
| 32592 | echo "$as_me: failed program was:" >&5 |
| 32593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32595 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32596 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32597 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32598 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32599 | conftest$ac_exeext conftest.$ac_ext |
| 32600 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32601 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32603 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32604 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32605 | cat >>confdefs.h <<_ACEOF |
| 32606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32607 | _ACEOF |
| 32608 | |
| 32609 | fi |
| 32610 | done |
| 32611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32612 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 32613 | 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] | 32614 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32616 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32617 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32618 | ac_cpp='$CPP $CPPFLAGS' |
| 32619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32622 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32623 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32624 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32625 | else |
| 32626 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32627 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32628 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32629 | _ACEOF |
| 32630 | cat confdefs.h >>conftest.$ac_ext |
| 32631 | cat >>conftest.$ac_ext <<_ACEOF |
| 32632 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32633 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32634 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32635 | #include <stdlib.h> |
| 32636 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32637 | int |
| 32638 | main () |
| 32639 | { |
| 32640 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32641 | volatile double A, B; |
| 32642 | char Buffer[100]; |
| 32643 | A = 1; |
| 32644 | A /= 10.0; |
| 32645 | sprintf(Buffer, "%a", A); |
| 32646 | B = atof(Buffer); |
| 32647 | if (A != B) |
| 32648 | return (1); |
| 32649 | if (A != 0x1.999999999999ap-4) |
| 32650 | return (1); |
| 32651 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32652 | ; |
| 32653 | return 0; |
| 32654 | } |
| 32655 | _ACEOF |
| 32656 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32657 | if { (ac_try="$ac_link" |
| 32658 | case "(($ac_try" in |
| 32659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32660 | *) ac_try_echo=$ac_try;; |
| 32661 | esac |
| 32662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32663 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32664 | ac_status=$? |
| 32665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32667 | { (case "(($ac_try" in |
| 32668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32669 | *) ac_try_echo=$ac_try;; |
| 32670 | esac |
| 32671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32672 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32673 | ac_status=$? |
| 32674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32675 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32676 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32677 | else |
| 32678 | echo "$as_me: program exited with status $ac_status" >&5 |
| 32679 | echo "$as_me: failed program was:" >&5 |
| 32680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32681 | |
| 32682 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32683 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32684 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32685 | 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] | 32686 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32687 | |
| 32688 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32689 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32690 | ac_cpp='$CPP $CPPFLAGS' |
| 32691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32694 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32696 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 32697 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32698 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32699 | |
| 32700 | cat >>confdefs.h <<\_ACEOF |
| 32701 | #define HAVE_PRINTF_A 1 |
| 32702 | _ACEOF |
| 32703 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32704 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32705 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32706 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 32707 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32708 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 32709 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32710 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32712 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32713 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32714 | /* confdefs.h. */ |
| 32715 | _ACEOF |
| 32716 | cat confdefs.h >>conftest.$ac_ext |
| 32717 | cat >>conftest.$ac_ext <<_ACEOF |
| 32718 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32719 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32720 | int |
| 32721 | main () |
| 32722 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32723 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32724 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32725 | ; |
| 32726 | return 0; |
| 32727 | } |
| 32728 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32729 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32730 | if { (ac_try="$ac_link" |
| 32731 | case "(($ac_try" in |
| 32732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32733 | *) ac_try_echo=$ac_try;; |
| 32734 | esac |
| 32735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32736 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32737 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32739 | rm -f conftest.er1 |
| 32740 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32742 | (exit $ac_status); } && |
| 32743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32744 | { (case "(($ac_try" in |
| 32745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32746 | *) ac_try_echo=$ac_try;; |
| 32747 | esac |
| 32748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32749 | (eval "$ac_try") 2>&5 |
| 32750 | ac_status=$? |
| 32751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32752 | (exit $ac_status); }; } && |
| 32753 | { ac_try='test -s conftest$ac_exeext' |
| 32754 | { (case "(($ac_try" in |
| 32755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32756 | *) ac_try_echo=$ac_try;; |
| 32757 | esac |
| 32758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32759 | (eval "$ac_try") 2>&5 |
| 32760 | ac_status=$? |
| 32761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32762 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32763 | ac_cv_working_alloca_h=yes |
| 32764 | else |
| 32765 | echo "$as_me: failed program was:" >&5 |
| 32766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32767 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32768 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32769 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32770 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32771 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32772 | conftest$ac_exeext conftest.$ac_ext |
| 32773 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32774 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 32775 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32776 | if test $ac_cv_working_alloca_h = yes; then |
| 32777 | |
| 32778 | cat >>confdefs.h <<\_ACEOF |
| 32779 | #define HAVE_ALLOCA_H 1 |
| 32780 | _ACEOF |
| 32781 | |
| 32782 | fi |
| 32783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32784 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 32785 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32786 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 32787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32788 | else |
| 32789 | cat >conftest.$ac_ext <<_ACEOF |
| 32790 | /* confdefs.h. */ |
| 32791 | _ACEOF |
| 32792 | cat confdefs.h >>conftest.$ac_ext |
| 32793 | cat >>conftest.$ac_ext <<_ACEOF |
| 32794 | /* end confdefs.h. */ |
| 32795 | #ifdef __GNUC__ |
| 32796 | # define alloca __builtin_alloca |
| 32797 | #else |
| 32798 | # ifdef _MSC_VER |
| 32799 | # include <malloc.h> |
| 32800 | # define alloca _alloca |
| 32801 | # else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32802 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32803 | # include <alloca.h> |
| 32804 | # else |
| 32805 | # ifdef _AIX |
| 32806 | #pragma alloca |
| 32807 | # else |
| 32808 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 32809 | char *alloca (); |
| 32810 | # endif |
| 32811 | # endif |
| 32812 | # endif |
| 32813 | # endif |
| 32814 | #endif |
| 32815 | |
| 32816 | int |
| 32817 | main () |
| 32818 | { |
| 32819 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32820 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32821 | ; |
| 32822 | return 0; |
| 32823 | } |
| 32824 | _ACEOF |
| 32825 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32826 | if { (ac_try="$ac_link" |
| 32827 | case "(($ac_try" in |
| 32828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32829 | *) ac_try_echo=$ac_try;; |
| 32830 | esac |
| 32831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32832 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32833 | ac_status=$? |
| 32834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32835 | rm -f conftest.er1 |
| 32836 | cat conftest.err >&5 |
| 32837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32838 | (exit $ac_status); } && |
| 32839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32840 | { (case "(($ac_try" in |
| 32841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32842 | *) ac_try_echo=$ac_try;; |
| 32843 | esac |
| 32844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32845 | (eval "$ac_try") 2>&5 |
| 32846 | ac_status=$? |
| 32847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32848 | (exit $ac_status); }; } && |
| 32849 | { ac_try='test -s conftest$ac_exeext' |
| 32850 | { (case "(($ac_try" in |
| 32851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32852 | *) ac_try_echo=$ac_try;; |
| 32853 | esac |
| 32854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32855 | (eval "$ac_try") 2>&5 |
| 32856 | ac_status=$? |
| 32857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32858 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32859 | ac_cv_func_alloca_works=yes |
| 32860 | else |
| 32861 | echo "$as_me: failed program was:" >&5 |
| 32862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32864 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32865 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32866 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32867 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32868 | conftest$ac_exeext conftest.$ac_ext |
| 32869 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32870 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 32871 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32872 | |
| 32873 | if test $ac_cv_func_alloca_works = yes; then |
| 32874 | |
| 32875 | cat >>confdefs.h <<\_ACEOF |
| 32876 | #define HAVE_ALLOCA 1 |
| 32877 | _ACEOF |
| 32878 | |
| 32879 | else |
| 32880 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 32881 | # that cause trouble. Some versions do not even contain alloca or |
| 32882 | # contain a buggy version. If you still want to use their alloca, |
| 32883 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 32884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32885 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32886 | |
| 32887 | cat >>confdefs.h <<\_ACEOF |
| 32888 | #define C_ALLOCA 1 |
| 32889 | _ACEOF |
| 32890 | |
| 32891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32892 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 32893 | 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] | 32894 | if test "${ac_cv_os_cray+set}" = set; then |
| 32895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32896 | else |
| 32897 | cat >conftest.$ac_ext <<_ACEOF |
| 32898 | /* confdefs.h. */ |
| 32899 | _ACEOF |
| 32900 | cat confdefs.h >>conftest.$ac_ext |
| 32901 | cat >>conftest.$ac_ext <<_ACEOF |
| 32902 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32903 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32904 | webecray |
| 32905 | #else |
| 32906 | wenotbecray |
| 32907 | #endif |
| 32908 | |
| 32909 | _ACEOF |
| 32910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32911 | $EGREP "webecray" >/dev/null 2>&1; then |
| 32912 | ac_cv_os_cray=yes |
| 32913 | else |
| 32914 | ac_cv_os_cray=no |
| 32915 | fi |
| 32916 | rm -f conftest* |
| 32917 | |
| 32918 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32919 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 32920 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32921 | if test $ac_cv_os_cray = yes; then |
| 32922 | for ac_func in _getb67 GETB67 getb67; do |
| 32923 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32924 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32925 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32926 | 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] | 32927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32928 | else |
| 32929 | cat >conftest.$ac_ext <<_ACEOF |
| 32930 | /* confdefs.h. */ |
| 32931 | _ACEOF |
| 32932 | cat confdefs.h >>conftest.$ac_ext |
| 32933 | cat >>conftest.$ac_ext <<_ACEOF |
| 32934 | /* end confdefs.h. */ |
| 32935 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32936 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32937 | #define $ac_func innocuous_$ac_func |
| 32938 | |
| 32939 | /* System header to define __stub macros and hopefully few prototypes, |
| 32940 | which can conflict with char $ac_func (); below. |
| 32941 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32942 | <limits.h> exists even on freestanding compilers. */ |
| 32943 | |
| 32944 | #ifdef __STDC__ |
| 32945 | # include <limits.h> |
| 32946 | #else |
| 32947 | # include <assert.h> |
| 32948 | #endif |
| 32949 | |
| 32950 | #undef $ac_func |
| 32951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32952 | /* Override any GCC internal prototype to avoid an error. |
| 32953 | Use char because int might match the return type of a GCC |
| 32954 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32955 | #ifdef __cplusplus |
| 32956 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32957 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32958 | char $ac_func (); |
| 32959 | /* The GNU C library defines this for functions which it implements |
| 32960 | to always fail with ENOSYS. Some functions are actually named |
| 32961 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32962 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32963 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32964 | #endif |
| 32965 | |
| 32966 | int |
| 32967 | main () |
| 32968 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32969 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32970 | ; |
| 32971 | return 0; |
| 32972 | } |
| 32973 | _ACEOF |
| 32974 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32975 | if { (ac_try="$ac_link" |
| 32976 | case "(($ac_try" in |
| 32977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32978 | *) ac_try_echo=$ac_try;; |
| 32979 | esac |
| 32980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32981 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32982 | ac_status=$? |
| 32983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32984 | rm -f conftest.er1 |
| 32985 | cat conftest.err >&5 |
| 32986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32987 | (exit $ac_status); } && |
| 32988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32989 | { (case "(($ac_try" in |
| 32990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32991 | *) ac_try_echo=$ac_try;; |
| 32992 | esac |
| 32993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32994 | (eval "$ac_try") 2>&5 |
| 32995 | ac_status=$? |
| 32996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32997 | (exit $ac_status); }; } && |
| 32998 | { ac_try='test -s conftest$ac_exeext' |
| 32999 | { (case "(($ac_try" in |
| 33000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33001 | *) ac_try_echo=$ac_try;; |
| 33002 | esac |
| 33003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33004 | (eval "$ac_try") 2>&5 |
| 33005 | ac_status=$? |
| 33006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33007 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33008 | eval "$as_ac_var=yes" |
| 33009 | else |
| 33010 | echo "$as_me: failed program was:" >&5 |
| 33011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33012 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33013 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33014 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33015 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33016 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33017 | conftest$ac_exeext conftest.$ac_ext |
| 33018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33019 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33020 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33021 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33022 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33023 | |
| 33024 | cat >>confdefs.h <<_ACEOF |
| 33025 | #define CRAY_STACKSEG_END $ac_func |
| 33026 | _ACEOF |
| 33027 | |
| 33028 | break |
| 33029 | fi |
| 33030 | |
| 33031 | done |
| 33032 | fi |
| 33033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33034 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 33035 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33036 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 33037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33038 | else |
| 33039 | if test "$cross_compiling" = yes; then |
| 33040 | ac_cv_c_stack_direction=0 |
| 33041 | else |
| 33042 | cat >conftest.$ac_ext <<_ACEOF |
| 33043 | /* confdefs.h. */ |
| 33044 | _ACEOF |
| 33045 | cat confdefs.h >>conftest.$ac_ext |
| 33046 | cat >>conftest.$ac_ext <<_ACEOF |
| 33047 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33048 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33049 | int |
| 33050 | find_stack_direction () |
| 33051 | { |
| 33052 | static char *addr = 0; |
| 33053 | auto char dummy; |
| 33054 | if (addr == 0) |
| 33055 | { |
| 33056 | addr = &dummy; |
| 33057 | return find_stack_direction (); |
| 33058 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33059 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33060 | return (&dummy > addr) ? 1 : -1; |
| 33061 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33062 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33063 | int |
| 33064 | main () |
| 33065 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33066 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33067 | } |
| 33068 | _ACEOF |
| 33069 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33070 | if { (ac_try="$ac_link" |
| 33071 | case "(($ac_try" in |
| 33072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33073 | *) ac_try_echo=$ac_try;; |
| 33074 | esac |
| 33075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33076 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33077 | ac_status=$? |
| 33078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33080 | { (case "(($ac_try" in |
| 33081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33082 | *) ac_try_echo=$ac_try;; |
| 33083 | esac |
| 33084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33085 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33086 | ac_status=$? |
| 33087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33088 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33089 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33090 | else |
| 33091 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33092 | echo "$as_me: failed program was:" >&5 |
| 33093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33094 | |
| 33095 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33096 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33097 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33098 | 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] | 33099 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33100 | |
| 33101 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33102 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33103 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 33104 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33105 | |
| 33106 | cat >>confdefs.h <<_ACEOF |
| 33107 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 33108 | _ACEOF |
| 33109 | |
| 33110 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33111 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33112 | |
| 33113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33114 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 33115 | 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] | 33116 | if test "${ac_cv_func_rand48+set}" = set; then |
| 33117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33118 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33119 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33120 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33124 | |
| 33125 | cat >conftest.$ac_ext <<_ACEOF |
| 33126 | /* confdefs.h. */ |
| 33127 | _ACEOF |
| 33128 | cat confdefs.h >>conftest.$ac_ext |
| 33129 | cat >>conftest.$ac_ext <<_ACEOF |
| 33130 | /* end confdefs.h. */ |
| 33131 | #include <stdlib.h> |
| 33132 | int |
| 33133 | main () |
| 33134 | { |
| 33135 | srand48(0);lrand48();drand48(); |
| 33136 | ; |
| 33137 | return 0; |
| 33138 | } |
| 33139 | _ACEOF |
| 33140 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33141 | if { (ac_try="$ac_compile" |
| 33142 | case "(($ac_try" in |
| 33143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33144 | *) ac_try_echo=$ac_try;; |
| 33145 | esac |
| 33146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33147 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33148 | ac_status=$? |
| 33149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33150 | rm -f conftest.er1 |
| 33151 | cat conftest.err >&5 |
| 33152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33153 | (exit $ac_status); } && |
| 33154 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33155 | { (case "(($ac_try" in |
| 33156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33157 | *) ac_try_echo=$ac_try;; |
| 33158 | esac |
| 33159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33160 | (eval "$ac_try") 2>&5 |
| 33161 | ac_status=$? |
| 33162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33163 | (exit $ac_status); }; } && |
| 33164 | { ac_try='test -s conftest.$ac_objext' |
| 33165 | { (case "(($ac_try" in |
| 33166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33167 | *) ac_try_echo=$ac_try;; |
| 33168 | esac |
| 33169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33170 | (eval "$ac_try") 2>&5 |
| 33171 | ac_status=$? |
| 33172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33173 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33174 | ac_cv_func_rand48=yes |
| 33175 | else |
| 33176 | echo "$as_me: failed program was:" >&5 |
| 33177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33179 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33180 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33181 | |
| 33182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33183 | ac_ext=c |
| 33184 | ac_cpp='$CPP $CPPFLAGS' |
| 33185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33188 | |
| 33189 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33190 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 33191 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33192 | |
| 33193 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 33194 | |
| 33195 | cat >>confdefs.h <<\_ACEOF |
| 33196 | #define HAVE_RAND48 1 |
| 33197 | _ACEOF |
| 33198 | |
| 33199 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33200 | |
| 33201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33202 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 33203 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33204 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 33205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33206 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33207 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33208 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33209 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33210 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33211 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33212 | |
| 33213 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33214 | /* confdefs.h. */ |
| 33215 | _ACEOF |
| 33216 | cat confdefs.h >>conftest.$ac_ext |
| 33217 | cat >>conftest.$ac_ext <<_ACEOF |
| 33218 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33219 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33220 | int |
| 33221 | main () |
| 33222 | { |
| 33223 | using namespace Outer::Inner; return i; |
| 33224 | ; |
| 33225 | return 0; |
| 33226 | } |
| 33227 | _ACEOF |
| 33228 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33229 | if { (ac_try="$ac_compile" |
| 33230 | case "(($ac_try" in |
| 33231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33232 | *) ac_try_echo=$ac_try;; |
| 33233 | esac |
| 33234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33235 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33236 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33238 | rm -f conftest.er1 |
| 33239 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33241 | (exit $ac_status); } && |
| 33242 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33243 | { (case "(($ac_try" in |
| 33244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33245 | *) ac_try_echo=$ac_try;; |
| 33246 | esac |
| 33247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33248 | (eval "$ac_try") 2>&5 |
| 33249 | ac_status=$? |
| 33250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33251 | (exit $ac_status); }; } && |
| 33252 | { ac_try='test -s conftest.$ac_objext' |
| 33253 | { (case "(($ac_try" in |
| 33254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33255 | *) ac_try_echo=$ac_try;; |
| 33256 | esac |
| 33257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33258 | (eval "$ac_try") 2>&5 |
| 33259 | ac_status=$? |
| 33260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33261 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33262 | ac_cv_cxx_namespaces=yes |
| 33263 | else |
| 33264 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33266 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33267 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33268 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33269 | |
| 33270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33271 | ac_ext=c |
| 33272 | ac_cpp='$CPP $CPPFLAGS' |
| 33273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33276 | |
| 33277 | |
| 33278 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33279 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 33280 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33281 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 33282 | |
| 33283 | cat >>confdefs.h <<\_ACEOF |
| 33284 | #define HAVE_NAMESPACES |
| 33285 | _ACEOF |
| 33286 | |
| 33287 | fi |
| 33288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33289 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 33290 | 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] | 33291 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 33292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33293 | else |
| 33294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33295 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33296 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33297 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33298 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33299 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33300 | |
| 33301 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33302 | /* confdefs.h. */ |
| 33303 | _ACEOF |
| 33304 | cat confdefs.h >>conftest.$ac_ext |
| 33305 | cat >>conftest.$ac_ext <<_ACEOF |
| 33306 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33307 | #include <iterator> |
| 33308 | #ifdef HAVE_NAMESPACES |
| 33309 | using namespace std; |
| 33310 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33311 | int |
| 33312 | main () |
| 33313 | { |
| 33314 | iterator<int,int,int> t; return 0; |
| 33315 | ; |
| 33316 | return 0; |
| 33317 | } |
| 33318 | _ACEOF |
| 33319 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33320 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33327 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33329 | rm -f conftest.er1 |
| 33330 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33332 | (exit $ac_status); } && |
| 33333 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33334 | { (case "(($ac_try" in |
| 33335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33336 | *) ac_try_echo=$ac_try;; |
| 33337 | esac |
| 33338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33339 | (eval "$ac_try") 2>&5 |
| 33340 | ac_status=$? |
| 33341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33342 | (exit $ac_status); }; } && |
| 33343 | { ac_try='test -s conftest.$ac_objext' |
| 33344 | { (case "(($ac_try" in |
| 33345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33346 | *) ac_try_echo=$ac_try;; |
| 33347 | esac |
| 33348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33349 | (eval "$ac_try") 2>&5 |
| 33350 | ac_status=$? |
| 33351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33352 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33353 | ac_cv_cxx_have_std_iterator=yes |
| 33354 | else |
| 33355 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33357 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33358 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33359 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33360 | |
| 33361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33362 | ac_ext=c |
| 33363 | ac_cpp='$CPP $CPPFLAGS' |
| 33364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33367 | |
| 33368 | |
| 33369 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33370 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 33371 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33372 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 33373 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33374 | |
| 33375 | cat >>confdefs.h <<\_ACEOF |
| 33376 | #define HAVE_STD_ITERATOR 1 |
| 33377 | _ACEOF |
| 33378 | |
| 33379 | else |
| 33380 | |
| 33381 | cat >>confdefs.h <<\_ACEOF |
| 33382 | #define HAVE_STD_ITERATOR 0 |
| 33383 | _ACEOF |
| 33384 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33385 | fi |
| 33386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33387 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 33388 | 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] | 33389 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 33390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33391 | else |
| 33392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33393 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33394 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33395 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33396 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33397 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33398 | |
| 33399 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33400 | /* confdefs.h. */ |
| 33401 | _ACEOF |
| 33402 | cat confdefs.h >>conftest.$ac_ext |
| 33403 | cat >>conftest.$ac_ext <<_ACEOF |
| 33404 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33405 | #include <iterator> |
| 33406 | #ifdef HAVE_NAMESPACES |
| 33407 | using namespace std; |
| 33408 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33409 | int |
| 33410 | main () |
| 33411 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33412 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33413 | ; |
| 33414 | return 0; |
| 33415 | } |
| 33416 | _ACEOF |
| 33417 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33418 | if { (ac_try="$ac_compile" |
| 33419 | case "(($ac_try" in |
| 33420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33421 | *) ac_try_echo=$ac_try;; |
| 33422 | esac |
| 33423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33424 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33425 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33427 | rm -f conftest.er1 |
| 33428 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33430 | (exit $ac_status); } && |
| 33431 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33432 | { (case "(($ac_try" in |
| 33433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33434 | *) ac_try_echo=$ac_try;; |
| 33435 | esac |
| 33436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33437 | (eval "$ac_try") 2>&5 |
| 33438 | ac_status=$? |
| 33439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33440 | (exit $ac_status); }; } && |
| 33441 | { ac_try='test -s conftest.$ac_objext' |
| 33442 | { (case "(($ac_try" in |
| 33443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33444 | *) ac_try_echo=$ac_try;; |
| 33445 | esac |
| 33446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33447 | (eval "$ac_try") 2>&5 |
| 33448 | ac_status=$? |
| 33449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33450 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33451 | ac_cv_cxx_have_bi_iterator=yes |
| 33452 | else |
| 33453 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33456 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33457 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33458 | |
| 33459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33460 | ac_ext=c |
| 33461 | ac_cpp='$CPP $CPPFLAGS' |
| 33462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33465 | |
| 33466 | |
| 33467 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33468 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 33469 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33470 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 33471 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33472 | |
| 33473 | cat >>confdefs.h <<\_ACEOF |
| 33474 | #define HAVE_BI_ITERATOR 1 |
| 33475 | _ACEOF |
| 33476 | |
| 33477 | else |
| 33478 | |
| 33479 | cat >>confdefs.h <<\_ACEOF |
| 33480 | #define HAVE_BI_ITERATOR 0 |
| 33481 | _ACEOF |
| 33482 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33483 | fi |
| 33484 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33485 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 33486 | 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] | 33487 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 33488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33489 | else |
| 33490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33491 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33492 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33493 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33494 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33495 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33496 | |
| 33497 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33498 | /* confdefs.h. */ |
| 33499 | _ACEOF |
| 33500 | cat confdefs.h >>conftest.$ac_ext |
| 33501 | cat >>conftest.$ac_ext <<_ACEOF |
| 33502 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33503 | #include <iterator> |
| 33504 | #ifdef HAVE_NAMESPACES |
| 33505 | using namespace std; |
| 33506 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33507 | int |
| 33508 | main () |
| 33509 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33510 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33511 | ; |
| 33512 | return 0; |
| 33513 | } |
| 33514 | _ACEOF |
| 33515 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33516 | if { (ac_try="$ac_compile" |
| 33517 | case "(($ac_try" in |
| 33518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33519 | *) ac_try_echo=$ac_try;; |
| 33520 | esac |
| 33521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33522 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33523 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33525 | rm -f conftest.er1 |
| 33526 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33528 | (exit $ac_status); } && |
| 33529 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33530 | { (case "(($ac_try" in |
| 33531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33532 | *) ac_try_echo=$ac_try;; |
| 33533 | esac |
| 33534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33535 | (eval "$ac_try") 2>&5 |
| 33536 | ac_status=$? |
| 33537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33538 | (exit $ac_status); }; } && |
| 33539 | { ac_try='test -s conftest.$ac_objext' |
| 33540 | { (case "(($ac_try" in |
| 33541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33542 | *) ac_try_echo=$ac_try;; |
| 33543 | esac |
| 33544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33545 | (eval "$ac_try") 2>&5 |
| 33546 | ac_status=$? |
| 33547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33548 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33549 | ac_cv_cxx_have_fwd_iterator=yes |
| 33550 | else |
| 33551 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33553 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33554 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33556 | |
| 33557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33558 | ac_ext=c |
| 33559 | ac_cpp='$CPP $CPPFLAGS' |
| 33560 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33561 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33562 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33563 | |
| 33564 | |
| 33565 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33566 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 33567 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33568 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 33569 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33570 | |
| 33571 | cat >>confdefs.h <<\_ACEOF |
| 33572 | #define HAVE_FWD_ITERATOR 1 |
| 33573 | _ACEOF |
| 33574 | |
| 33575 | else |
| 33576 | |
| 33577 | cat >>confdefs.h <<\_ACEOF |
| 33578 | #define HAVE_FWD_ITERATOR 0 |
| 33579 | _ACEOF |
| 33580 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33581 | fi |
| 33582 | |
| 33583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33584 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 33585 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33586 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 33587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33588 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33589 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33590 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33591 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33592 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33593 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33594 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33595 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33596 | /* confdefs.h. */ |
| 33597 | _ACEOF |
| 33598 | cat confdefs.h >>conftest.$ac_ext |
| 33599 | cat >>conftest.$ac_ext <<_ACEOF |
| 33600 | /* end confdefs.h. */ |
| 33601 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33602 | int |
| 33603 | main () |
| 33604 | { |
| 33605 | float f; isnan(f); |
| 33606 | ; |
| 33607 | return 0; |
| 33608 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33609 | _ACEOF |
| 33610 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33611 | if { (ac_try="$ac_compile" |
| 33612 | case "(($ac_try" in |
| 33613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33614 | *) ac_try_echo=$ac_try;; |
| 33615 | esac |
| 33616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33617 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33618 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33620 | rm -f conftest.er1 |
| 33621 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33623 | (exit $ac_status); } && |
| 33624 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33625 | { (case "(($ac_try" in |
| 33626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33627 | *) ac_try_echo=$ac_try;; |
| 33628 | esac |
| 33629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33630 | (eval "$ac_try") 2>&5 |
| 33631 | ac_status=$? |
| 33632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33633 | (exit $ac_status); }; } && |
| 33634 | { ac_try='test -s conftest.$ac_objext' |
| 33635 | { (case "(($ac_try" in |
| 33636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33637 | *) ac_try_echo=$ac_try;; |
| 33638 | esac |
| 33639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33640 | (eval "$ac_try") 2>&5 |
| 33641 | ac_status=$? |
| 33642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33643 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33644 | ac_cv_func_isnan_in_math_h=yes |
| 33645 | else |
| 33646 | echo "$as_me: failed program was:" >&5 |
| 33647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33649 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33650 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33651 | |
| 33652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33653 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33654 | ac_cpp='$CPP $CPPFLAGS' |
| 33655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33658 | |
| 33659 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33660 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 33661 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33662 | |
| 33663 | |
| 33664 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33665 | |
| 33666 | cat >>confdefs.h <<\_ACEOF |
| 33667 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 33668 | _ACEOF |
| 33669 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33670 | fi |
| 33671 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33672 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 33673 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33674 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 33675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33676 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33677 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33678 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33679 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33680 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33681 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33682 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33683 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33684 | /* confdefs.h. */ |
| 33685 | _ACEOF |
| 33686 | cat confdefs.h >>conftest.$ac_ext |
| 33687 | cat >>conftest.$ac_ext <<_ACEOF |
| 33688 | /* end confdefs.h. */ |
| 33689 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33690 | int |
| 33691 | main () |
| 33692 | { |
| 33693 | float f; isnan(f); |
| 33694 | ; |
| 33695 | return 0; |
| 33696 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33697 | _ACEOF |
| 33698 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33699 | if { (ac_try="$ac_compile" |
| 33700 | case "(($ac_try" in |
| 33701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33702 | *) ac_try_echo=$ac_try;; |
| 33703 | esac |
| 33704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33705 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33706 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33708 | rm -f conftest.er1 |
| 33709 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33711 | (exit $ac_status); } && |
| 33712 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33713 | { (case "(($ac_try" in |
| 33714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33715 | *) ac_try_echo=$ac_try;; |
| 33716 | esac |
| 33717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33718 | (eval "$ac_try") 2>&5 |
| 33719 | ac_status=$? |
| 33720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33721 | (exit $ac_status); }; } && |
| 33722 | { ac_try='test -s conftest.$ac_objext' |
| 33723 | { (case "(($ac_try" in |
| 33724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33725 | *) ac_try_echo=$ac_try;; |
| 33726 | esac |
| 33727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33728 | (eval "$ac_try") 2>&5 |
| 33729 | ac_status=$? |
| 33730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33731 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33732 | ac_cv_func_isnan_in_cmath=yes |
| 33733 | else |
| 33734 | echo "$as_me: failed program was:" >&5 |
| 33735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33736 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33737 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33738 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33739 | |
| 33740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33741 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33742 | ac_cpp='$CPP $CPPFLAGS' |
| 33743 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33744 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33746 | |
| 33747 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33748 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 33749 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33750 | |
| 33751 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33752 | |
| 33753 | cat >>confdefs.h <<\_ACEOF |
| 33754 | #define HAVE_ISNAN_IN_CMATH 1 |
| 33755 | _ACEOF |
| 33756 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33757 | fi |
| 33758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33759 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 33760 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33761 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 33762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33763 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33764 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33765 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33766 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33767 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33768 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33769 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33770 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33771 | /* confdefs.h. */ |
| 33772 | _ACEOF |
| 33773 | cat confdefs.h >>conftest.$ac_ext |
| 33774 | cat >>conftest.$ac_ext <<_ACEOF |
| 33775 | /* end confdefs.h. */ |
| 33776 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33777 | int |
| 33778 | main () |
| 33779 | { |
| 33780 | float f; std::isnan(f); |
| 33781 | ; |
| 33782 | return 0; |
| 33783 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33784 | _ACEOF |
| 33785 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33786 | if { (ac_try="$ac_compile" |
| 33787 | case "(($ac_try" in |
| 33788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33789 | *) ac_try_echo=$ac_try;; |
| 33790 | esac |
| 33791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33792 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33793 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33795 | rm -f conftest.er1 |
| 33796 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33798 | (exit $ac_status); } && |
| 33799 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33800 | { (case "(($ac_try" in |
| 33801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33802 | *) ac_try_echo=$ac_try;; |
| 33803 | esac |
| 33804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33805 | (eval "$ac_try") 2>&5 |
| 33806 | ac_status=$? |
| 33807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33808 | (exit $ac_status); }; } && |
| 33809 | { ac_try='test -s conftest.$ac_objext' |
| 33810 | { (case "(($ac_try" in |
| 33811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33812 | *) ac_try_echo=$ac_try;; |
| 33813 | esac |
| 33814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33815 | (eval "$ac_try") 2>&5 |
| 33816 | ac_status=$? |
| 33817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33818 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33819 | ac_cv_func_std_isnan_in_cmath=yes |
| 33820 | else |
| 33821 | echo "$as_me: failed program was:" >&5 |
| 33822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33823 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33824 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33825 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33826 | |
| 33827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33828 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33829 | ac_cpp='$CPP $CPPFLAGS' |
| 33830 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33831 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33832 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33833 | |
| 33834 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33835 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 33836 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33837 | |
| 33838 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33839 | |
| 33840 | cat >>confdefs.h <<\_ACEOF |
| 33841 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 33842 | _ACEOF |
| 33843 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33844 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33845 | |
| 33846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33847 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 33848 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33849 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 33850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33851 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33852 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33853 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33854 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33855 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33856 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33857 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33858 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33859 | /* confdefs.h. */ |
| 33860 | _ACEOF |
| 33861 | cat confdefs.h >>conftest.$ac_ext |
| 33862 | cat >>conftest.$ac_ext <<_ACEOF |
| 33863 | /* end confdefs.h. */ |
| 33864 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33865 | int |
| 33866 | main () |
| 33867 | { |
| 33868 | float f; isinf(f); |
| 33869 | ; |
| 33870 | return 0; |
| 33871 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33872 | _ACEOF |
| 33873 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33874 | if { (ac_try="$ac_compile" |
| 33875 | case "(($ac_try" in |
| 33876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33877 | *) ac_try_echo=$ac_try;; |
| 33878 | esac |
| 33879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33880 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33881 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33883 | rm -f conftest.er1 |
| 33884 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33886 | (exit $ac_status); } && |
| 33887 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33888 | { (case "(($ac_try" in |
| 33889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33890 | *) ac_try_echo=$ac_try;; |
| 33891 | esac |
| 33892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33893 | (eval "$ac_try") 2>&5 |
| 33894 | ac_status=$? |
| 33895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33896 | (exit $ac_status); }; } && |
| 33897 | { ac_try='test -s conftest.$ac_objext' |
| 33898 | { (case "(($ac_try" in |
| 33899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33900 | *) ac_try_echo=$ac_try;; |
| 33901 | esac |
| 33902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33903 | (eval "$ac_try") 2>&5 |
| 33904 | ac_status=$? |
| 33905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33906 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33907 | ac_cv_func_isinf_in_math_h=yes |
| 33908 | else |
| 33909 | echo "$as_me: failed program was:" >&5 |
| 33910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33912 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33913 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33914 | |
| 33915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33916 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33917 | ac_cpp='$CPP $CPPFLAGS' |
| 33918 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33919 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33920 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33921 | |
| 33922 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33923 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 33924 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33925 | |
| 33926 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33927 | |
| 33928 | cat >>confdefs.h <<\_ACEOF |
| 33929 | #define HAVE_ISINF_IN_MATH_H 1 |
| 33930 | _ACEOF |
| 33931 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33932 | fi |
| 33933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33934 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 33935 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33936 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 33937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33938 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33939 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33940 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33941 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33942 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33943 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33944 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33945 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33946 | /* confdefs.h. */ |
| 33947 | _ACEOF |
| 33948 | cat confdefs.h >>conftest.$ac_ext |
| 33949 | cat >>conftest.$ac_ext <<_ACEOF |
| 33950 | /* end confdefs.h. */ |
| 33951 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33952 | int |
| 33953 | main () |
| 33954 | { |
| 33955 | float f; isinf(f); |
| 33956 | ; |
| 33957 | return 0; |
| 33958 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33959 | _ACEOF |
| 33960 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33961 | if { (ac_try="$ac_compile" |
| 33962 | case "(($ac_try" in |
| 33963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33964 | *) ac_try_echo=$ac_try;; |
| 33965 | esac |
| 33966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33967 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33968 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33970 | rm -f conftest.er1 |
| 33971 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33973 | (exit $ac_status); } && |
| 33974 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33975 | { (case "(($ac_try" in |
| 33976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33977 | *) ac_try_echo=$ac_try;; |
| 33978 | esac |
| 33979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33980 | (eval "$ac_try") 2>&5 |
| 33981 | ac_status=$? |
| 33982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33983 | (exit $ac_status); }; } && |
| 33984 | { ac_try='test -s conftest.$ac_objext' |
| 33985 | { (case "(($ac_try" in |
| 33986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33987 | *) ac_try_echo=$ac_try;; |
| 33988 | esac |
| 33989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33990 | (eval "$ac_try") 2>&5 |
| 33991 | ac_status=$? |
| 33992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33993 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33994 | ac_cv_func_isinf_in_cmath=yes |
| 33995 | else |
| 33996 | echo "$as_me: failed program was:" >&5 |
| 33997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33999 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34000 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34001 | |
| 34002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34003 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34004 | ac_cpp='$CPP $CPPFLAGS' |
| 34005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34008 | |
| 34009 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34010 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 34011 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34012 | |
| 34013 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34014 | |
| 34015 | cat >>confdefs.h <<\_ACEOF |
| 34016 | #define HAVE_ISINF_IN_CMATH 1 |
| 34017 | _ACEOF |
| 34018 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34019 | fi |
| 34020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34021 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 34022 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34023 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 34024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34025 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34026 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34027 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 34028 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34029 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34030 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 34031 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34032 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34033 | /* confdefs.h. */ |
| 34034 | _ACEOF |
| 34035 | cat confdefs.h >>conftest.$ac_ext |
| 34036 | cat >>conftest.$ac_ext <<_ACEOF |
| 34037 | /* end confdefs.h. */ |
| 34038 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34039 | int |
| 34040 | main () |
| 34041 | { |
| 34042 | float f; std::isinf(f)} |
| 34043 | ; |
| 34044 | return 0; |
| 34045 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34046 | _ACEOF |
| 34047 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34048 | if { (ac_try="$ac_compile" |
| 34049 | case "(($ac_try" in |
| 34050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34051 | *) ac_try_echo=$ac_try;; |
| 34052 | esac |
| 34053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34054 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34055 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34057 | rm -f conftest.er1 |
| 34058 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34060 | (exit $ac_status); } && |
| 34061 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34062 | { (case "(($ac_try" in |
| 34063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34064 | *) ac_try_echo=$ac_try;; |
| 34065 | esac |
| 34066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34067 | (eval "$ac_try") 2>&5 |
| 34068 | ac_status=$? |
| 34069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34070 | (exit $ac_status); }; } && |
| 34071 | { ac_try='test -s conftest.$ac_objext' |
| 34072 | { (case "(($ac_try" in |
| 34073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34074 | *) ac_try_echo=$ac_try;; |
| 34075 | esac |
| 34076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34077 | (eval "$ac_try") 2>&5 |
| 34078 | ac_status=$? |
| 34079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34080 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34081 | ac_cv_func_std_isinf_in_cmath=yes |
| 34082 | else |
| 34083 | echo "$as_me: failed program was:" >&5 |
| 34084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34086 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34087 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34088 | |
| 34089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34090 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34091 | ac_cpp='$CPP $CPPFLAGS' |
| 34092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34095 | |
| 34096 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34097 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 34098 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34099 | |
| 34100 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34101 | |
| 34102 | cat >>confdefs.h <<\_ACEOF |
| 34103 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 34104 | _ACEOF |
| 34105 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34106 | fi |
| 34107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34108 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 34109 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34110 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 34111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34112 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34113 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34114 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 34115 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34116 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34117 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 34118 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34119 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34120 | /* confdefs.h. */ |
| 34121 | _ACEOF |
| 34122 | cat confdefs.h >>conftest.$ac_ext |
| 34123 | cat >>conftest.$ac_ext <<_ACEOF |
| 34124 | /* end confdefs.h. */ |
| 34125 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34126 | int |
| 34127 | main () |
| 34128 | { |
| 34129 | float f; finite(f); |
| 34130 | ; |
| 34131 | return 0; |
| 34132 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34133 | _ACEOF |
| 34134 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34135 | if { (ac_try="$ac_compile" |
| 34136 | case "(($ac_try" in |
| 34137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34138 | *) ac_try_echo=$ac_try;; |
| 34139 | esac |
| 34140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34141 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34142 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34144 | rm -f conftest.er1 |
| 34145 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34147 | (exit $ac_status); } && |
| 34148 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34149 | { (case "(($ac_try" in |
| 34150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34151 | *) ac_try_echo=$ac_try;; |
| 34152 | esac |
| 34153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34154 | (eval "$ac_try") 2>&5 |
| 34155 | ac_status=$? |
| 34156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34157 | (exit $ac_status); }; } && |
| 34158 | { ac_try='test -s conftest.$ac_objext' |
| 34159 | { (case "(($ac_try" in |
| 34160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34161 | *) ac_try_echo=$ac_try;; |
| 34162 | esac |
| 34163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34164 | (eval "$ac_try") 2>&5 |
| 34165 | ac_status=$? |
| 34166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34167 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34168 | ac_cv_func_finite_in_ieeefp_h=yes |
| 34169 | else |
| 34170 | echo "$as_me: failed program was:" >&5 |
| 34171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34172 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34173 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34174 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34175 | |
| 34176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34177 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34178 | ac_cpp='$CPP $CPPFLAGS' |
| 34179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34182 | |
| 34183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34184 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 34185 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34186 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34187 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34188 | |
| 34189 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34190 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34191 | _ACEOF |
| 34192 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34193 | fi |
| 34194 | |
| 34195 | |
| 34196 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34197 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34198 | |
| 34199 | |
| 34200 | for ac_header in stdlib.h unistd.h |
| 34201 | do |
| 34202 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34203 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34204 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34206 | 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] | 34207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34208 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34209 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34210 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34211 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34212 | else |
| 34213 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34214 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 34215 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34216 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34217 | /* confdefs.h. */ |
| 34218 | _ACEOF |
| 34219 | cat confdefs.h >>conftest.$ac_ext |
| 34220 | cat >>conftest.$ac_ext <<_ACEOF |
| 34221 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34222 | $ac_includes_default |
| 34223 | #include <$ac_header> |
| 34224 | _ACEOF |
| 34225 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34226 | if { (ac_try="$ac_compile" |
| 34227 | case "(($ac_try" in |
| 34228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34229 | *) ac_try_echo=$ac_try;; |
| 34230 | esac |
| 34231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34232 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34233 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34235 | rm -f conftest.er1 |
| 34236 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34238 | (exit $ac_status); } && |
| 34239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34240 | { (case "(($ac_try" in |
| 34241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34242 | *) ac_try_echo=$ac_try;; |
| 34243 | esac |
| 34244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34245 | (eval "$ac_try") 2>&5 |
| 34246 | ac_status=$? |
| 34247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34248 | (exit $ac_status); }; } && |
| 34249 | { ac_try='test -s conftest.$ac_objext' |
| 34250 | { (case "(($ac_try" in |
| 34251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34252 | *) ac_try_echo=$ac_try;; |
| 34253 | esac |
| 34254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34255 | (eval "$ac_try") 2>&5 |
| 34256 | ac_status=$? |
| 34257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34258 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34259 | ac_header_compiler=yes |
| 34260 | else |
| 34261 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34264 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34265 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34266 | |
| 34267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34268 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 34269 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34270 | |
| 34271 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34272 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 34273 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34274 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34275 | /* confdefs.h. */ |
| 34276 | _ACEOF |
| 34277 | cat confdefs.h >>conftest.$ac_ext |
| 34278 | cat >>conftest.$ac_ext <<_ACEOF |
| 34279 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34280 | #include <$ac_header> |
| 34281 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34282 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 34283 | case "(($ac_try" in |
| 34284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34285 | *) ac_try_echo=$ac_try;; |
| 34286 | esac |
| 34287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34288 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34289 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34290 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34291 | rm -f conftest.er1 |
| 34292 | cat conftest.err >&5 |
| 34293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34294 | (exit $ac_status); } >/dev/null; then |
| 34295 | if test -s conftest.err; then |
| 34296 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 34297 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 34298 | else |
| 34299 | ac_cpp_err= |
| 34300 | fi |
| 34301 | else |
| 34302 | ac_cpp_err=yes |
| 34303 | fi |
| 34304 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34305 | ac_header_preproc=yes |
| 34306 | else |
| 34307 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34309 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34310 | ac_header_preproc=no |
| 34311 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34312 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34313 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34314 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 34315 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34316 | |
| 34317 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34318 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 34319 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34320 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 34321 | 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] | 34322 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 34323 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 34324 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34325 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34326 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34327 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 34328 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34329 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 34330 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 34331 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 34332 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 34333 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 34334 | 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] | 34335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 34336 | 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] | 34337 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 34338 | 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] | 34339 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34340 | ## ----------------------------------- ## |
| 34341 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 34342 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34343 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34344 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34345 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34346 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34347 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34348 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34349 | 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] | 34350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34351 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34352 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34353 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34354 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34356 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34357 | |
| 34358 | fi |
| 34359 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 34360 | cat >>confdefs.h <<_ACEOF |
| 34361 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 34362 | _ACEOF |
| 34363 | |
| 34364 | fi |
| 34365 | |
| 34366 | done |
| 34367 | |
| 34368 | |
| 34369 | for ac_func in getpagesize |
| 34370 | do |
| 34371 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34372 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34373 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34374 | 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] | 34375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34376 | else |
| 34377 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34378 | /* confdefs.h. */ |
| 34379 | _ACEOF |
| 34380 | cat confdefs.h >>conftest.$ac_ext |
| 34381 | cat >>conftest.$ac_ext <<_ACEOF |
| 34382 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34383 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34385 | #define $ac_func innocuous_$ac_func |
| 34386 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34387 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34388 | which can conflict with char $ac_func (); below. |
| 34389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34390 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34391 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34392 | #ifdef __STDC__ |
| 34393 | # include <limits.h> |
| 34394 | #else |
| 34395 | # include <assert.h> |
| 34396 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34397 | |
| 34398 | #undef $ac_func |
| 34399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34400 | /* Override any GCC internal prototype to avoid an error. |
| 34401 | Use char because int might match the return type of a GCC |
| 34402 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34403 | #ifdef __cplusplus |
| 34404 | extern "C" |
| 34405 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34406 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34407 | /* The GNU C library defines this for functions which it implements |
| 34408 | to always fail with ENOSYS. Some functions are actually named |
| 34409 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34410 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34411 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34412 | #endif |
| 34413 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34414 | int |
| 34415 | main () |
| 34416 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34417 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34418 | ; |
| 34419 | return 0; |
| 34420 | } |
| 34421 | _ACEOF |
| 34422 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34423 | if { (ac_try="$ac_link" |
| 34424 | case "(($ac_try" in |
| 34425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34426 | *) ac_try_echo=$ac_try;; |
| 34427 | esac |
| 34428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34429 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34430 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34432 | rm -f conftest.er1 |
| 34433 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34435 | (exit $ac_status); } && |
| 34436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34437 | { (case "(($ac_try" in |
| 34438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34439 | *) ac_try_echo=$ac_try;; |
| 34440 | esac |
| 34441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34442 | (eval "$ac_try") 2>&5 |
| 34443 | ac_status=$? |
| 34444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34445 | (exit $ac_status); }; } && |
| 34446 | { ac_try='test -s conftest$ac_exeext' |
| 34447 | { (case "(($ac_try" in |
| 34448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34449 | *) ac_try_echo=$ac_try;; |
| 34450 | esac |
| 34451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34452 | (eval "$ac_try") 2>&5 |
| 34453 | ac_status=$? |
| 34454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34455 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34456 | eval "$as_ac_var=yes" |
| 34457 | else |
| 34458 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34460 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34461 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34462 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34463 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34464 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34465 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34466 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34467 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34468 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34469 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34470 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34471 | cat >>confdefs.h <<_ACEOF |
| 34472 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34473 | _ACEOF |
| 34474 | |
| 34475 | fi |
| 34476 | done |
| 34477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34478 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 34479 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34480 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 34481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34482 | else |
| 34483 | if test "$cross_compiling" = yes; then |
| 34484 | ac_cv_func_mmap_fixed_mapped=no |
| 34485 | else |
| 34486 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34487 | /* confdefs.h. */ |
| 34488 | _ACEOF |
| 34489 | cat confdefs.h >>conftest.$ac_ext |
| 34490 | cat >>conftest.$ac_ext <<_ACEOF |
| 34491 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34492 | $ac_includes_default |
| 34493 | /* malloc might have been renamed as rpl_malloc. */ |
| 34494 | #undef malloc |
| 34495 | |
| 34496 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 34497 | Here is a matrix of mmap possibilities: |
| 34498 | mmap private not fixed |
| 34499 | mmap private fixed at somewhere currently unmapped |
| 34500 | mmap private fixed at somewhere already mapped |
| 34501 | mmap shared not fixed |
| 34502 | mmap shared fixed at somewhere currently unmapped |
| 34503 | mmap shared fixed at somewhere already mapped |
| 34504 | For private mappings, we should verify that changes cannot be read() |
| 34505 | back from the file, nor mmap's back from the file at a different |
| 34506 | address. (There have been systems where private was not correctly |
| 34507 | implemented like the infamous i386 svr4.0, and systems where the |
| 34508 | VM page cache was not coherent with the file system buffer cache |
| 34509 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 34510 | For shared mappings, we should conversely verify that changes get |
| 34511 | propagated back to all the places they're supposed to be. |
| 34512 | |
| 34513 | Grep wants private fixed already mapped. |
| 34514 | The main things grep needs to know about mmap are: |
| 34515 | * does it exist and is it safe to write into the mmap'd area |
| 34516 | * how to use it (BSD variants) */ |
| 34517 | |
| 34518 | #include <fcntl.h> |
| 34519 | #include <sys/mman.h> |
| 34520 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34521 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34522 | char *malloc (); |
| 34523 | #endif |
| 34524 | |
| 34525 | /* This mess was copied from the GNU getpagesize.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34526 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34527 | /* Assume that all systems that can run configure have sys/param.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34528 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34529 | # define HAVE_SYS_PARAM_H 1 |
| 34530 | # endif |
| 34531 | |
| 34532 | # ifdef _SC_PAGESIZE |
| 34533 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 34534 | # else /* no _SC_PAGESIZE */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34535 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34536 | # include <sys/param.h> |
| 34537 | # ifdef EXEC_PAGESIZE |
| 34538 | # define getpagesize() EXEC_PAGESIZE |
| 34539 | # else /* no EXEC_PAGESIZE */ |
| 34540 | # ifdef NBPG |
| 34541 | # define getpagesize() NBPG * CLSIZE |
| 34542 | # ifndef CLSIZE |
| 34543 | # define CLSIZE 1 |
| 34544 | # endif /* no CLSIZE */ |
| 34545 | # else /* no NBPG */ |
| 34546 | # ifdef NBPC |
| 34547 | # define getpagesize() NBPC |
| 34548 | # else /* no NBPC */ |
| 34549 | # ifdef PAGESIZE |
| 34550 | # define getpagesize() PAGESIZE |
| 34551 | # endif /* PAGESIZE */ |
| 34552 | # endif /* no NBPC */ |
| 34553 | # endif /* no NBPG */ |
| 34554 | # endif /* no EXEC_PAGESIZE */ |
| 34555 | # else /* no HAVE_SYS_PARAM_H */ |
| 34556 | # define getpagesize() 8192 /* punt totally */ |
| 34557 | # endif /* no HAVE_SYS_PARAM_H */ |
| 34558 | # endif /* no _SC_PAGESIZE */ |
| 34559 | |
| 34560 | #endif /* no HAVE_GETPAGESIZE */ |
| 34561 | |
| 34562 | int |
| 34563 | main () |
| 34564 | { |
| 34565 | char *data, *data2, *data3; |
| 34566 | int i, pagesize; |
| 34567 | int fd; |
| 34568 | |
| 34569 | pagesize = getpagesize (); |
| 34570 | |
| 34571 | /* First, make a file with some known garbage in it. */ |
| 34572 | data = (char *) malloc (pagesize); |
| 34573 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34574 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34575 | for (i = 0; i < pagesize; ++i) |
| 34576 | *(data + i) = rand (); |
| 34577 | umask (0); |
| 34578 | fd = creat ("conftest.mmap", 0600); |
| 34579 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34580 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34581 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34582 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34583 | close (fd); |
| 34584 | |
| 34585 | /* Next, try to mmap the file at a fixed address which already has |
| 34586 | something else allocated at it. If we can, also make sure that |
| 34587 | we see the same garbage. */ |
| 34588 | fd = open ("conftest.mmap", O_RDWR); |
| 34589 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34590 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34591 | data2 = (char *) malloc (2 * pagesize); |
| 34592 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34593 | return 1; |
| 34594 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34595 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34596 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34597 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34598 | for (i = 0; i < pagesize; ++i) |
| 34599 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34600 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34601 | |
| 34602 | /* Finally, make sure that changes to the mapped area do not |
| 34603 | percolate back to the file as seen by read(). (This is a bug on |
| 34604 | some variants of i386 svr4.0.) */ |
| 34605 | for (i = 0; i < pagesize; ++i) |
| 34606 | *(data2 + i) = *(data2 + i) + 1; |
| 34607 | data3 = (char *) malloc (pagesize); |
| 34608 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34609 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34610 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34611 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34612 | for (i = 0; i < pagesize; ++i) |
| 34613 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34614 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34615 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34616 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34617 | } |
| 34618 | _ACEOF |
| 34619 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34620 | if { (ac_try="$ac_link" |
| 34621 | case "(($ac_try" in |
| 34622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34623 | *) ac_try_echo=$ac_try;; |
| 34624 | esac |
| 34625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34626 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34627 | ac_status=$? |
| 34628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34629 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34630 | { (case "(($ac_try" in |
| 34631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34632 | *) ac_try_echo=$ac_try;; |
| 34633 | esac |
| 34634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34635 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34636 | ac_status=$? |
| 34637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34638 | (exit $ac_status); }; }; then |
| 34639 | ac_cv_func_mmap_fixed_mapped=yes |
| 34640 | else |
| 34641 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34642 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34644 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34645 | ( exit $ac_status ) |
| 34646 | ac_cv_func_mmap_fixed_mapped=no |
| 34647 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34648 | 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] | 34649 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34650 | |
| 34651 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34652 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34653 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 34654 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34655 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 34656 | |
| 34657 | cat >>confdefs.h <<\_ACEOF |
| 34658 | #define HAVE_MMAP 1 |
| 34659 | _ACEOF |
| 34660 | |
| 34661 | fi |
| 34662 | rm -f conftest.mmap |
| 34663 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34664 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34665 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34666 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 34667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34668 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34669 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34670 | ac_cpp='$CPP $CPPFLAGS' |
| 34671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34674 | |
| 34675 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34676 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34677 | else |
| 34678 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34679 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34680 | /* confdefs.h. */ |
| 34681 | _ACEOF |
| 34682 | cat confdefs.h >>conftest.$ac_ext |
| 34683 | cat >>conftest.$ac_ext <<_ACEOF |
| 34684 | /* end confdefs.h. */ |
| 34685 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34686 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34687 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34688 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34689 | |
| 34690 | int |
| 34691 | main () |
| 34692 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34693 | |
| 34694 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34695 | fd = creat ("foo",0777); |
| 34696 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 34697 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34698 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34699 | ; |
| 34700 | return 0; |
| 34701 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34702 | _ACEOF |
| 34703 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34704 | if { (ac_try="$ac_link" |
| 34705 | case "(($ac_try" in |
| 34706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34707 | *) ac_try_echo=$ac_try;; |
| 34708 | esac |
| 34709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34710 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34711 | ac_status=$? |
| 34712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34713 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34714 | { (case "(($ac_try" in |
| 34715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34716 | *) ac_try_echo=$ac_try;; |
| 34717 | esac |
| 34718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34719 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34720 | ac_status=$? |
| 34721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34722 | (exit $ac_status); }; }; then |
| 34723 | ac_cv_func_mmap_file=yes |
| 34724 | else |
| 34725 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34726 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34728 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34729 | ( exit $ac_status ) |
| 34730 | ac_cv_func_mmap_file=no |
| 34731 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34732 | 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] | 34733 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34734 | |
| 34735 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34736 | ac_ext=c |
| 34737 | ac_cpp='$CPP $CPPFLAGS' |
| 34738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34741 | |
| 34742 | |
| 34743 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34744 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 34745 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34746 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34747 | |
| 34748 | cat >>confdefs.h <<\_ACEOF |
| 34749 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34750 | _ACEOF |
| 34751 | |
| 34752 | MMAP_FILE=yes |
| 34753 | |
| 34754 | fi |
| 34755 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34756 | { 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] | 34757 | 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] | 34758 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 34759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34760 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 34761 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34762 | ac_cv_need_dev_zero_for_mmap=yes |
| 34763 | else |
| 34764 | ac_cv_need_dev_zero_for_mmap=no |
| 34765 | fi |
| 34766 | |
| 34767 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34768 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 34769 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34770 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 34771 | |
| 34772 | cat >>confdefs.h <<\_ACEOF |
| 34773 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 34774 | _ACEOF |
| 34775 | |
| 34776 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34777 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34778 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 34779 | then |
| 34780 | { 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] | 34781 | 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] | 34782 | fi |
| 34783 | if test "$ac_cv_func_mmap_file" = "no" |
| 34784 | then |
| 34785 | { 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] | 34786 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34787 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 34788 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34789 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34790 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34791 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34792 | cat >conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34793 | /* confdefs.h. */ |
| 34794 | _ACEOF |
| 34795 | cat confdefs.h >>conftest.$ac_ext |
| 34796 | cat >>conftest.$ac_ext <<_ACEOF |
| 34797 | /* end confdefs.h. */ |
| 34798 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34799 | volatile unsigned long val = 1; |
| 34800 | __sync_synchronize(); |
| 34801 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 34802 | __sync_add_and_fetch(&val, 1); |
| 34803 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34804 | return 0; |
| 34805 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34806 | |
| 34807 | _ACEOF |
| 34808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34809 | if { (ac_try="$ac_link" |
| 34810 | case "(($ac_try" in |
| 34811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34812 | *) ac_try_echo=$ac_try;; |
| 34813 | esac |
| 34814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34815 | (eval "$ac_link") 2>conftest.er1 |
| 34816 | ac_status=$? |
| 34817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34818 | rm -f conftest.er1 |
| 34819 | cat conftest.err >&5 |
| 34820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34821 | (exit $ac_status); } && |
| 34822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34823 | { (case "(($ac_try" in |
| 34824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34825 | *) ac_try_echo=$ac_try;; |
| 34826 | esac |
| 34827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34828 | (eval "$ac_try") 2>&5 |
| 34829 | ac_status=$? |
| 34830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34831 | (exit $ac_status); }; } && |
| 34832 | { ac_try='test -s conftest$ac_exeext' |
| 34833 | { (case "(($ac_try" in |
| 34834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34835 | *) ac_try_echo=$ac_try;; |
| 34836 | esac |
| 34837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34838 | (eval "$ac_try") 2>&5 |
| 34839 | ac_status=$? |
| 34840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34841 | (exit $ac_status); }; }; then |
| 34842 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 34843 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34844 | |
| 34845 | cat >>confdefs.h <<\_ACEOF |
| 34846 | #define LLVM_MULTITHREADED 1 |
| 34847 | _ACEOF |
| 34848 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34849 | else |
| 34850 | echo "$as_me: failed program was:" >&5 |
| 34851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34852 | |
| 34853 | { echo "$as_me:$LINENO: result: no" >&5 |
| 34854 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34855 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34856 | cat >>confdefs.h <<\_ACEOF |
| 34857 | #define LLVM_MULTITHREADED 0 |
| 34858 | _ACEOF |
| 34859 | |
| 34860 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 34861 | echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34862 | fi |
| 34863 | |
| 34864 | rm -f core conftest.err conftest.$ac_objext \ |
| 34865 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34866 | |
| 34867 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34868 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 34869 | if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then |
| 34870 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 34871 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 34872 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 34873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34874 | else |
| 34875 | ac_ext=c |
| 34876 | ac_cpp='$CPP $CPPFLAGS' |
| 34877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34880 | |
| 34881 | cat >conftest.$ac_ext <<_ACEOF |
| 34882 | /* confdefs.h. */ |
| 34883 | _ACEOF |
| 34884 | cat confdefs.h >>conftest.$ac_ext |
| 34885 | cat >>conftest.$ac_ext <<_ACEOF |
| 34886 | /* end confdefs.h. */ |
| 34887 | #ifndef __x86_64__ |
| 34888 | error: Not x86-64 even if uname says so! |
| 34889 | #endif |
| 34890 | |
| 34891 | int |
| 34892 | main () |
| 34893 | { |
| 34894 | |
| 34895 | ; |
| 34896 | return 0; |
| 34897 | } |
| 34898 | _ACEOF |
| 34899 | rm -f conftest.$ac_objext |
| 34900 | if { (ac_try="$ac_compile" |
| 34901 | case "(($ac_try" in |
| 34902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34903 | *) ac_try_echo=$ac_try;; |
| 34904 | esac |
| 34905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34906 | (eval "$ac_compile") 2>conftest.er1 |
| 34907 | ac_status=$? |
| 34908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34909 | rm -f conftest.er1 |
| 34910 | cat conftest.err >&5 |
| 34911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34912 | (exit $ac_status); } && |
| 34913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34914 | { (case "(($ac_try" in |
| 34915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34916 | *) ac_try_echo=$ac_try;; |
| 34917 | esac |
| 34918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34919 | (eval "$ac_try") 2>&5 |
| 34920 | ac_status=$? |
| 34921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34922 | (exit $ac_status); }; } && |
| 34923 | { ac_try='test -s conftest.$ac_objext' |
| 34924 | { (case "(($ac_try" in |
| 34925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34926 | *) ac_try_echo=$ac_try;; |
| 34927 | esac |
| 34928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34929 | (eval "$ac_try") 2>&5 |
| 34930 | ac_status=$? |
| 34931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34932 | (exit $ac_status); }; }; then |
| 34933 | llvm_cv_linux_mixed=no |
| 34934 | else |
| 34935 | echo "$as_me: failed program was:" >&5 |
| 34936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34937 | |
| 34938 | llvm_cv_linux_mixed=yes |
| 34939 | fi |
| 34940 | |
| 34941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34942 | ac_ext=c |
| 34943 | ac_cpp='$CPP $CPPFLAGS' |
| 34944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34947 | |
| 34948 | |
| 34949 | fi |
| 34950 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 34951 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
| 34952 | |
| 34953 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 34954 | llvm_cv_target_arch="x86" |
| 34955 | ARCH="x86" |
| 34956 | fi |
| 34957 | fi |
| 34958 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34959 | |
| 34960 | for ac_func in __dso_handle |
| 34961 | do |
| 34962 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 34963 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34964 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34965 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34967 | else |
| 34968 | cat >conftest.$ac_ext <<_ACEOF |
| 34969 | /* confdefs.h. */ |
| 34970 | _ACEOF |
| 34971 | cat confdefs.h >>conftest.$ac_ext |
| 34972 | cat >>conftest.$ac_ext <<_ACEOF |
| 34973 | /* end confdefs.h. */ |
| 34974 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34976 | #define $ac_func innocuous_$ac_func |
| 34977 | |
| 34978 | /* System header to define __stub macros and hopefully few prototypes, |
| 34979 | which can conflict with char $ac_func (); below. |
| 34980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34981 | <limits.h> exists even on freestanding compilers. */ |
| 34982 | |
| 34983 | #ifdef __STDC__ |
| 34984 | # include <limits.h> |
| 34985 | #else |
| 34986 | # include <assert.h> |
| 34987 | #endif |
| 34988 | |
| 34989 | #undef $ac_func |
| 34990 | |
| 34991 | /* Override any GCC internal prototype to avoid an error. |
| 34992 | Use char because int might match the return type of a GCC |
| 34993 | builtin and then its argument prototype would still apply. */ |
| 34994 | #ifdef __cplusplus |
| 34995 | extern "C" |
| 34996 | #endif |
| 34997 | char $ac_func (); |
| 34998 | /* The GNU C library defines this for functions which it implements |
| 34999 | to always fail with ENOSYS. Some functions are actually named |
| 35000 | something starting with __ and the normal name is an alias. */ |
| 35001 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 35002 | choke me |
| 35003 | #endif |
| 35004 | |
| 35005 | int |
| 35006 | main () |
| 35007 | { |
| 35008 | return $ac_func (); |
| 35009 | ; |
| 35010 | return 0; |
| 35011 | } |
| 35012 | _ACEOF |
| 35013 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35014 | if { (ac_try="$ac_link" |
| 35015 | case "(($ac_try" in |
| 35016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35017 | *) ac_try_echo=$ac_try;; |
| 35018 | esac |
| 35019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35020 | (eval "$ac_link") 2>conftest.er1 |
| 35021 | ac_status=$? |
| 35022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35023 | rm -f conftest.er1 |
| 35024 | cat conftest.err >&5 |
| 35025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35026 | (exit $ac_status); } && |
| 35027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 35028 | { (case "(($ac_try" in |
| 35029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35030 | *) ac_try_echo=$ac_try;; |
| 35031 | esac |
| 35032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35033 | (eval "$ac_try") 2>&5 |
| 35034 | ac_status=$? |
| 35035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35036 | (exit $ac_status); }; } && |
| 35037 | { ac_try='test -s conftest$ac_exeext' |
| 35038 | { (case "(($ac_try" in |
| 35039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35040 | *) ac_try_echo=$ac_try;; |
| 35041 | esac |
| 35042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35043 | (eval "$ac_try") 2>&5 |
| 35044 | ac_status=$? |
| 35045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35046 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 35047 | eval "$as_ac_var=yes" |
| 35048 | else |
| 35049 | echo "$as_me: failed program was:" >&5 |
| 35050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35051 | |
| 35052 | eval "$as_ac_var=no" |
| 35053 | fi |
| 35054 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35055 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 35056 | conftest$ac_exeext conftest.$ac_ext |
| 35057 | fi |
| 35058 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 35059 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 35060 | echo "${ECHO_T}$ac_res" >&6; } |
| 35061 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 35062 | cat >>confdefs.h <<_ACEOF |
| 35063 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 35064 | _ACEOF |
| 35065 | |
| 35066 | fi |
| 35067 | done |
| 35068 | |
| 35069 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35070 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 35071 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35072 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 35073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 35074 | else |
| 35075 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35076 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35077 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 35078 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 35079 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35080 | if test $? -eq 0 ; then |
| 35081 | llvm_cv_llvmgcc_sanity="yes" |
| 35082 | fi |
| 35083 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35084 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35085 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35086 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 35087 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35088 | |
| 35089 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35090 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 35091 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35092 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35093 | LLVMCC1=$llvmcc1path |
| 35094 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35095 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35096 | LLVMCC1PLUS=$llvmcc1pluspath |
| 35097 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35098 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 35099 | LLVMGCCDIR=$llvmgccdir |
| 35100 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 35101 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 35102 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 35103 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 35104 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 35105 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 35106 | LLVMGCC_VERSION=$llvmgccversion |
| 35107 | |
| 35108 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 35109 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 35110 | llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35111 | LLVMGCC_LANGS=$llvmgcclangs |
| 35112 | |
| 35113 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 35114 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35115 | fi |
| 35116 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35117 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 35118 | |
| 35119 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35120 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35121 | # information into substitutions that will end up in Makefile.config.in |
| 35122 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 35123 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 35124 | prefix="/usr/local" |
| 35125 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35126 | eval LLVM_PREFIX="${prefix}"; |
| 35127 | eval LLVM_BINDIR="${prefix}/bin"; |
| 35128 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35129 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 35130 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 35131 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35132 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 35133 | eval LLVM_INFODIR="${prefix}/info"; |
| 35134 | eval LLVM_MANDIR="${prefix}/man"; |
| 35135 | LLVM_CONFIGTIME=`date` |
| 35136 | |
| 35137 | |
| 35138 | |
| 35139 | |
| 35140 | |
| 35141 | |
| 35142 | |
| 35143 | |
| 35144 | |
| 35145 | |
| 35146 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35147 | # Place the various directores into the config.h file as #defines so that we |
| 35148 | # can know about the installation paths within LLVM. |
| 35149 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35150 | cat >>confdefs.h <<_ACEOF |
| 35151 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 35152 | _ACEOF |
| 35153 | |
| 35154 | |
| 35155 | cat >>confdefs.h <<_ACEOF |
| 35156 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 35157 | _ACEOF |
| 35158 | |
| 35159 | |
| 35160 | cat >>confdefs.h <<_ACEOF |
| 35161 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 35162 | _ACEOF |
| 35163 | |
| 35164 | |
| 35165 | cat >>confdefs.h <<_ACEOF |
| 35166 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 35167 | _ACEOF |
| 35168 | |
| 35169 | |
| 35170 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 35171 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35172 | _ACEOF |
| 35173 | |
| 35174 | |
| 35175 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 35176 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35177 | _ACEOF |
| 35178 | |
| 35179 | |
| 35180 | cat >>confdefs.h <<_ACEOF |
| 35181 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 35182 | _ACEOF |
| 35183 | |
| 35184 | |
| 35185 | cat >>confdefs.h <<_ACEOF |
| 35186 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 35187 | _ACEOF |
| 35188 | |
| 35189 | |
| 35190 | cat >>confdefs.h <<_ACEOF |
| 35191 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 35192 | _ACEOF |
| 35193 | |
| 35194 | |
| 35195 | cat >>confdefs.h <<_ACEOF |
| 35196 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 35197 | _ACEOF |
| 35198 | |
| 35199 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 35200 | cat >>confdefs.h <<_ACEOF |
| 35201 | #define LLVM_HOSTTRIPLE "$host" |
| 35202 | _ACEOF |
| 35203 | |
| 35204 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35205 | # Determine which bindings to build. |
| 35206 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 35207 | BINDINGS_TO_BUILD="" |
| 35208 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 35209 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 35210 | fi |
| 35211 | fi |
| 35212 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 35213 | |
| 35214 | |
| 35215 | # This isn't really configurey, but it avoids having to repeat the list in |
| 35216 | # other files. |
| 35217 | ALL_BINDINGS=ocaml |
| 35218 | |
| 35219 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35220 | # Do any work necessary to ensure that bindings have what they need. |
| 35221 | binding_prereqs_failed=0 |
| 35222 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 35223 | case "$a_binding" in |
| 35224 | ocaml) |
| 35225 | if test "x$OCAMLC" = x ; then |
| 35226 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 35227 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 35228 | binding_prereqs_failed=1 |
| 35229 | fi |
| 35230 | if test "x$OCAMLDEP" = x ; then |
| 35231 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 35232 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 35233 | binding_prereqs_failed=1 |
| 35234 | fi |
| 35235 | if test "x$OCAMLOPT" = x ; then |
| 35236 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 35237 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 35238 | fi |
| 35239 | if test "x$with_ocaml_libdir" != xauto ; then |
| 35240 | OCAML_LIBDIR=$with_ocaml_libdir |
| 35241 | |
| 35242 | else |
| 35243 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 35244 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 35245 | then |
| 35246 | # ocaml stdlib is beneath our prefix; use stdlib |
| 35247 | OCAML_LIBDIR=$ocaml_stdlib |
| 35248 | |
| 35249 | else |
| 35250 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 35251 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 35252 | |
| 35253 | fi |
| 35254 | fi |
| 35255 | ;; |
| 35256 | esac |
| 35257 | done |
| 35258 | if test "$binding_prereqs_failed" = 1 ; then |
| 35259 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 35260 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 35261 | { (exit 1); exit 1; }; } |
| 35262 | fi |
| 35263 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35264 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 35265 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 35266 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 35267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 35268 | else |
| 35269 | ac_ext=cpp |
| 35270 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 35271 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35272 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35273 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 35274 | |
| 35275 | oldcxxflags="$CXXFLAGS" |
| 35276 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 35277 | cat >conftest.$ac_ext <<_ACEOF |
| 35278 | /* confdefs.h. */ |
| 35279 | _ACEOF |
| 35280 | cat confdefs.h >>conftest.$ac_ext |
| 35281 | cat >>conftest.$ac_ext <<_ACEOF |
| 35282 | /* end confdefs.h. */ |
| 35283 | |
| 35284 | int |
| 35285 | main () |
| 35286 | { |
| 35287 | |
| 35288 | ; |
| 35289 | return 0; |
| 35290 | } |
| 35291 | _ACEOF |
| 35292 | rm -f conftest.$ac_objext |
| 35293 | if { (ac_try="$ac_compile" |
| 35294 | case "(($ac_try" in |
| 35295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35296 | *) ac_try_echo=$ac_try;; |
| 35297 | esac |
| 35298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35299 | (eval "$ac_compile") 2>conftest.er1 |
| 35300 | ac_status=$? |
| 35301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35302 | rm -f conftest.er1 |
| 35303 | cat conftest.err >&5 |
| 35304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35305 | (exit $ac_status); } && |
| 35306 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 35307 | { (case "(($ac_try" in |
| 35308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35309 | *) ac_try_echo=$ac_try;; |
| 35310 | esac |
| 35311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35312 | (eval "$ac_try") 2>&5 |
| 35313 | ac_status=$? |
| 35314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35315 | (exit $ac_status); }; } && |
| 35316 | { ac_try='test -s conftest.$ac_objext' |
| 35317 | { (case "(($ac_try" in |
| 35318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35319 | *) ac_try_echo=$ac_try;; |
| 35320 | esac |
| 35321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35322 | (eval "$ac_try") 2>&5 |
| 35323 | ac_status=$? |
| 35324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35325 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35326 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 35327 | else |
| 35328 | echo "$as_me: failed program was:" >&5 |
| 35329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35330 | |
| 35331 | llvm_cv_cxx_visibility_inlines_hidden=no |
| 35332 | fi |
| 35333 | |
| 35334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35335 | CXXFLAGS="$oldcxxflags" |
| 35336 | ac_ext=c |
| 35337 | ac_cpp='$CPP $CPPFLAGS' |
| 35338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 35341 | |
| 35342 | |
| 35343 | fi |
| 35344 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 35345 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
| 35346 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 35347 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 35348 | |
| 35349 | else |
| 35350 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 35351 | |
| 35352 | fi |
| 35353 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35354 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 35355 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 35356 | RPATH="-Wl,-R" |
| 35357 | else |
| 35358 | RPATH="-Wl,-rpath" |
| 35359 | fi |
| 35360 | |
| 35361 | |
| 35362 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 35363 | RDYNAMIC="-Wl,-export-dynamic" |
| 35364 | else |
| 35365 | RDYNAMIC="" |
| 35366 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 35367 | |
| 35368 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35370 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35371 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 35372 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 35373 | |
| 35374 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 35375 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 35376 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 35377 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 35378 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35379 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35381 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35382 | |
| 35383 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35384 | ac_config_files="$ac_config_files llvm.spec" |
| 35385 | |
| 35386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35387 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35388 | |
| 35389 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35390 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 35391 | |
| 35392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35393 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 35394 | |
| 35395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35396 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35398 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35399 | |
| 35400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35401 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35402 | |
| 35403 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35404 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35405 | |
| 35406 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35407 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35408 | |
| 35409 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35410 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 35411 | |
| 35412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35413 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35414 | |
| 35415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35416 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35417 | |
| 35418 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35419 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 35420 | |
| 35421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35422 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35423 | |
| 35424 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35425 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35426 | |
| 35427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35428 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35429 | |
| 35430 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35431 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 35432 | |
| 35433 | |
| 35434 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 35435 | |
| 35436 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35437 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35438 | cat >confcache <<\_ACEOF |
| 35439 | # This file is a shell script that caches the results of configure |
| 35440 | # tests run on this system so they can be shared between configure |
| 35441 | # scripts and configure runs, see configure's option --config-cache. |
| 35442 | # It is not useful on other systems. If it contains results you don't |
| 35443 | # want to keep, you may remove or edit it. |
| 35444 | # |
| 35445 | # config.status only pays attention to the cache file if you give it |
| 35446 | # the --recheck option to rerun configure. |
| 35447 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35448 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35449 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 35450 | # following values. |
| 35451 | |
| 35452 | _ACEOF |
| 35453 | |
| 35454 | # The following way of writing the cache mishandles newlines in values, |
| 35455 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35456 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35457 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 35458 | # 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] | 35459 | ( |
| 35460 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 35461 | eval ac_val=\$$ac_var |
| 35462 | case $ac_val in #( |
| 35463 | *${as_nl}*) |
| 35464 | case $ac_var in #( |
| 35465 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 35466 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 35467 | esac |
| 35468 | case $ac_var in #( |
| 35469 | _ | IFS | as_nl) ;; #( |
| 35470 | *) $as_unset $ac_var ;; |
| 35471 | esac ;; |
| 35472 | esac |
| 35473 | done |
| 35474 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35475 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35476 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 35477 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35478 | # `set' does not quote correctly, so add quotes (double-quote |
| 35479 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 35480 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35481 | "s/'/'\\\\''/g; |
| 35482 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35483 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35484 | *) |
| 35485 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35486 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35487 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35488 | esac | |
| 35489 | sort |
| 35490 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35491 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35492 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35493 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35494 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35495 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 35496 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35497 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 35498 | :end' >>confcache |
| 35499 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 35500 | if test -w "$cache_file"; then |
| 35501 | test "x$cache_file" != "x/dev/null" && |
| 35502 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 35503 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35504 | cat confcache >$cache_file |
| 35505 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35506 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 35507 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35508 | fi |
| 35509 | fi |
| 35510 | rm -f confcache |
| 35511 | |
| 35512 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 35513 | # Let make expand exec_prefix. |
| 35514 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 35515 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35516 | DEFS=-DHAVE_CONFIG_H |
| 35517 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35518 | ac_libobjs= |
| 35519 | ac_ltlibobjs= |
| 35520 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 35521 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35522 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 35523 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 35524 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 35525 | # will be set to the directory where LIBOBJS objects are built. |
| 35526 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 35527 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35528 | done |
| 35529 | LIBOBJS=$ac_libobjs |
| 35530 | |
| 35531 | LTLIBOBJS=$ac_ltlibobjs |
| 35532 | |
| 35533 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35534 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 35535 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35536 | Usually this means the macro was only invoked conditionally." >&5 |
| 35537 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35538 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35539 | { (exit 1); exit 1; }; } |
| 35540 | fi |
| 35541 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 35542 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35543 | Usually this means the macro was only invoked conditionally." >&5 |
| 35544 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35545 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35546 | { (exit 1); exit 1; }; } |
| 35547 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35548 | |
| 35549 | : ${CONFIG_STATUS=./config.status} |
| 35550 | ac_clean_files_save=$ac_clean_files |
| 35551 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 35552 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 35553 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 35554 | cat >$CONFIG_STATUS <<_ACEOF |
| 35555 | #! $SHELL |
| 35556 | # Generated by $as_me. |
| 35557 | # Run this file to recreate the current configuration. |
| 35558 | # Compiler output produced by configure, useful for debugging |
| 35559 | # configure, is in config.log if it exists. |
| 35560 | |
| 35561 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35562 | ac_cs_recheck=false |
| 35563 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35564 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 35565 | _ACEOF |
| 35566 | |
| 35567 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35568 | ## --------------------- ## |
| 35569 | ## M4sh Initialization. ## |
| 35570 | ## --------------------- ## |
| 35571 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35572 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35573 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 35574 | emulate sh |
| 35575 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35576 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 35577 | # is contrary to our usage. Disable this feature. |
| 35578 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35579 | setopt NO_GLOB_SUBST |
| 35580 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35581 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35582 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35583 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 35584 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35585 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35586 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35587 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35588 | # Avoid depending upon Character Ranges. |
| 35589 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35590 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 35591 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35592 | as_cr_digits='0123456789' |
| 35593 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 35594 | |
| 35595 | # The user is always right. |
| 35596 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35597 | echo "#! /bin/sh" >conf$$.sh |
| 35598 | echo "exit 0" >>conf$$.sh |
| 35599 | chmod +x conf$$.sh |
| 35600 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35601 | PATH_SEPARATOR=';' |
| 35602 | else |
| 35603 | PATH_SEPARATOR=: |
| 35604 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35605 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35606 | fi |
| 35607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35608 | # Support unset when possible. |
| 35609 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 35610 | as_unset=unset |
| 35611 | else |
| 35612 | as_unset=false |
| 35613 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35615 | |
| 35616 | # IFS |
| 35617 | # We need space, tab and new line, in precisely that order. Quoting is |
| 35618 | # there to prevent editors from complaining about space-tab. |
| 35619 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 35620 | # splitting by setting IFS to empty value.) |
| 35621 | as_nl=' |
| 35622 | ' |
| 35623 | IFS=" "" $as_nl" |
| 35624 | |
| 35625 | # Find who we are. Look in the path if we contain no directory separator. |
| 35626 | case $0 in |
| 35627 | *[\\/]* ) as_myself=$0 ;; |
| 35628 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35629 | for as_dir in $PATH |
| 35630 | do |
| 35631 | IFS=$as_save_IFS |
| 35632 | test -z "$as_dir" && as_dir=. |
| 35633 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 35634 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35635 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35637 | ;; |
| 35638 | esac |
| 35639 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 35640 | # in which case we are not to be found in the path. |
| 35641 | if test "x$as_myself" = x; then |
| 35642 | as_myself=$0 |
| 35643 | fi |
| 35644 | if test ! -f "$as_myself"; then |
| 35645 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 35646 | { (exit 1); exit 1; } |
| 35647 | fi |
| 35648 | |
| 35649 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35650 | for as_var in ENV MAIL MAILPATH |
| 35651 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35652 | done |
| 35653 | PS1='$ ' |
| 35654 | PS2='> ' |
| 35655 | PS4='+ ' |
| 35656 | |
| 35657 | # NLS nuisances. |
| 35658 | for as_var in \ |
| 35659 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 35660 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 35661 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35662 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35663 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 35664 | eval $as_var=C; export $as_var |
| 35665 | else |
| 35666 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35667 | fi |
| 35668 | done |
| 35669 | |
| 35670 | # Required to use basename. |
| 35671 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35672 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 35673 | as_expr=expr |
| 35674 | else |
| 35675 | as_expr=false |
| 35676 | fi |
| 35677 | |
| 35678 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 35679 | as_basename=basename |
| 35680 | else |
| 35681 | as_basename=false |
| 35682 | fi |
| 35683 | |
| 35684 | |
| 35685 | # Name of the executable. |
| 35686 | as_me=`$as_basename -- "$0" || |
| 35687 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 35688 | X"$0" : 'X\(//\)$' \| \ |
| 35689 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 35690 | echo X/"$0" | |
| 35691 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 35692 | s//\1/ |
| 35693 | q |
| 35694 | } |
| 35695 | /^X\/\(\/\/\)$/{ |
| 35696 | s//\1/ |
| 35697 | q |
| 35698 | } |
| 35699 | /^X\/\(\/\).*/{ |
| 35700 | s//\1/ |
| 35701 | q |
| 35702 | } |
| 35703 | s/.*/./; q'` |
| 35704 | |
| 35705 | # CDPATH. |
| 35706 | $as_unset CDPATH |
| 35707 | |
| 35708 | |
| 35709 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35710 | as_lineno_1=$LINENO |
| 35711 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35712 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35713 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35714 | |
| 35715 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 35716 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35717 | # line-number line after each line using $LINENO; the second 'sed' |
| 35718 | # does the real work. The second script uses 'N' to pair each |
| 35719 | # line-number line with the line containing $LINENO, and appends |
| 35720 | # trailing '-' during substitution so that $LINENO is not a special |
| 35721 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35722 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35723 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 35724 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 35725 | sed -n ' |
| 35726 | p |
| 35727 | /[$]LINENO/= |
| 35728 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35729 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35730 | s/[$]LINENO.*/&-/ |
| 35731 | t lineno |
| 35732 | b |
| 35733 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35734 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35735 | :loop |
| 35736 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35737 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35738 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35739 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35740 | chmod +x "$as_me.lineno" || |
| 35741 | { 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] | 35742 | { (exit 1); exit 1; }; } |
| 35743 | |
| 35744 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 35745 | # (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] | 35746 | # original and so on. Autoconf is especially sensitive to this). |
| 35747 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35748 | # Exit status is that of the last command. |
| 35749 | exit |
| 35750 | } |
| 35751 | |
| 35752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35753 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 35754 | as_dirname=dirname |
| 35755 | else |
| 35756 | as_dirname=false |
| 35757 | fi |
| 35758 | |
| 35759 | ECHO_C= ECHO_N= ECHO_T= |
| 35760 | case `echo -n x` in |
| 35761 | -n*) |
| 35762 | case `echo 'x\c'` in |
| 35763 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 35764 | *) ECHO_C='\c';; |
| 35765 | esac;; |
| 35766 | *) |
| 35767 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35768 | esac |
| 35769 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35770 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35771 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35772 | as_expr=expr |
| 35773 | else |
| 35774 | as_expr=false |
| 35775 | fi |
| 35776 | |
| 35777 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35778 | if test -d conf$$.dir; then |
| 35779 | rm -f conf$$.dir/conf$$.file |
| 35780 | else |
| 35781 | rm -f conf$$.dir |
| 35782 | mkdir conf$$.dir |
| 35783 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35784 | echo >conf$$.file |
| 35785 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35786 | as_ln_s='ln -s' |
| 35787 | # ... but there are two gotchas: |
| 35788 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 35789 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 35790 | # In both cases, we have to default to `cp -p'. |
| 35791 | 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] | 35792 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35793 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 35794 | as_ln_s=ln |
| 35795 | else |
| 35796 | as_ln_s='cp -p' |
| 35797 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35798 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 35799 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35800 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35801 | if mkdir -p . 2>/dev/null; then |
| 35802 | as_mkdir_p=: |
| 35803 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35804 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35805 | as_mkdir_p=false |
| 35806 | fi |
| 35807 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35808 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 35809 | # systems may use methods other than mode bits to determine executability. |
| 35810 | cat >conf$$.file <<_ASEOF |
| 35811 | #! /bin/sh |
| 35812 | exit 0 |
| 35813 | _ASEOF |
| 35814 | chmod +x conf$$.file |
| 35815 | if test -x conf$$.file >/dev/null 2>&1; then |
| 35816 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35817 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35818 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35819 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35820 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35821 | |
| 35822 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35823 | 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] | 35824 | |
| 35825 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35826 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35827 | |
| 35828 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35829 | exec 6>&1 |
| 35830 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35831 | # 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] | 35832 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35833 | # values after options handling. |
| 35834 | ac_log=" |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 35835 | This file was extended by llvm $as_me 2.7svn, which was |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35836 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35837 | |
| 35838 | CONFIG_FILES = $CONFIG_FILES |
| 35839 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 35840 | CONFIG_LINKS = $CONFIG_LINKS |
| 35841 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 35842 | $ $0 $@ |
| 35843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35844 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 35845 | " |
| 35846 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35847 | _ACEOF |
| 35848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35849 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35850 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35851 | config_files="$ac_config_files" |
| 35852 | config_headers="$ac_config_headers" |
| 35853 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35854 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35855 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35856 | |
| 35857 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35858 | ac_cs_usage="\ |
| 35859 | \`$as_me' instantiates files from templates according to the |
| 35860 | current configuration. |
| 35861 | |
| 35862 | Usage: $0 [OPTIONS] [FILE]... |
| 35863 | |
| 35864 | -h, --help print this help, then exit |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35865 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35866 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35867 | -d, --debug don't remove temporary files |
| 35868 | --recheck update $as_me by reconfiguring in the same conditions |
| 35869 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35870 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35871 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35872 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35873 | |
| 35874 | Configuration files: |
| 35875 | $config_files |
| 35876 | |
| 35877 | Configuration headers: |
| 35878 | $config_headers |
| 35879 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35880 | Configuration commands: |
| 35881 | $config_commands |
| 35882 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35883 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35885 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35886 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35887 | ac_cs_version="\\ |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 35888 | llvm config.status 2.7svn |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35889 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35890 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35892 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35893 | This config.status script is free software; the Free Software Foundation |
| 35894 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35895 | |
| 35896 | ac_pwd='$ac_pwd' |
| 35897 | srcdir='$srcdir' |
| 35898 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35899 | _ACEOF |
| 35900 | |
| 35901 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35902 | # If no file are specified by the user, then we need to provide default |
| 35903 | # value. By we need to know if files were specified by the user. |
| 35904 | ac_need_defaults=: |
| 35905 | while test $# != 0 |
| 35906 | do |
| 35907 | case $1 in |
| 35908 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35909 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35910 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35911 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35912 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35913 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35914 | ac_option=$1 |
| 35915 | ac_optarg=$2 |
| 35916 | ac_shift=shift |
| 35917 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35918 | esac |
| 35919 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35920 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35921 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35922 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 35923 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35924 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 35925 | echo "$ac_cs_version"; exit ;; |
| 35926 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35927 | debug=: ;; |
| 35928 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35929 | $ac_shift |
| 35930 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35931 | ac_need_defaults=false;; |
| 35932 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35933 | $ac_shift |
| 35934 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35935 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35936 | --he | --h) |
| 35937 | # Conflict between --help and --header |
| 35938 | { echo "$as_me: error: ambiguous option: $1 |
| 35939 | Try \`$0 --help' for more information." >&2 |
| 35940 | { (exit 1); exit 1; }; };; |
| 35941 | --help | --hel | -h ) |
| 35942 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35943 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 35944 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 35945 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35946 | |
| 35947 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35948 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 35949 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35950 | { (exit 1); exit 1; }; } ;; |
| 35951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35952 | *) ac_config_targets="$ac_config_targets $1" |
| 35953 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35954 | |
| 35955 | esac |
| 35956 | shift |
| 35957 | done |
| 35958 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35959 | ac_configure_extra_args= |
| 35960 | |
| 35961 | if $ac_cs_silent; then |
| 35962 | exec 6>/dev/null |
| 35963 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 35964 | fi |
| 35965 | |
| 35966 | _ACEOF |
| 35967 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35968 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35969 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 35970 | CONFIG_SHELL=$SHELL |
| 35971 | export CONFIG_SHELL |
| 35972 | 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] | 35973 | fi |
| 35974 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35975 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35976 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35977 | exec 5>>config.log |
| 35978 | { |
| 35979 | echo |
| 35980 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 35981 | ## Running $as_me. ## |
| 35982 | _ASBOX |
| 35983 | echo "$ac_log" |
| 35984 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35986 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35987 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35988 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35989 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35990 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35991 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35992 | |
| 35993 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35994 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35995 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35996 | |
| 35997 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35998 | for ac_config_target in $ac_config_targets |
| 35999 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36000 | case $ac_config_target in |
| 36001 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36002 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 36003 | "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36004 | "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 36005 | "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36006 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 36007 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36008 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 36009 | "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36010 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 36011 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 36012 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 36013 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 36014 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 36015 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36016 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36017 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 36018 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 36019 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36020 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 36021 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 36022 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36023 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 36024 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36025 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36026 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 36027 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 36028 | { (exit 1); exit 1; }; };; |
| 36029 | esac |
| 36030 | done |
| 36031 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36032 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36033 | # If the user did not use the arguments to specify the items to instantiate, |
| 36034 | # then the envvar interface is used. Set only those that are not. |
| 36035 | # We use the long form for the default assignment because of an extremely |
| 36036 | # bizarre bug on SunOS 4.1.3. |
| 36037 | if $ac_need_defaults; then |
| 36038 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 36039 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36040 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36041 | fi |
| 36042 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36043 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36044 | # 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] | 36045 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36046 | # Hook for its removal unless debugging. |
| 36047 | # Note that there is a small window in which the directory will not be cleaned: |
| 36048 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36049 | $debug || |
| 36050 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36051 | tmp= |
| 36052 | trap 'exit_status=$? |
| 36053 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 36054 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36055 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 36056 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36057 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36058 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36059 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36060 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36061 | test -n "$tmp" && test -d "$tmp" |
| 36062 | } || |
| 36063 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36064 | tmp=./conf$$-$RANDOM |
| 36065 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36066 | } || |
| 36067 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36068 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36069 | { (exit 1); exit 1; } |
| 36070 | } |
| 36071 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36072 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36073 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36074 | # |
| 36075 | |
| 36076 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 36077 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36078 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36079 | |
| 36080 | _ACEOF |
| 36081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36082 | |
| 36083 | |
| 36084 | ac_delim='%!_!# ' |
| 36085 | for ac_last_try in false false false false false :; do |
| 36086 | cat >conf$$subs.sed <<_ACEOF |
| 36087 | SHELL!$SHELL$ac_delim |
| 36088 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 36089 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 36090 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 36091 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 36092 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 36093 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 36094 | exec_prefix!$exec_prefix$ac_delim |
| 36095 | prefix!$prefix$ac_delim |
| 36096 | program_transform_name!$program_transform_name$ac_delim |
| 36097 | bindir!$bindir$ac_delim |
| 36098 | sbindir!$sbindir$ac_delim |
| 36099 | libexecdir!$libexecdir$ac_delim |
| 36100 | datarootdir!$datarootdir$ac_delim |
| 36101 | datadir!$datadir$ac_delim |
| 36102 | sysconfdir!$sysconfdir$ac_delim |
| 36103 | sharedstatedir!$sharedstatedir$ac_delim |
| 36104 | localstatedir!$localstatedir$ac_delim |
| 36105 | includedir!$includedir$ac_delim |
| 36106 | oldincludedir!$oldincludedir$ac_delim |
| 36107 | docdir!$docdir$ac_delim |
| 36108 | infodir!$infodir$ac_delim |
| 36109 | htmldir!$htmldir$ac_delim |
| 36110 | dvidir!$dvidir$ac_delim |
| 36111 | pdfdir!$pdfdir$ac_delim |
| 36112 | psdir!$psdir$ac_delim |
| 36113 | libdir!$libdir$ac_delim |
| 36114 | localedir!$localedir$ac_delim |
| 36115 | mandir!$mandir$ac_delim |
| 36116 | DEFS!$DEFS$ac_delim |
| 36117 | ECHO_C!$ECHO_C$ac_delim |
| 36118 | ECHO_N!$ECHO_N$ac_delim |
| 36119 | ECHO_T!$ECHO_T$ac_delim |
| 36120 | LIBS!$LIBS$ac_delim |
| 36121 | build_alias!$build_alias$ac_delim |
| 36122 | host_alias!$host_alias$ac_delim |
| 36123 | target_alias!$target_alias$ac_delim |
| 36124 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 36125 | subdirs!$subdirs$ac_delim |
| 36126 | build!$build$ac_delim |
| 36127 | build_cpu!$build_cpu$ac_delim |
| 36128 | build_vendor!$build_vendor$ac_delim |
| 36129 | build_os!$build_os$ac_delim |
| 36130 | host!$host$ac_delim |
| 36131 | host_cpu!$host_cpu$ac_delim |
| 36132 | host_vendor!$host_vendor$ac_delim |
| 36133 | host_os!$host_os$ac_delim |
| 36134 | target!$target$ac_delim |
| 36135 | target_cpu!$target_cpu$ac_delim |
| 36136 | target_vendor!$target_vendor$ac_delim |
| 36137 | target_os!$target_os$ac_delim |
| 36138 | OS!$OS$ac_delim |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 36139 | HOST_OS!$HOST_OS$ac_delim |
| 36140 | TARGET_OS!$TARGET_OS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36141 | LINKALL!$LINKALL$ac_delim |
| 36142 | NOLINKALL!$NOLINKALL$ac_delim |
| 36143 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 36144 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 36145 | ARCH!$ARCH$ac_delim |
| 36146 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36147 | CC!$CC$ac_delim |
| 36148 | CFLAGS!$CFLAGS$ac_delim |
| 36149 | LDFLAGS!$LDFLAGS$ac_delim |
| 36150 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 36151 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 36152 | EXEEXT!$EXEEXT$ac_delim |
| 36153 | OBJEXT!$OBJEXT$ac_delim |
| 36154 | CPP!$CPP$ac_delim |
| 36155 | GREP!$GREP$ac_delim |
| 36156 | EGREP!$EGREP$ac_delim |
| 36157 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 36158 | BUILD_CC!$BUILD_CC$ac_delim |
| 36159 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 36160 | BUILD_CXX!$BUILD_CXX$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36161 | CVSBUILD!$CVSBUILD$ac_delim |
| 36162 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36163 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36164 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 36165 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 36166 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36167 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 36168 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36169 | JIT!$JIT$ac_delim |
| 36170 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 36171 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 36172 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 36173 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36174 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36175 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 36176 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36177 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 36178 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 36179 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36180 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 36181 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36182 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
| 36183 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36184 | _ACEOF |
| 36185 | |
| 36186 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 36187 | break |
| 36188 | elif $ac_last_try; then |
| 36189 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36190 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36191 | { (exit 1); exit 1; }; } |
| 36192 | else |
| 36193 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36194 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36195 | done |
| 36196 | |
| 36197 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36198 | if test -n "$ac_eof"; then |
| 36199 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36200 | ac_eof=`expr $ac_eof + 1` |
| 36201 | fi |
| 36202 | |
| 36203 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36204 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 36205 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 36206 | _ACEOF |
| 36207 | sed ' |
| 36208 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36209 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36210 | :n |
| 36211 | t n |
| 36212 | s/'"$ac_delim"'$/,g/; t |
| 36213 | s/$/\\/; p |
| 36214 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36215 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36216 | rm -f conf$$subs.sed |
| 36217 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36218 | CEOF$ac_eof |
| 36219 | _ACEOF |
| 36220 | |
| 36221 | |
| 36222 | ac_delim='%!_!# ' |
| 36223 | for ac_last_try in false false false false false :; do |
| 36224 | cat >conf$$subs.sed <<_ACEOF |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 36225 | CXX!$CXX$ac_delim |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 36226 | CXXFLAGS!$CXXFLAGS$ac_delim |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 36227 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 36228 | NM!$NM$ac_delim |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36229 | ifGNUmake!$ifGNUmake$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36230 | LN_S!$LN_S$ac_delim |
| 36231 | CMP!$CMP$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36232 | CP!$CP$ac_delim |
| 36233 | DATE!$DATE$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36234 | FIND!$FIND$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36235 | MKDIR!$MKDIR$ac_delim |
| 36236 | MV!$MV$ac_delim |
| 36237 | RANLIB!$RANLIB$ac_delim |
| 36238 | RM!$RM$ac_delim |
| 36239 | SED!$SED$ac_delim |
| 36240 | TAR!$TAR$ac_delim |
| 36241 | BINPWD!$BINPWD$ac_delim |
| 36242 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 36243 | DOT!$DOT$ac_delim |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 36244 | FDP!$FDP$ac_delim |
| 36245 | NEATO!$NEATO$ac_delim |
| 36246 | TWOPI!$TWOPI$ac_delim |
| 36247 | CIRCO!$CIRCO$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36248 | GV!$GV$ac_delim |
| 36249 | DOTTY!$DOTTY$ac_delim |
| 36250 | PERL!$PERL$ac_delim |
| 36251 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 36252 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 36253 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 36254 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 36255 | BZIP2!$BZIP2$ac_delim |
| 36256 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36257 | GROFF!$GROFF$ac_delim |
| 36258 | GZIP!$GZIP$ac_delim |
| 36259 | POD2HTML!$POD2HTML$ac_delim |
| 36260 | POD2MAN!$POD2MAN$ac_delim |
| 36261 | RUNTEST!$RUNTEST$ac_delim |
| 36262 | TCLSH!$TCLSH$ac_delim |
| 36263 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 36264 | OCAMLC!$OCAMLC$ac_delim |
| 36265 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 36266 | OCAMLDEP!$OCAMLDEP$ac_delim |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 36267 | OCAMLDOC!$OCAMLDOC$ac_delim |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 36268 | GAS!$GAS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36269 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 36270 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 36271 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 36272 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 36273 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 36274 | ECHO!$ECHO$ac_delim |
| 36275 | AR!$AR$ac_delim |
| 36276 | STRIP!$STRIP$ac_delim |
| 36277 | CXXCPP!$CXXCPP$ac_delim |
| 36278 | F77!$F77$ac_delim |
| 36279 | FFLAGS!$FFLAGS$ac_delim |
| 36280 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 36281 | LIBTOOL!$LIBTOOL$ac_delim |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 36282 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 36283 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 36284 | LLVMGCC!$LLVMGCC$ac_delim |
| 36285 | LLVMGXX!$LLVMGXX$ac_delim |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 36286 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 36287 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 36288 | USE_UDIS86!$USE_UDIS86$ac_delim |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 36289 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 36290 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 36291 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36292 | ALLOCA!$ALLOCA$ac_delim |
| 36293 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 36294 | LLVMCC1!$LLVMCC1$ac_delim |
| 36295 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 36296 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 36297 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36298 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 36299 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 36300 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36301 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 36302 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 36303 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 36304 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 36305 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 36306 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 36307 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 36308 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 36309 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 36310 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 36311 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 36312 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 36313 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 36314 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 36315 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 36316 | RPATH!$RPATH$ac_delim |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 36317 | RDYNAMIC!$RDYNAMIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36318 | LIBOBJS!$LIBOBJS$ac_delim |
| 36319 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 36320 | _ACEOF |
| 36321 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 36322 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36323 | break |
| 36324 | elif $ac_last_try; then |
| 36325 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36326 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36327 | { (exit 1); exit 1; }; } |
| 36328 | else |
| 36329 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36330 | fi |
| 36331 | done |
| 36332 | |
| 36333 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36334 | if test -n "$ac_eof"; then |
| 36335 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36336 | ac_eof=`expr $ac_eof + 1` |
| 36337 | fi |
| 36338 | |
| 36339 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36340 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 36341 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 36342 | _ACEOF |
| 36343 | sed ' |
| 36344 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36345 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36346 | :n |
| 36347 | t n |
| 36348 | s/'"$ac_delim"'$/,g/; t |
| 36349 | s/$/\\/; p |
| 36350 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36351 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36352 | rm -f conf$$subs.sed |
| 36353 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36354 | :end |
| 36355 | s/|#_!!_#|//g |
| 36356 | CEOF$ac_eof |
| 36357 | _ACEOF |
| 36358 | |
| 36359 | |
| 36360 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 36361 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 36362 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 36363 | # (actually we leave an empty line to preserve line numbers). |
| 36364 | if test "x$srcdir" = x.; then |
| 36365 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 36366 | s/:*\$(srcdir):*/:/ |
| 36367 | s/:*\${srcdir}:*/:/ |
| 36368 | s/:*@srcdir@:*/:/ |
| 36369 | s/^\([^=]*=[ ]*\):*/\1/ |
| 36370 | s/:*$// |
| 36371 | s/^[^=]*=[ ]*$// |
| 36372 | }' |
| 36373 | fi |
| 36374 | |
| 36375 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36376 | fi # test -n "$CONFIG_FILES" |
| 36377 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36378 | |
| 36379 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 36380 | do |
| 36381 | case $ac_tag in |
| 36382 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 36383 | esac |
| 36384 | case $ac_mode$ac_tag in |
| 36385 | :[FHL]*:*);; |
| 36386 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 36387 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 36388 | { (exit 1); exit 1; }; };; |
| 36389 | :[FH]-) ac_tag=-:-;; |
| 36390 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 36391 | esac |
| 36392 | ac_save_IFS=$IFS |
| 36393 | IFS=: |
| 36394 | set x $ac_tag |
| 36395 | IFS=$ac_save_IFS |
| 36396 | shift |
| 36397 | ac_file=$1 |
| 36398 | shift |
| 36399 | |
| 36400 | case $ac_mode in |
| 36401 | :L) ac_source=$1;; |
| 36402 | :[FH]) |
| 36403 | ac_file_inputs= |
| 36404 | for ac_f |
| 36405 | do |
| 36406 | case $ac_f in |
| 36407 | -) ac_f="$tmp/stdin";; |
| 36408 | *) # Look for the file first in the build tree, then in the source tree |
| 36409 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 36410 | # because $ac_f cannot contain `:'. |
| 36411 | test -f "$ac_f" || |
| 36412 | case $ac_f in |
| 36413 | [\\/$]*) false;; |
| 36414 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 36415 | esac || |
| 36416 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 36417 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 36418 | { (exit 1); exit 1; }; };; |
| 36419 | esac |
| 36420 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 36421 | done |
| 36422 | |
| 36423 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 36424 | # use $as_me), people would be surprised to read: |
| 36425 | # /* config.h. Generated by config.status. */ |
| 36426 | configure_input="Generated from "`IFS=: |
| 36427 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 36428 | if test x"$ac_file" != x-; then |
| 36429 | configure_input="$ac_file. $configure_input" |
| 36430 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 36431 | echo "$as_me: creating $ac_file" >&6;} |
| 36432 | fi |
| 36433 | |
| 36434 | case $ac_tag in |
| 36435 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 36436 | esac |
| 36437 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36438 | esac |
| 36439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36440 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36441 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36442 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 36443 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36444 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36445 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36446 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36447 | s//\1/ |
| 36448 | q |
| 36449 | } |
| 36450 | /^X\(\/\/\)[^/].*/{ |
| 36451 | s//\1/ |
| 36452 | q |
| 36453 | } |
| 36454 | /^X\(\/\/\)$/{ |
| 36455 | s//\1/ |
| 36456 | q |
| 36457 | } |
| 36458 | /^X\(\/\).*/{ |
| 36459 | s//\1/ |
| 36460 | q |
| 36461 | } |
| 36462 | s/.*/./; q'` |
| 36463 | { as_dir="$ac_dir" |
| 36464 | case $as_dir in #( |
| 36465 | -*) as_dir=./$as_dir;; |
| 36466 | esac |
| 36467 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36468 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36469 | while :; do |
| 36470 | case $as_dir in #( |
| 36471 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36472 | *) as_qdir=$as_dir;; |
| 36473 | esac |
| 36474 | as_dirs="'$as_qdir' $as_dirs" |
| 36475 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36476 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36477 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36478 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36479 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36480 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36481 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36482 | s//\1/ |
| 36483 | q |
| 36484 | } |
| 36485 | /^X\(\/\/\)[^/].*/{ |
| 36486 | s//\1/ |
| 36487 | q |
| 36488 | } |
| 36489 | /^X\(\/\/\)$/{ |
| 36490 | s//\1/ |
| 36491 | q |
| 36492 | } |
| 36493 | /^X\(\/\).*/{ |
| 36494 | s//\1/ |
| 36495 | q |
| 36496 | } |
| 36497 | s/.*/./; q'` |
| 36498 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36499 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36500 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36501 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36502 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36503 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36504 | ac_builddir=. |
| 36505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36506 | case "$ac_dir" in |
| 36507 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36508 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36509 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36510 | # A ".." for each directory in $ac_dir_suffix. |
| 36511 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36512 | case $ac_top_builddir_sub in |
| 36513 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36514 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36515 | esac ;; |
| 36516 | esac |
| 36517 | ac_abs_top_builddir=$ac_pwd |
| 36518 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36519 | # for backward compatibility: |
| 36520 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36521 | |
| 36522 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36523 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36524 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36525 | ac_top_srcdir=$ac_top_builddir_sub |
| 36526 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36527 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36528 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36529 | ac_top_srcdir=$srcdir |
| 36530 | ac_abs_top_srcdir=$srcdir ;; |
| 36531 | *) # Relative name. |
| 36532 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36533 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36534 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36535 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36536 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36537 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36539 | case $ac_mode in |
| 36540 | :F) |
| 36541 | # |
| 36542 | # CONFIG_FILE |
| 36543 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36544 | |
| 36545 | case $INSTALL in |
| 36546 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36547 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36548 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36549 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36550 | |
| 36551 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36552 | # If the template does not know about datarootdir, expand it. |
| 36553 | # FIXME: This hack should be removed a few years after 2.60. |
| 36554 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 36555 | |
| 36556 | case `sed -n '/datarootdir/ { |
| 36557 | p |
| 36558 | q |
| 36559 | } |
| 36560 | /@datadir@/p |
| 36561 | /@docdir@/p |
| 36562 | /@infodir@/p |
| 36563 | /@localedir@/p |
| 36564 | /@mandir@/p |
| 36565 | ' $ac_file_inputs` in |
| 36566 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 36567 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 36568 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 36569 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 36570 | _ACEOF |
| 36571 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36572 | ac_datarootdir_hack=' |
| 36573 | s&@datadir@&$datadir&g |
| 36574 | s&@docdir@&$docdir&g |
| 36575 | s&@infodir@&$infodir&g |
| 36576 | s&@localedir@&$localedir&g |
| 36577 | s&@mandir@&$mandir&g |
| 36578 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 36579 | esac |
| 36580 | _ACEOF |
| 36581 | |
| 36582 | # Neutralize VPATH when `$srcdir' = `.'. |
| 36583 | # Shell code in configure.ac might set extrasub. |
| 36584 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36585 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36586 | sed "$ac_vpsub |
| 36587 | $extrasub |
| 36588 | _ACEOF |
| 36589 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36590 | :t |
| 36591 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36592 | s&@configure_input@&$configure_input&;t t |
| 36593 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 36594 | s&@srcdir@&$ac_srcdir&;t t |
| 36595 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 36596 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 36597 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 36598 | s&@builddir@&$ac_builddir&;t t |
| 36599 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 36600 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 36601 | s&@INSTALL@&$ac_INSTALL&;t t |
| 36602 | $ac_datarootdir_hack |
| 36603 | " $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] | 36604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36605 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 36606 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 36607 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 36608 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36609 | which seems to be undefined. Please make sure it is defined." >&5 |
| 36610 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36611 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36612 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36613 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36614 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36615 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 36616 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36617 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36618 | ;; |
| 36619 | :H) |
| 36620 | # |
| 36621 | # CONFIG_HEADER |
| 36622 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36623 | _ACEOF |
| 36624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36625 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 36626 | # substitutes the proper values into config.h.in to produce config.h. |
| 36627 | rm -f conftest.defines conftest.tail |
| 36628 | # First, append a space to every undef/define line, to ease matching. |
| 36629 | echo 's/$/ /' >conftest.defines |
| 36630 | # Then, protect against being on the right side of a sed subst, or in |
| 36631 | # an unquoted here document, in config.status. If some macros were |
| 36632 | # called several times there might be several #defines for the same |
| 36633 | # symbol, which is useless. But do not sort them, since the last |
| 36634 | # AC_DEFINE must be honored. |
| 36635 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 36636 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 36637 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 36638 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 36639 | # just an empty string. |
| 36640 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 36641 | ac_dB='\\)[ (].*,\\1define\\2' |
| 36642 | ac_dC=' ' |
| 36643 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36645 | uniq confdefs.h | |
| 36646 | sed -n ' |
| 36647 | t rset |
| 36648 | :rset |
| 36649 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 36650 | t ok |
| 36651 | d |
| 36652 | :ok |
| 36653 | s/[\\&,]/\\&/g |
| 36654 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 36655 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 36656 | ' >>conftest.defines |
| 36657 | |
| 36658 | # Remove the space that was appended to ease matching. |
| 36659 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36660 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 36661 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36662 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 36663 | echo 's/ $// |
| 36664 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36665 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36666 | # Break up conftest.defines: |
| 36667 | ac_max_sed_lines=50 |
| 36668 | |
| 36669 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 36670 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 36671 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 36672 | # et cetera. |
| 36673 | ac_in='$ac_file_inputs' |
| 36674 | ac_out='"$tmp/out1"' |
| 36675 | ac_nxt='"$tmp/out2"' |
| 36676 | |
| 36677 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36678 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36679 | # Write a here document: |
| 36680 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36681 | # First, check the format of the line: |
| 36682 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 36683 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 36684 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 36685 | b |
| 36686 | :def |
| 36687 | _ACEOF |
| 36688 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36689 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36690 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 36691 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 36692 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 36693 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36694 | rm -f conftest.defines |
| 36695 | mv conftest.tail conftest.defines |
| 36696 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36697 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36698 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36699 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36700 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36701 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36702 | echo "/* $configure_input */" >"$tmp/config.h" |
| 36703 | cat "$ac_result" >>"$tmp/config.h" |
| 36704 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36705 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 36706 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 36707 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36708 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36709 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36710 | fi |
| 36711 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36712 | echo "/* $configure_input */" |
| 36713 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36714 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36715 | rm -f "$tmp/out12" |
| 36716 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36718 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 36719 | echo "$as_me: executing $ac_file commands" >&6;} |
| 36720 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36721 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36722 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36723 | |
| 36724 | case $ac_file$ac_mode in |
| 36725 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36726 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36727 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36728 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36729 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36730 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36731 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36732 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36733 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36734 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36735 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36736 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36737 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36738 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 36739 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36740 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36741 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36742 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36743 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36744 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36745 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36746 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36747 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36748 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36749 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36750 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36751 | |
| 36752 | esac |
| 36753 | done # for ac_tag |
| 36754 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36755 | |
| 36756 | { (exit 0); exit 0; } |
| 36757 | _ACEOF |
| 36758 | chmod +x $CONFIG_STATUS |
| 36759 | ac_clean_files=$ac_clean_files_save |
| 36760 | |
| 36761 | |
| 36762 | # configure is writing to config.log, and then calls config.status. |
| 36763 | # config.status does its own redirection, appending to config.log. |
| 36764 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 36765 | # by configure, so config.status won't be able to write to it; its |
| 36766 | # output is simply discarded. So we exec the FD to /dev/null, |
| 36767 | # effectively closing config.log, so it can be properly (re)opened and |
| 36768 | # appended to by config.status. When coming back to configure, we |
| 36769 | # need to make the FD available again. |
| 36770 | if test "$no_create" != yes; then |
| 36771 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36772 | ac_config_status_args= |
| 36773 | test "$silent" = yes && |
| 36774 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36775 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36776 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36777 | exec 5>>config.log |
| 36778 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 36779 | # would make configure fail if this is the last instruction. |
| 36780 | $ac_cs_success || { (exit 1); exit 1; } |
| 36781 | fi |
| 36782 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36783 | # |
| 36784 | # CONFIG_SUBDIRS section. |
| 36785 | # |
| 36786 | if test "$no_recursion" != yes; then |
| 36787 | |
| 36788 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 36789 | ac_sub_configure_args= |
| 36790 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36791 | eval "set x $ac_configure_args" |
| 36792 | shift |
| 36793 | for ac_arg |
| 36794 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36795 | if test -n "$ac_prev"; then |
| 36796 | ac_prev= |
| 36797 | continue |
| 36798 | fi |
| 36799 | case $ac_arg in |
| 36800 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 36801 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 36802 | ac_prev=cache_file ;; |
| 36803 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 36804 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 36805 | | --c=*) |
| 36806 | ;; |
| 36807 | --config-cache | -C) |
| 36808 | ;; |
| 36809 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 36810 | ac_prev=srcdir ;; |
| 36811 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 36812 | ;; |
| 36813 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 36814 | ac_prev=prefix ;; |
| 36815 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 36816 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36817 | *) |
| 36818 | case $ac_arg in |
| 36819 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36820 | esac |
| 36821 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36822 | esac |
| 36823 | done |
| 36824 | |
| 36825 | # Always prepend --prefix to ensure using the same prefix |
| 36826 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36827 | ac_arg="--prefix=$prefix" |
| 36828 | case $ac_arg in |
| 36829 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36830 | esac |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 36831 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36832 | |
| 36833 | ac_popdir=`pwd` |
| 36834 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 36835 | |
| 36836 | # Do not complain, so a configure script can configure whichever |
| 36837 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36838 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36839 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36840 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 36841 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 36842 | echo "$ac_msg" >&6 |
| 36843 | { as_dir="$ac_dir" |
| 36844 | case $as_dir in #( |
| 36845 | -*) as_dir=./$as_dir;; |
| 36846 | esac |
| 36847 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36848 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36849 | while :; do |
| 36850 | case $as_dir in #( |
| 36851 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36852 | *) as_qdir=$as_dir;; |
| 36853 | esac |
| 36854 | as_dirs="'$as_qdir' $as_dirs" |
| 36855 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36856 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36857 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36858 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36859 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36860 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36862 | s//\1/ |
| 36863 | q |
| 36864 | } |
| 36865 | /^X\(\/\/\)[^/].*/{ |
| 36866 | s//\1/ |
| 36867 | q |
| 36868 | } |
| 36869 | /^X\(\/\/\)$/{ |
| 36870 | s//\1/ |
| 36871 | q |
| 36872 | } |
| 36873 | /^X\(\/\).*/{ |
| 36874 | s//\1/ |
| 36875 | q |
| 36876 | } |
| 36877 | s/.*/./; q'` |
| 36878 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36879 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36880 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36881 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36882 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36883 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36884 | ac_builddir=. |
| 36885 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36886 | case "$ac_dir" in |
| 36887 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36888 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36889 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36890 | # A ".." for each directory in $ac_dir_suffix. |
| 36891 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36892 | case $ac_top_builddir_sub in |
| 36893 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36894 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36895 | esac ;; |
| 36896 | esac |
| 36897 | ac_abs_top_builddir=$ac_pwd |
| 36898 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36899 | # for backward compatibility: |
| 36900 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36901 | |
| 36902 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36903 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36904 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36905 | ac_top_srcdir=$ac_top_builddir_sub |
| 36906 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36907 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36908 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36909 | ac_top_srcdir=$srcdir |
| 36910 | ac_abs_top_srcdir=$srcdir ;; |
| 36911 | *) # Relative name. |
| 36912 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36913 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36914 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36915 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36916 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36917 | |
| 36918 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36919 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36920 | |
| 36921 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36922 | if test -f "$ac_srcdir/configure.gnu"; then |
| 36923 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 36924 | elif test -f "$ac_srcdir/configure"; then |
| 36925 | ac_sub_configure=$ac_srcdir/configure |
| 36926 | elif test -f "$ac_srcdir/configure.in"; then |
| 36927 | # This should be Cygnus configure. |
| 36928 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36929 | else |
| 36930 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 36931 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 36932 | ac_sub_configure= |
| 36933 | fi |
| 36934 | |
| 36935 | # The recursion is here. |
| 36936 | if test -n "$ac_sub_configure"; then |
| 36937 | # Make the cache file name correct relative to the subdirectory. |
| 36938 | case $cache_file in |
| 36939 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36940 | *) # Relative name. |
| 36941 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36942 | esac |
| 36943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36944 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 36945 | 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] | 36946 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36947 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 36948 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36949 | { { 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] | 36950 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 36951 | { (exit 1); exit 1; }; } |
| 36952 | fi |
| 36953 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36954 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36955 | done |
| 36956 | fi |
| 36957 | |