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. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.6svn. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
| 16 | |
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 | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.6svn' |
| 719 | PACKAGE_STRING='llvm 2.6svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 720 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 721 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 722 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 723 | # Factoring default headers for most tests. |
| 724 | ac_includes_default="\ |
| 725 | #include <stdio.h> |
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 |
| 811 | LINKALL |
| 812 | NOLINKALL |
| 813 | LLVM_ON_UNIX |
| 814 | LLVM_ON_WIN32 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 815 | ARCH |
| 816 | ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 817 | CC |
| 818 | CFLAGS |
| 819 | LDFLAGS |
| 820 | CPPFLAGS |
| 821 | ac_ct_CC |
| 822 | EXEEXT |
| 823 | OBJEXT |
| 824 | CPP |
| 825 | GREP |
| 826 | EGREP |
| 827 | LLVM_CROSS_COMPILING |
| 828 | BUILD_CC |
| 829 | BUILD_EXEEXT |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 830 | BUILD_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 831 | CVSBUILD |
| 832 | ENABLE_OPTIMIZED |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 833 | ENABLE_PROFILING |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 834 | DISABLE_ASSERTIONS |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 835 | ENABLE_EXPENSIVE_CHECKS |
| 836 | EXPENSIVE_CHECKS |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 837 | DEBUG_RUNTIME |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 838 | JIT |
| 839 | TARGET_HAS_JIT |
| 840 | ENABLE_DOXYGEN |
| 841 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 842 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 843 | TARGETS_TO_BUILD |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 844 | LLVM_ENUM_TARGETS |
| 845 | LLVM_ENUM_ASM_PRINTERS |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 846 | LLVM_ENUM_ASM_PARSERS |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 847 | ENABLE_CBE_PRINTF_A |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 848 | EXTRA_OPTIONS |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 849 | BINUTILS_INCDIR |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 850 | ENABLE_LLVMC_DYNAMIC |
| 851 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 852 | CXX |
| 853 | CXXFLAGS |
| 854 | ac_ct_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 855 | NM |
| 856 | ifGNUmake |
| 857 | LN_S |
| 858 | CMP |
| 859 | CP |
| 860 | DATE |
| 861 | FIND |
| 862 | MKDIR |
| 863 | MV |
| 864 | RANLIB |
| 865 | RM |
| 866 | SED |
| 867 | TAR |
| 868 | BINPWD |
| 869 | GRAPHVIZ |
| 870 | DOT |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 871 | FDP |
| 872 | NEATO |
| 873 | TWOPI |
| 874 | CIRCO |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 875 | GV |
| 876 | DOTTY |
| 877 | PERL |
| 878 | HAVE_PERL |
| 879 | INSTALL_PROGRAM |
| 880 | INSTALL_SCRIPT |
| 881 | INSTALL_DATA |
| 882 | BZIP2 |
| 883 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 884 | GROFF |
| 885 | GZIP |
| 886 | POD2HTML |
| 887 | POD2MAN |
| 888 | RUNTEST |
| 889 | TCLSH |
| 890 | ZIP |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 891 | OCAMLC |
| 892 | OCAMLOPT |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 893 | OCAMLDEP |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 894 | OCAMLDOC |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 895 | GAS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 896 | INSTALL_LTDL_TRUE |
| 897 | INSTALL_LTDL_FALSE |
| 898 | CONVENIENCE_LTDL_TRUE |
| 899 | CONVENIENCE_LTDL_FALSE |
| 900 | LIBADD_DL |
| 901 | ECHO |
| 902 | AR |
| 903 | STRIP |
| 904 | CXXCPP |
| 905 | F77 |
| 906 | FFLAGS |
| 907 | ac_ct_F77 |
| 908 | LIBTOOL |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 909 | LLVMGCCCOMMAND |
| 910 | LLVMGXXCOMMAND |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 911 | LLVMGCC |
| 912 | LLVMGXX |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 913 | USE_UDIS86 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 914 | USE_OPROFILE |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 915 | HAVE_PTHREAD |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 916 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 917 | ALLOCA |
| 918 | MMAP_FILE |
| 919 | LLVMCC1 |
| 920 | LLVMCC1PLUS |
| 921 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 922 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 923 | LLVMGCC_VERSION |
| 924 | LLVMGCC_MAJVERS |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 925 | LLVMGCC_LANGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 926 | SHLIBEXT |
| 927 | LLVM_PREFIX |
| 928 | LLVM_BINDIR |
| 929 | LLVM_LIBDIR |
| 930 | LLVM_DATADIR |
| 931 | LLVM_DOCSDIR |
| 932 | LLVM_ETCDIR |
| 933 | LLVM_INCLUDEDIR |
| 934 | LLVM_INFODIR |
| 935 | LLVM_MANDIR |
| 936 | LLVM_CONFIGTIME |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 937 | BINDINGS_TO_BUILD |
| 938 | ALL_BINDINGS |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 939 | OCAML_LIBDIR |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 940 | ENABLE_VISIBILITY_INLINES_HIDDEN |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 941 | RPATH |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 942 | RDYNAMIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 943 | LIBOBJS |
| 944 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 945 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 946 | ac_precious_vars='build_alias |
| 947 | host_alias |
| 948 | target_alias |
| 949 | CC |
| 950 | CFLAGS |
| 951 | LDFLAGS |
| 952 | CPPFLAGS |
| 953 | CPP |
| 954 | CXX |
| 955 | CXXFLAGS |
| 956 | CCC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 957 | CXXCPP |
| 958 | F77 |
| 959 | FFLAGS' |
| 960 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 961 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 962 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 963 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 964 | projects/test-suite |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 965 | projects/llvm-reopt |
| 966 | projects/llvm-gcc |
| 967 | projects/llvm-java |
| 968 | projects/llvm-tv |
| 969 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 970 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 971 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 972 | |
| 973 | # Initialize some variables set by options. |
| 974 | ac_init_help= |
| 975 | ac_init_version=false |
| 976 | # The variables have the same names as the options, with |
| 977 | # dashes changed to underlines. |
| 978 | cache_file=/dev/null |
| 979 | exec_prefix=NONE |
| 980 | no_create= |
| 981 | no_recursion= |
| 982 | prefix=NONE |
| 983 | program_prefix=NONE |
| 984 | program_suffix=NONE |
| 985 | program_transform_name=s,x,x, |
| 986 | silent= |
| 987 | site= |
| 988 | srcdir= |
| 989 | verbose= |
| 990 | x_includes=NONE |
| 991 | x_libraries=NONE |
| 992 | |
| 993 | # Installation directory options. |
| 994 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 995 | # and all the variables that are supposed to be based on exec_prefix |
| 996 | # by default will actually change. |
| 997 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 998 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 999 | bindir='${exec_prefix}/bin' |
| 1000 | sbindir='${exec_prefix}/sbin' |
| 1001 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1002 | datarootdir='${prefix}/share' |
| 1003 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1004 | sysconfdir='${prefix}/etc' |
| 1005 | sharedstatedir='${prefix}/com' |
| 1006 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1007 | includedir='${prefix}/include' |
| 1008 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1009 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1010 | infodir='${datarootdir}/info' |
| 1011 | htmldir='${docdir}' |
| 1012 | dvidir='${docdir}' |
| 1013 | pdfdir='${docdir}' |
| 1014 | psdir='${docdir}' |
| 1015 | libdir='${exec_prefix}/lib' |
| 1016 | localedir='${datarootdir}/locale' |
| 1017 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1018 | |
| 1019 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1020 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1021 | for ac_option |
| 1022 | do |
| 1023 | # If the previous option needs an argument, assign it. |
| 1024 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1025 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1026 | ac_prev= |
| 1027 | continue |
| 1028 | fi |
| 1029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1030 | case $ac_option in |
| 1031 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1032 | *) ac_optarg=yes ;; |
| 1033 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1034 | |
| 1035 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1036 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1037 | case $ac_dashdash$ac_option in |
| 1038 | --) |
| 1039 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1040 | |
| 1041 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1042 | ac_prev=bindir ;; |
| 1043 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1044 | bindir=$ac_optarg ;; |
| 1045 | |
| 1046 | -build | --build | --buil | --bui | --bu) |
| 1047 | ac_prev=build_alias ;; |
| 1048 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1049 | build_alias=$ac_optarg ;; |
| 1050 | |
| 1051 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1052 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1053 | ac_prev=cache_file ;; |
| 1054 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1055 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1056 | cache_file=$ac_optarg ;; |
| 1057 | |
| 1058 | --config-cache | -C) |
| 1059 | cache_file=config.cache ;; |
| 1060 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1061 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1062 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1063 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1064 | datadir=$ac_optarg ;; |
| 1065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1066 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1067 | | --dataroo | --dataro | --datar) |
| 1068 | ac_prev=datarootdir ;; |
| 1069 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1070 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1071 | datarootdir=$ac_optarg ;; |
| 1072 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1073 | -disable-* | --disable-*) |
| 1074 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1075 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1076 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1077 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1078 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1079 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1080 | eval enable_$ac_feature=no ;; |
| 1081 | |
| 1082 | -docdir | --docdir | --docdi | --doc | --do) |
| 1083 | ac_prev=docdir ;; |
| 1084 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1085 | docdir=$ac_optarg ;; |
| 1086 | |
| 1087 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1088 | ac_prev=dvidir ;; |
| 1089 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1090 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1091 | |
| 1092 | -enable-* | --enable-*) |
| 1093 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1094 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1095 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1096 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1097 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1098 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1099 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1100 | |
| 1101 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1102 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1103 | | --exec | --exe | --ex) |
| 1104 | ac_prev=exec_prefix ;; |
| 1105 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1106 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1107 | | --exec=* | --exe=* | --ex=*) |
| 1108 | exec_prefix=$ac_optarg ;; |
| 1109 | |
| 1110 | -gas | --gas | --ga | --g) |
| 1111 | # Obsolete; use --with-gas. |
| 1112 | with_gas=yes ;; |
| 1113 | |
| 1114 | -help | --help | --hel | --he | -h) |
| 1115 | ac_init_help=long ;; |
| 1116 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1117 | ac_init_help=recursive ;; |
| 1118 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1119 | ac_init_help=short ;; |
| 1120 | |
| 1121 | -host | --host | --hos | --ho) |
| 1122 | ac_prev=host_alias ;; |
| 1123 | -host=* | --host=* | --hos=* | --ho=*) |
| 1124 | host_alias=$ac_optarg ;; |
| 1125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1126 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1127 | ac_prev=htmldir ;; |
| 1128 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1129 | | --ht=*) |
| 1130 | htmldir=$ac_optarg ;; |
| 1131 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1132 | -includedir | --includedir | --includedi | --included | --include \ |
| 1133 | | --includ | --inclu | --incl | --inc) |
| 1134 | ac_prev=includedir ;; |
| 1135 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1136 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1137 | includedir=$ac_optarg ;; |
| 1138 | |
| 1139 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1140 | ac_prev=infodir ;; |
| 1141 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1142 | infodir=$ac_optarg ;; |
| 1143 | |
| 1144 | -libdir | --libdir | --libdi | --libd) |
| 1145 | ac_prev=libdir ;; |
| 1146 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1147 | libdir=$ac_optarg ;; |
| 1148 | |
| 1149 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1150 | | --libexe | --libex | --libe) |
| 1151 | ac_prev=libexecdir ;; |
| 1152 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1153 | | --libexe=* | --libex=* | --libe=*) |
| 1154 | libexecdir=$ac_optarg ;; |
| 1155 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1156 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1157 | ac_prev=localedir ;; |
| 1158 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1159 | localedir=$ac_optarg ;; |
| 1160 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1161 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1162 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1163 | ac_prev=localstatedir ;; |
| 1164 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1165 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1166 | localstatedir=$ac_optarg ;; |
| 1167 | |
| 1168 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1169 | ac_prev=mandir ;; |
| 1170 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1171 | mandir=$ac_optarg ;; |
| 1172 | |
| 1173 | -nfp | --nfp | --nf) |
| 1174 | # Obsolete; use --without-fp. |
| 1175 | with_fp=no ;; |
| 1176 | |
| 1177 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1178 | | --no-cr | --no-c | -n) |
| 1179 | no_create=yes ;; |
| 1180 | |
| 1181 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1182 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1183 | no_recursion=yes ;; |
| 1184 | |
| 1185 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1186 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1187 | | --oldin | --oldi | --old | --ol | --o) |
| 1188 | ac_prev=oldincludedir ;; |
| 1189 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1190 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1191 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1192 | oldincludedir=$ac_optarg ;; |
| 1193 | |
| 1194 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1195 | ac_prev=prefix ;; |
| 1196 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1197 | prefix=$ac_optarg ;; |
| 1198 | |
| 1199 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1200 | | --program-pre | --program-pr | --program-p) |
| 1201 | ac_prev=program_prefix ;; |
| 1202 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1203 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1204 | program_prefix=$ac_optarg ;; |
| 1205 | |
| 1206 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1207 | | --program-suf | --program-su | --program-s) |
| 1208 | ac_prev=program_suffix ;; |
| 1209 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1210 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1211 | program_suffix=$ac_optarg ;; |
| 1212 | |
| 1213 | -program-transform-name | --program-transform-name \ |
| 1214 | | --program-transform-nam | --program-transform-na \ |
| 1215 | | --program-transform-n | --program-transform- \ |
| 1216 | | --program-transform | --program-transfor \ |
| 1217 | | --program-transfo | --program-transf \ |
| 1218 | | --program-trans | --program-tran \ |
| 1219 | | --progr-tra | --program-tr | --program-t) |
| 1220 | ac_prev=program_transform_name ;; |
| 1221 | -program-transform-name=* | --program-transform-name=* \ |
| 1222 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1223 | | --program-transform-n=* | --program-transform-=* \ |
| 1224 | | --program-transform=* | --program-transfor=* \ |
| 1225 | | --program-transfo=* | --program-transf=* \ |
| 1226 | | --program-trans=* | --program-tran=* \ |
| 1227 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1228 | program_transform_name=$ac_optarg ;; |
| 1229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1230 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1231 | ac_prev=pdfdir ;; |
| 1232 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1233 | pdfdir=$ac_optarg ;; |
| 1234 | |
| 1235 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1236 | ac_prev=psdir ;; |
| 1237 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1238 | psdir=$ac_optarg ;; |
| 1239 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1240 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1241 | | -silent | --silent | --silen | --sile | --sil) |
| 1242 | silent=yes ;; |
| 1243 | |
| 1244 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1245 | ac_prev=sbindir ;; |
| 1246 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1247 | | --sbi=* | --sb=*) |
| 1248 | sbindir=$ac_optarg ;; |
| 1249 | |
| 1250 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1251 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1252 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1253 | | --sha | --sh) |
| 1254 | ac_prev=sharedstatedir ;; |
| 1255 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1256 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1257 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1258 | | --sha=* | --sh=*) |
| 1259 | sharedstatedir=$ac_optarg ;; |
| 1260 | |
| 1261 | -site | --site | --sit) |
| 1262 | ac_prev=site ;; |
| 1263 | -site=* | --site=* | --sit=*) |
| 1264 | site=$ac_optarg ;; |
| 1265 | |
| 1266 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1267 | ac_prev=srcdir ;; |
| 1268 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1269 | srcdir=$ac_optarg ;; |
| 1270 | |
| 1271 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1272 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1273 | ac_prev=sysconfdir ;; |
| 1274 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1275 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1276 | sysconfdir=$ac_optarg ;; |
| 1277 | |
| 1278 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1279 | ac_prev=target_alias ;; |
| 1280 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1281 | target_alias=$ac_optarg ;; |
| 1282 | |
| 1283 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1284 | verbose=yes ;; |
| 1285 | |
| 1286 | -version | --version | --versio | --versi | --vers | -V) |
| 1287 | ac_init_version=: ;; |
| 1288 | |
| 1289 | -with-* | --with-*) |
| 1290 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1291 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1292 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1293 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1294 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1295 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1296 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1297 | |
| 1298 | -without-* | --without-*) |
| 1299 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1300 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1301 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1302 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1303 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1304 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1305 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1306 | |
| 1307 | --x) |
| 1308 | # Obsolete; use --with-x. |
| 1309 | with_x=yes ;; |
| 1310 | |
| 1311 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1312 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1313 | ac_prev=x_includes ;; |
| 1314 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1315 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1316 | x_includes=$ac_optarg ;; |
| 1317 | |
| 1318 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1319 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1320 | ac_prev=x_libraries ;; |
| 1321 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1322 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1323 | x_libraries=$ac_optarg ;; |
| 1324 | |
| 1325 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1326 | Try \`$0 --help' for more information." >&2 |
| 1327 | { (exit 1); exit 1; }; } |
| 1328 | ;; |
| 1329 | |
| 1330 | *=*) |
| 1331 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1332 | # Reject names that are not valid shell variable names. |
| 1333 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1334 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1335 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1336 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1337 | export $ac_envvar ;; |
| 1338 | |
| 1339 | *) |
| 1340 | # FIXME: should be removed in autoconf 3.0. |
| 1341 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1342 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1343 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1344 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1345 | ;; |
| 1346 | |
| 1347 | esac |
| 1348 | done |
| 1349 | |
| 1350 | if test -n "$ac_prev"; then |
| 1351 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1352 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1353 | { (exit 1); exit 1; }; } |
| 1354 | fi |
| 1355 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1356 | # Be sure to have absolute directory names. |
| 1357 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1358 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1359 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1360 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1361 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1362 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1363 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1364 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1365 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1366 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1367 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1368 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1369 | done |
| 1370 | |
| 1371 | # There might be people who depend on the old broken behavior: `$host' |
| 1372 | # used to hold the argument of --host etc. |
| 1373 | # FIXME: To remove some day. |
| 1374 | build=$build_alias |
| 1375 | host=$host_alias |
| 1376 | target=$target_alias |
| 1377 | |
| 1378 | # FIXME: To remove some day. |
| 1379 | if test "x$host_alias" != x; then |
| 1380 | if test "x$build_alias" = x; then |
| 1381 | cross_compiling=maybe |
| 1382 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1383 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1384 | elif test "x$build_alias" != "x$host_alias"; then |
| 1385 | cross_compiling=yes |
| 1386 | fi |
| 1387 | fi |
| 1388 | |
| 1389 | ac_tool_prefix= |
| 1390 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1391 | |
| 1392 | test "$silent" = yes && exec 6>/dev/null |
| 1393 | |
| 1394 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1395 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1396 | ac_ls_di=`ls -di .` && |
| 1397 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1398 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1399 | { (exit 1); exit 1; }; } |
| 1400 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1401 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1402 | { (exit 1); exit 1; }; } |
| 1403 | |
| 1404 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1405 | # Find the source files, if location was not specified. |
| 1406 | if test -z "$srcdir"; then |
| 1407 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1408 | # Try the directory containing this script, then the parent directory. |
| 1409 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1410 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1411 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1412 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1413 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1414 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1415 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1416 | s//\1/ |
| 1417 | q |
| 1418 | } |
| 1419 | /^X\(\/\/\)[^/].*/{ |
| 1420 | s//\1/ |
| 1421 | q |
| 1422 | } |
| 1423 | /^X\(\/\/\)$/{ |
| 1424 | s//\1/ |
| 1425 | q |
| 1426 | } |
| 1427 | /^X\(\/\).*/{ |
| 1428 | s//\1/ |
| 1429 | q |
| 1430 | } |
| 1431 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1432 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1433 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1434 | srcdir=.. |
| 1435 | fi |
| 1436 | else |
| 1437 | ac_srcdir_defaulted=no |
| 1438 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1439 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1440 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1441 | { 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] | 1442 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1443 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1444 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1445 | ac_abs_confdir=`( |
| 1446 | 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] | 1447 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1448 | pwd)` |
| 1449 | # When building in place, set srcdir=. |
| 1450 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1451 | srcdir=. |
| 1452 | fi |
| 1453 | # Remove unnecessary trailing slashes from srcdir. |
| 1454 | # Double slashes in file names in object file debugging info |
| 1455 | # mess up M-x gdb in Emacs. |
| 1456 | case $srcdir in |
| 1457 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1458 | esac |
| 1459 | for ac_var in $ac_precious_vars; do |
| 1460 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1461 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1462 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1463 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1464 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1465 | |
| 1466 | # |
| 1467 | # Report the --help message. |
| 1468 | # |
| 1469 | if test "$ac_init_help" = "long"; then |
| 1470 | # Omit some internal or obsolete options to make the list less imposing. |
| 1471 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1472 | cat <<_ACEOF |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 1473 | \`configure' configures llvm 2.6svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1474 | |
| 1475 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1476 | |
| 1477 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1478 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1479 | |
| 1480 | Defaults for the options are specified in brackets. |
| 1481 | |
| 1482 | Configuration: |
| 1483 | -h, --help display this help and exit |
| 1484 | --help=short display options specific to this package |
| 1485 | --help=recursive display the short help of all the included packages |
| 1486 | -V, --version display version information and exit |
| 1487 | -q, --quiet, --silent do not print \`checking...' messages |
| 1488 | --cache-file=FILE cache test results in FILE [disabled] |
| 1489 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1490 | -n, --no-create do not create output files |
| 1491 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1492 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1493 | Installation directories: |
| 1494 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1495 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1496 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1497 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1498 | |
| 1499 | By default, \`make install' will install all the files in |
| 1500 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1501 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1502 | for instance \`--prefix=\$HOME'. |
| 1503 | |
| 1504 | For better control, use the options below. |
| 1505 | |
| 1506 | Fine tuning of the installation directories: |
| 1507 | --bindir=DIR user executables [EPREFIX/bin] |
| 1508 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1509 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1510 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1511 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1512 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1513 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1514 | --includedir=DIR C header files [PREFIX/include] |
| 1515 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1516 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1517 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1518 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1519 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1520 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1521 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1522 | --htmldir=DIR html documentation [DOCDIR] |
| 1523 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1524 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1525 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1526 | _ACEOF |
| 1527 | |
| 1528 | cat <<\_ACEOF |
| 1529 | |
| 1530 | System types: |
| 1531 | --build=BUILD configure for building on BUILD [guessed] |
| 1532 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1533 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1534 | _ACEOF |
| 1535 | fi |
| 1536 | |
| 1537 | if test -n "$ac_init_help"; then |
| 1538 | case $ac_init_help in |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 1539 | short | recursive ) echo "Configuration of llvm 2.6svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | esac |
| 1541 | cat <<\_ACEOF |
| 1542 | |
| 1543 | Optional Features: |
| 1544 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1545 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1546 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1547 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1548 | --enable-assertions Compile with assertion checks enabled (default is |
| 1549 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1550 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1551 | Compile with expensive debug checks enabled (default |
| 1552 | is NO) |
| 1553 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1554 | NO) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1555 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1556 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1557 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1558 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1559 | is YES) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1560 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1561 | all,host-only,{target-name} (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1562 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1563 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1564 | --enable-bindings Build specific language bindings: |
| 1565 | all,auto,none,{binding-name} (default=auto) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1566 | --enable-libffi Check for the presence of libffi (default is YES) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1567 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1568 | Win32) |
| 1569 | --enable-llvmc-dynamic-plugins |
| 1570 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1571 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1572 | --enable-shared[=PKGS] build shared libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1573 | [default=yes] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1574 | --enable-static[=PKGS] build static libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1575 | [default=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1576 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1577 | optimize for fast installation |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1578 | [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1579 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1580 | |
| 1581 | Optional Packages: |
| 1582 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1583 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1584 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1585 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1586 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1587 | searches PATH) |
| 1588 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1589 | searches PATH) |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1590 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1591 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1592 | is stdlib) |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1593 | --with-binutils-include Specify path to binutils/include/ containing |
| 1594 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1595 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1596 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1597 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1598 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1599 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1600 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1601 | --with-oprofile=<prefix> |
| 1602 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1603 | |
| 1604 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1605 | CC C compiler command |
| 1606 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1607 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1608 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1609 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1610 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1611 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1612 | CXX C++ compiler command |
| 1613 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1614 | CXXCPP C++ preprocessor |
| 1615 | F77 Fortran 77 compiler command |
| 1616 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1617 | |
| 1618 | Use these variables to override the choices made by `configure' or to help |
| 1619 | it to find libraries and programs with nonstandard names/locations. |
| 1620 | |
| 1621 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1622 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1623 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1624 | fi |
| 1625 | |
| 1626 | if test "$ac_init_help" = "recursive"; then |
| 1627 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1628 | 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] | 1629 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1630 | ac_builddir=. |
| 1631 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1632 | case "$ac_dir" in |
| 1633 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1634 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1635 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1636 | # A ".." for each directory in $ac_dir_suffix. |
| 1637 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1638 | case $ac_top_builddir_sub in |
| 1639 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1640 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1641 | esac ;; |
| 1642 | esac |
| 1643 | ac_abs_top_builddir=$ac_pwd |
| 1644 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1645 | # for backward compatibility: |
| 1646 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1647 | |
| 1648 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1649 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1650 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1651 | ac_top_srcdir=$ac_top_builddir_sub |
| 1652 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1653 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1654 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1655 | ac_top_srcdir=$srcdir |
| 1656 | ac_abs_top_srcdir=$srcdir ;; |
| 1657 | *) # Relative name. |
| 1658 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1659 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1660 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1661 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1662 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1663 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1664 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1665 | # Check for guested configure. |
| 1666 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1667 | echo && |
| 1668 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1669 | elif test -f "$ac_srcdir/configure"; then |
| 1670 | echo && |
| 1671 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1672 | else |
| 1673 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1674 | fi || ac_status=$? |
| 1675 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1676 | done |
| 1677 | fi |
| 1678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1679 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1680 | if $ac_init_version; then |
| 1681 | cat <<\_ACEOF |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 1682 | llvm configure 2.6svn |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1683 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1685 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1686 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1687 | This configure script is free software; the Free Software Foundation |
| 1688 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1689 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1690 | Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1691 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1692 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1693 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1694 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1695 | This file contains any messages produced by compilers while |
| 1696 | running configure, to aid debugging if configure makes a mistake. |
| 1697 | |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 1698 | It was created by llvm $as_me 2.6svn, which was |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1699 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1700 | |
| 1701 | $ $0 $@ |
| 1702 | |
| 1703 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1704 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1705 | { |
| 1706 | cat <<_ASUNAME |
| 1707 | ## --------- ## |
| 1708 | ## Platform. ## |
| 1709 | ## --------- ## |
| 1710 | |
| 1711 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1712 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1713 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1714 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1715 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1716 | |
| 1717 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1718 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1719 | |
| 1720 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1721 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1722 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1723 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1724 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1725 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1726 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1727 | |
| 1728 | _ASUNAME |
| 1729 | |
| 1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1731 | for as_dir in $PATH |
| 1732 | do |
| 1733 | IFS=$as_save_IFS |
| 1734 | test -z "$as_dir" && as_dir=. |
| 1735 | echo "PATH: $as_dir" |
| 1736 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1737 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1738 | |
| 1739 | } >&5 |
| 1740 | |
| 1741 | cat >&5 <<_ACEOF |
| 1742 | |
| 1743 | |
| 1744 | ## ----------- ## |
| 1745 | ## Core tests. ## |
| 1746 | ## ----------- ## |
| 1747 | |
| 1748 | _ACEOF |
| 1749 | |
| 1750 | |
| 1751 | # Keep a trace of the command line. |
| 1752 | # 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] | 1753 | # 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] | 1754 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1755 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1756 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1757 | ac_configure_args0= |
| 1758 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1759 | ac_must_keep_next=false |
| 1760 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1761 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1762 | for ac_arg |
| 1763 | do |
| 1764 | case $ac_arg in |
| 1765 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1766 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1767 | | -silent | --silent | --silen | --sile | --sil) |
| 1768 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1769 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1770 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1771 | esac |
| 1772 | case $ac_pass in |
| 1773 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1774 | 2) |
| 1775 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1776 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1777 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1778 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1779 | case $ac_arg in |
| 1780 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1781 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1782 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1783 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1784 | case "$ac_configure_args0 " in |
| 1785 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1786 | esac |
| 1787 | ;; |
| 1788 | -* ) ac_must_keep_next=true ;; |
| 1789 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1790 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1791 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1792 | ;; |
| 1793 | esac |
| 1794 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1795 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1796 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1797 | $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] | 1798 | |
| 1799 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1800 | # config.log. We remove comments because anyway the quotes in there |
| 1801 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1802 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1803 | # 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] | 1804 | trap 'exit_status=$? |
| 1805 | # Save into config.log some information that might help in debugging. |
| 1806 | { |
| 1807 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1808 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1809 | cat <<\_ASBOX |
| 1810 | ## ---------------- ## |
| 1811 | ## Cache variables. ## |
| 1812 | ## ---------------- ## |
| 1813 | _ASBOX |
| 1814 | echo |
| 1815 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1816 | ( |
| 1817 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1818 | eval ac_val=\$$ac_var |
| 1819 | case $ac_val in #( |
| 1820 | *${as_nl}*) |
| 1821 | case $ac_var in #( |
| 1822 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1823 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1824 | esac |
| 1825 | case $ac_var in #( |
| 1826 | _ | IFS | as_nl) ;; #( |
| 1827 | *) $as_unset $ac_var ;; |
| 1828 | esac ;; |
| 1829 | esac |
| 1830 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1831 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1832 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1833 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1834 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1835 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1836 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1837 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1838 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1839 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1840 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1841 | esac | |
| 1842 | sort |
| 1843 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1844 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1845 | |
| 1846 | cat <<\_ASBOX |
| 1847 | ## ----------------- ## |
| 1848 | ## Output variables. ## |
| 1849 | ## ----------------- ## |
| 1850 | _ASBOX |
| 1851 | echo |
| 1852 | for ac_var in $ac_subst_vars |
| 1853 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1854 | eval ac_val=\$$ac_var |
| 1855 | case $ac_val in |
| 1856 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1857 | esac |
| 1858 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1859 | done | sort |
| 1860 | echo |
| 1861 | |
| 1862 | if test -n "$ac_subst_files"; then |
| 1863 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1864 | ## ------------------- ## |
| 1865 | ## File substitutions. ## |
| 1866 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1867 | _ASBOX |
| 1868 | echo |
| 1869 | for ac_var in $ac_subst_files |
| 1870 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1871 | eval ac_val=\$$ac_var |
| 1872 | case $ac_val in |
| 1873 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1874 | esac |
| 1875 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1876 | done | sort |
| 1877 | echo |
| 1878 | fi |
| 1879 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1880 | if test -s confdefs.h; then |
| 1881 | cat <<\_ASBOX |
| 1882 | ## ----------- ## |
| 1883 | ## confdefs.h. ## |
| 1884 | ## ----------- ## |
| 1885 | _ASBOX |
| 1886 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1887 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1888 | echo |
| 1889 | fi |
| 1890 | test "$ac_signal" != 0 && |
| 1891 | echo "$as_me: caught signal $ac_signal" |
| 1892 | echo "$as_me: exit $exit_status" |
| 1893 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1894 | rm -f core *.core core.conftest.* && |
| 1895 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1896 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1897 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1898 | for ac_signal in 1 2 13 15; do |
| 1899 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1900 | done |
| 1901 | ac_signal=0 |
| 1902 | |
| 1903 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1904 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1905 | |
| 1906 | # Predefined preprocessor variables. |
| 1907 | |
| 1908 | cat >>confdefs.h <<_ACEOF |
| 1909 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1910 | _ACEOF |
| 1911 | |
| 1912 | |
| 1913 | cat >>confdefs.h <<_ACEOF |
| 1914 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1915 | _ACEOF |
| 1916 | |
| 1917 | |
| 1918 | cat >>confdefs.h <<_ACEOF |
| 1919 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1920 | _ACEOF |
| 1921 | |
| 1922 | |
| 1923 | cat >>confdefs.h <<_ACEOF |
| 1924 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1925 | _ACEOF |
| 1926 | |
| 1927 | |
| 1928 | cat >>confdefs.h <<_ACEOF |
| 1929 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1930 | _ACEOF |
| 1931 | |
| 1932 | |
| 1933 | # Let the site file select an alternate cache file if it wants to. |
| 1934 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1935 | if test -n "$CONFIG_SITE"; then |
| 1936 | set x "$CONFIG_SITE" |
| 1937 | elif test "x$prefix" != xNONE; then |
| 1938 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1939 | else |
| 1940 | set x "$ac_default_prefix/share/config.site" \ |
| 1941 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1942 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1943 | shift |
| 1944 | for ac_site_file |
| 1945 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1946 | if test -r "$ac_site_file"; then |
| 1947 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1948 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1949 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1950 | . "$ac_site_file" |
| 1951 | fi |
| 1952 | done |
| 1953 | |
| 1954 | if test -r "$cache_file"; then |
| 1955 | # Some versions of bash will fail to source /dev/null (special |
| 1956 | # files actually), so we avoid doing that. |
| 1957 | if test -f "$cache_file"; then |
| 1958 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1959 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1960 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1961 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1962 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1963 | esac |
| 1964 | fi |
| 1965 | else |
| 1966 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1967 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1968 | >$cache_file |
| 1969 | fi |
| 1970 | |
| 1971 | # Check that the precious variables saved in the cache have kept the same |
| 1972 | # value. |
| 1973 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1974 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1975 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1976 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1977 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1978 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1979 | case $ac_old_set,$ac_new_set in |
| 1980 | set,) |
| 1981 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1982 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1983 | ac_cache_corrupted=: ;; |
| 1984 | ,set) |
| 1985 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1986 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1987 | ac_cache_corrupted=: ;; |
| 1988 | ,);; |
| 1989 | *) |
| 1990 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1991 | { 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] | 1992 | 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] | 1993 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1994 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1995 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1996 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1997 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1998 | fi;; |
| 1999 | esac |
| 2000 | # Pass precious variables to config.status. |
| 2001 | if test "$ac_new_set" = set; then |
| 2002 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2003 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2004 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2005 | esac |
| 2006 | case " $ac_configure_args " in |
| 2007 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2008 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 2009 | esac |
| 2010 | fi |
| 2011 | done |
| 2012 | if $ac_cache_corrupted; then |
| 2013 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 2014 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2015 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 2016 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 2017 | { (exit 1); exit 1; }; } |
| 2018 | fi |
| 2019 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2020 | |
| 2021 | |
| 2022 | |
| 2023 | |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
| 2029 | |
| 2030 | |
| 2031 | |
| 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
| 2042 | |
| 2043 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | ac_ext=c |
| 2045 | ac_cpp='$CPP $CPPFLAGS' |
| 2046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2049 | |
| 2050 | |
| 2051 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2052 | LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2053 | |
| 2054 | |
| 2055 | |
| 2056 | |
| 2057 | |
| 2058 | |
| 2059 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2060 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2061 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2062 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2063 | ac_aux_dir=$ac_dir |
| 2064 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2065 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2067 | ac_aux_dir=$ac_dir |
| 2068 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2069 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2070 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2071 | ac_aux_dir=$ac_dir |
| 2072 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2073 | break |
| 2074 | fi |
| 2075 | done |
| 2076 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2077 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2078 | 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] | 2079 | { (exit 1); exit 1; }; } |
| 2080 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2081 | |
| 2082 | # These three variables are undocumented and unsupported, |
| 2083 | # and are intended to be withdrawn in a future Autoconf release. |
| 2084 | # They can cause serious problems if a builder's source tree is in a directory |
| 2085 | # whose full name contains unusual characters. |
| 2086 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2087 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2088 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2089 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2090 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2091 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2092 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2093 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2094 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2095 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2096 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2097 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2098 | fi |
| 2099 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2100 | for i in `ls ${srcdir}/projects` |
| 2101 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2102 | if test -d ${srcdir}/projects/${i} ; then |
| 2103 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2104 | CVS) ;; |
| 2105 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2106 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2107 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2108 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2109 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2110 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 2111 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 2112 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2113 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2114 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 2115 | test-suite) subdirs="$subdirs projects/test-suite" |
| 2116 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2117 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2118 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2119 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2120 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2121 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2122 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2123 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2124 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2125 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2126 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2127 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2128 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2129 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2130 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2131 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2132 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2133 | 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] | 2134 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2135 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2136 | fi |
| 2137 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2138 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2139 | |
| 2140 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2141 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2142 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2143 | 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] | 2144 | { (exit 1); exit 1; }; } |
| 2145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2146 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2147 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2148 | if test "${ac_cv_build+set}" = set; then |
| 2149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2150 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2151 | ac_build_alias=$build_alias |
| 2152 | test "x$ac_build_alias" = x && |
| 2153 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2154 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2155 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2156 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2157 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2158 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2159 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2160 | 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] | 2161 | { (exit 1); exit 1; }; } |
| 2162 | |
| 2163 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2164 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2165 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2166 | case $ac_cv_build in |
| 2167 | *-*-*) ;; |
| 2168 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2169 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2170 | { (exit 1); exit 1; }; };; |
| 2171 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2172 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2173 | ac_save_IFS=$IFS; IFS='-' |
| 2174 | set x $ac_cv_build |
| 2175 | shift |
| 2176 | build_cpu=$1 |
| 2177 | build_vendor=$2 |
| 2178 | shift; shift |
| 2179 | # Remember, the first character of IFS is used to create $*, |
| 2180 | # except with old shells: |
| 2181 | build_os=$* |
| 2182 | IFS=$ac_save_IFS |
| 2183 | 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] | 2184 | |
| 2185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2186 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2187 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2188 | if test "${ac_cv_host+set}" = set; then |
| 2189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2190 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2191 | if test "x$host_alias" = x; then |
| 2192 | ac_cv_host=$ac_cv_build |
| 2193 | else |
| 2194 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2195 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2196 | 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] | 2197 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2198 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2199 | |
| 2200 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2201 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2202 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2203 | case $ac_cv_host in |
| 2204 | *-*-*) ;; |
| 2205 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2206 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2207 | { (exit 1); exit 1; }; };; |
| 2208 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2209 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2210 | ac_save_IFS=$IFS; IFS='-' |
| 2211 | set x $ac_cv_host |
| 2212 | shift |
| 2213 | host_cpu=$1 |
| 2214 | host_vendor=$2 |
| 2215 | shift; shift |
| 2216 | # Remember, the first character of IFS is used to create $*, |
| 2217 | # except with old shells: |
| 2218 | host_os=$* |
| 2219 | IFS=$ac_save_IFS |
| 2220 | 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] | 2221 | |
| 2222 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2223 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2224 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2225 | if test "${ac_cv_target+set}" = set; then |
| 2226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2227 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2228 | if test "x$target_alias" = x; then |
| 2229 | ac_cv_target=$ac_cv_host |
| 2230 | else |
| 2231 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2232 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2233 | 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] | 2234 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2235 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2236 | |
| 2237 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2238 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2239 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2240 | case $ac_cv_target in |
| 2241 | *-*-*) ;; |
| 2242 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2243 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2244 | { (exit 1); exit 1; }; };; |
| 2245 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2246 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2247 | ac_save_IFS=$IFS; IFS='-' |
| 2248 | set x $ac_cv_target |
| 2249 | shift |
| 2250 | target_cpu=$1 |
| 2251 | target_vendor=$2 |
| 2252 | shift; shift |
| 2253 | # Remember, the first character of IFS is used to create $*, |
| 2254 | # except with old shells: |
| 2255 | target_os=$* |
| 2256 | IFS=$ac_save_IFS |
| 2257 | 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] | 2258 | |
| 2259 | |
| 2260 | # The aliases save the names the user supplied, while $host etc. |
| 2261 | # will get canonicalized. |
| 2262 | test -n "$target_alias" && |
| 2263 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2264 | NONENONEs,x,x, && |
| 2265 | program_prefix=${target_alias}- |
| 2266 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2267 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2268 | 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] | 2269 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2271 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2272 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2273 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2274 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2275 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2276 | llvm_cv_os_type="AIX" |
| 2277 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2278 | *-*-irix*) |
| 2279 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2280 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2281 | llvm_cv_os_type="IRIX" |
| 2282 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2283 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2284 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2285 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2286 | llvm_cv_os_type="Cygwin" |
| 2287 | llvm_cv_platform_type="Unix" ;; |
| 2288 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2289 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2290 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2291 | llvm_cv_os_type="Darwin" |
| 2292 | llvm_cv_platform_type="Unix" ;; |
| 2293 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2294 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2295 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2296 | llvm_cv_os_type="FreeBSD" |
| 2297 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2298 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2299 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2300 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2301 | llvm_cv_os_type="OpenBSD" |
| 2302 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2303 | *-*-netbsd*) |
| 2304 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2305 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2306 | llvm_cv_os_type="NetBSD" |
| 2307 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2308 | *-*-dragonfly*) |
| 2309 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2310 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2311 | llvm_cv_os_type="DragonFly" |
| 2312 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2313 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2314 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2315 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2316 | llvm_cv_os_type="HP-UX" |
| 2317 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2318 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2319 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2320 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2321 | llvm_cv_os_type="Interix" |
| 2322 | llvm_cv_platform_type="Unix" ;; |
| 2323 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2324 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2325 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2326 | llvm_cv_os_type="Linux" |
| 2327 | llvm_cv_platform_type="Unix" ;; |
| 2328 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2329 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2330 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2331 | llvm_cv_os_type="SunOS" |
| 2332 | llvm_cv_platform_type="Unix" ;; |
| 2333 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2334 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2335 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2336 | llvm_cv_os_type="Win32" |
| 2337 | llvm_cv_platform_type="Win32" ;; |
| 2338 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2339 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2340 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2341 | llvm_cv_os_type="MingW" |
| 2342 | llvm_cv_platform_type="Win32" ;; |
| 2343 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2344 | llvm_cv_link_all_option="" |
| 2345 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2346 | llvm_cv_os_type="Unknown" |
| 2347 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2348 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2349 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2350 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2351 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2352 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2353 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2354 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2355 | 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] | 2356 | { (exit 1); exit 1; }; } |
| 2357 | fi |
| 2358 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2359 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2360 | |
| 2361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2362 | LINKALL=$llvm_cv_link_all_option |
| 2363 | |
| 2364 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2365 | |
| 2366 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2367 | case $llvm_cv_platform_type in |
| 2368 | Unix) |
| 2369 | |
| 2370 | cat >>confdefs.h <<\_ACEOF |
| 2371 | #define LLVM_ON_UNIX 1 |
| 2372 | _ACEOF |
| 2373 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2374 | LLVM_ON_UNIX=1 |
| 2375 | |
| 2376 | LLVM_ON_WIN32=0 |
| 2377 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2378 | ;; |
| 2379 | Win32) |
| 2380 | |
| 2381 | cat >>confdefs.h <<\_ACEOF |
| 2382 | #define LLVM_ON_WIN32 1 |
| 2383 | _ACEOF |
| 2384 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2385 | LLVM_ON_UNIX=0 |
| 2386 | |
| 2387 | LLVM_ON_WIN32=1 |
| 2388 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2389 | ;; |
| 2390 | esac |
| 2391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2392 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2393 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2394 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2396 | else |
| 2397 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2398 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2399 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2400 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2401 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2402 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2403 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2404 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2405 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2406 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2407 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2408 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2409 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2410 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2411 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2412 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2413 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2414 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2415 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2416 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2417 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2418 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2419 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2420 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 2421 | # Determine the LLVM native architecture for the target |
| 2422 | case "$llvm_cv_target_arch" in |
| 2423 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2424 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2425 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2426 | esac |
| 2427 | |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 2428 | ARCH=$llvm_cv_target_arch |
| 2429 | |
| 2430 | |
| 2431 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2432 | ac_cpp='$CPP $CPPFLAGS' |
| 2433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2436 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2437 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2438 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2439 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2441 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2443 | else |
| 2444 | if test -n "$CC"; then |
| 2445 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2446 | else |
| 2447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2448 | for as_dir in $PATH |
| 2449 | do |
| 2450 | IFS=$as_save_IFS |
| 2451 | test -z "$as_dir" && as_dir=. |
| 2452 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2453 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2454 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2456 | break 2 |
| 2457 | fi |
| 2458 | done |
| 2459 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2460 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2461 | |
| 2462 | fi |
| 2463 | fi |
| 2464 | CC=$ac_cv_prog_CC |
| 2465 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2466 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2467 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2468 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2469 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2470 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2471 | fi |
| 2472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2473 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2474 | fi |
| 2475 | if test -z "$ac_cv_prog_CC"; then |
| 2476 | ac_ct_CC=$CC |
| 2477 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2478 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2479 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2481 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2483 | else |
| 2484 | if test -n "$ac_ct_CC"; then |
| 2485 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2486 | else |
| 2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2488 | for as_dir in $PATH |
| 2489 | do |
| 2490 | IFS=$as_save_IFS |
| 2491 | test -z "$as_dir" && as_dir=. |
| 2492 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2493 | 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] | 2494 | ac_cv_prog_ac_ct_CC="gcc" |
| 2495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2496 | break 2 |
| 2497 | fi |
| 2498 | done |
| 2499 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2500 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2501 | |
| 2502 | fi |
| 2503 | fi |
| 2504 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2505 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2506 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2507 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2508 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2509 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2510 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2511 | fi |
| 2512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2513 | if test "x$ac_ct_CC" = x; then |
| 2514 | CC="" |
| 2515 | else |
| 2516 | case $cross_compiling:$ac_tool_warned in |
| 2517 | yes:) |
| 2518 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2519 | whose name does not start with the host triplet. If you think this |
| 2520 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2521 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2522 | whose name does not start with the host triplet. If you think this |
| 2523 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2524 | ac_tool_warned=yes ;; |
| 2525 | esac |
| 2526 | CC=$ac_ct_CC |
| 2527 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2528 | else |
| 2529 | CC="$ac_cv_prog_CC" |
| 2530 | fi |
| 2531 | |
| 2532 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2533 | if test -n "$ac_tool_prefix"; then |
| 2534 | # 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] | 2535 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2536 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2538 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2540 | else |
| 2541 | if test -n "$CC"; then |
| 2542 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2543 | else |
| 2544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2545 | for as_dir in $PATH |
| 2546 | do |
| 2547 | IFS=$as_save_IFS |
| 2548 | test -z "$as_dir" && as_dir=. |
| 2549 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2550 | 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] | 2551 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2553 | break 2 |
| 2554 | fi |
| 2555 | done |
| 2556 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2557 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2558 | |
| 2559 | fi |
| 2560 | fi |
| 2561 | CC=$ac_cv_prog_CC |
| 2562 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2563 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2564 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2565 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2566 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2567 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2568 | fi |
| 2569 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2570 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2571 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2572 | fi |
| 2573 | if test -z "$CC"; then |
| 2574 | # Extract the first word of "cc", so it can be a program name with args. |
| 2575 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2576 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2578 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2580 | else |
| 2581 | if test -n "$CC"; then |
| 2582 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2583 | else |
| 2584 | ac_prog_rejected=no |
| 2585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2586 | for as_dir in $PATH |
| 2587 | do |
| 2588 | IFS=$as_save_IFS |
| 2589 | test -z "$as_dir" && as_dir=. |
| 2590 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2591 | 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] | 2592 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2593 | ac_prog_rejected=yes |
| 2594 | continue |
| 2595 | fi |
| 2596 | ac_cv_prog_CC="cc" |
| 2597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2598 | break 2 |
| 2599 | fi |
| 2600 | done |
| 2601 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2602 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2603 | |
| 2604 | if test $ac_prog_rejected = yes; then |
| 2605 | # We found a bogon in the path, so make sure we never use it. |
| 2606 | set dummy $ac_cv_prog_CC |
| 2607 | shift |
| 2608 | if test $# != 0; then |
| 2609 | # We chose a different compiler from the bogus one. |
| 2610 | # However, it has the same basename, so the bogon will be chosen |
| 2611 | # first if we set CC to just the basename; use the full file name. |
| 2612 | shift |
| 2613 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2614 | fi |
| 2615 | fi |
| 2616 | fi |
| 2617 | fi |
| 2618 | CC=$ac_cv_prog_CC |
| 2619 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2620 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2621 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2622 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2623 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2624 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2625 | fi |
| 2626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2627 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2628 | fi |
| 2629 | if test -z "$CC"; then |
| 2630 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2631 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | do |
| 2633 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2634 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2637 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2639 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2640 | if test -n "$CC"; then |
| 2641 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2642 | else |
| 2643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2644 | for as_dir in $PATH |
| 2645 | do |
| 2646 | IFS=$as_save_IFS |
| 2647 | test -z "$as_dir" && as_dir=. |
| 2648 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2649 | 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] | 2650 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2652 | break 2 |
| 2653 | fi |
| 2654 | done |
| 2655 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2656 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2657 | |
| 2658 | fi |
| 2659 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2660 | CC=$ac_cv_prog_CC |
| 2661 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2662 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2663 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2664 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2665 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2666 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2667 | fi |
| 2668 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2669 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2670 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2671 | done |
| 2672 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2673 | if test -z "$CC"; then |
| 2674 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2675 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2676 | do |
| 2677 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2678 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2679 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2681 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2683 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2684 | if test -n "$ac_ct_CC"; then |
| 2685 | 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] | 2686 | else |
| 2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2688 | for as_dir in $PATH |
| 2689 | do |
| 2690 | IFS=$as_save_IFS |
| 2691 | test -z "$as_dir" && as_dir=. |
| 2692 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2693 | 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] | 2694 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2696 | break 2 |
| 2697 | fi |
| 2698 | done |
| 2699 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2700 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2701 | |
| 2702 | fi |
| 2703 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2704 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2705 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2706 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2707 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2708 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2709 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2710 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2711 | fi |
| 2712 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2713 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2714 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2717 | if test "x$ac_ct_CC" = x; then |
| 2718 | CC="" |
| 2719 | else |
| 2720 | case $cross_compiling:$ac_tool_warned in |
| 2721 | yes:) |
| 2722 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2723 | whose name does not start with the host triplet. If you think this |
| 2724 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2725 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2726 | whose name does not start with the host triplet. If you think this |
| 2727 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2728 | ac_tool_warned=yes ;; |
| 2729 | esac |
| 2730 | CC=$ac_ct_CC |
| 2731 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2732 | fi |
| 2733 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2734 | fi |
| 2735 | |
| 2736 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2737 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2738 | See \`config.log' for more details." >&5 |
| 2739 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2740 | See \`config.log' for more details." >&2;} |
| 2741 | { (exit 1); exit 1; }; } |
| 2742 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2743 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2744 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2745 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2746 | { (ac_try="$ac_compiler --version >&5" |
| 2747 | case "(($ac_try" in |
| 2748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2749 | *) ac_try_echo=$ac_try;; |
| 2750 | esac |
| 2751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2752 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2753 | ac_status=$? |
| 2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2755 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2756 | { (ac_try="$ac_compiler -v >&5" |
| 2757 | case "(($ac_try" in |
| 2758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2759 | *) ac_try_echo=$ac_try;; |
| 2760 | esac |
| 2761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2762 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2763 | ac_status=$? |
| 2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2765 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2766 | { (ac_try="$ac_compiler -V >&5" |
| 2767 | case "(($ac_try" in |
| 2768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2769 | *) ac_try_echo=$ac_try;; |
| 2770 | esac |
| 2771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2772 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2773 | ac_status=$? |
| 2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2775 | (exit $ac_status); } |
| 2776 | |
| 2777 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2778 | /* confdefs.h. */ |
| 2779 | _ACEOF |
| 2780 | cat confdefs.h >>conftest.$ac_ext |
| 2781 | cat >>conftest.$ac_ext <<_ACEOF |
| 2782 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2783 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2784 | int |
| 2785 | main () |
| 2786 | { |
| 2787 | |
| 2788 | ; |
| 2789 | return 0; |
| 2790 | } |
| 2791 | _ACEOF |
| 2792 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2793 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2794 | # Try to create an executable without -o first, disregard a.out. |
| 2795 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2796 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2797 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2798 | 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] | 2799 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2800 | # |
| 2801 | # List of possible output files, starting from the most likely. |
| 2802 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2803 | # only as a last resort. b.out is created by i960 compilers. |
| 2804 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2805 | # |
| 2806 | # The IRIX 6 linker writes into existing files which may not be |
| 2807 | # executable, retaining their permissions. Remove them first so a |
| 2808 | # subsequent execution test works. |
| 2809 | ac_rmfiles= |
| 2810 | for ac_file in $ac_files |
| 2811 | do |
| 2812 | case $ac_file in |
| 2813 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2814 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2815 | esac |
| 2816 | done |
| 2817 | rm -f $ac_rmfiles |
| 2818 | |
| 2819 | if { (ac_try="$ac_link_default" |
| 2820 | case "(($ac_try" in |
| 2821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2822 | *) ac_try_echo=$ac_try;; |
| 2823 | esac |
| 2824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2825 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2826 | ac_status=$? |
| 2827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2828 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2829 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2830 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2831 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2832 | # so that the user can short-circuit this test for compilers unknown to |
| 2833 | # Autoconf. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2834 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2835 | do |
| 2836 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2837 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2838 | *.$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] | 2839 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2840 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2841 | # We found the default executable, but exeext='' is most |
| 2842 | # certainly right. |
| 2843 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2844 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2845 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2846 | then :; else |
| 2847 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2848 | fi |
| 2849 | # We set ac_cv_exeext here because the later test for it is not |
| 2850 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2851 | # argument, so we may need to know it at that point already. |
| 2852 | # Even if this section looks crufty: it has the advantage of |
| 2853 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2854 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2855 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2856 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2857 | esac |
| 2858 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2859 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2860 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2861 | else |
| 2862 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2864 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2865 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2866 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2867 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2868 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2869 | { (exit 77); exit 77; }; } |
| 2870 | fi |
| 2871 | |
| 2872 | ac_exeext=$ac_cv_exeext |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2873 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2874 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2876 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2877 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2878 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2879 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2880 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2881 | # If not cross compiling, check that we can run a simple program. |
| 2882 | if test "$cross_compiling" != yes; then |
| 2883 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2884 | { (case "(($ac_try" in |
| 2885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2886 | *) ac_try_echo=$ac_try;; |
| 2887 | esac |
| 2888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2889 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2890 | ac_status=$? |
| 2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2892 | (exit $ac_status); }; }; then |
| 2893 | cross_compiling=no |
| 2894 | else |
| 2895 | if test "$cross_compiling" = maybe; then |
| 2896 | cross_compiling=yes |
| 2897 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2898 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2899 | If you meant to cross compile, use \`--host'. |
| 2900 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2901 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2902 | If you meant to cross compile, use \`--host'. |
| 2903 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2904 | { (exit 1); exit 1; }; } |
| 2905 | fi |
| 2906 | fi |
| 2907 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2908 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2909 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2911 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2912 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2913 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2914 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2915 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2916 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2917 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2918 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2920 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2921 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2922 | if { (ac_try="$ac_link" |
| 2923 | case "(($ac_try" in |
| 2924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2925 | *) ac_try_echo=$ac_try;; |
| 2926 | esac |
| 2927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2928 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2929 | ac_status=$? |
| 2930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2931 | (exit $ac_status); }; then |
| 2932 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2933 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2934 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2935 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2936 | for ac_file in conftest.exe conftest conftest.*; do |
| 2937 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2938 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2939 | *.$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] | 2940 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2941 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2942 | * ) break;; |
| 2943 | esac |
| 2944 | done |
| 2945 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2946 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2947 | See \`config.log' for more details." >&5 |
| 2948 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2949 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2950 | { (exit 1); exit 1; }; } |
| 2951 | fi |
| 2952 | |
| 2953 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2954 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2955 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2956 | |
| 2957 | rm -f conftest.$ac_ext |
| 2958 | EXEEXT=$ac_cv_exeext |
| 2959 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2960 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2961 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2962 | if test "${ac_cv_objext+set}" = set; then |
| 2963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2964 | else |
| 2965 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2966 | /* confdefs.h. */ |
| 2967 | _ACEOF |
| 2968 | cat confdefs.h >>conftest.$ac_ext |
| 2969 | cat >>conftest.$ac_ext <<_ACEOF |
| 2970 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2971 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2972 | int |
| 2973 | main () |
| 2974 | { |
| 2975 | |
| 2976 | ; |
| 2977 | return 0; |
| 2978 | } |
| 2979 | _ACEOF |
| 2980 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2981 | if { (ac_try="$ac_compile" |
| 2982 | case "(($ac_try" in |
| 2983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2984 | *) ac_try_echo=$ac_try;; |
| 2985 | esac |
| 2986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2987 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2988 | ac_status=$? |
| 2989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2990 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2991 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2992 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2993 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2994 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2995 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2996 | break;; |
| 2997 | esac |
| 2998 | done |
| 2999 | else |
| 3000 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3002 | |
| 3003 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3004 | See \`config.log' for more details." >&5 |
| 3005 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3006 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3007 | { (exit 1); exit 1; }; } |
| 3008 | fi |
| 3009 | |
| 3010 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3011 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3012 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3013 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3014 | OBJEXT=$ac_cv_objext |
| 3015 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3016 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3017 | 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] | 3018 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3020 | else |
| 3021 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3022 | /* confdefs.h. */ |
| 3023 | _ACEOF |
| 3024 | cat confdefs.h >>conftest.$ac_ext |
| 3025 | cat >>conftest.$ac_ext <<_ACEOF |
| 3026 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3027 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3028 | int |
| 3029 | main () |
| 3030 | { |
| 3031 | #ifndef __GNUC__ |
| 3032 | choke me |
| 3033 | #endif |
| 3034 | |
| 3035 | ; |
| 3036 | return 0; |
| 3037 | } |
| 3038 | _ACEOF |
| 3039 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3040 | if { (ac_try="$ac_compile" |
| 3041 | case "(($ac_try" in |
| 3042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3043 | *) ac_try_echo=$ac_try;; |
| 3044 | esac |
| 3045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3046 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3047 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3049 | rm -f conftest.er1 |
| 3050 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3052 | (exit $ac_status); } && |
| 3053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3054 | { (case "(($ac_try" in |
| 3055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3056 | *) ac_try_echo=$ac_try;; |
| 3057 | esac |
| 3058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3059 | (eval "$ac_try") 2>&5 |
| 3060 | ac_status=$? |
| 3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3062 | (exit $ac_status); }; } && |
| 3063 | { ac_try='test -s conftest.$ac_objext' |
| 3064 | { (case "(($ac_try" in |
| 3065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3066 | *) ac_try_echo=$ac_try;; |
| 3067 | esac |
| 3068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3069 | (eval "$ac_try") 2>&5 |
| 3070 | ac_status=$? |
| 3071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3072 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3073 | ac_compiler_gnu=yes |
| 3074 | else |
| 3075 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3078 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3080 | |
| 3081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3082 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3083 | |
| 3084 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3085 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3086 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3087 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3088 | ac_test_CFLAGS=${CFLAGS+set} |
| 3089 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3090 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3091 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3092 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3094 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3095 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3096 | ac_c_werror_flag=yes |
| 3097 | ac_cv_prog_cc_g=no |
| 3098 | CFLAGS="-g" |
| 3099 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3100 | /* confdefs.h. */ |
| 3101 | _ACEOF |
| 3102 | cat confdefs.h >>conftest.$ac_ext |
| 3103 | cat >>conftest.$ac_ext <<_ACEOF |
| 3104 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3105 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3106 | int |
| 3107 | main () |
| 3108 | { |
| 3109 | |
| 3110 | ; |
| 3111 | return 0; |
| 3112 | } |
| 3113 | _ACEOF |
| 3114 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3115 | if { (ac_try="$ac_compile" |
| 3116 | case "(($ac_try" in |
| 3117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3118 | *) ac_try_echo=$ac_try;; |
| 3119 | esac |
| 3120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3121 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3122 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3124 | rm -f conftest.er1 |
| 3125 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3127 | (exit $ac_status); } && |
| 3128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3129 | { (case "(($ac_try" in |
| 3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3131 | *) ac_try_echo=$ac_try;; |
| 3132 | esac |
| 3133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3134 | (eval "$ac_try") 2>&5 |
| 3135 | ac_status=$? |
| 3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3137 | (exit $ac_status); }; } && |
| 3138 | { ac_try='test -s conftest.$ac_objext' |
| 3139 | { (case "(($ac_try" in |
| 3140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3141 | *) ac_try_echo=$ac_try;; |
| 3142 | esac |
| 3143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3144 | (eval "$ac_try") 2>&5 |
| 3145 | ac_status=$? |
| 3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3147 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3148 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3149 | else |
| 3150 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3153 | CFLAGS="" |
| 3154 | cat >conftest.$ac_ext <<_ACEOF |
| 3155 | /* confdefs.h. */ |
| 3156 | _ACEOF |
| 3157 | cat confdefs.h >>conftest.$ac_ext |
| 3158 | cat >>conftest.$ac_ext <<_ACEOF |
| 3159 | /* end confdefs.h. */ |
| 3160 | |
| 3161 | int |
| 3162 | main () |
| 3163 | { |
| 3164 | |
| 3165 | ; |
| 3166 | return 0; |
| 3167 | } |
| 3168 | _ACEOF |
| 3169 | rm -f conftest.$ac_objext |
| 3170 | if { (ac_try="$ac_compile" |
| 3171 | case "(($ac_try" in |
| 3172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3173 | *) ac_try_echo=$ac_try;; |
| 3174 | esac |
| 3175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3176 | (eval "$ac_compile") 2>conftest.er1 |
| 3177 | ac_status=$? |
| 3178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3179 | rm -f conftest.er1 |
| 3180 | cat conftest.err >&5 |
| 3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3182 | (exit $ac_status); } && |
| 3183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3184 | { (case "(($ac_try" in |
| 3185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3186 | *) ac_try_echo=$ac_try;; |
| 3187 | esac |
| 3188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3189 | (eval "$ac_try") 2>&5 |
| 3190 | ac_status=$? |
| 3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3192 | (exit $ac_status); }; } && |
| 3193 | { ac_try='test -s conftest.$ac_objext' |
| 3194 | { (case "(($ac_try" in |
| 3195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3196 | *) ac_try_echo=$ac_try;; |
| 3197 | esac |
| 3198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3199 | (eval "$ac_try") 2>&5 |
| 3200 | ac_status=$? |
| 3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3202 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3203 | : |
| 3204 | else |
| 3205 | echo "$as_me: failed program was:" >&5 |
| 3206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3207 | |
| 3208 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3209 | CFLAGS="-g" |
| 3210 | cat >conftest.$ac_ext <<_ACEOF |
| 3211 | /* confdefs.h. */ |
| 3212 | _ACEOF |
| 3213 | cat confdefs.h >>conftest.$ac_ext |
| 3214 | cat >>conftest.$ac_ext <<_ACEOF |
| 3215 | /* end confdefs.h. */ |
| 3216 | |
| 3217 | int |
| 3218 | main () |
| 3219 | { |
| 3220 | |
| 3221 | ; |
| 3222 | return 0; |
| 3223 | } |
| 3224 | _ACEOF |
| 3225 | rm -f conftest.$ac_objext |
| 3226 | if { (ac_try="$ac_compile" |
| 3227 | case "(($ac_try" in |
| 3228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3229 | *) ac_try_echo=$ac_try;; |
| 3230 | esac |
| 3231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3232 | (eval "$ac_compile") 2>conftest.er1 |
| 3233 | ac_status=$? |
| 3234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3235 | rm -f conftest.er1 |
| 3236 | cat conftest.err >&5 |
| 3237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3238 | (exit $ac_status); } && |
| 3239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3240 | { (case "(($ac_try" in |
| 3241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3242 | *) ac_try_echo=$ac_try;; |
| 3243 | esac |
| 3244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3245 | (eval "$ac_try") 2>&5 |
| 3246 | ac_status=$? |
| 3247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3248 | (exit $ac_status); }; } && |
| 3249 | { ac_try='test -s conftest.$ac_objext' |
| 3250 | { (case "(($ac_try" in |
| 3251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3252 | *) ac_try_echo=$ac_try;; |
| 3253 | esac |
| 3254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3255 | (eval "$ac_try") 2>&5 |
| 3256 | ac_status=$? |
| 3257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3258 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3259 | ac_cv_prog_cc_g=yes |
| 3260 | else |
| 3261 | echo "$as_me: failed program was:" >&5 |
| 3262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3263 | |
| 3264 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3265 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3266 | |
| 3267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3268 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3269 | |
| 3270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3271 | fi |
| 3272 | |
| 3273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3274 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3275 | fi |
| 3276 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3277 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3278 | if test "$ac_test_CFLAGS" = set; then |
| 3279 | CFLAGS=$ac_save_CFLAGS |
| 3280 | elif test $ac_cv_prog_cc_g = yes; then |
| 3281 | if test "$GCC" = yes; then |
| 3282 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3283 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3284 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3285 | fi |
| 3286 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3287 | if test "$GCC" = yes; then |
| 3288 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3289 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3290 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3291 | fi |
| 3292 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3293 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3294 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3295 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3297 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3298 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3299 | ac_save_CC=$CC |
| 3300 | cat >conftest.$ac_ext <<_ACEOF |
| 3301 | /* confdefs.h. */ |
| 3302 | _ACEOF |
| 3303 | cat confdefs.h >>conftest.$ac_ext |
| 3304 | cat >>conftest.$ac_ext <<_ACEOF |
| 3305 | /* end confdefs.h. */ |
| 3306 | #include <stdarg.h> |
| 3307 | #include <stdio.h> |
| 3308 | #include <sys/types.h> |
| 3309 | #include <sys/stat.h> |
| 3310 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3311 | struct buf { int x; }; |
| 3312 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3313 | static char *e (p, i) |
| 3314 | char **p; |
| 3315 | int i; |
| 3316 | { |
| 3317 | return p[i]; |
| 3318 | } |
| 3319 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3320 | { |
| 3321 | char *s; |
| 3322 | va_list v; |
| 3323 | va_start (v,p); |
| 3324 | s = g (p, va_arg (v,int)); |
| 3325 | va_end (v); |
| 3326 | return s; |
| 3327 | } |
| 3328 | |
| 3329 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3330 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3331 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3332 | 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] | 3333 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3334 | 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] | 3335 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3336 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3338 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3339 | inside strings and character constants. */ |
| 3340 | #define FOO(x) 'x' |
| 3341 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3342 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3343 | int test (int i, double x); |
| 3344 | struct s1 {int (*f) (int a);}; |
| 3345 | struct s2 {int (*f) (double a);}; |
| 3346 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3347 | int argc; |
| 3348 | char **argv; |
| 3349 | int |
| 3350 | main () |
| 3351 | { |
| 3352 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3353 | ; |
| 3354 | return 0; |
| 3355 | } |
| 3356 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3357 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3358 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3359 | do |
| 3360 | CC="$ac_save_CC $ac_arg" |
| 3361 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3362 | if { (ac_try="$ac_compile" |
| 3363 | case "(($ac_try" in |
| 3364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3365 | *) ac_try_echo=$ac_try;; |
| 3366 | esac |
| 3367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3368 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3369 | ac_status=$? |
| 3370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3371 | rm -f conftest.er1 |
| 3372 | cat conftest.err >&5 |
| 3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3374 | (exit $ac_status); } && |
| 3375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3376 | { (case "(($ac_try" in |
| 3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3378 | *) ac_try_echo=$ac_try;; |
| 3379 | esac |
| 3380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3381 | (eval "$ac_try") 2>&5 |
| 3382 | ac_status=$? |
| 3383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3384 | (exit $ac_status); }; } && |
| 3385 | { ac_try='test -s conftest.$ac_objext' |
| 3386 | { (case "(($ac_try" in |
| 3387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3388 | *) ac_try_echo=$ac_try;; |
| 3389 | esac |
| 3390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3391 | (eval "$ac_try") 2>&5 |
| 3392 | ac_status=$? |
| 3393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3394 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3395 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3396 | else |
| 3397 | echo "$as_me: failed program was:" >&5 |
| 3398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3400 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3401 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3402 | |
| 3403 | rm -f core conftest.err conftest.$ac_objext |
| 3404 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3405 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3406 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3407 | CC=$ac_save_CC |
| 3408 | |
| 3409 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3410 | # AC_CACHE_VAL |
| 3411 | case "x$ac_cv_prog_cc_c89" in |
| 3412 | x) |
| 3413 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3414 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3415 | xno) |
| 3416 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3417 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3418 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3419 | CC="$CC $ac_cv_prog_cc_c89" |
| 3420 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3421 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3422 | esac |
| 3423 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3424 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3425 | ac_ext=c |
| 3426 | ac_cpp='$CPP $CPPFLAGS' |
| 3427 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3428 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3429 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3430 | |
| 3431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3432 | ac_ext=c |
| 3433 | ac_cpp='$CPP $CPPFLAGS' |
| 3434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3437 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3438 | 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] | 3439 | # On Suns, sometimes $CPP names a directory. |
| 3440 | if test -n "$CPP" && test -d "$CPP"; then |
| 3441 | CPP= |
| 3442 | fi |
| 3443 | if test -z "$CPP"; then |
| 3444 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3446 | else |
| 3447 | # Double quotes because CPP needs to be expanded |
| 3448 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3449 | do |
| 3450 | ac_preproc_ok=false |
| 3451 | for ac_c_preproc_warn_flag in '' yes |
| 3452 | do |
| 3453 | # Use a header file that comes with gcc, so configuring glibc |
| 3454 | # with a fresh cross-compiler works. |
| 3455 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3456 | # <limits.h> exists even on freestanding compilers. |
| 3457 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3458 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3459 | cat >conftest.$ac_ext <<_ACEOF |
| 3460 | /* confdefs.h. */ |
| 3461 | _ACEOF |
| 3462 | cat confdefs.h >>conftest.$ac_ext |
| 3463 | cat >>conftest.$ac_ext <<_ACEOF |
| 3464 | /* end confdefs.h. */ |
| 3465 | #ifdef __STDC__ |
| 3466 | # include <limits.h> |
| 3467 | #else |
| 3468 | # include <assert.h> |
| 3469 | #endif |
| 3470 | Syntax error |
| 3471 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3472 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3473 | case "(($ac_try" in |
| 3474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3475 | *) ac_try_echo=$ac_try;; |
| 3476 | esac |
| 3477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3478 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3479 | ac_status=$? |
| 3480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3481 | rm -f conftest.er1 |
| 3482 | cat conftest.err >&5 |
| 3483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3484 | (exit $ac_status); } >/dev/null; then |
| 3485 | if test -s conftest.err; then |
| 3486 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3487 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3488 | else |
| 3489 | ac_cpp_err= |
| 3490 | fi |
| 3491 | else |
| 3492 | ac_cpp_err=yes |
| 3493 | fi |
| 3494 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3495 | : |
| 3496 | else |
| 3497 | echo "$as_me: failed program was:" >&5 |
| 3498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3499 | |
| 3500 | # Broken: fails on valid input. |
| 3501 | continue |
| 3502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3503 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3504 | rm -f conftest.err conftest.$ac_ext |
| 3505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3506 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3507 | # can be detected and how. |
| 3508 | cat >conftest.$ac_ext <<_ACEOF |
| 3509 | /* confdefs.h. */ |
| 3510 | _ACEOF |
| 3511 | cat confdefs.h >>conftest.$ac_ext |
| 3512 | cat >>conftest.$ac_ext <<_ACEOF |
| 3513 | /* end confdefs.h. */ |
| 3514 | #include <ac_nonexistent.h> |
| 3515 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3516 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3517 | case "(($ac_try" in |
| 3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3519 | *) ac_try_echo=$ac_try;; |
| 3520 | esac |
| 3521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3522 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3523 | ac_status=$? |
| 3524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3525 | rm -f conftest.er1 |
| 3526 | cat conftest.err >&5 |
| 3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3528 | (exit $ac_status); } >/dev/null; then |
| 3529 | if test -s conftest.err; then |
| 3530 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3531 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3532 | else |
| 3533 | ac_cpp_err= |
| 3534 | fi |
| 3535 | else |
| 3536 | ac_cpp_err=yes |
| 3537 | fi |
| 3538 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3539 | # Broken: success on invalid input. |
| 3540 | continue |
| 3541 | else |
| 3542 | echo "$as_me: failed program was:" >&5 |
| 3543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3544 | |
| 3545 | # Passes both tests. |
| 3546 | ac_preproc_ok=: |
| 3547 | break |
| 3548 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3549 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3550 | rm -f conftest.err conftest.$ac_ext |
| 3551 | |
| 3552 | done |
| 3553 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3554 | rm -f conftest.err conftest.$ac_ext |
| 3555 | if $ac_preproc_ok; then |
| 3556 | break |
| 3557 | fi |
| 3558 | |
| 3559 | done |
| 3560 | ac_cv_prog_CPP=$CPP |
| 3561 | |
| 3562 | fi |
| 3563 | CPP=$ac_cv_prog_CPP |
| 3564 | else |
| 3565 | ac_cv_prog_CPP=$CPP |
| 3566 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3567 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3568 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3569 | ac_preproc_ok=false |
| 3570 | for ac_c_preproc_warn_flag in '' yes |
| 3571 | do |
| 3572 | # Use a header file that comes with gcc, so configuring glibc |
| 3573 | # with a fresh cross-compiler works. |
| 3574 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3575 | # <limits.h> exists even on freestanding compilers. |
| 3576 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3577 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3578 | cat >conftest.$ac_ext <<_ACEOF |
| 3579 | /* confdefs.h. */ |
| 3580 | _ACEOF |
| 3581 | cat confdefs.h >>conftest.$ac_ext |
| 3582 | cat >>conftest.$ac_ext <<_ACEOF |
| 3583 | /* end confdefs.h. */ |
| 3584 | #ifdef __STDC__ |
| 3585 | # include <limits.h> |
| 3586 | #else |
| 3587 | # include <assert.h> |
| 3588 | #endif |
| 3589 | Syntax error |
| 3590 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3591 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3592 | case "(($ac_try" in |
| 3593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3594 | *) ac_try_echo=$ac_try;; |
| 3595 | esac |
| 3596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3597 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3598 | ac_status=$? |
| 3599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3600 | rm -f conftest.er1 |
| 3601 | cat conftest.err >&5 |
| 3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3603 | (exit $ac_status); } >/dev/null; then |
| 3604 | if test -s conftest.err; then |
| 3605 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3606 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3607 | else |
| 3608 | ac_cpp_err= |
| 3609 | fi |
| 3610 | else |
| 3611 | ac_cpp_err=yes |
| 3612 | fi |
| 3613 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3614 | : |
| 3615 | else |
| 3616 | echo "$as_me: failed program was:" >&5 |
| 3617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3618 | |
| 3619 | # Broken: fails on valid input. |
| 3620 | continue |
| 3621 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3622 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3623 | rm -f conftest.err conftest.$ac_ext |
| 3624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3625 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3626 | # can be detected and how. |
| 3627 | cat >conftest.$ac_ext <<_ACEOF |
| 3628 | /* confdefs.h. */ |
| 3629 | _ACEOF |
| 3630 | cat confdefs.h >>conftest.$ac_ext |
| 3631 | cat >>conftest.$ac_ext <<_ACEOF |
| 3632 | /* end confdefs.h. */ |
| 3633 | #include <ac_nonexistent.h> |
| 3634 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3635 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3636 | case "(($ac_try" in |
| 3637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3638 | *) ac_try_echo=$ac_try;; |
| 3639 | esac |
| 3640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3641 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3642 | ac_status=$? |
| 3643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3644 | rm -f conftest.er1 |
| 3645 | cat conftest.err >&5 |
| 3646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3647 | (exit $ac_status); } >/dev/null; then |
| 3648 | if test -s conftest.err; then |
| 3649 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3650 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3651 | else |
| 3652 | ac_cpp_err= |
| 3653 | fi |
| 3654 | else |
| 3655 | ac_cpp_err=yes |
| 3656 | fi |
| 3657 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3658 | # Broken: success on invalid input. |
| 3659 | continue |
| 3660 | else |
| 3661 | echo "$as_me: failed program was:" >&5 |
| 3662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3663 | |
| 3664 | # Passes both tests. |
| 3665 | ac_preproc_ok=: |
| 3666 | break |
| 3667 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3668 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3669 | rm -f conftest.err conftest.$ac_ext |
| 3670 | |
| 3671 | done |
| 3672 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3673 | rm -f conftest.err conftest.$ac_ext |
| 3674 | if $ac_preproc_ok; then |
| 3675 | : |
| 3676 | else |
| 3677 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3678 | See \`config.log' for more details." >&5 |
| 3679 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3680 | See \`config.log' for more details." >&2;} |
| 3681 | { (exit 1); exit 1; }; } |
| 3682 | fi |
| 3683 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3684 | ac_ext=c |
| 3685 | ac_cpp='$CPP $CPPFLAGS' |
| 3686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3689 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3691 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3692 | 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] | 3693 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3695 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3696 | # Extract the first word of "grep ggrep" to use in msg output |
| 3697 | if test -z "$GREP"; then |
| 3698 | set dummy grep ggrep; ac_prog_name=$2 |
| 3699 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3701 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3702 | ac_path_GREP_found=false |
| 3703 | # 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] | 3704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3705 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3706 | do |
| 3707 | IFS=$as_save_IFS |
| 3708 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3709 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3710 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3711 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3712 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3713 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3714 | # Check for GNU $ac_path_GREP |
| 3715 | case `"$ac_path_GREP" --version 2>&1` in |
| 3716 | *GNU*) |
| 3717 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3718 | *) |
| 3719 | ac_count=0 |
| 3720 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3721 | while : |
| 3722 | do |
| 3723 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3724 | mv "conftest.tmp" "conftest.in" |
| 3725 | cp "conftest.in" "conftest.nl" |
| 3726 | echo 'GREP' >> "conftest.nl" |
| 3727 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3728 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3729 | ac_count=`expr $ac_count + 1` |
| 3730 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3731 | # Best one so far, save it but keep looking for a better one |
| 3732 | ac_cv_path_GREP="$ac_path_GREP" |
| 3733 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3734 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3735 | # 10*(2^10) chars as input seems more than enough |
| 3736 | test $ac_count -gt 10 && break |
| 3737 | done |
| 3738 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3739 | esac |
| 3740 | |
| 3741 | |
| 3742 | $ac_path_GREP_found && break 3 |
| 3743 | done |
| 3744 | done |
| 3745 | |
| 3746 | done |
| 3747 | IFS=$as_save_IFS |
| 3748 | |
| 3749 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3750 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3751 | |
| 3752 | GREP="$ac_cv_path_GREP" |
| 3753 | if test -z "$GREP"; then |
| 3754 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3755 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3756 | { (exit 1); exit 1; }; } |
| 3757 | fi |
| 3758 | |
| 3759 | else |
| 3760 | ac_cv_path_GREP=$GREP |
| 3761 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3762 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3763 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3764 | fi |
| 3765 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3766 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3767 | GREP="$ac_cv_path_GREP" |
| 3768 | |
| 3769 | |
| 3770 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3771 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3772 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3774 | else |
| 3775 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3776 | then ac_cv_path_EGREP="$GREP -E" |
| 3777 | else |
| 3778 | # Extract the first word of "egrep" to use in msg output |
| 3779 | if test -z "$EGREP"; then |
| 3780 | set dummy egrep; ac_prog_name=$2 |
| 3781 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3783 | else |
| 3784 | ac_path_EGREP_found=false |
| 3785 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3787 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3788 | do |
| 3789 | IFS=$as_save_IFS |
| 3790 | test -z "$as_dir" && as_dir=. |
| 3791 | for ac_prog in egrep; do |
| 3792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3793 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3794 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3795 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3796 | # Check for GNU $ac_path_EGREP |
| 3797 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3798 | *GNU*) |
| 3799 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3800 | *) |
| 3801 | ac_count=0 |
| 3802 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3803 | while : |
| 3804 | do |
| 3805 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3806 | mv "conftest.tmp" "conftest.in" |
| 3807 | cp "conftest.in" "conftest.nl" |
| 3808 | echo 'EGREP' >> "conftest.nl" |
| 3809 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3810 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3811 | ac_count=`expr $ac_count + 1` |
| 3812 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3813 | # Best one so far, save it but keep looking for a better one |
| 3814 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3815 | ac_path_EGREP_max=$ac_count |
| 3816 | fi |
| 3817 | # 10*(2^10) chars as input seems more than enough |
| 3818 | test $ac_count -gt 10 && break |
| 3819 | done |
| 3820 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3821 | esac |
| 3822 | |
| 3823 | |
| 3824 | $ac_path_EGREP_found && break 3 |
| 3825 | done |
| 3826 | done |
| 3827 | |
| 3828 | done |
| 3829 | IFS=$as_save_IFS |
| 3830 | |
| 3831 | |
| 3832 | fi |
| 3833 | |
| 3834 | EGREP="$ac_cv_path_EGREP" |
| 3835 | if test -z "$EGREP"; then |
| 3836 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3837 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3838 | { (exit 1); exit 1; }; } |
| 3839 | fi |
| 3840 | |
| 3841 | else |
| 3842 | ac_cv_path_EGREP=$EGREP |
| 3843 | fi |
| 3844 | |
| 3845 | |
| 3846 | fi |
| 3847 | fi |
| 3848 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3849 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3850 | EGREP="$ac_cv_path_EGREP" |
| 3851 | |
| 3852 | |
| 3853 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3854 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3855 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3857 | else |
| 3858 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3859 | /* confdefs.h. */ |
| 3860 | _ACEOF |
| 3861 | cat confdefs.h >>conftest.$ac_ext |
| 3862 | cat >>conftest.$ac_ext <<_ACEOF |
| 3863 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3864 | #include <stdlib.h> |
| 3865 | #include <stdarg.h> |
| 3866 | #include <string.h> |
| 3867 | #include <float.h> |
| 3868 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3869 | int |
| 3870 | main () |
| 3871 | { |
| 3872 | |
| 3873 | ; |
| 3874 | return 0; |
| 3875 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3876 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3877 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3878 | if { (ac_try="$ac_compile" |
| 3879 | case "(($ac_try" in |
| 3880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3881 | *) ac_try_echo=$ac_try;; |
| 3882 | esac |
| 3883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3884 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3885 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3887 | rm -f conftest.er1 |
| 3888 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3890 | (exit $ac_status); } && |
| 3891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3892 | { (case "(($ac_try" in |
| 3893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3894 | *) ac_try_echo=$ac_try;; |
| 3895 | esac |
| 3896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3897 | (eval "$ac_try") 2>&5 |
| 3898 | ac_status=$? |
| 3899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3900 | (exit $ac_status); }; } && |
| 3901 | { ac_try='test -s conftest.$ac_objext' |
| 3902 | { (case "(($ac_try" in |
| 3903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3904 | *) ac_try_echo=$ac_try;; |
| 3905 | esac |
| 3906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3907 | (eval "$ac_try") 2>&5 |
| 3908 | ac_status=$? |
| 3909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3910 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3911 | ac_cv_header_stdc=yes |
| 3912 | else |
| 3913 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3916 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3917 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3918 | |
| 3919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3920 | |
| 3921 | if test $ac_cv_header_stdc = yes; then |
| 3922 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3923 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3924 | /* confdefs.h. */ |
| 3925 | _ACEOF |
| 3926 | cat confdefs.h >>conftest.$ac_ext |
| 3927 | cat >>conftest.$ac_ext <<_ACEOF |
| 3928 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3929 | #include <string.h> |
| 3930 | |
| 3931 | _ACEOF |
| 3932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3933 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3934 | : |
| 3935 | else |
| 3936 | ac_cv_header_stdc=no |
| 3937 | fi |
| 3938 | rm -f conftest* |
| 3939 | |
| 3940 | fi |
| 3941 | |
| 3942 | if test $ac_cv_header_stdc = yes; then |
| 3943 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3944 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3945 | /* confdefs.h. */ |
| 3946 | _ACEOF |
| 3947 | cat confdefs.h >>conftest.$ac_ext |
| 3948 | cat >>conftest.$ac_ext <<_ACEOF |
| 3949 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3950 | #include <stdlib.h> |
| 3951 | |
| 3952 | _ACEOF |
| 3953 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3954 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3955 | : |
| 3956 | else |
| 3957 | ac_cv_header_stdc=no |
| 3958 | fi |
| 3959 | rm -f conftest* |
| 3960 | |
| 3961 | fi |
| 3962 | |
| 3963 | if test $ac_cv_header_stdc = yes; then |
| 3964 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3965 | if test "$cross_compiling" = yes; then |
| 3966 | : |
| 3967 | else |
| 3968 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3969 | /* confdefs.h. */ |
| 3970 | _ACEOF |
| 3971 | cat confdefs.h >>conftest.$ac_ext |
| 3972 | cat >>conftest.$ac_ext <<_ACEOF |
| 3973 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3974 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3975 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3976 | #if ((' ' & 0x0FF) == 0x020) |
| 3977 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3978 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3979 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3980 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3981 | (('a' <= (c) && (c) <= 'i') \ |
| 3982 | || ('j' <= (c) && (c) <= 'r') \ |
| 3983 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3984 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3985 | #endif |
| 3986 | |
| 3987 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3988 | int |
| 3989 | main () |
| 3990 | { |
| 3991 | int i; |
| 3992 | for (i = 0; i < 256; i++) |
| 3993 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3994 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3995 | return 2; |
| 3996 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3997 | } |
| 3998 | _ACEOF |
| 3999 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4000 | if { (ac_try="$ac_link" |
| 4001 | case "(($ac_try" in |
| 4002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4003 | *) ac_try_echo=$ac_try;; |
| 4004 | esac |
| 4005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4006 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4007 | ac_status=$? |
| 4008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4009 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4010 | { (case "(($ac_try" in |
| 4011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4012 | *) ac_try_echo=$ac_try;; |
| 4013 | esac |
| 4014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4015 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4016 | ac_status=$? |
| 4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4018 | (exit $ac_status); }; }; then |
| 4019 | : |
| 4020 | else |
| 4021 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4022 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4024 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4025 | ( exit $ac_status ) |
| 4026 | ac_cv_header_stdc=no |
| 4027 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4028 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4029 | fi |
| 4030 | |
| 4031 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4032 | fi |
| 4033 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4034 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4035 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4036 | if test $ac_cv_header_stdc = yes; then |
| 4037 | |
| 4038 | cat >>confdefs.h <<\_ACEOF |
| 4039 | #define STDC_HEADERS 1 |
| 4040 | _ACEOF |
| 4041 | |
| 4042 | fi |
| 4043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4044 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4045 | |
| 4046 | |
| 4047 | |
| 4048 | |
| 4049 | |
| 4050 | |
| 4051 | |
| 4052 | |
| 4053 | |
| 4054 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4055 | inttypes.h stdint.h unistd.h |
| 4056 | do |
| 4057 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4058 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4059 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4060 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4062 | else |
| 4063 | cat >conftest.$ac_ext <<_ACEOF |
| 4064 | /* confdefs.h. */ |
| 4065 | _ACEOF |
| 4066 | cat confdefs.h >>conftest.$ac_ext |
| 4067 | cat >>conftest.$ac_ext <<_ACEOF |
| 4068 | /* end confdefs.h. */ |
| 4069 | $ac_includes_default |
| 4070 | |
| 4071 | #include <$ac_header> |
| 4072 | _ACEOF |
| 4073 | rm -f conftest.$ac_objext |
| 4074 | if { (ac_try="$ac_compile" |
| 4075 | case "(($ac_try" in |
| 4076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4077 | *) ac_try_echo=$ac_try;; |
| 4078 | esac |
| 4079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4080 | (eval "$ac_compile") 2>conftest.er1 |
| 4081 | ac_status=$? |
| 4082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4083 | rm -f conftest.er1 |
| 4084 | cat conftest.err >&5 |
| 4085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4086 | (exit $ac_status); } && |
| 4087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4088 | { (case "(($ac_try" in |
| 4089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4090 | *) ac_try_echo=$ac_try;; |
| 4091 | esac |
| 4092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4093 | (eval "$ac_try") 2>&5 |
| 4094 | ac_status=$? |
| 4095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4096 | (exit $ac_status); }; } && |
| 4097 | { ac_try='test -s conftest.$ac_objext' |
| 4098 | { (case "(($ac_try" in |
| 4099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4100 | *) ac_try_echo=$ac_try;; |
| 4101 | esac |
| 4102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4103 | (eval "$ac_try") 2>&5 |
| 4104 | ac_status=$? |
| 4105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4106 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4107 | eval "$as_ac_Header=yes" |
| 4108 | else |
| 4109 | echo "$as_me: failed program was:" >&5 |
| 4110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4111 | |
| 4112 | eval "$as_ac_Header=no" |
| 4113 | fi |
| 4114 | |
| 4115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4116 | fi |
| 4117 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4118 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4119 | echo "${ECHO_T}$ac_res" >&6; } |
| 4120 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4121 | cat >>confdefs.h <<_ACEOF |
| 4122 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4123 | _ACEOF |
| 4124 | |
| 4125 | fi |
| 4126 | |
| 4127 | done |
| 4128 | |
| 4129 | |
| 4130 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4131 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4132 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4134 | else |
| 4135 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4136 | cat >conftest.$ac_ext <<_ACEOF |
| 4137 | /* confdefs.h. */ |
| 4138 | _ACEOF |
| 4139 | cat confdefs.h >>conftest.$ac_ext |
| 4140 | cat >>conftest.$ac_ext <<_ACEOF |
| 4141 | /* end confdefs.h. */ |
| 4142 | #include <sys/types.h> |
| 4143 | #include <sys/param.h> |
| 4144 | |
| 4145 | int |
| 4146 | main () |
| 4147 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4148 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4149 | bogus endian macros |
| 4150 | #endif |
| 4151 | |
| 4152 | ; |
| 4153 | return 0; |
| 4154 | } |
| 4155 | _ACEOF |
| 4156 | rm -f conftest.$ac_objext |
| 4157 | if { (ac_try="$ac_compile" |
| 4158 | case "(($ac_try" in |
| 4159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4160 | *) ac_try_echo=$ac_try;; |
| 4161 | esac |
| 4162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4163 | (eval "$ac_compile") 2>conftest.er1 |
| 4164 | ac_status=$? |
| 4165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4166 | rm -f conftest.er1 |
| 4167 | cat conftest.err >&5 |
| 4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4169 | (exit $ac_status); } && |
| 4170 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4171 | { (case "(($ac_try" in |
| 4172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4173 | *) ac_try_echo=$ac_try;; |
| 4174 | esac |
| 4175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4176 | (eval "$ac_try") 2>&5 |
| 4177 | ac_status=$? |
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4179 | (exit $ac_status); }; } && |
| 4180 | { ac_try='test -s conftest.$ac_objext' |
| 4181 | { (case "(($ac_try" in |
| 4182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4183 | *) ac_try_echo=$ac_try;; |
| 4184 | esac |
| 4185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4186 | (eval "$ac_try") 2>&5 |
| 4187 | ac_status=$? |
| 4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4189 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4190 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4191 | cat >conftest.$ac_ext <<_ACEOF |
| 4192 | /* confdefs.h. */ |
| 4193 | _ACEOF |
| 4194 | cat confdefs.h >>conftest.$ac_ext |
| 4195 | cat >>conftest.$ac_ext <<_ACEOF |
| 4196 | /* end confdefs.h. */ |
| 4197 | #include <sys/types.h> |
| 4198 | #include <sys/param.h> |
| 4199 | |
| 4200 | int |
| 4201 | main () |
| 4202 | { |
| 4203 | #if BYTE_ORDER != BIG_ENDIAN |
| 4204 | not big endian |
| 4205 | #endif |
| 4206 | |
| 4207 | ; |
| 4208 | return 0; |
| 4209 | } |
| 4210 | _ACEOF |
| 4211 | rm -f conftest.$ac_objext |
| 4212 | if { (ac_try="$ac_compile" |
| 4213 | case "(($ac_try" in |
| 4214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4215 | *) ac_try_echo=$ac_try;; |
| 4216 | esac |
| 4217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4218 | (eval "$ac_compile") 2>conftest.er1 |
| 4219 | ac_status=$? |
| 4220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4221 | rm -f conftest.er1 |
| 4222 | cat conftest.err >&5 |
| 4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4224 | (exit $ac_status); } && |
| 4225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4226 | { (case "(($ac_try" in |
| 4227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4228 | *) ac_try_echo=$ac_try;; |
| 4229 | esac |
| 4230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4231 | (eval "$ac_try") 2>&5 |
| 4232 | ac_status=$? |
| 4233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4234 | (exit $ac_status); }; } && |
| 4235 | { ac_try='test -s conftest.$ac_objext' |
| 4236 | { (case "(($ac_try" in |
| 4237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4238 | *) ac_try_echo=$ac_try;; |
| 4239 | esac |
| 4240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4241 | (eval "$ac_try") 2>&5 |
| 4242 | ac_status=$? |
| 4243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4244 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4245 | ac_cv_c_bigendian=yes |
| 4246 | else |
| 4247 | echo "$as_me: failed program was:" >&5 |
| 4248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4249 | |
| 4250 | ac_cv_c_bigendian=no |
| 4251 | fi |
| 4252 | |
| 4253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4254 | else |
| 4255 | echo "$as_me: failed program was:" >&5 |
| 4256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4257 | |
| 4258 | # It does not; compile a test program. |
| 4259 | if test "$cross_compiling" = yes; then |
| 4260 | # try to guess the endianness by grepping values into an object file |
| 4261 | ac_cv_c_bigendian=unknown |
| 4262 | cat >conftest.$ac_ext <<_ACEOF |
| 4263 | /* confdefs.h. */ |
| 4264 | _ACEOF |
| 4265 | cat confdefs.h >>conftest.$ac_ext |
| 4266 | cat >>conftest.$ac_ext <<_ACEOF |
| 4267 | /* end confdefs.h. */ |
| 4268 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4269 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4270 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4271 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4272 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4273 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4274 | int |
| 4275 | main () |
| 4276 | { |
| 4277 | _ascii (); _ebcdic (); |
| 4278 | ; |
| 4279 | return 0; |
| 4280 | } |
| 4281 | _ACEOF |
| 4282 | rm -f conftest.$ac_objext |
| 4283 | if { (ac_try="$ac_compile" |
| 4284 | case "(($ac_try" in |
| 4285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4286 | *) ac_try_echo=$ac_try;; |
| 4287 | esac |
| 4288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4289 | (eval "$ac_compile") 2>conftest.er1 |
| 4290 | ac_status=$? |
| 4291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4292 | rm -f conftest.er1 |
| 4293 | cat conftest.err >&5 |
| 4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4295 | (exit $ac_status); } && |
| 4296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4297 | { (case "(($ac_try" in |
| 4298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4299 | *) ac_try_echo=$ac_try;; |
| 4300 | esac |
| 4301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4302 | (eval "$ac_try") 2>&5 |
| 4303 | ac_status=$? |
| 4304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4305 | (exit $ac_status); }; } && |
| 4306 | { ac_try='test -s conftest.$ac_objext' |
| 4307 | { (case "(($ac_try" in |
| 4308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4309 | *) ac_try_echo=$ac_try;; |
| 4310 | esac |
| 4311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4312 | (eval "$ac_try") 2>&5 |
| 4313 | ac_status=$? |
| 4314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4315 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4316 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4317 | ac_cv_c_bigendian=yes |
| 4318 | fi |
| 4319 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4320 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4321 | ac_cv_c_bigendian=no |
| 4322 | else |
| 4323 | # finding both strings is unlikely to happen, but who knows? |
| 4324 | ac_cv_c_bigendian=unknown |
| 4325 | fi |
| 4326 | fi |
| 4327 | else |
| 4328 | echo "$as_me: failed program was:" >&5 |
| 4329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4330 | |
| 4331 | |
| 4332 | fi |
| 4333 | |
| 4334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4335 | else |
| 4336 | cat >conftest.$ac_ext <<_ACEOF |
| 4337 | /* confdefs.h. */ |
| 4338 | _ACEOF |
| 4339 | cat confdefs.h >>conftest.$ac_ext |
| 4340 | cat >>conftest.$ac_ext <<_ACEOF |
| 4341 | /* end confdefs.h. */ |
| 4342 | $ac_includes_default |
| 4343 | int |
| 4344 | main () |
| 4345 | { |
| 4346 | |
| 4347 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4348 | union |
| 4349 | { |
| 4350 | long int l; |
| 4351 | char c[sizeof (long int)]; |
| 4352 | } u; |
| 4353 | u.l = 1; |
| 4354 | return u.c[sizeof (long int) - 1] == 1; |
| 4355 | |
| 4356 | ; |
| 4357 | return 0; |
| 4358 | } |
| 4359 | _ACEOF |
| 4360 | rm -f conftest$ac_exeext |
| 4361 | if { (ac_try="$ac_link" |
| 4362 | case "(($ac_try" in |
| 4363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4364 | *) ac_try_echo=$ac_try;; |
| 4365 | esac |
| 4366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4367 | (eval "$ac_link") 2>&5 |
| 4368 | ac_status=$? |
| 4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4370 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4371 | { (case "(($ac_try" in |
| 4372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4373 | *) ac_try_echo=$ac_try;; |
| 4374 | esac |
| 4375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4376 | (eval "$ac_try") 2>&5 |
| 4377 | ac_status=$? |
| 4378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4379 | (exit $ac_status); }; }; then |
| 4380 | ac_cv_c_bigendian=no |
| 4381 | else |
| 4382 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4383 | echo "$as_me: failed program was:" >&5 |
| 4384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4385 | |
| 4386 | ( exit $ac_status ) |
| 4387 | ac_cv_c_bigendian=yes |
| 4388 | fi |
| 4389 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4390 | fi |
| 4391 | |
| 4392 | |
| 4393 | fi |
| 4394 | |
| 4395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4396 | fi |
| 4397 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4398 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4399 | case $ac_cv_c_bigendian in |
| 4400 | yes) |
| 4401 | ENDIAN=big |
| 4402 | ;; |
| 4403 | no) |
| 4404 | ENDIAN=little |
| 4405 | ;; |
| 4406 | *) |
| 4407 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4408 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4409 | echo "$as_me: error: unknown endianness |
| 4410 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4411 | { (exit 1); exit 1; }; } ;; |
| 4412 | esac |
| 4413 | |
| 4414 | |
| 4415 | if test "$cross_compiling" = yes; then |
| 4416 | LLVM_CROSS_COMPILING=1 |
| 4417 | |
| 4418 | |
| 4419 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4420 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4421 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4423 | else |
| 4424 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4425 | ac_cv_build_exeext=.exe |
| 4426 | else |
| 4427 | ac_build_prefix=${build_alias}- |
| 4428 | |
| 4429 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4430 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4431 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4433 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4435 | else |
| 4436 | if test -n "$BUILD_CC"; then |
| 4437 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4438 | else |
| 4439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4440 | for as_dir in $PATH |
| 4441 | do |
| 4442 | IFS=$as_save_IFS |
| 4443 | test -z "$as_dir" && as_dir=. |
| 4444 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4445 | 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] | 4446 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4448 | break 2 |
| 4449 | fi |
| 4450 | done |
| 4451 | done |
| 4452 | IFS=$as_save_IFS |
| 4453 | |
| 4454 | fi |
| 4455 | fi |
| 4456 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4457 | if test -n "$BUILD_CC"; then |
| 4458 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4459 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4460 | else |
| 4461 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4462 | echo "${ECHO_T}no" >&6; } |
| 4463 | fi |
| 4464 | |
| 4465 | |
| 4466 | if test -z "$BUILD_CC"; then |
| 4467 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4468 | set dummy gcc; ac_word=$2 |
| 4469 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4471 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4473 | else |
| 4474 | if test -n "$BUILD_CC"; then |
| 4475 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4476 | else |
| 4477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4478 | for as_dir in $PATH |
| 4479 | do |
| 4480 | IFS=$as_save_IFS |
| 4481 | test -z "$as_dir" && as_dir=. |
| 4482 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4483 | 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] | 4484 | ac_cv_prog_BUILD_CC="gcc" |
| 4485 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4486 | break 2 |
| 4487 | fi |
| 4488 | done |
| 4489 | done |
| 4490 | IFS=$as_save_IFS |
| 4491 | |
| 4492 | fi |
| 4493 | fi |
| 4494 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4495 | if test -n "$BUILD_CC"; then |
| 4496 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4497 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4498 | else |
| 4499 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4500 | echo "${ECHO_T}no" >&6; } |
| 4501 | fi |
| 4502 | |
| 4503 | |
| 4504 | if test -z "$BUILD_CC"; then |
| 4505 | # Extract the first word of "cc", so it can be a program name with args. |
| 4506 | set dummy cc; ac_word=$2 |
| 4507 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4509 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4511 | else |
| 4512 | if test -n "$BUILD_CC"; then |
| 4513 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4514 | else |
| 4515 | ac_prog_rejected=no |
| 4516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4517 | for as_dir in $PATH |
| 4518 | do |
| 4519 | IFS=$as_save_IFS |
| 4520 | test -z "$as_dir" && as_dir=. |
| 4521 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4522 | 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] | 4523 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4524 | ac_prog_rejected=yes |
| 4525 | continue |
| 4526 | fi |
| 4527 | ac_cv_prog_BUILD_CC="cc" |
| 4528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4529 | break 2 |
| 4530 | fi |
| 4531 | done |
| 4532 | done |
| 4533 | IFS=$as_save_IFS |
| 4534 | |
| 4535 | if test $ac_prog_rejected = yes; then |
| 4536 | # We found a bogon in the path, so make sure we never use it. |
| 4537 | set dummy $ac_cv_prog_BUILD_CC |
| 4538 | shift |
| 4539 | if test $# != 0; then |
| 4540 | # We chose a different compiler from the bogus one. |
| 4541 | # However, it has the same basename, so the bogon will be chosen |
| 4542 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4543 | shift |
| 4544 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4545 | fi |
| 4546 | fi |
| 4547 | fi |
| 4548 | fi |
| 4549 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4550 | if test -n "$BUILD_CC"; then |
| 4551 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4552 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4553 | else |
| 4554 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4555 | echo "${ECHO_T}no" >&6; } |
| 4556 | fi |
| 4557 | |
| 4558 | |
| 4559 | fi |
| 4560 | fi |
| 4561 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4562 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4563 | { (exit 1); exit 1; }; } |
| 4564 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4565 | rm -f conftest* |
| 4566 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4567 | ac_cv_build_exeext= |
| 4568 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4569 | (eval $ac_build_link) 2>&5 |
| 4570 | ac_status=$? |
| 4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4572 | (exit $ac_status); }; then |
| 4573 | for file in conftest.*; do |
| 4574 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4575 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4576 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4577 | esac |
| 4578 | done |
| 4579 | else |
| 4580 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4581 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4582 | { (exit 1); exit 1; }; } |
| 4583 | fi |
| 4584 | rm -f conftest* |
| 4585 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4586 | fi |
| 4587 | fi |
| 4588 | |
| 4589 | BUILD_EXEEXT="" |
| 4590 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4591 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4592 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4593 | ac_build_exeext=$BUILD_EXEEXT |
| 4594 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4595 | ac_build_prefix=${build_alias}- |
| 4596 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4597 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
| 4598 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4600 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4602 | else |
| 4603 | if test -n "$BUILD_CXX"; then |
| 4604 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4605 | else |
| 4606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4607 | for as_dir in $PATH |
| 4608 | do |
| 4609 | IFS=$as_save_IFS |
| 4610 | test -z "$as_dir" && as_dir=. |
| 4611 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4612 | 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] | 4613 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
| 4614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4615 | break 2 |
| 4616 | fi |
| 4617 | done |
| 4618 | done |
| 4619 | IFS=$as_save_IFS |
| 4620 | |
| 4621 | fi |
| 4622 | fi |
| 4623 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4624 | if test -n "$BUILD_CXX"; then |
| 4625 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4626 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4627 | else |
| 4628 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4629 | echo "${ECHO_T}no" >&6; } |
| 4630 | fi |
| 4631 | |
| 4632 | |
| 4633 | if test -z "$BUILD_CXX"; then |
| 4634 | # Extract the first word of "g++", so it can be a program name with args. |
| 4635 | set dummy g++; ac_word=$2 |
| 4636 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4638 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4640 | else |
| 4641 | if test -n "$BUILD_CXX"; then |
| 4642 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4643 | else |
| 4644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4645 | for as_dir in $PATH |
| 4646 | do |
| 4647 | IFS=$as_save_IFS |
| 4648 | test -z "$as_dir" && as_dir=. |
| 4649 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4650 | 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] | 4651 | ac_cv_prog_BUILD_CXX="g++" |
| 4652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4653 | break 2 |
| 4654 | fi |
| 4655 | done |
| 4656 | done |
| 4657 | IFS=$as_save_IFS |
| 4658 | |
| 4659 | fi |
| 4660 | fi |
| 4661 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4662 | if test -n "$BUILD_CXX"; then |
| 4663 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4664 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4665 | else |
| 4666 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4667 | echo "${ECHO_T}no" >&6; } |
| 4668 | fi |
| 4669 | |
| 4670 | |
| 4671 | if test -z "$BUILD_CXX"; then |
| 4672 | # Extract the first word of "c++", so it can be a program name with args. |
| 4673 | set dummy c++; ac_word=$2 |
| 4674 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4676 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4678 | else |
| 4679 | if test -n "$BUILD_CXX"; then |
| 4680 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4681 | else |
| 4682 | ac_prog_rejected=no |
| 4683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4684 | for as_dir in $PATH |
| 4685 | do |
| 4686 | IFS=$as_save_IFS |
| 4687 | test -z "$as_dir" && as_dir=. |
| 4688 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4689 | 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] | 4690 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4691 | ac_prog_rejected=yes |
| 4692 | continue |
| 4693 | fi |
| 4694 | ac_cv_prog_BUILD_CXX="c++" |
| 4695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4696 | break 2 |
| 4697 | fi |
| 4698 | done |
| 4699 | done |
| 4700 | IFS=$as_save_IFS |
| 4701 | |
| 4702 | if test $ac_prog_rejected = yes; then |
| 4703 | # We found a bogon in the path, so make sure we never use it. |
| 4704 | set dummy $ac_cv_prog_BUILD_CXX |
| 4705 | shift |
| 4706 | if test $# != 0; then |
| 4707 | # We chose a different compiler from the bogus one. |
| 4708 | # However, it has the same basename, so the bogon will be chosen |
| 4709 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4710 | shift |
| 4711 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4712 | fi |
| 4713 | fi |
| 4714 | fi |
| 4715 | fi |
| 4716 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4717 | if test -n "$BUILD_CXX"; then |
| 4718 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4719 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4720 | else |
| 4721 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4722 | echo "${ECHO_T}no" >&6; } |
| 4723 | fi |
| 4724 | |
| 4725 | |
| 4726 | fi |
| 4727 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4728 | else |
| 4729 | LLVM_CROSS_COMPILING=0 |
| 4730 | |
| 4731 | fi |
| 4732 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4733 | 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] | 4734 | cvsbuild="yes" |
| 4735 | optimize="no" |
| 4736 | CVSBUILD=CVSBUILD=1 |
| 4737 | |
| 4738 | else |
| 4739 | cvsbuild="no" |
| 4740 | optimize="yes" |
| 4741 | fi |
| 4742 | |
| 4743 | |
| 4744 | # Check whether --enable-optimized was given. |
| 4745 | if test "${enable_optimized+set}" = set; then |
| 4746 | enableval=$enable_optimized; |
| 4747 | else |
| 4748 | enableval=$optimize |
| 4749 | fi |
| 4750 | |
| 4751 | if test ${enableval} = "no" ; then |
| 4752 | ENABLE_OPTIMIZED= |
| 4753 | |
| 4754 | else |
| 4755 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4756 | |
| 4757 | fi |
| 4758 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4759 | # Check whether --enable-profiling was given. |
| 4760 | if test "${enable_profiling+set}" = set; then |
| 4761 | enableval=$enable_profiling; |
| 4762 | else |
| 4763 | enableval="no" |
| 4764 | fi |
| 4765 | |
| 4766 | if test ${enableval} = "no" ; then |
| 4767 | ENABLE_PROFILING= |
| 4768 | |
| 4769 | else |
| 4770 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4771 | |
| 4772 | fi |
| 4773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4774 | # Check whether --enable-assertions was given. |
| 4775 | if test "${enable_assertions+set}" = set; then |
| 4776 | enableval=$enable_assertions; |
| 4777 | else |
| 4778 | enableval="yes" |
| 4779 | fi |
| 4780 | |
| 4781 | if test ${enableval} = "yes" ; then |
| 4782 | DISABLE_ASSERTIONS= |
| 4783 | |
| 4784 | else |
| 4785 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4786 | |
| 4787 | fi |
| 4788 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4789 | # Check whether --enable-expensive-checks was given. |
| 4790 | if test "${enable_expensive_checks+set}" = set; then |
| 4791 | enableval=$enable_expensive_checks; |
| 4792 | else |
| 4793 | enableval="no" |
| 4794 | fi |
| 4795 | |
| 4796 | if test ${enableval} = "yes" ; then |
| 4797 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4798 | |
| 4799 | EXPENSIVE_CHECKS=yes |
| 4800 | |
| 4801 | else |
| 4802 | ENABLE_EXPENSIVE_CHECKS= |
| 4803 | |
| 4804 | EXPENSIVE_CHECKS=no |
| 4805 | |
| 4806 | fi |
| 4807 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4808 | # Check whether --enable-debug-runtime was given. |
| 4809 | if test "${enable_debug_runtime+set}" = set; then |
| 4810 | enableval=$enable_debug_runtime; |
| 4811 | else |
| 4812 | enableval=no |
| 4813 | fi |
| 4814 | |
| 4815 | if test ${enableval} = "no" ; then |
| 4816 | DEBUG_RUNTIME= |
| 4817 | |
| 4818 | else |
| 4819 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4820 | |
| 4821 | fi |
| 4822 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4823 | # Check whether --enable-jit was given. |
| 4824 | if test "${enable_jit+set}" = set; then |
| 4825 | enableval=$enable_jit; |
| 4826 | else |
| 4827 | enableval=default |
| 4828 | fi |
| 4829 | |
| 4830 | if test ${enableval} = "no" |
| 4831 | then |
| 4832 | JIT= |
| 4833 | |
| 4834 | else |
| 4835 | case "$llvm_cv_target_arch" in |
| 4836 | x86) TARGET_HAS_JIT=1 |
| 4837 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4838 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4839 | ;; |
| 4840 | PowerPC) TARGET_HAS_JIT=1 |
| 4841 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4842 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4843 | ;; |
| 4844 | Alpha) TARGET_HAS_JIT=1 |
| 4845 | ;; |
| 4846 | IA64) TARGET_HAS_JIT=0 |
| 4847 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4848 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4849 | ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4850 | Mips) TARGET_HAS_JIT=0 |
| 4851 | ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4852 | PIC16) TARGET_HAS_JIT=0 |
| 4853 | ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4854 | XCore) TARGET_HAS_JIT=0 |
| 4855 | ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4856 | MSP430) TARGET_HAS_JIT=0 |
| 4857 | ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4858 | SystemZ) TARGET_HAS_JIT=0 |
| 4859 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4860 | *) TARGET_HAS_JIT=0 |
| 4861 | ;; |
| 4862 | esac |
| 4863 | fi |
| 4864 | |
| 4865 | # Check whether --enable-doxygen was given. |
| 4866 | if test "${enable_doxygen+set}" = set; then |
| 4867 | enableval=$enable_doxygen; |
| 4868 | else |
| 4869 | enableval=default |
| 4870 | fi |
| 4871 | |
| 4872 | case "$enableval" in |
| 4873 | yes) ENABLE_DOXYGEN=1 |
| 4874 | ;; |
| 4875 | no) ENABLE_DOXYGEN=0 |
| 4876 | ;; |
| 4877 | default) ENABLE_DOXYGEN=0 |
| 4878 | ;; |
| 4879 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4880 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4881 | { (exit 1); exit 1; }; } ;; |
| 4882 | esac |
| 4883 | |
| 4884 | # Check whether --enable-threads was given. |
| 4885 | if test "${enable_threads+set}" = set; then |
| 4886 | enableval=$enable_threads; |
| 4887 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4888 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4889 | fi |
| 4890 | |
| 4891 | case "$enableval" in |
| 4892 | yes) ENABLE_THREADS=1 |
| 4893 | ;; |
| 4894 | no) ENABLE_THREADS=0 |
| 4895 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4896 | default) ENABLE_THREADS=1 |
| 4897 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4898 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4899 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4900 | { (exit 1); exit 1; }; } ;; |
| 4901 | esac |
| 4902 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4903 | cat >>confdefs.h <<_ACEOF |
| 4904 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4905 | _ACEOF |
| 4906 | |
| 4907 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4908 | # Check whether --enable-pic was given. |
| 4909 | if test "${enable_pic+set}" = set; then |
| 4910 | enableval=$enable_pic; |
| 4911 | else |
| 4912 | enableval=default |
| 4913 | fi |
| 4914 | |
| 4915 | case "$enableval" in |
| 4916 | yes) ENABLE_PIC=1 |
| 4917 | ;; |
| 4918 | no) ENABLE_PIC=0 |
| 4919 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4920 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4921 | ;; |
| 4922 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4923 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4924 | { (exit 1); exit 1; }; } ;; |
| 4925 | esac |
| 4926 | |
| 4927 | cat >>confdefs.h <<_ACEOF |
| 4928 | #define ENABLE_PIC $ENABLE_PIC |
| 4929 | _ACEOF |
| 4930 | |
| 4931 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4932 | TARGETS_TO_BUILD="" |
| 4933 | # Check whether --enable-targets was given. |
| 4934 | if test "${enable_targets+set}" = set; then |
| 4935 | enableval=$enable_targets; |
| 4936 | else |
| 4937 | enableval=all |
| 4938 | fi |
| 4939 | |
| 4940 | case "$enableval" in |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4941 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 SystemZ CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4942 | host-only) |
| 4943 | case "$llvm_cv_target_arch" in |
| 4944 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4945 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4946 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4947 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4948 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4949 | IA64) TARGETS_TO_BUILD="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4950 | ARM) TARGETS_TO_BUILD="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4951 | Mips) TARGETS_TO_BUILD="Mips" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4952 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4953 | PIC16) TARGETS_TO_BUILD="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4954 | XCore) TARGETS_TO_BUILD="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4955 | MSP430) TARGETS_TO_BUILD="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4956 | SystemZ) TARGETS_TO_BUILD="SystemZ" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4957 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4958 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4959 | { (exit 1); exit 1; }; } ;; |
| 4960 | esac |
| 4961 | ;; |
| 4962 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4963 | case "$a_target" in |
| 4964 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4965 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4966 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4967 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4968 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4969 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4970 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4971 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4972 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4973 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4974 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4975 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4976 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame] | 4977 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4978 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 4979 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4980 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4981 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4982 | { (exit 1); exit 1; }; } ;; |
| 4983 | esac |
| 4984 | done |
| 4985 | ;; |
| 4986 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4987 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4988 | |
| 4989 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4990 | # Determine whether we are building LLVM support for the native architecture. |
| 4991 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4992 | for a_target in $TARGETS_TO_BUILD; do |
| 4993 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4994 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4995 | |
| 4996 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4997 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4998 | _ACEOF |
| 4999 | |
| 5000 | fi |
| 5001 | done |
| 5002 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5003 | # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5004 | # Targets.def, AsmPrinters.def, and AsmParsers.def. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5005 | LLVM_ENUM_TARGETS="" |
| 5006 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5007 | LLVM_ENUM_ASM_PARSERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5008 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5009 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5010 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5011 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5012 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5013 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5014 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5015 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5016 | done |
| 5017 | |
| 5018 | |
| 5019 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5020 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5021 | # Check whether --enable-cbe-printf-a was given. |
| 5022 | if test "${enable_cbe_printf_a+set}" = set; then |
| 5023 | enableval=$enable_cbe_printf_a; |
| 5024 | else |
| 5025 | enableval=default |
| 5026 | fi |
| 5027 | |
| 5028 | case "$enableval" in |
| 5029 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5030 | ;; |
| 5031 | no) ENABLE_CBE_PRINTF_A=0 |
| 5032 | ;; |
| 5033 | default) ENABLE_CBE_PRINTF_A=1 |
| 5034 | ;; |
| 5035 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5036 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5037 | { (exit 1); exit 1; }; } ;; |
| 5038 | esac |
| 5039 | |
| 5040 | cat >>confdefs.h <<_ACEOF |
| 5041 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5042 | _ACEOF |
| 5043 | |
| 5044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5045 | |
| 5046 | # Check whether --with-llvmgccdir was given. |
| 5047 | if test "${with_llvmgccdir+set}" = set; then |
| 5048 | withval=$with_llvmgccdir; |
| 5049 | else |
| 5050 | withval=default |
| 5051 | fi |
| 5052 | |
| 5053 | case "$withval" in |
| 5054 | default) WITH_LLVMGCCDIR=default ;; |
| 5055 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 5056 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5057 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5058 | { (exit 1); exit 1; }; } ;; |
| 5059 | esac |
| 5060 | |
| 5061 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5062 | # Check whether --with-llvmgcc was given. |
| 5063 | if test "${with_llvmgcc+set}" = set; then |
| 5064 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5065 | WITH_LLVMGCCDIR="" |
| 5066 | fi |
| 5067 | |
| 5068 | |
| 5069 | |
| 5070 | # Check whether --with-llvmgxx was given. |
| 5071 | if test "${with_llvmgxx+set}" = set; then |
| 5072 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5073 | WITH_LLVMGCCDIR="" |
| 5074 | fi |
| 5075 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5076 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5077 | if test -n "$LLVMGCC"; then |
| 5078 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5079 | fi |
| 5080 | |
| 5081 | if test -n "$LLVMGXX"; then |
| 5082 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5083 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5084 | |
| 5085 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 5086 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5087 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5088 | { (exit 1); exit 1; }; }; |
| 5089 | fi |
| 5090 | |
| 5091 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 5092 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5093 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5094 | { (exit 1); exit 1; }; }; |
| 5095 | fi |
| 5096 | |
| 5097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5098 | # Check whether --with-extra-options was given. |
| 5099 | if test "${with_extra_options+set}" = set; then |
| 5100 | withval=$with_extra_options; |
| 5101 | else |
| 5102 | withval=default |
| 5103 | fi |
| 5104 | |
| 5105 | case "$withval" in |
| 5106 | default) EXTRA_OPTIONS= ;; |
| 5107 | *) EXTRA_OPTIONS=$withval ;; |
| 5108 | esac |
| 5109 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5110 | |
| 5111 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5112 | # Check whether --enable-bindings was given. |
| 5113 | if test "${enable_bindings+set}" = set; then |
| 5114 | enableval=$enable_bindings; |
| 5115 | else |
| 5116 | enableval=default |
| 5117 | fi |
| 5118 | |
| 5119 | BINDINGS_TO_BUILD="" |
| 5120 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5121 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5122 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5123 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5124 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5125 | case "$a_binding" in |
| 5126 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 5127 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5128 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5129 | { (exit 1); exit 1; }; } ;; |
| 5130 | esac |
| 5131 | done |
| 5132 | ;; |
| 5133 | esac |
| 5134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5135 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5136 | # Check whether --with-ocaml-libdir was given. |
| 5137 | if test "${with_ocaml_libdir+set}" = set; then |
| 5138 | withval=$with_ocaml_libdir; |
| 5139 | else |
| 5140 | withval=auto |
| 5141 | fi |
| 5142 | |
| 5143 | case "$withval" in |
| 5144 | auto) with_ocaml_libdir="$withval" ;; |
| 5145 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 5146 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5147 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5148 | { (exit 1); exit 1; }; } ;; |
| 5149 | esac |
| 5150 | |
| 5151 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5152 | # Check whether --with-binutils-include was given. |
| 5153 | if test "${with_binutils_include+set}" = set; then |
| 5154 | withval=$with_binutils_include; |
| 5155 | else |
| 5156 | withval=default |
| 5157 | fi |
| 5158 | |
| 5159 | case "$withval" in |
| 5160 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5161 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
| 5162 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5163 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5164 | { (exit 1); exit 1; }; } ;; |
| 5165 | esac |
| 5166 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5167 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5168 | |
| 5169 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5170 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
| 5171 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5172 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5173 | { (exit 1); exit 1; }; }; |
| 5174 | fi |
| 5175 | fi |
| 5176 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5177 | # Check whether --enable-libffi was given. |
| 5178 | if test "${enable_libffi+set}" = set; then |
| 5179 | enableval=$enable_libffi; |
| 5180 | else |
| 5181 | enableval=yes |
| 5182 | fi |
| 5183 | |
| 5184 | case "$enableval" in |
| 5185 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5186 | no) llvm_cv_enable_libffi="no" ;; |
| 5187 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 |
| 5188 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5189 | { (exit 1); exit 1; }; } ;; |
| 5190 | esac |
| 5191 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5192 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5193 | llvmc_dynamic="yes" |
| 5194 | else |
| 5195 | llvmc_dynamic="no" |
| 5196 | fi |
| 5197 | |
| 5198 | # Check whether --enable-llvmc-dynamic was given. |
| 5199 | if test "${enable_llvmc_dynamic+set}" = set; then |
| 5200 | enableval=$enable_llvmc_dynamic; |
| 5201 | else |
| 5202 | enableval=$llvmc_dynamic |
| 5203 | fi |
| 5204 | |
| 5205 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5206 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5207 | |
| 5208 | else |
| 5209 | ENABLE_LLVMC_DYNAMIC= |
| 5210 | |
| 5211 | fi |
| 5212 | |
| 5213 | # Check whether --enable-llvmc-dynamic-plugins was given. |
| 5214 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
| 5215 | enableval=$enable_llvmc_dynamic_plugins; |
| 5216 | else |
| 5217 | enableval=yes |
| 5218 | fi |
| 5219 | |
| 5220 | if test ${enableval} = "yes" ; then |
| 5221 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5222 | |
| 5223 | else |
| 5224 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5225 | |
| 5226 | fi |
| 5227 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5229 | ac_ext=c |
| 5230 | ac_cpp='$CPP $CPPFLAGS' |
| 5231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5234 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5235 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 5236 | # On Suns, sometimes $CPP names a directory. |
| 5237 | if test -n "$CPP" && test -d "$CPP"; then |
| 5238 | CPP= |
| 5239 | fi |
| 5240 | if test -z "$CPP"; then |
| 5241 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5243 | else |
| 5244 | # Double quotes because CPP needs to be expanded |
| 5245 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5246 | do |
| 5247 | ac_preproc_ok=false |
| 5248 | for ac_c_preproc_warn_flag in '' yes |
| 5249 | do |
| 5250 | # Use a header file that comes with gcc, so configuring glibc |
| 5251 | # with a fresh cross-compiler works. |
| 5252 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5253 | # <limits.h> exists even on freestanding compilers. |
| 5254 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5255 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5256 | cat >conftest.$ac_ext <<_ACEOF |
| 5257 | /* confdefs.h. */ |
| 5258 | _ACEOF |
| 5259 | cat confdefs.h >>conftest.$ac_ext |
| 5260 | cat >>conftest.$ac_ext <<_ACEOF |
| 5261 | /* end confdefs.h. */ |
| 5262 | #ifdef __STDC__ |
| 5263 | # include <limits.h> |
| 5264 | #else |
| 5265 | # include <assert.h> |
| 5266 | #endif |
| 5267 | Syntax error |
| 5268 | _ACEOF |
| 5269 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5270 | case "(($ac_try" in |
| 5271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5272 | *) ac_try_echo=$ac_try;; |
| 5273 | esac |
| 5274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5276 | ac_status=$? |
| 5277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5278 | rm -f conftest.er1 |
| 5279 | cat conftest.err >&5 |
| 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5281 | (exit $ac_status); } >/dev/null; then |
| 5282 | if test -s conftest.err; then |
| 5283 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5284 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5285 | else |
| 5286 | ac_cpp_err= |
| 5287 | fi |
| 5288 | else |
| 5289 | ac_cpp_err=yes |
| 5290 | fi |
| 5291 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5292 | : |
| 5293 | else |
| 5294 | echo "$as_me: failed program was:" >&5 |
| 5295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5296 | |
| 5297 | # Broken: fails on valid input. |
| 5298 | continue |
| 5299 | fi |
| 5300 | |
| 5301 | rm -f conftest.err conftest.$ac_ext |
| 5302 | |
| 5303 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5304 | # can be detected and how. |
| 5305 | cat >conftest.$ac_ext <<_ACEOF |
| 5306 | /* confdefs.h. */ |
| 5307 | _ACEOF |
| 5308 | cat confdefs.h >>conftest.$ac_ext |
| 5309 | cat >>conftest.$ac_ext <<_ACEOF |
| 5310 | /* end confdefs.h. */ |
| 5311 | #include <ac_nonexistent.h> |
| 5312 | _ACEOF |
| 5313 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5314 | case "(($ac_try" in |
| 5315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5316 | *) ac_try_echo=$ac_try;; |
| 5317 | esac |
| 5318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5319 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5320 | ac_status=$? |
| 5321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5322 | rm -f conftest.er1 |
| 5323 | cat conftest.err >&5 |
| 5324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5325 | (exit $ac_status); } >/dev/null; then |
| 5326 | if test -s conftest.err; then |
| 5327 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5328 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5329 | else |
| 5330 | ac_cpp_err= |
| 5331 | fi |
| 5332 | else |
| 5333 | ac_cpp_err=yes |
| 5334 | fi |
| 5335 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5336 | # Broken: success on invalid input. |
| 5337 | continue |
| 5338 | else |
| 5339 | echo "$as_me: failed program was:" >&5 |
| 5340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5341 | |
| 5342 | # Passes both tests. |
| 5343 | ac_preproc_ok=: |
| 5344 | break |
| 5345 | fi |
| 5346 | |
| 5347 | rm -f conftest.err conftest.$ac_ext |
| 5348 | |
| 5349 | done |
| 5350 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5351 | rm -f conftest.err conftest.$ac_ext |
| 5352 | if $ac_preproc_ok; then |
| 5353 | break |
| 5354 | fi |
| 5355 | |
| 5356 | done |
| 5357 | ac_cv_prog_CPP=$CPP |
| 5358 | |
| 5359 | fi |
| 5360 | CPP=$ac_cv_prog_CPP |
| 5361 | else |
| 5362 | ac_cv_prog_CPP=$CPP |
| 5363 | fi |
| 5364 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5365 | echo "${ECHO_T}$CPP" >&6; } |
| 5366 | ac_preproc_ok=false |
| 5367 | for ac_c_preproc_warn_flag in '' yes |
| 5368 | do |
| 5369 | # Use a header file that comes with gcc, so configuring glibc |
| 5370 | # with a fresh cross-compiler works. |
| 5371 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5372 | # <limits.h> exists even on freestanding compilers. |
| 5373 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5374 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5375 | cat >conftest.$ac_ext <<_ACEOF |
| 5376 | /* confdefs.h. */ |
| 5377 | _ACEOF |
| 5378 | cat confdefs.h >>conftest.$ac_ext |
| 5379 | cat >>conftest.$ac_ext <<_ACEOF |
| 5380 | /* end confdefs.h. */ |
| 5381 | #ifdef __STDC__ |
| 5382 | # include <limits.h> |
| 5383 | #else |
| 5384 | # include <assert.h> |
| 5385 | #endif |
| 5386 | Syntax error |
| 5387 | _ACEOF |
| 5388 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5389 | case "(($ac_try" in |
| 5390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5391 | *) ac_try_echo=$ac_try;; |
| 5392 | esac |
| 5393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5394 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5395 | ac_status=$? |
| 5396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5397 | rm -f conftest.er1 |
| 5398 | cat conftest.err >&5 |
| 5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5400 | (exit $ac_status); } >/dev/null; then |
| 5401 | if test -s conftest.err; then |
| 5402 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5404 | else |
| 5405 | ac_cpp_err= |
| 5406 | fi |
| 5407 | else |
| 5408 | ac_cpp_err=yes |
| 5409 | fi |
| 5410 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5411 | : |
| 5412 | else |
| 5413 | echo "$as_me: failed program was:" >&5 |
| 5414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5415 | |
| 5416 | # Broken: fails on valid input. |
| 5417 | continue |
| 5418 | fi |
| 5419 | |
| 5420 | rm -f conftest.err conftest.$ac_ext |
| 5421 | |
| 5422 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5423 | # can be detected and how. |
| 5424 | cat >conftest.$ac_ext <<_ACEOF |
| 5425 | /* confdefs.h. */ |
| 5426 | _ACEOF |
| 5427 | cat confdefs.h >>conftest.$ac_ext |
| 5428 | cat >>conftest.$ac_ext <<_ACEOF |
| 5429 | /* end confdefs.h. */ |
| 5430 | #include <ac_nonexistent.h> |
| 5431 | _ACEOF |
| 5432 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5433 | case "(($ac_try" in |
| 5434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5435 | *) ac_try_echo=$ac_try;; |
| 5436 | esac |
| 5437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5438 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5439 | ac_status=$? |
| 5440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5441 | rm -f conftest.er1 |
| 5442 | cat conftest.err >&5 |
| 5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5444 | (exit $ac_status); } >/dev/null; then |
| 5445 | if test -s conftest.err; then |
| 5446 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5447 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5448 | else |
| 5449 | ac_cpp_err= |
| 5450 | fi |
| 5451 | else |
| 5452 | ac_cpp_err=yes |
| 5453 | fi |
| 5454 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5455 | # Broken: success on invalid input. |
| 5456 | continue |
| 5457 | else |
| 5458 | echo "$as_me: failed program was:" >&5 |
| 5459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5460 | |
| 5461 | # Passes both tests. |
| 5462 | ac_preproc_ok=: |
| 5463 | break |
| 5464 | fi |
| 5465 | |
| 5466 | rm -f conftest.err conftest.$ac_ext |
| 5467 | |
| 5468 | done |
| 5469 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5470 | rm -f conftest.err conftest.$ac_ext |
| 5471 | if $ac_preproc_ok; then |
| 5472 | : |
| 5473 | else |
| 5474 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5475 | See \`config.log' for more details." >&5 |
| 5476 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5477 | See \`config.log' for more details." >&2;} |
| 5478 | { (exit 1); exit 1; }; } |
| 5479 | fi |
| 5480 | |
| 5481 | ac_ext=c |
| 5482 | ac_cpp='$CPP $CPPFLAGS' |
| 5483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5486 | |
| 5487 | ac_ext=c |
| 5488 | ac_cpp='$CPP $CPPFLAGS' |
| 5489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5492 | if test -n "$ac_tool_prefix"; then |
| 5493 | for ac_prog in gcc |
| 5494 | do |
| 5495 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5496 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5497 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5499 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5501 | else |
| 5502 | if test -n "$CC"; then |
| 5503 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5504 | else |
| 5505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5506 | for as_dir in $PATH |
| 5507 | do |
| 5508 | IFS=$as_save_IFS |
| 5509 | test -z "$as_dir" && as_dir=. |
| 5510 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5511 | 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] | 5512 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5514 | break 2 |
| 5515 | fi |
| 5516 | done |
| 5517 | done |
| 5518 | IFS=$as_save_IFS |
| 5519 | |
| 5520 | fi |
| 5521 | fi |
| 5522 | CC=$ac_cv_prog_CC |
| 5523 | if test -n "$CC"; then |
| 5524 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5525 | echo "${ECHO_T}$CC" >&6; } |
| 5526 | else |
| 5527 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5528 | echo "${ECHO_T}no" >&6; } |
| 5529 | fi |
| 5530 | |
| 5531 | |
| 5532 | test -n "$CC" && break |
| 5533 | done |
| 5534 | fi |
| 5535 | if test -z "$CC"; then |
| 5536 | ac_ct_CC=$CC |
| 5537 | for ac_prog in gcc |
| 5538 | do |
| 5539 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5540 | set dummy $ac_prog; ac_word=$2 |
| 5541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5543 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5545 | else |
| 5546 | if test -n "$ac_ct_CC"; then |
| 5547 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5548 | else |
| 5549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5550 | for as_dir in $PATH |
| 5551 | do |
| 5552 | IFS=$as_save_IFS |
| 5553 | test -z "$as_dir" && as_dir=. |
| 5554 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5555 | 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] | 5556 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5558 | break 2 |
| 5559 | fi |
| 5560 | done |
| 5561 | done |
| 5562 | IFS=$as_save_IFS |
| 5563 | |
| 5564 | fi |
| 5565 | fi |
| 5566 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5567 | if test -n "$ac_ct_CC"; then |
| 5568 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5569 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5570 | else |
| 5571 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5572 | echo "${ECHO_T}no" >&6; } |
| 5573 | fi |
| 5574 | |
| 5575 | |
| 5576 | test -n "$ac_ct_CC" && break |
| 5577 | done |
| 5578 | |
| 5579 | if test "x$ac_ct_CC" = x; then |
| 5580 | CC="" |
| 5581 | else |
| 5582 | case $cross_compiling:$ac_tool_warned in |
| 5583 | yes:) |
| 5584 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5585 | whose name does not start with the host triplet. If you think this |
| 5586 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5587 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5588 | whose name does not start with the host triplet. If you think this |
| 5589 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5590 | ac_tool_warned=yes ;; |
| 5591 | esac |
| 5592 | CC=$ac_ct_CC |
| 5593 | fi |
| 5594 | fi |
| 5595 | |
| 5596 | |
| 5597 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5598 | See \`config.log' for more details." >&5 |
| 5599 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5600 | See \`config.log' for more details." >&2;} |
| 5601 | { (exit 1); exit 1; }; } |
| 5602 | |
| 5603 | # Provide some information about the compiler. |
| 5604 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5605 | ac_compiler=`set X $ac_compile; echo $2` |
| 5606 | { (ac_try="$ac_compiler --version >&5" |
| 5607 | case "(($ac_try" in |
| 5608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5609 | *) ac_try_echo=$ac_try;; |
| 5610 | esac |
| 5611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5612 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5613 | ac_status=$? |
| 5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5615 | (exit $ac_status); } |
| 5616 | { (ac_try="$ac_compiler -v >&5" |
| 5617 | case "(($ac_try" in |
| 5618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5619 | *) ac_try_echo=$ac_try;; |
| 5620 | esac |
| 5621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5622 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5623 | ac_status=$? |
| 5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5625 | (exit $ac_status); } |
| 5626 | { (ac_try="$ac_compiler -V >&5" |
| 5627 | case "(($ac_try" in |
| 5628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5629 | *) ac_try_echo=$ac_try;; |
| 5630 | esac |
| 5631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5632 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5633 | ac_status=$? |
| 5634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5635 | (exit $ac_status); } |
| 5636 | |
| 5637 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5638 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5639 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5641 | else |
| 5642 | cat >conftest.$ac_ext <<_ACEOF |
| 5643 | /* confdefs.h. */ |
| 5644 | _ACEOF |
| 5645 | cat confdefs.h >>conftest.$ac_ext |
| 5646 | cat >>conftest.$ac_ext <<_ACEOF |
| 5647 | /* end confdefs.h. */ |
| 5648 | |
| 5649 | int |
| 5650 | main () |
| 5651 | { |
| 5652 | #ifndef __GNUC__ |
| 5653 | choke me |
| 5654 | #endif |
| 5655 | |
| 5656 | ; |
| 5657 | return 0; |
| 5658 | } |
| 5659 | _ACEOF |
| 5660 | rm -f conftest.$ac_objext |
| 5661 | if { (ac_try="$ac_compile" |
| 5662 | case "(($ac_try" in |
| 5663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5664 | *) ac_try_echo=$ac_try;; |
| 5665 | esac |
| 5666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5667 | (eval "$ac_compile") 2>conftest.er1 |
| 5668 | ac_status=$? |
| 5669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5670 | rm -f conftest.er1 |
| 5671 | cat conftest.err >&5 |
| 5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5673 | (exit $ac_status); } && |
| 5674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5675 | { (case "(($ac_try" in |
| 5676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5677 | *) ac_try_echo=$ac_try;; |
| 5678 | esac |
| 5679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5680 | (eval "$ac_try") 2>&5 |
| 5681 | ac_status=$? |
| 5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5683 | (exit $ac_status); }; } && |
| 5684 | { ac_try='test -s conftest.$ac_objext' |
| 5685 | { (case "(($ac_try" in |
| 5686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5687 | *) ac_try_echo=$ac_try;; |
| 5688 | esac |
| 5689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5690 | (eval "$ac_try") 2>&5 |
| 5691 | ac_status=$? |
| 5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5693 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5694 | ac_compiler_gnu=yes |
| 5695 | else |
| 5696 | echo "$as_me: failed program was:" >&5 |
| 5697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5698 | |
| 5699 | ac_compiler_gnu=no |
| 5700 | fi |
| 5701 | |
| 5702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5703 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5704 | |
| 5705 | fi |
| 5706 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5707 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5708 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5709 | ac_test_CFLAGS=${CFLAGS+set} |
| 5710 | ac_save_CFLAGS=$CFLAGS |
| 5711 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5712 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5713 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5715 | else |
| 5716 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5717 | ac_c_werror_flag=yes |
| 5718 | ac_cv_prog_cc_g=no |
| 5719 | CFLAGS="-g" |
| 5720 | cat >conftest.$ac_ext <<_ACEOF |
| 5721 | /* confdefs.h. */ |
| 5722 | _ACEOF |
| 5723 | cat confdefs.h >>conftest.$ac_ext |
| 5724 | cat >>conftest.$ac_ext <<_ACEOF |
| 5725 | /* end confdefs.h. */ |
| 5726 | |
| 5727 | int |
| 5728 | main () |
| 5729 | { |
| 5730 | |
| 5731 | ; |
| 5732 | return 0; |
| 5733 | } |
| 5734 | _ACEOF |
| 5735 | rm -f conftest.$ac_objext |
| 5736 | if { (ac_try="$ac_compile" |
| 5737 | case "(($ac_try" in |
| 5738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5739 | *) ac_try_echo=$ac_try;; |
| 5740 | esac |
| 5741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5742 | (eval "$ac_compile") 2>conftest.er1 |
| 5743 | ac_status=$? |
| 5744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5745 | rm -f conftest.er1 |
| 5746 | cat conftest.err >&5 |
| 5747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5748 | (exit $ac_status); } && |
| 5749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5750 | { (case "(($ac_try" in |
| 5751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5752 | *) ac_try_echo=$ac_try;; |
| 5753 | esac |
| 5754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5755 | (eval "$ac_try") 2>&5 |
| 5756 | ac_status=$? |
| 5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5758 | (exit $ac_status); }; } && |
| 5759 | { ac_try='test -s conftest.$ac_objext' |
| 5760 | { (case "(($ac_try" in |
| 5761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5762 | *) ac_try_echo=$ac_try;; |
| 5763 | esac |
| 5764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5765 | (eval "$ac_try") 2>&5 |
| 5766 | ac_status=$? |
| 5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5768 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5769 | ac_cv_prog_cc_g=yes |
| 5770 | else |
| 5771 | echo "$as_me: failed program was:" >&5 |
| 5772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5773 | |
| 5774 | CFLAGS="" |
| 5775 | cat >conftest.$ac_ext <<_ACEOF |
| 5776 | /* confdefs.h. */ |
| 5777 | _ACEOF |
| 5778 | cat confdefs.h >>conftest.$ac_ext |
| 5779 | cat >>conftest.$ac_ext <<_ACEOF |
| 5780 | /* end confdefs.h. */ |
| 5781 | |
| 5782 | int |
| 5783 | main () |
| 5784 | { |
| 5785 | |
| 5786 | ; |
| 5787 | return 0; |
| 5788 | } |
| 5789 | _ACEOF |
| 5790 | rm -f conftest.$ac_objext |
| 5791 | if { (ac_try="$ac_compile" |
| 5792 | case "(($ac_try" in |
| 5793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5794 | *) ac_try_echo=$ac_try;; |
| 5795 | esac |
| 5796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5797 | (eval "$ac_compile") 2>conftest.er1 |
| 5798 | ac_status=$? |
| 5799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5800 | rm -f conftest.er1 |
| 5801 | cat conftest.err >&5 |
| 5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5803 | (exit $ac_status); } && |
| 5804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5805 | { (case "(($ac_try" in |
| 5806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5807 | *) ac_try_echo=$ac_try;; |
| 5808 | esac |
| 5809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5810 | (eval "$ac_try") 2>&5 |
| 5811 | ac_status=$? |
| 5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5813 | (exit $ac_status); }; } && |
| 5814 | { ac_try='test -s conftest.$ac_objext' |
| 5815 | { (case "(($ac_try" in |
| 5816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5817 | *) ac_try_echo=$ac_try;; |
| 5818 | esac |
| 5819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5820 | (eval "$ac_try") 2>&5 |
| 5821 | ac_status=$? |
| 5822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5823 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5824 | : |
| 5825 | else |
| 5826 | echo "$as_me: failed program was:" >&5 |
| 5827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5828 | |
| 5829 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5830 | CFLAGS="-g" |
| 5831 | cat >conftest.$ac_ext <<_ACEOF |
| 5832 | /* confdefs.h. */ |
| 5833 | _ACEOF |
| 5834 | cat confdefs.h >>conftest.$ac_ext |
| 5835 | cat >>conftest.$ac_ext <<_ACEOF |
| 5836 | /* end confdefs.h. */ |
| 5837 | |
| 5838 | int |
| 5839 | main () |
| 5840 | { |
| 5841 | |
| 5842 | ; |
| 5843 | return 0; |
| 5844 | } |
| 5845 | _ACEOF |
| 5846 | rm -f conftest.$ac_objext |
| 5847 | if { (ac_try="$ac_compile" |
| 5848 | case "(($ac_try" in |
| 5849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5850 | *) ac_try_echo=$ac_try;; |
| 5851 | esac |
| 5852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5853 | (eval "$ac_compile") 2>conftest.er1 |
| 5854 | ac_status=$? |
| 5855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5856 | rm -f conftest.er1 |
| 5857 | cat conftest.err >&5 |
| 5858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5859 | (exit $ac_status); } && |
| 5860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5861 | { (case "(($ac_try" in |
| 5862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5863 | *) ac_try_echo=$ac_try;; |
| 5864 | esac |
| 5865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5866 | (eval "$ac_try") 2>&5 |
| 5867 | ac_status=$? |
| 5868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5869 | (exit $ac_status); }; } && |
| 5870 | { ac_try='test -s conftest.$ac_objext' |
| 5871 | { (case "(($ac_try" in |
| 5872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5873 | *) ac_try_echo=$ac_try;; |
| 5874 | esac |
| 5875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5876 | (eval "$ac_try") 2>&5 |
| 5877 | ac_status=$? |
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5879 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5880 | ac_cv_prog_cc_g=yes |
| 5881 | else |
| 5882 | echo "$as_me: failed program was:" >&5 |
| 5883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5884 | |
| 5885 | |
| 5886 | fi |
| 5887 | |
| 5888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5889 | fi |
| 5890 | |
| 5891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5892 | fi |
| 5893 | |
| 5894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5895 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5896 | fi |
| 5897 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5898 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5899 | if test "$ac_test_CFLAGS" = set; then |
| 5900 | CFLAGS=$ac_save_CFLAGS |
| 5901 | elif test $ac_cv_prog_cc_g = yes; then |
| 5902 | if test "$GCC" = yes; then |
| 5903 | CFLAGS="-g -O2" |
| 5904 | else |
| 5905 | CFLAGS="-g" |
| 5906 | fi |
| 5907 | else |
| 5908 | if test "$GCC" = yes; then |
| 5909 | CFLAGS="-O2" |
| 5910 | else |
| 5911 | CFLAGS= |
| 5912 | fi |
| 5913 | fi |
| 5914 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5915 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5916 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5918 | else |
| 5919 | ac_cv_prog_cc_c89=no |
| 5920 | ac_save_CC=$CC |
| 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 | #include <stdarg.h> |
| 5928 | #include <stdio.h> |
| 5929 | #include <sys/types.h> |
| 5930 | #include <sys/stat.h> |
| 5931 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5932 | struct buf { int x; }; |
| 5933 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5934 | static char *e (p, i) |
| 5935 | char **p; |
| 5936 | int i; |
| 5937 | { |
| 5938 | return p[i]; |
| 5939 | } |
| 5940 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5941 | { |
| 5942 | char *s; |
| 5943 | va_list v; |
| 5944 | va_start (v,p); |
| 5945 | s = g (p, va_arg (v,int)); |
| 5946 | va_end (v); |
| 5947 | return s; |
| 5948 | } |
| 5949 | |
| 5950 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5951 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5952 | These don't provoke an error unfortunately, instead are silently treated |
| 5953 | as 'x'. The following induces an error, until -std is added to get |
| 5954 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5955 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5956 | that's true only with -std. */ |
| 5957 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5958 | |
| 5959 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5960 | inside strings and character constants. */ |
| 5961 | #define FOO(x) 'x' |
| 5962 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5963 | |
| 5964 | int test (int i, double x); |
| 5965 | struct s1 {int (*f) (int a);}; |
| 5966 | struct s2 {int (*f) (double a);}; |
| 5967 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5968 | int argc; |
| 5969 | char **argv; |
| 5970 | int |
| 5971 | main () |
| 5972 | { |
| 5973 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5974 | ; |
| 5975 | return 0; |
| 5976 | } |
| 5977 | _ACEOF |
| 5978 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5979 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5980 | do |
| 5981 | CC="$ac_save_CC $ac_arg" |
| 5982 | rm -f conftest.$ac_objext |
| 5983 | if { (ac_try="$ac_compile" |
| 5984 | case "(($ac_try" in |
| 5985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5986 | *) ac_try_echo=$ac_try;; |
| 5987 | esac |
| 5988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5989 | (eval "$ac_compile") 2>conftest.er1 |
| 5990 | ac_status=$? |
| 5991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5992 | rm -f conftest.er1 |
| 5993 | cat conftest.err >&5 |
| 5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5995 | (exit $ac_status); } && |
| 5996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5997 | { (case "(($ac_try" in |
| 5998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5999 | *) ac_try_echo=$ac_try;; |
| 6000 | esac |
| 6001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6002 | (eval "$ac_try") 2>&5 |
| 6003 | ac_status=$? |
| 6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6005 | (exit $ac_status); }; } && |
| 6006 | { ac_try='test -s conftest.$ac_objext' |
| 6007 | { (case "(($ac_try" in |
| 6008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6009 | *) ac_try_echo=$ac_try;; |
| 6010 | esac |
| 6011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6012 | (eval "$ac_try") 2>&5 |
| 6013 | ac_status=$? |
| 6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6015 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6016 | ac_cv_prog_cc_c89=$ac_arg |
| 6017 | else |
| 6018 | echo "$as_me: failed program was:" >&5 |
| 6019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6020 | |
| 6021 | |
| 6022 | fi |
| 6023 | |
| 6024 | rm -f core conftest.err conftest.$ac_objext |
| 6025 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6026 | done |
| 6027 | rm -f conftest.$ac_ext |
| 6028 | CC=$ac_save_CC |
| 6029 | |
| 6030 | fi |
| 6031 | # AC_CACHE_VAL |
| 6032 | case "x$ac_cv_prog_cc_c89" in |
| 6033 | x) |
| 6034 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6035 | echo "${ECHO_T}none needed" >&6; } ;; |
| 6036 | xno) |
| 6037 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6038 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 6039 | *) |
| 6040 | CC="$CC $ac_cv_prog_cc_c89" |
| 6041 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6042 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 6043 | esac |
| 6044 | |
| 6045 | |
| 6046 | ac_ext=c |
| 6047 | ac_cpp='$CPP $CPPFLAGS' |
| 6048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6051 | |
| 6052 | ac_ext=cpp |
| 6053 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6054 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6055 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6056 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6057 | if test -z "$CXX"; then |
| 6058 | if test -n "$CCC"; then |
| 6059 | CXX=$CCC |
| 6060 | else |
| 6061 | if test -n "$ac_tool_prefix"; then |
| 6062 | for ac_prog in g++ |
| 6063 | do |
| 6064 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6065 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6066 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6068 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6070 | else |
| 6071 | if test -n "$CXX"; then |
| 6072 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6073 | else |
| 6074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6075 | for as_dir in $PATH |
| 6076 | do |
| 6077 | IFS=$as_save_IFS |
| 6078 | test -z "$as_dir" && as_dir=. |
| 6079 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6080 | 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] | 6081 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 6082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6083 | break 2 |
| 6084 | fi |
| 6085 | done |
| 6086 | done |
| 6087 | IFS=$as_save_IFS |
| 6088 | |
| 6089 | fi |
| 6090 | fi |
| 6091 | CXX=$ac_cv_prog_CXX |
| 6092 | if test -n "$CXX"; then |
| 6093 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6094 | echo "${ECHO_T}$CXX" >&6; } |
| 6095 | else |
| 6096 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6097 | echo "${ECHO_T}no" >&6; } |
| 6098 | fi |
| 6099 | |
| 6100 | |
| 6101 | test -n "$CXX" && break |
| 6102 | done |
| 6103 | fi |
| 6104 | if test -z "$CXX"; then |
| 6105 | ac_ct_CXX=$CXX |
| 6106 | for ac_prog in g++ |
| 6107 | do |
| 6108 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6109 | set dummy $ac_prog; ac_word=$2 |
| 6110 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6112 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6114 | else |
| 6115 | if test -n "$ac_ct_CXX"; then |
| 6116 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6117 | else |
| 6118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6119 | for as_dir in $PATH |
| 6120 | do |
| 6121 | IFS=$as_save_IFS |
| 6122 | test -z "$as_dir" && as_dir=. |
| 6123 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6124 | 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] | 6125 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 6126 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6127 | break 2 |
| 6128 | fi |
| 6129 | done |
| 6130 | done |
| 6131 | IFS=$as_save_IFS |
| 6132 | |
| 6133 | fi |
| 6134 | fi |
| 6135 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6136 | if test -n "$ac_ct_CXX"; then |
| 6137 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6138 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 6139 | else |
| 6140 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6141 | echo "${ECHO_T}no" >&6; } |
| 6142 | fi |
| 6143 | |
| 6144 | |
| 6145 | test -n "$ac_ct_CXX" && break |
| 6146 | done |
| 6147 | |
| 6148 | if test "x$ac_ct_CXX" = x; then |
| 6149 | CXX="g++" |
| 6150 | else |
| 6151 | case $cross_compiling:$ac_tool_warned in |
| 6152 | yes:) |
| 6153 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6154 | whose name does not start with the host triplet. If you think this |
| 6155 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6156 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6157 | whose name does not start with the host triplet. If you think this |
| 6158 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6159 | ac_tool_warned=yes ;; |
| 6160 | esac |
| 6161 | CXX=$ac_ct_CXX |
| 6162 | fi |
| 6163 | fi |
| 6164 | |
| 6165 | fi |
| 6166 | fi |
| 6167 | # Provide some information about the compiler. |
| 6168 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6169 | ac_compiler=`set X $ac_compile; echo $2` |
| 6170 | { (ac_try="$ac_compiler --version >&5" |
| 6171 | case "(($ac_try" in |
| 6172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6173 | *) ac_try_echo=$ac_try;; |
| 6174 | esac |
| 6175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6176 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6177 | ac_status=$? |
| 6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6179 | (exit $ac_status); } |
| 6180 | { (ac_try="$ac_compiler -v >&5" |
| 6181 | case "(($ac_try" in |
| 6182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6183 | *) ac_try_echo=$ac_try;; |
| 6184 | esac |
| 6185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6186 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6187 | ac_status=$? |
| 6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6189 | (exit $ac_status); } |
| 6190 | { (ac_try="$ac_compiler -V >&5" |
| 6191 | case "(($ac_try" in |
| 6192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6193 | *) ac_try_echo=$ac_try;; |
| 6194 | esac |
| 6195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6196 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6197 | ac_status=$? |
| 6198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6199 | (exit $ac_status); } |
| 6200 | |
| 6201 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6202 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6203 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6205 | else |
| 6206 | cat >conftest.$ac_ext <<_ACEOF |
| 6207 | /* confdefs.h. */ |
| 6208 | _ACEOF |
| 6209 | cat confdefs.h >>conftest.$ac_ext |
| 6210 | cat >>conftest.$ac_ext <<_ACEOF |
| 6211 | /* end confdefs.h. */ |
| 6212 | |
| 6213 | int |
| 6214 | main () |
| 6215 | { |
| 6216 | #ifndef __GNUC__ |
| 6217 | choke me |
| 6218 | #endif |
| 6219 | |
| 6220 | ; |
| 6221 | return 0; |
| 6222 | } |
| 6223 | _ACEOF |
| 6224 | rm -f conftest.$ac_objext |
| 6225 | if { (ac_try="$ac_compile" |
| 6226 | case "(($ac_try" in |
| 6227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6228 | *) ac_try_echo=$ac_try;; |
| 6229 | esac |
| 6230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6231 | (eval "$ac_compile") 2>conftest.er1 |
| 6232 | ac_status=$? |
| 6233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6234 | rm -f conftest.er1 |
| 6235 | cat conftest.err >&5 |
| 6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6237 | (exit $ac_status); } && |
| 6238 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6239 | { (case "(($ac_try" in |
| 6240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6241 | *) ac_try_echo=$ac_try;; |
| 6242 | esac |
| 6243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6244 | (eval "$ac_try") 2>&5 |
| 6245 | ac_status=$? |
| 6246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6247 | (exit $ac_status); }; } && |
| 6248 | { ac_try='test -s conftest.$ac_objext' |
| 6249 | { (case "(($ac_try" in |
| 6250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6251 | *) ac_try_echo=$ac_try;; |
| 6252 | esac |
| 6253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6254 | (eval "$ac_try") 2>&5 |
| 6255 | ac_status=$? |
| 6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6257 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6258 | ac_compiler_gnu=yes |
| 6259 | else |
| 6260 | echo "$as_me: failed program was:" >&5 |
| 6261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6262 | |
| 6263 | ac_compiler_gnu=no |
| 6264 | fi |
| 6265 | |
| 6266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6267 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6268 | |
| 6269 | fi |
| 6270 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6271 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6272 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 6273 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6274 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6275 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6276 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6277 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6279 | else |
| 6280 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6281 | ac_cxx_werror_flag=yes |
| 6282 | ac_cv_prog_cxx_g=no |
| 6283 | CXXFLAGS="-g" |
| 6284 | cat >conftest.$ac_ext <<_ACEOF |
| 6285 | /* confdefs.h. */ |
| 6286 | _ACEOF |
| 6287 | cat confdefs.h >>conftest.$ac_ext |
| 6288 | cat >>conftest.$ac_ext <<_ACEOF |
| 6289 | /* end confdefs.h. */ |
| 6290 | |
| 6291 | int |
| 6292 | main () |
| 6293 | { |
| 6294 | |
| 6295 | ; |
| 6296 | return 0; |
| 6297 | } |
| 6298 | _ACEOF |
| 6299 | rm -f conftest.$ac_objext |
| 6300 | if { (ac_try="$ac_compile" |
| 6301 | case "(($ac_try" in |
| 6302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6303 | *) ac_try_echo=$ac_try;; |
| 6304 | esac |
| 6305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6306 | (eval "$ac_compile") 2>conftest.er1 |
| 6307 | ac_status=$? |
| 6308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6309 | rm -f conftest.er1 |
| 6310 | cat conftest.err >&5 |
| 6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6312 | (exit $ac_status); } && |
| 6313 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6314 | { (case "(($ac_try" in |
| 6315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6316 | *) ac_try_echo=$ac_try;; |
| 6317 | esac |
| 6318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6319 | (eval "$ac_try") 2>&5 |
| 6320 | ac_status=$? |
| 6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6322 | (exit $ac_status); }; } && |
| 6323 | { ac_try='test -s conftest.$ac_objext' |
| 6324 | { (case "(($ac_try" in |
| 6325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6326 | *) ac_try_echo=$ac_try;; |
| 6327 | esac |
| 6328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6329 | (eval "$ac_try") 2>&5 |
| 6330 | ac_status=$? |
| 6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6332 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6333 | ac_cv_prog_cxx_g=yes |
| 6334 | else |
| 6335 | echo "$as_me: failed program was:" >&5 |
| 6336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6337 | |
| 6338 | CXXFLAGS="" |
| 6339 | cat >conftest.$ac_ext <<_ACEOF |
| 6340 | /* confdefs.h. */ |
| 6341 | _ACEOF |
| 6342 | cat confdefs.h >>conftest.$ac_ext |
| 6343 | cat >>conftest.$ac_ext <<_ACEOF |
| 6344 | /* end confdefs.h. */ |
| 6345 | |
| 6346 | int |
| 6347 | main () |
| 6348 | { |
| 6349 | |
| 6350 | ; |
| 6351 | return 0; |
| 6352 | } |
| 6353 | _ACEOF |
| 6354 | rm -f conftest.$ac_objext |
| 6355 | if { (ac_try="$ac_compile" |
| 6356 | case "(($ac_try" in |
| 6357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6358 | *) ac_try_echo=$ac_try;; |
| 6359 | esac |
| 6360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6361 | (eval "$ac_compile") 2>conftest.er1 |
| 6362 | ac_status=$? |
| 6363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6364 | rm -f conftest.er1 |
| 6365 | cat conftest.err >&5 |
| 6366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6367 | (exit $ac_status); } && |
| 6368 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6369 | { (case "(($ac_try" in |
| 6370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6371 | *) ac_try_echo=$ac_try;; |
| 6372 | esac |
| 6373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6374 | (eval "$ac_try") 2>&5 |
| 6375 | ac_status=$? |
| 6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6377 | (exit $ac_status); }; } && |
| 6378 | { ac_try='test -s conftest.$ac_objext' |
| 6379 | { (case "(($ac_try" in |
| 6380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6381 | *) ac_try_echo=$ac_try;; |
| 6382 | esac |
| 6383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6384 | (eval "$ac_try") 2>&5 |
| 6385 | ac_status=$? |
| 6386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6387 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6388 | : |
| 6389 | else |
| 6390 | echo "$as_me: failed program was:" >&5 |
| 6391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6392 | |
| 6393 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6394 | CXXFLAGS="-g" |
| 6395 | cat >conftest.$ac_ext <<_ACEOF |
| 6396 | /* confdefs.h. */ |
| 6397 | _ACEOF |
| 6398 | cat confdefs.h >>conftest.$ac_ext |
| 6399 | cat >>conftest.$ac_ext <<_ACEOF |
| 6400 | /* end confdefs.h. */ |
| 6401 | |
| 6402 | int |
| 6403 | main () |
| 6404 | { |
| 6405 | |
| 6406 | ; |
| 6407 | return 0; |
| 6408 | } |
| 6409 | _ACEOF |
| 6410 | rm -f conftest.$ac_objext |
| 6411 | if { (ac_try="$ac_compile" |
| 6412 | case "(($ac_try" in |
| 6413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6414 | *) ac_try_echo=$ac_try;; |
| 6415 | esac |
| 6416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6417 | (eval "$ac_compile") 2>conftest.er1 |
| 6418 | ac_status=$? |
| 6419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6420 | rm -f conftest.er1 |
| 6421 | cat conftest.err >&5 |
| 6422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6423 | (exit $ac_status); } && |
| 6424 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6425 | { (case "(($ac_try" in |
| 6426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6427 | *) ac_try_echo=$ac_try;; |
| 6428 | esac |
| 6429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6430 | (eval "$ac_try") 2>&5 |
| 6431 | ac_status=$? |
| 6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6433 | (exit $ac_status); }; } && |
| 6434 | { ac_try='test -s conftest.$ac_objext' |
| 6435 | { (case "(($ac_try" in |
| 6436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6437 | *) ac_try_echo=$ac_try;; |
| 6438 | esac |
| 6439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6440 | (eval "$ac_try") 2>&5 |
| 6441 | ac_status=$? |
| 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6443 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6444 | ac_cv_prog_cxx_g=yes |
| 6445 | else |
| 6446 | echo "$as_me: failed program was:" >&5 |
| 6447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6448 | |
| 6449 | |
| 6450 | fi |
| 6451 | |
| 6452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6453 | fi |
| 6454 | |
| 6455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6456 | fi |
| 6457 | |
| 6458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6459 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6460 | fi |
| 6461 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6462 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6463 | if test "$ac_test_CXXFLAGS" = set; then |
| 6464 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6465 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6466 | if test "$GXX" = yes; then |
| 6467 | CXXFLAGS="-g -O2" |
| 6468 | else |
| 6469 | CXXFLAGS="-g" |
| 6470 | fi |
| 6471 | else |
| 6472 | if test "$GXX" = yes; then |
| 6473 | CXXFLAGS="-O2" |
| 6474 | else |
| 6475 | CXXFLAGS= |
| 6476 | fi |
| 6477 | fi |
| 6478 | ac_ext=c |
| 6479 | ac_cpp='$CPP $CPPFLAGS' |
| 6480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6483 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6484 | |
| 6485 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6486 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6487 | if test "${lt_cv_path_NM+set}" = set; then |
| 6488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6489 | else |
| 6490 | if test -n "$NM"; then |
| 6491 | # Let the user override the test. |
| 6492 | lt_cv_path_NM="$NM" |
| 6493 | else |
| 6494 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6495 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6496 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6497 | fi |
| 6498 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6499 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6500 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6501 | IFS="$lt_save_ifs" |
| 6502 | test -z "$ac_dir" && ac_dir=. |
| 6503 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6504 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6505 | # Check to see if the nm accepts a BSD-compat flag. |
| 6506 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6507 | # nm: unknown option "B" ignored |
| 6508 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6509 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6510 | */dev/null* | *'Invalid file or object type'*) |
| 6511 | lt_cv_path_NM="$tmp_nm -B" |
| 6512 | break |
| 6513 | ;; |
| 6514 | *) |
| 6515 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6516 | */dev/null*) |
| 6517 | lt_cv_path_NM="$tmp_nm -p" |
| 6518 | break |
| 6519 | ;; |
| 6520 | *) |
| 6521 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6522 | continue # so that we can try to find one that supports BSD flags |
| 6523 | ;; |
| 6524 | esac |
| 6525 | ;; |
| 6526 | esac |
| 6527 | fi |
| 6528 | done |
| 6529 | IFS="$lt_save_ifs" |
| 6530 | done |
| 6531 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6532 | fi |
| 6533 | fi |
| 6534 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6535 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6536 | NM="$lt_cv_path_NM" |
| 6537 | |
| 6538 | |
| 6539 | |
| 6540 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6541 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6542 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6544 | else |
| 6545 | llvm_cv_gnu_make_command='' |
| 6546 | for a in "$MAKE" make gmake gnumake ; do |
| 6547 | if test -z "$a" ; then continue ; fi ; |
| 6548 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6549 | then |
| 6550 | llvm_cv_gnu_make_command=$a ; |
| 6551 | break; |
| 6552 | fi |
| 6553 | done |
| 6554 | fi |
| 6555 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6556 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6557 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6558 | ifGNUmake='' ; |
| 6559 | else |
| 6560 | ifGNUmake='#' ; |
| 6561 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6562 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6563 | fi |
| 6564 | |
| 6565 | |
| 6566 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6567 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6568 | LN_S=$as_ln_s |
| 6569 | if test "$LN_S" = "ln -s"; then |
| 6570 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6571 | echo "${ECHO_T}yes" >&6; } |
| 6572 | else |
| 6573 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6574 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6575 | fi |
| 6576 | |
| 6577 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6578 | set dummy cmp; ac_word=$2 |
| 6579 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6581 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6583 | else |
| 6584 | case $CMP in |
| 6585 | [\\/]* | ?:[\\/]*) |
| 6586 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6587 | ;; |
| 6588 | *) |
| 6589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6590 | for as_dir in $PATH |
| 6591 | do |
| 6592 | IFS=$as_save_IFS |
| 6593 | test -z "$as_dir" && as_dir=. |
| 6594 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6595 | 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] | 6596 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6598 | break 2 |
| 6599 | fi |
| 6600 | done |
| 6601 | done |
| 6602 | IFS=$as_save_IFS |
| 6603 | |
| 6604 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6605 | ;; |
| 6606 | esac |
| 6607 | fi |
| 6608 | CMP=$ac_cv_path_CMP |
| 6609 | if test -n "$CMP"; then |
| 6610 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6611 | echo "${ECHO_T}$CMP" >&6; } |
| 6612 | else |
| 6613 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6614 | echo "${ECHO_T}no" >&6; } |
| 6615 | fi |
| 6616 | |
| 6617 | |
| 6618 | # Extract the first word of "cp", so it can be a program name with args. |
| 6619 | set dummy cp; ac_word=$2 |
| 6620 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6622 | if test "${ac_cv_path_CP+set}" = set; then |
| 6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6624 | else |
| 6625 | case $CP in |
| 6626 | [\\/]* | ?:[\\/]*) |
| 6627 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6628 | ;; |
| 6629 | *) |
| 6630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6631 | for as_dir in $PATH |
| 6632 | do |
| 6633 | IFS=$as_save_IFS |
| 6634 | test -z "$as_dir" && as_dir=. |
| 6635 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6636 | 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] | 6637 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6639 | break 2 |
| 6640 | fi |
| 6641 | done |
| 6642 | done |
| 6643 | IFS=$as_save_IFS |
| 6644 | |
| 6645 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6646 | ;; |
| 6647 | esac |
| 6648 | fi |
| 6649 | CP=$ac_cv_path_CP |
| 6650 | if test -n "$CP"; then |
| 6651 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6652 | echo "${ECHO_T}$CP" >&6; } |
| 6653 | else |
| 6654 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6655 | echo "${ECHO_T}no" >&6; } |
| 6656 | fi |
| 6657 | |
| 6658 | |
| 6659 | # Extract the first word of "date", so it can be a program name with args. |
| 6660 | set dummy date; ac_word=$2 |
| 6661 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6663 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6665 | else |
| 6666 | case $DATE in |
| 6667 | [\\/]* | ?:[\\/]*) |
| 6668 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6669 | ;; |
| 6670 | *) |
| 6671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6672 | for as_dir in $PATH |
| 6673 | do |
| 6674 | IFS=$as_save_IFS |
| 6675 | test -z "$as_dir" && as_dir=. |
| 6676 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6677 | 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] | 6678 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6680 | break 2 |
| 6681 | fi |
| 6682 | done |
| 6683 | done |
| 6684 | IFS=$as_save_IFS |
| 6685 | |
| 6686 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6687 | ;; |
| 6688 | esac |
| 6689 | fi |
| 6690 | DATE=$ac_cv_path_DATE |
| 6691 | if test -n "$DATE"; then |
| 6692 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6693 | echo "${ECHO_T}$DATE" >&6; } |
| 6694 | else |
| 6695 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6696 | echo "${ECHO_T}no" >&6; } |
| 6697 | fi |
| 6698 | |
| 6699 | |
| 6700 | # Extract the first word of "find", so it can be a program name with args. |
| 6701 | set dummy find; ac_word=$2 |
| 6702 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6704 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6706 | else |
| 6707 | case $FIND in |
| 6708 | [\\/]* | ?:[\\/]*) |
| 6709 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6710 | ;; |
| 6711 | *) |
| 6712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6713 | for as_dir in $PATH |
| 6714 | do |
| 6715 | IFS=$as_save_IFS |
| 6716 | test -z "$as_dir" && as_dir=. |
| 6717 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6718 | 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] | 6719 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6721 | break 2 |
| 6722 | fi |
| 6723 | done |
| 6724 | done |
| 6725 | IFS=$as_save_IFS |
| 6726 | |
| 6727 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6728 | ;; |
| 6729 | esac |
| 6730 | fi |
| 6731 | FIND=$ac_cv_path_FIND |
| 6732 | if test -n "$FIND"; then |
| 6733 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6734 | echo "${ECHO_T}$FIND" >&6; } |
| 6735 | else |
| 6736 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6737 | echo "${ECHO_T}no" >&6; } |
| 6738 | fi |
| 6739 | |
| 6740 | |
| 6741 | # Extract the first word of "grep", so it can be a program name with args. |
| 6742 | set dummy grep; ac_word=$2 |
| 6743 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6745 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6747 | else |
| 6748 | case $GREP in |
| 6749 | [\\/]* | ?:[\\/]*) |
| 6750 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6751 | ;; |
| 6752 | *) |
| 6753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6754 | for as_dir in $PATH |
| 6755 | do |
| 6756 | IFS=$as_save_IFS |
| 6757 | test -z "$as_dir" && as_dir=. |
| 6758 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6759 | 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] | 6760 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6762 | break 2 |
| 6763 | fi |
| 6764 | done |
| 6765 | done |
| 6766 | IFS=$as_save_IFS |
| 6767 | |
| 6768 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6769 | ;; |
| 6770 | esac |
| 6771 | fi |
| 6772 | GREP=$ac_cv_path_GREP |
| 6773 | if test -n "$GREP"; then |
| 6774 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6775 | echo "${ECHO_T}$GREP" >&6; } |
| 6776 | else |
| 6777 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6778 | echo "${ECHO_T}no" >&6; } |
| 6779 | fi |
| 6780 | |
| 6781 | |
| 6782 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6783 | set dummy mkdir; ac_word=$2 |
| 6784 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6786 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6788 | else |
| 6789 | case $MKDIR in |
| 6790 | [\\/]* | ?:[\\/]*) |
| 6791 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6792 | ;; |
| 6793 | *) |
| 6794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6795 | for as_dir in $PATH |
| 6796 | do |
| 6797 | IFS=$as_save_IFS |
| 6798 | test -z "$as_dir" && as_dir=. |
| 6799 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6800 | 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] | 6801 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6803 | break 2 |
| 6804 | fi |
| 6805 | done |
| 6806 | done |
| 6807 | IFS=$as_save_IFS |
| 6808 | |
| 6809 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6810 | ;; |
| 6811 | esac |
| 6812 | fi |
| 6813 | MKDIR=$ac_cv_path_MKDIR |
| 6814 | if test -n "$MKDIR"; then |
| 6815 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6816 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6817 | else |
| 6818 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6819 | echo "${ECHO_T}no" >&6; } |
| 6820 | fi |
| 6821 | |
| 6822 | |
| 6823 | # Extract the first word of "mv", so it can be a program name with args. |
| 6824 | set dummy mv; ac_word=$2 |
| 6825 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6827 | if test "${ac_cv_path_MV+set}" = set; then |
| 6828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6829 | else |
| 6830 | case $MV in |
| 6831 | [\\/]* | ?:[\\/]*) |
| 6832 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6833 | ;; |
| 6834 | *) |
| 6835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6836 | for as_dir in $PATH |
| 6837 | do |
| 6838 | IFS=$as_save_IFS |
| 6839 | test -z "$as_dir" && as_dir=. |
| 6840 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6841 | 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] | 6842 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6844 | break 2 |
| 6845 | fi |
| 6846 | done |
| 6847 | done |
| 6848 | IFS=$as_save_IFS |
| 6849 | |
| 6850 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6851 | ;; |
| 6852 | esac |
| 6853 | fi |
| 6854 | MV=$ac_cv_path_MV |
| 6855 | if test -n "$MV"; then |
| 6856 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6857 | echo "${ECHO_T}$MV" >&6; } |
| 6858 | else |
| 6859 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6860 | echo "${ECHO_T}no" >&6; } |
| 6861 | fi |
| 6862 | |
| 6863 | |
| 6864 | if test -n "$ac_tool_prefix"; then |
| 6865 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6866 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6867 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6869 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6871 | else |
| 6872 | if test -n "$RANLIB"; then |
| 6873 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6874 | else |
| 6875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6876 | for as_dir in $PATH |
| 6877 | do |
| 6878 | IFS=$as_save_IFS |
| 6879 | test -z "$as_dir" && as_dir=. |
| 6880 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6881 | 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] | 6882 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6884 | break 2 |
| 6885 | fi |
| 6886 | done |
| 6887 | done |
| 6888 | IFS=$as_save_IFS |
| 6889 | |
| 6890 | fi |
| 6891 | fi |
| 6892 | RANLIB=$ac_cv_prog_RANLIB |
| 6893 | if test -n "$RANLIB"; then |
| 6894 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6895 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6896 | else |
| 6897 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6898 | echo "${ECHO_T}no" >&6; } |
| 6899 | fi |
| 6900 | |
| 6901 | |
| 6902 | fi |
| 6903 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6904 | ac_ct_RANLIB=$RANLIB |
| 6905 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6906 | set dummy ranlib; ac_word=$2 |
| 6907 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6909 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6911 | else |
| 6912 | if test -n "$ac_ct_RANLIB"; then |
| 6913 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6914 | else |
| 6915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6916 | for as_dir in $PATH |
| 6917 | do |
| 6918 | IFS=$as_save_IFS |
| 6919 | test -z "$as_dir" && as_dir=. |
| 6920 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6921 | 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] | 6922 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6924 | break 2 |
| 6925 | fi |
| 6926 | done |
| 6927 | done |
| 6928 | IFS=$as_save_IFS |
| 6929 | |
| 6930 | fi |
| 6931 | fi |
| 6932 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6933 | if test -n "$ac_ct_RANLIB"; then |
| 6934 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6935 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6936 | else |
| 6937 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6938 | echo "${ECHO_T}no" >&6; } |
| 6939 | fi |
| 6940 | |
| 6941 | if test "x$ac_ct_RANLIB" = x; then |
| 6942 | RANLIB=":" |
| 6943 | else |
| 6944 | case $cross_compiling:$ac_tool_warned in |
| 6945 | yes:) |
| 6946 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6947 | whose name does not start with the host triplet. If you think this |
| 6948 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6949 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6950 | whose name does not start with the host triplet. If you think this |
| 6951 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6952 | ac_tool_warned=yes ;; |
| 6953 | esac |
| 6954 | RANLIB=$ac_ct_RANLIB |
| 6955 | fi |
| 6956 | else |
| 6957 | RANLIB="$ac_cv_prog_RANLIB" |
| 6958 | fi |
| 6959 | |
| 6960 | # Extract the first word of "rm", so it can be a program name with args. |
| 6961 | set dummy rm; ac_word=$2 |
| 6962 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6964 | if test "${ac_cv_path_RM+set}" = set; then |
| 6965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6966 | else |
| 6967 | case $RM in |
| 6968 | [\\/]* | ?:[\\/]*) |
| 6969 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6970 | ;; |
| 6971 | *) |
| 6972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6973 | for as_dir in $PATH |
| 6974 | do |
| 6975 | IFS=$as_save_IFS |
| 6976 | test -z "$as_dir" && as_dir=. |
| 6977 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6978 | 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] | 6979 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6981 | break 2 |
| 6982 | fi |
| 6983 | done |
| 6984 | done |
| 6985 | IFS=$as_save_IFS |
| 6986 | |
| 6987 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6988 | ;; |
| 6989 | esac |
| 6990 | fi |
| 6991 | RM=$ac_cv_path_RM |
| 6992 | if test -n "$RM"; then |
| 6993 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6994 | echo "${ECHO_T}$RM" >&6; } |
| 6995 | else |
| 6996 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6997 | echo "${ECHO_T}no" >&6; } |
| 6998 | fi |
| 6999 | |
| 7000 | |
| 7001 | # Extract the first word of "sed", so it can be a program name with args. |
| 7002 | set dummy sed; ac_word=$2 |
| 7003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7005 | if test "${ac_cv_path_SED+set}" = set; then |
| 7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7007 | else |
| 7008 | case $SED in |
| 7009 | [\\/]* | ?:[\\/]*) |
| 7010 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7011 | ;; |
| 7012 | *) |
| 7013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7014 | for as_dir in $PATH |
| 7015 | do |
| 7016 | IFS=$as_save_IFS |
| 7017 | test -z "$as_dir" && as_dir=. |
| 7018 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7019 | 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] | 7020 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 7021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7022 | break 2 |
| 7023 | fi |
| 7024 | done |
| 7025 | done |
| 7026 | IFS=$as_save_IFS |
| 7027 | |
| 7028 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7029 | ;; |
| 7030 | esac |
| 7031 | fi |
| 7032 | SED=$ac_cv_path_SED |
| 7033 | if test -n "$SED"; then |
| 7034 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7035 | echo "${ECHO_T}$SED" >&6; } |
| 7036 | else |
| 7037 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7038 | echo "${ECHO_T}no" >&6; } |
| 7039 | fi |
| 7040 | |
| 7041 | |
| 7042 | # Extract the first word of "tar", so it can be a program name with args. |
| 7043 | set dummy tar; ac_word=$2 |
| 7044 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7046 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7048 | else |
| 7049 | case $TAR in |
| 7050 | [\\/]* | ?:[\\/]*) |
| 7051 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7052 | ;; |
| 7053 | *) |
| 7054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7055 | for as_dir in $PATH |
| 7056 | do |
| 7057 | IFS=$as_save_IFS |
| 7058 | test -z "$as_dir" && as_dir=. |
| 7059 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7060 | 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] | 7061 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7063 | break 2 |
| 7064 | fi |
| 7065 | done |
| 7066 | done |
| 7067 | IFS=$as_save_IFS |
| 7068 | |
| 7069 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7070 | ;; |
| 7071 | esac |
| 7072 | fi |
| 7073 | TAR=$ac_cv_path_TAR |
| 7074 | if test -n "$TAR"; then |
| 7075 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7076 | echo "${ECHO_T}$TAR" >&6; } |
| 7077 | else |
| 7078 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7079 | echo "${ECHO_T}no" >&6; } |
| 7080 | fi |
| 7081 | |
| 7082 | |
| 7083 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7084 | set dummy pwd; ac_word=$2 |
| 7085 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7087 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7089 | else |
| 7090 | case $BINPWD in |
| 7091 | [\\/]* | ?:[\\/]*) |
| 7092 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7093 | ;; |
| 7094 | *) |
| 7095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7096 | for as_dir in $PATH |
| 7097 | do |
| 7098 | IFS=$as_save_IFS |
| 7099 | test -z "$as_dir" && as_dir=. |
| 7100 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7101 | 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] | 7102 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7104 | break 2 |
| 7105 | fi |
| 7106 | done |
| 7107 | done |
| 7108 | IFS=$as_save_IFS |
| 7109 | |
| 7110 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7111 | ;; |
| 7112 | esac |
| 7113 | fi |
| 7114 | BINPWD=$ac_cv_path_BINPWD |
| 7115 | if test -n "$BINPWD"; then |
| 7116 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7117 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7118 | else |
| 7119 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7120 | echo "${ECHO_T}no" >&6; } |
| 7121 | fi |
| 7122 | |
| 7123 | |
| 7124 | |
| 7125 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7126 | set dummy Graphviz; ac_word=$2 |
| 7127 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7129 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7131 | else |
| 7132 | case $GRAPHVIZ in |
| 7133 | [\\/]* | ?:[\\/]*) |
| 7134 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7135 | ;; |
| 7136 | *) |
| 7137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7138 | for as_dir in $PATH |
| 7139 | do |
| 7140 | IFS=$as_save_IFS |
| 7141 | test -z "$as_dir" && as_dir=. |
| 7142 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7143 | 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] | 7144 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7146 | break 2 |
| 7147 | fi |
| 7148 | done |
| 7149 | done |
| 7150 | IFS=$as_save_IFS |
| 7151 | |
| 7152 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7153 | ;; |
| 7154 | esac |
| 7155 | fi |
| 7156 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7157 | if test -n "$GRAPHVIZ"; then |
| 7158 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7159 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7160 | else |
| 7161 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7162 | echo "${ECHO_T}no" >&6; } |
| 7163 | fi |
| 7164 | |
| 7165 | |
| 7166 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7167 | |
| 7168 | cat >>confdefs.h <<\_ACEOF |
| 7169 | #define HAVE_GRAPHVIZ 1 |
| 7170 | _ACEOF |
| 7171 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7172 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7173 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7174 | fi |
| 7175 | |
| 7176 | cat >>confdefs.h <<_ACEOF |
| 7177 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7178 | _ACEOF |
| 7179 | |
| 7180 | fi |
| 7181 | # Extract the first word of "dot", so it can be a program name with args. |
| 7182 | set dummy dot; ac_word=$2 |
| 7183 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7185 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7187 | else |
| 7188 | case $DOT in |
| 7189 | [\\/]* | ?:[\\/]*) |
| 7190 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7191 | ;; |
| 7192 | *) |
| 7193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7194 | for as_dir in $PATH |
| 7195 | do |
| 7196 | IFS=$as_save_IFS |
| 7197 | test -z "$as_dir" && as_dir=. |
| 7198 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7199 | 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] | 7200 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7202 | break 2 |
| 7203 | fi |
| 7204 | done |
| 7205 | done |
| 7206 | IFS=$as_save_IFS |
| 7207 | |
| 7208 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7209 | ;; |
| 7210 | esac |
| 7211 | fi |
| 7212 | DOT=$ac_cv_path_DOT |
| 7213 | if test -n "$DOT"; then |
| 7214 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7215 | echo "${ECHO_T}$DOT" >&6; } |
| 7216 | else |
| 7217 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7218 | echo "${ECHO_T}no" >&6; } |
| 7219 | fi |
| 7220 | |
| 7221 | |
| 7222 | if test "$DOT" != "echo dot" ; then |
| 7223 | |
| 7224 | cat >>confdefs.h <<\_ACEOF |
| 7225 | #define HAVE_DOT 1 |
| 7226 | _ACEOF |
| 7227 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7228 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7229 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7230 | fi |
| 7231 | |
| 7232 | cat >>confdefs.h <<_ACEOF |
| 7233 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7234 | _ACEOF |
| 7235 | |
| 7236 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7237 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7238 | set dummy fdp; ac_word=$2 |
| 7239 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7241 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7243 | else |
| 7244 | case $FDP in |
| 7245 | [\\/]* | ?:[\\/]*) |
| 7246 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7247 | ;; |
| 7248 | *) |
| 7249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7250 | for as_dir in $PATH |
| 7251 | do |
| 7252 | IFS=$as_save_IFS |
| 7253 | test -z "$as_dir" && as_dir=. |
| 7254 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7256 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
| 7257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7258 | break 2 |
| 7259 | fi |
| 7260 | done |
| 7261 | done |
| 7262 | IFS=$as_save_IFS |
| 7263 | |
| 7264 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7265 | ;; |
| 7266 | esac |
| 7267 | fi |
| 7268 | FDP=$ac_cv_path_FDP |
| 7269 | if test -n "$FDP"; then |
| 7270 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7271 | echo "${ECHO_T}$FDP" >&6; } |
| 7272 | else |
| 7273 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7274 | echo "${ECHO_T}no" >&6; } |
| 7275 | fi |
| 7276 | |
| 7277 | |
| 7278 | if test "$FDP" != "echo fdp" ; then |
| 7279 | |
| 7280 | cat >>confdefs.h <<\_ACEOF |
| 7281 | #define HAVE_FDP 1 |
| 7282 | _ACEOF |
| 7283 | |
| 7284 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7285 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7286 | fi |
| 7287 | |
| 7288 | cat >>confdefs.h <<_ACEOF |
| 7289 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7290 | _ACEOF |
| 7291 | |
| 7292 | fi |
| 7293 | # Extract the first word of "neato", so it can be a program name with args. |
| 7294 | set dummy neato; ac_word=$2 |
| 7295 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7296 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7297 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7299 | else |
| 7300 | case $NEATO in |
| 7301 | [\\/]* | ?:[\\/]*) |
| 7302 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7303 | ;; |
| 7304 | *) |
| 7305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7306 | for as_dir in $PATH |
| 7307 | do |
| 7308 | IFS=$as_save_IFS |
| 7309 | test -z "$as_dir" && as_dir=. |
| 7310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7312 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
| 7313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7314 | break 2 |
| 7315 | fi |
| 7316 | done |
| 7317 | done |
| 7318 | IFS=$as_save_IFS |
| 7319 | |
| 7320 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7321 | ;; |
| 7322 | esac |
| 7323 | fi |
| 7324 | NEATO=$ac_cv_path_NEATO |
| 7325 | if test -n "$NEATO"; then |
| 7326 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7327 | echo "${ECHO_T}$NEATO" >&6; } |
| 7328 | else |
| 7329 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7330 | echo "${ECHO_T}no" >&6; } |
| 7331 | fi |
| 7332 | |
| 7333 | |
| 7334 | if test "$NEATO" != "echo neato" ; then |
| 7335 | |
| 7336 | cat >>confdefs.h <<\_ACEOF |
| 7337 | #define HAVE_NEATO 1 |
| 7338 | _ACEOF |
| 7339 | |
| 7340 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7341 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7342 | fi |
| 7343 | |
| 7344 | cat >>confdefs.h <<_ACEOF |
| 7345 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7346 | _ACEOF |
| 7347 | |
| 7348 | fi |
| 7349 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7350 | set dummy twopi; ac_word=$2 |
| 7351 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7353 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7355 | else |
| 7356 | case $TWOPI in |
| 7357 | [\\/]* | ?:[\\/]*) |
| 7358 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7359 | ;; |
| 7360 | *) |
| 7361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7362 | for as_dir in $PATH |
| 7363 | do |
| 7364 | IFS=$as_save_IFS |
| 7365 | test -z "$as_dir" && as_dir=. |
| 7366 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7368 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
| 7369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7370 | break 2 |
| 7371 | fi |
| 7372 | done |
| 7373 | done |
| 7374 | IFS=$as_save_IFS |
| 7375 | |
| 7376 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7377 | ;; |
| 7378 | esac |
| 7379 | fi |
| 7380 | TWOPI=$ac_cv_path_TWOPI |
| 7381 | if test -n "$TWOPI"; then |
| 7382 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7383 | echo "${ECHO_T}$TWOPI" >&6; } |
| 7384 | else |
| 7385 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7386 | echo "${ECHO_T}no" >&6; } |
| 7387 | fi |
| 7388 | |
| 7389 | |
| 7390 | if test "$TWOPI" != "echo twopi" ; then |
| 7391 | |
| 7392 | cat >>confdefs.h <<\_ACEOF |
| 7393 | #define HAVE_TWOPI 1 |
| 7394 | _ACEOF |
| 7395 | |
| 7396 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7397 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7398 | fi |
| 7399 | |
| 7400 | cat >>confdefs.h <<_ACEOF |
| 7401 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7402 | _ACEOF |
| 7403 | |
| 7404 | fi |
| 7405 | # Extract the first word of "circo", so it can be a program name with args. |
| 7406 | set dummy circo; ac_word=$2 |
| 7407 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7409 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7411 | else |
| 7412 | case $CIRCO in |
| 7413 | [\\/]* | ?:[\\/]*) |
| 7414 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7415 | ;; |
| 7416 | *) |
| 7417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7418 | for as_dir in $PATH |
| 7419 | do |
| 7420 | IFS=$as_save_IFS |
| 7421 | test -z "$as_dir" && as_dir=. |
| 7422 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7424 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
| 7425 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7426 | break 2 |
| 7427 | fi |
| 7428 | done |
| 7429 | done |
| 7430 | IFS=$as_save_IFS |
| 7431 | |
| 7432 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7433 | ;; |
| 7434 | esac |
| 7435 | fi |
| 7436 | CIRCO=$ac_cv_path_CIRCO |
| 7437 | if test -n "$CIRCO"; then |
| 7438 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7439 | echo "${ECHO_T}$CIRCO" >&6; } |
| 7440 | else |
| 7441 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7442 | echo "${ECHO_T}no" >&6; } |
| 7443 | fi |
| 7444 | |
| 7445 | |
| 7446 | if test "$CIRCO" != "echo circo" ; then |
| 7447 | |
| 7448 | cat >>confdefs.h <<\_ACEOF |
| 7449 | #define HAVE_CIRCO 1 |
| 7450 | _ACEOF |
| 7451 | |
| 7452 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7453 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7454 | fi |
| 7455 | |
| 7456 | cat >>confdefs.h <<_ACEOF |
| 7457 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7458 | _ACEOF |
| 7459 | |
| 7460 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7461 | for ac_prog in gv gsview32 |
| 7462 | do |
| 7463 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7464 | set dummy $ac_prog; ac_word=$2 |
| 7465 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7467 | if test "${ac_cv_path_GV+set}" = set; then |
| 7468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7469 | else |
| 7470 | case $GV in |
| 7471 | [\\/]* | ?:[\\/]*) |
| 7472 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7473 | ;; |
| 7474 | *) |
| 7475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7476 | for as_dir in $PATH |
| 7477 | do |
| 7478 | IFS=$as_save_IFS |
| 7479 | test -z "$as_dir" && as_dir=. |
| 7480 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7481 | 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] | 7482 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7484 | break 2 |
| 7485 | fi |
| 7486 | done |
| 7487 | done |
| 7488 | IFS=$as_save_IFS |
| 7489 | |
| 7490 | ;; |
| 7491 | esac |
| 7492 | fi |
| 7493 | GV=$ac_cv_path_GV |
| 7494 | if test -n "$GV"; then |
| 7495 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7496 | echo "${ECHO_T}$GV" >&6; } |
| 7497 | else |
| 7498 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7499 | echo "${ECHO_T}no" >&6; } |
| 7500 | fi |
| 7501 | |
| 7502 | |
| 7503 | test -n "$GV" && break |
| 7504 | done |
| 7505 | test -n "$GV" || GV="echo gv" |
| 7506 | |
| 7507 | if test "$GV" != "echo gv" ; then |
| 7508 | |
| 7509 | cat >>confdefs.h <<\_ACEOF |
| 7510 | #define HAVE_GV 1 |
| 7511 | _ACEOF |
| 7512 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7513 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7514 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7515 | fi |
| 7516 | |
| 7517 | cat >>confdefs.h <<_ACEOF |
| 7518 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7519 | _ACEOF |
| 7520 | |
| 7521 | fi |
| 7522 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7523 | set dummy dotty; ac_word=$2 |
| 7524 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7526 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7528 | else |
| 7529 | case $DOTTY in |
| 7530 | [\\/]* | ?:[\\/]*) |
| 7531 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7532 | ;; |
| 7533 | *) |
| 7534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7535 | for as_dir in $PATH |
| 7536 | do |
| 7537 | IFS=$as_save_IFS |
| 7538 | test -z "$as_dir" && as_dir=. |
| 7539 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7540 | 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] | 7541 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7543 | break 2 |
| 7544 | fi |
| 7545 | done |
| 7546 | done |
| 7547 | IFS=$as_save_IFS |
| 7548 | |
| 7549 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7550 | ;; |
| 7551 | esac |
| 7552 | fi |
| 7553 | DOTTY=$ac_cv_path_DOTTY |
| 7554 | if test -n "$DOTTY"; then |
| 7555 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7556 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7557 | else |
| 7558 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7559 | echo "${ECHO_T}no" >&6; } |
| 7560 | fi |
| 7561 | |
| 7562 | |
| 7563 | if test "$DOTTY" != "echo dotty" ; then |
| 7564 | |
| 7565 | cat >>confdefs.h <<\_ACEOF |
| 7566 | #define HAVE_DOTTY 1 |
| 7567 | _ACEOF |
| 7568 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7569 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7570 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7571 | fi |
| 7572 | |
| 7573 | cat >>confdefs.h <<_ACEOF |
| 7574 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7575 | _ACEOF |
| 7576 | |
| 7577 | fi |
| 7578 | |
| 7579 | |
| 7580 | # Extract the first word of "perl", so it can be a program name with args. |
| 7581 | set dummy perl; ac_word=$2 |
| 7582 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7584 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7586 | else |
| 7587 | case $PERL in |
| 7588 | [\\/]* | ?:[\\/]*) |
| 7589 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7590 | ;; |
| 7591 | *) |
| 7592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7593 | for as_dir in $PATH |
| 7594 | do |
| 7595 | IFS=$as_save_IFS |
| 7596 | test -z "$as_dir" && as_dir=. |
| 7597 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7599 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7601 | break 2 |
| 7602 | fi |
| 7603 | done |
| 7604 | done |
| 7605 | IFS=$as_save_IFS |
| 7606 | |
| 7607 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7608 | ;; |
| 7609 | esac |
| 7610 | fi |
| 7611 | PERL=$ac_cv_path_PERL |
| 7612 | if test -n "$PERL"; then |
| 7613 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7614 | echo "${ECHO_T}$PERL" >&6; } |
| 7615 | else |
| 7616 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7617 | echo "${ECHO_T}no" >&6; } |
| 7618 | fi |
| 7619 | |
| 7620 | |
| 7621 | if test "$PERL" != "none"; then |
| 7622 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7623 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7624 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7625 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7626 | echo "${ECHO_T}yes" >&6; } |
| 7627 | else |
| 7628 | PERL=none |
| 7629 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7630 | echo "${ECHO_T}not found" >&6; } |
| 7631 | fi |
| 7632 | fi |
| 7633 | |
| 7634 | |
| 7635 | if test x"$PERL" = xnone; then |
| 7636 | HAVE_PERL=0 |
| 7637 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7638 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7639 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7640 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7641 | else |
| 7642 | HAVE_PERL=1 |
| 7643 | |
| 7644 | fi |
| 7645 | |
| 7646 | # Find a good install program. We prefer a C program (faster), |
| 7647 | # so one script is as good as another. But avoid the broken or |
| 7648 | # incompatible versions: |
| 7649 | # SysV /etc/install, /usr/sbin/install |
| 7650 | # SunOS /usr/etc/install |
| 7651 | # IRIX /sbin/install |
| 7652 | # AIX /bin/install |
| 7653 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7654 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7655 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7656 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7657 | # OS/2's system install, which has a completely different semantic |
| 7658 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7659 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7660 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7661 | if test -z "$INSTALL"; then |
| 7662 | if test "${ac_cv_path_install+set}" = set; then |
| 7663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7664 | else |
| 7665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7666 | for as_dir in $PATH |
| 7667 | do |
| 7668 | IFS=$as_save_IFS |
| 7669 | test -z "$as_dir" && as_dir=. |
| 7670 | # Account for people who put trailing slashes in PATH elements. |
| 7671 | case $as_dir/ in |
| 7672 | ./ | .// | /cC/* | \ |
| 7673 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7674 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7675 | /usr/ucb/* ) ;; |
| 7676 | *) |
| 7677 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7678 | # Don't use installbsd from OSF since it installs stuff as root |
| 7679 | # by default. |
| 7680 | for ac_prog in ginstall scoinst install; do |
| 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_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] | 7683 | if test $ac_prog = install && |
| 7684 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7685 | # AIX install. It has an incompatible calling convention. |
| 7686 | : |
| 7687 | elif test $ac_prog = install && |
| 7688 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7689 | # program-specific install script used by HP pwplus--don't use. |
| 7690 | : |
| 7691 | else |
| 7692 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7693 | break 3 |
| 7694 | fi |
| 7695 | fi |
| 7696 | done |
| 7697 | done |
| 7698 | ;; |
| 7699 | esac |
| 7700 | done |
| 7701 | IFS=$as_save_IFS |
| 7702 | |
| 7703 | |
| 7704 | fi |
| 7705 | if test "${ac_cv_path_install+set}" = set; then |
| 7706 | INSTALL=$ac_cv_path_install |
| 7707 | else |
| 7708 | # As a last resort, use the slow shell script. Don't cache a |
| 7709 | # value for INSTALL within a source directory, because that will |
| 7710 | # break other packages using the cache if that directory is |
| 7711 | # removed, or if the value is a relative name. |
| 7712 | INSTALL=$ac_install_sh |
| 7713 | fi |
| 7714 | fi |
| 7715 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7716 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7717 | |
| 7718 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7719 | # It thinks the first close brace ends the variable substitution. |
| 7720 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7721 | |
| 7722 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7723 | |
| 7724 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7725 | |
| 7726 | |
| 7727 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7728 | set dummy bzip2; ac_word=$2 |
| 7729 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7731 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7733 | else |
| 7734 | case $BZIP2 in |
| 7735 | [\\/]* | ?:[\\/]*) |
| 7736 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7737 | ;; |
| 7738 | *) |
| 7739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7740 | for as_dir in $PATH |
| 7741 | do |
| 7742 | IFS=$as_save_IFS |
| 7743 | test -z "$as_dir" && as_dir=. |
| 7744 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7745 | 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] | 7746 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7748 | break 2 |
| 7749 | fi |
| 7750 | done |
| 7751 | done |
| 7752 | IFS=$as_save_IFS |
| 7753 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7754 | ;; |
| 7755 | esac |
| 7756 | fi |
| 7757 | BZIP2=$ac_cv_path_BZIP2 |
| 7758 | if test -n "$BZIP2"; then |
| 7759 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7760 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7761 | else |
| 7762 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7763 | echo "${ECHO_T}no" >&6; } |
| 7764 | fi |
| 7765 | |
| 7766 | |
| 7767 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7768 | set dummy doxygen; ac_word=$2 |
| 7769 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7771 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7773 | else |
| 7774 | case $DOXYGEN in |
| 7775 | [\\/]* | ?:[\\/]*) |
| 7776 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7777 | ;; |
| 7778 | *) |
| 7779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7780 | for as_dir in $PATH |
| 7781 | do |
| 7782 | IFS=$as_save_IFS |
| 7783 | test -z "$as_dir" && as_dir=. |
| 7784 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7785 | 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] | 7786 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7788 | break 2 |
| 7789 | fi |
| 7790 | done |
| 7791 | done |
| 7792 | IFS=$as_save_IFS |
| 7793 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7794 | ;; |
| 7795 | esac |
| 7796 | fi |
| 7797 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7798 | if test -n "$DOXYGEN"; then |
| 7799 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7800 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7801 | else |
| 7802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7803 | echo "${ECHO_T}no" >&6; } |
| 7804 | fi |
| 7805 | |
| 7806 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7807 | # Extract the first word of "groff", so it can be a program name with args. |
| 7808 | set dummy groff; ac_word=$2 |
| 7809 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7811 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7813 | else |
| 7814 | case $GROFF in |
| 7815 | [\\/]* | ?:[\\/]*) |
| 7816 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7817 | ;; |
| 7818 | *) |
| 7819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7820 | for as_dir in $PATH |
| 7821 | do |
| 7822 | IFS=$as_save_IFS |
| 7823 | test -z "$as_dir" && as_dir=. |
| 7824 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7825 | 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] | 7826 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7828 | break 2 |
| 7829 | fi |
| 7830 | done |
| 7831 | done |
| 7832 | IFS=$as_save_IFS |
| 7833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7834 | ;; |
| 7835 | esac |
| 7836 | fi |
| 7837 | GROFF=$ac_cv_path_GROFF |
| 7838 | if test -n "$GROFF"; then |
| 7839 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7840 | echo "${ECHO_T}$GROFF" >&6; } |
| 7841 | else |
| 7842 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7843 | echo "${ECHO_T}no" >&6; } |
| 7844 | fi |
| 7845 | |
| 7846 | |
| 7847 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7848 | set dummy gzip; ac_word=$2 |
| 7849 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7851 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7853 | else |
| 7854 | case $GZIP in |
| 7855 | [\\/]* | ?:[\\/]*) |
| 7856 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7857 | ;; |
| 7858 | *) |
| 7859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7860 | for as_dir in $PATH |
| 7861 | do |
| 7862 | IFS=$as_save_IFS |
| 7863 | test -z "$as_dir" && as_dir=. |
| 7864 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7865 | 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] | 7866 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7868 | break 2 |
| 7869 | fi |
| 7870 | done |
| 7871 | done |
| 7872 | IFS=$as_save_IFS |
| 7873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7874 | ;; |
| 7875 | esac |
| 7876 | fi |
| 7877 | GZIP=$ac_cv_path_GZIP |
| 7878 | if test -n "$GZIP"; then |
| 7879 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7880 | echo "${ECHO_T}$GZIP" >&6; } |
| 7881 | else |
| 7882 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7883 | echo "${ECHO_T}no" >&6; } |
| 7884 | fi |
| 7885 | |
| 7886 | |
| 7887 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7888 | set dummy pod2html; ac_word=$2 |
| 7889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7891 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7893 | else |
| 7894 | case $POD2HTML in |
| 7895 | [\\/]* | ?:[\\/]*) |
| 7896 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7897 | ;; |
| 7898 | *) |
| 7899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7900 | for as_dir in $PATH |
| 7901 | do |
| 7902 | IFS=$as_save_IFS |
| 7903 | test -z "$as_dir" && as_dir=. |
| 7904 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7905 | 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] | 7906 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7908 | break 2 |
| 7909 | fi |
| 7910 | done |
| 7911 | done |
| 7912 | IFS=$as_save_IFS |
| 7913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7914 | ;; |
| 7915 | esac |
| 7916 | fi |
| 7917 | POD2HTML=$ac_cv_path_POD2HTML |
| 7918 | if test -n "$POD2HTML"; then |
| 7919 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7920 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7921 | else |
| 7922 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7923 | echo "${ECHO_T}no" >&6; } |
| 7924 | fi |
| 7925 | |
| 7926 | |
| 7927 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7928 | set dummy pod2man; ac_word=$2 |
| 7929 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7931 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7933 | else |
| 7934 | case $POD2MAN in |
| 7935 | [\\/]* | ?:[\\/]*) |
| 7936 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7937 | ;; |
| 7938 | *) |
| 7939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7940 | for as_dir in $PATH |
| 7941 | do |
| 7942 | IFS=$as_save_IFS |
| 7943 | test -z "$as_dir" && as_dir=. |
| 7944 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7945 | 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] | 7946 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7948 | break 2 |
| 7949 | fi |
| 7950 | done |
| 7951 | done |
| 7952 | IFS=$as_save_IFS |
| 7953 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7954 | ;; |
| 7955 | esac |
| 7956 | fi |
| 7957 | POD2MAN=$ac_cv_path_POD2MAN |
| 7958 | if test -n "$POD2MAN"; then |
| 7959 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7960 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7961 | else |
| 7962 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7963 | echo "${ECHO_T}no" >&6; } |
| 7964 | fi |
| 7965 | |
| 7966 | |
| 7967 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7968 | set dummy runtest; ac_word=$2 |
| 7969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7971 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7973 | else |
| 7974 | case $RUNTEST in |
| 7975 | [\\/]* | ?:[\\/]*) |
| 7976 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7977 | ;; |
| 7978 | *) |
| 7979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7980 | for as_dir in $PATH |
| 7981 | do |
| 7982 | IFS=$as_save_IFS |
| 7983 | test -z "$as_dir" && as_dir=. |
| 7984 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7986 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7987 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7988 | break 2 |
| 7989 | fi |
| 7990 | done |
| 7991 | done |
| 7992 | IFS=$as_save_IFS |
| 7993 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7994 | ;; |
| 7995 | esac |
| 7996 | fi |
| 7997 | RUNTEST=$ac_cv_path_RUNTEST |
| 7998 | if test -n "$RUNTEST"; then |
| 7999 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8000 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 8001 | else |
| 8002 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8003 | echo "${ECHO_T}no" >&6; } |
| 8004 | fi |
| 8005 | |
| 8006 | |
| 8007 | |
| 8008 | no_itcl=true |
| 8009 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8010 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 8011 | |
| 8012 | # Check whether --with-tclinclude was given. |
| 8013 | if test "${with_tclinclude+set}" = set; then |
| 8014 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8015 | else |
| 8016 | with_tclinclude='' |
| 8017 | fi |
| 8018 | |
| 8019 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8021 | else |
| 8022 | |
| 8023 | if test x"${with_tclinclude}" != x ; then |
| 8024 | if test -f ${with_tclinclude}/tclsh ; then |
| 8025 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8026 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8027 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8028 | else |
| 8029 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8030 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8031 | { (exit 1); exit 1; }; } |
| 8032 | fi |
| 8033 | fi |
| 8034 | |
| 8035 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 8036 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8037 | echo "${ECHO_T}none" >&6; } |
| 8038 | 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 |
| 8039 | do |
| 8040 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8041 | set dummy $ac_prog; ac_word=$2 |
| 8042 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8043 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8044 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8046 | else |
| 8047 | case $TCLSH in |
| 8048 | [\\/]* | ?:[\\/]*) |
| 8049 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8050 | ;; |
| 8051 | *) |
| 8052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8053 | for as_dir in $PATH |
| 8054 | do |
| 8055 | IFS=$as_save_IFS |
| 8056 | test -z "$as_dir" && as_dir=. |
| 8057 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8058 | 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] | 8059 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 8060 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8061 | break 2 |
| 8062 | fi |
| 8063 | done |
| 8064 | done |
| 8065 | IFS=$as_save_IFS |
| 8066 | |
| 8067 | ;; |
| 8068 | esac |
| 8069 | fi |
| 8070 | TCLSH=$ac_cv_path_TCLSH |
| 8071 | if test -n "$TCLSH"; then |
| 8072 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8073 | echo "${ECHO_T}$TCLSH" >&6; } |
| 8074 | else |
| 8075 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8076 | echo "${ECHO_T}no" >&6; } |
| 8077 | fi |
| 8078 | |
| 8079 | |
| 8080 | test -n "$TCLSH" && break |
| 8081 | done |
| 8082 | |
| 8083 | if test x"${TCLSH}" = x ; then |
| 8084 | ac_cv_path_tclsh=''; |
| 8085 | else |
| 8086 | ac_cv_path_tclsh="${TCLSH}"; |
| 8087 | fi |
| 8088 | else |
| 8089 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8090 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 8091 | TCLSH="${ac_cv_path_tclsh}" |
| 8092 | |
| 8093 | fi |
| 8094 | |
| 8095 | fi |
| 8096 | |
| 8097 | # Extract the first word of "zip", so it can be a program name with args. |
| 8098 | set dummy zip; ac_word=$2 |
| 8099 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8101 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8103 | else |
| 8104 | case $ZIP in |
| 8105 | [\\/]* | ?:[\\/]*) |
| 8106 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8107 | ;; |
| 8108 | *) |
| 8109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8110 | for as_dir in $PATH |
| 8111 | do |
| 8112 | IFS=$as_save_IFS |
| 8113 | test -z "$as_dir" && as_dir=. |
| 8114 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8115 | 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] | 8116 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 8117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8118 | break 2 |
| 8119 | fi |
| 8120 | done |
| 8121 | done |
| 8122 | IFS=$as_save_IFS |
| 8123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8124 | ;; |
| 8125 | esac |
| 8126 | fi |
| 8127 | ZIP=$ac_cv_path_ZIP |
| 8128 | if test -n "$ZIP"; then |
| 8129 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8130 | echo "${ECHO_T}$ZIP" >&6; } |
| 8131 | else |
| 8132 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8133 | echo "${ECHO_T}no" >&6; } |
| 8134 | fi |
| 8135 | |
| 8136 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8137 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8138 | do |
| 8139 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8140 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8141 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8143 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8145 | else |
| 8146 | case $OCAMLC in |
| 8147 | [\\/]* | ?:[\\/]*) |
| 8148 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8149 | ;; |
| 8150 | *) |
| 8151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8152 | for as_dir in $PATH |
| 8153 | do |
| 8154 | IFS=$as_save_IFS |
| 8155 | test -z "$as_dir" && as_dir=. |
| 8156 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8157 | 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] | 8158 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 8159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8160 | break 2 |
| 8161 | fi |
| 8162 | done |
| 8163 | done |
| 8164 | IFS=$as_save_IFS |
| 8165 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8166 | ;; |
| 8167 | esac |
| 8168 | fi |
| 8169 | OCAMLC=$ac_cv_path_OCAMLC |
| 8170 | if test -n "$OCAMLC"; then |
| 8171 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8172 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 8173 | else |
| 8174 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8175 | echo "${ECHO_T}no" >&6; } |
| 8176 | fi |
| 8177 | |
| 8178 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8179 | test -n "$OCAMLC" && break |
| 8180 | done |
| 8181 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8182 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8183 | do |
| 8184 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8185 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8186 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8188 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8190 | else |
| 8191 | case $OCAMLOPT in |
| 8192 | [\\/]* | ?:[\\/]*) |
| 8193 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8194 | ;; |
| 8195 | *) |
| 8196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8197 | for as_dir in $PATH |
| 8198 | do |
| 8199 | IFS=$as_save_IFS |
| 8200 | test -z "$as_dir" && as_dir=. |
| 8201 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8202 | 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] | 8203 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8205 | break 2 |
| 8206 | fi |
| 8207 | done |
| 8208 | done |
| 8209 | IFS=$as_save_IFS |
| 8210 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8211 | ;; |
| 8212 | esac |
| 8213 | fi |
| 8214 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8215 | if test -n "$OCAMLOPT"; then |
| 8216 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8217 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 8218 | else |
| 8219 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8220 | echo "${ECHO_T}no" >&6; } |
| 8221 | fi |
| 8222 | |
| 8223 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8224 | test -n "$OCAMLOPT" && break |
| 8225 | done |
| 8226 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8227 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8228 | do |
| 8229 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8230 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8231 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8233 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8235 | else |
| 8236 | case $OCAMLDEP in |
| 8237 | [\\/]* | ?:[\\/]*) |
| 8238 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8239 | ;; |
| 8240 | *) |
| 8241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8242 | for as_dir in $PATH |
| 8243 | do |
| 8244 | IFS=$as_save_IFS |
| 8245 | test -z "$as_dir" && as_dir=. |
| 8246 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8247 | 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] | 8248 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 8249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8250 | break 2 |
| 8251 | fi |
| 8252 | done |
| 8253 | done |
| 8254 | IFS=$as_save_IFS |
| 8255 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8256 | ;; |
| 8257 | esac |
| 8258 | fi |
| 8259 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8260 | if test -n "$OCAMLDEP"; then |
| 8261 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8262 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 8263 | else |
| 8264 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8265 | echo "${ECHO_T}no" >&6; } |
| 8266 | fi |
| 8267 | |
| 8268 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8269 | test -n "$OCAMLDEP" && break |
| 8270 | done |
| 8271 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8272 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8273 | do |
| 8274 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8275 | set dummy $ac_prog; ac_word=$2 |
| 8276 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8278 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8280 | else |
| 8281 | case $OCAMLDOC in |
| 8282 | [\\/]* | ?:[\\/]*) |
| 8283 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8284 | ;; |
| 8285 | *) |
| 8286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8287 | for as_dir in $PATH |
| 8288 | do |
| 8289 | IFS=$as_save_IFS |
| 8290 | test -z "$as_dir" && as_dir=. |
| 8291 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8292 | 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] | 8293 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 8294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8295 | break 2 |
| 8296 | fi |
| 8297 | done |
| 8298 | done |
| 8299 | IFS=$as_save_IFS |
| 8300 | |
| 8301 | ;; |
| 8302 | esac |
| 8303 | fi |
| 8304 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8305 | if test -n "$OCAMLDOC"; then |
| 8306 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8307 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 8308 | else |
| 8309 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8310 | echo "${ECHO_T}no" >&6; } |
| 8311 | fi |
| 8312 | |
| 8313 | |
| 8314 | test -n "$OCAMLDOC" && break |
| 8315 | done |
| 8316 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8317 | for ac_prog in gas as |
| 8318 | do |
| 8319 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8320 | set dummy $ac_prog; ac_word=$2 |
| 8321 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8323 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8325 | else |
| 8326 | case $GAS in |
| 8327 | [\\/]* | ?:[\\/]*) |
| 8328 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8329 | ;; |
| 8330 | *) |
| 8331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8332 | for as_dir in $PATH |
| 8333 | do |
| 8334 | IFS=$as_save_IFS |
| 8335 | test -z "$as_dir" && as_dir=. |
| 8336 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8337 | 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] | 8338 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 8339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8340 | break 2 |
| 8341 | fi |
| 8342 | done |
| 8343 | done |
| 8344 | IFS=$as_save_IFS |
| 8345 | |
| 8346 | ;; |
| 8347 | esac |
| 8348 | fi |
| 8349 | GAS=$ac_cv_path_GAS |
| 8350 | if test -n "$GAS"; then |
| 8351 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8352 | echo "${ECHO_T}$GAS" >&6; } |
| 8353 | else |
| 8354 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8355 | echo "${ECHO_T}no" >&6; } |
| 8356 | fi |
| 8357 | |
| 8358 | |
| 8359 | test -n "$GAS" && break |
| 8360 | done |
| 8361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8362 | |
| 8363 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8364 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8365 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8367 | else |
| 8368 | ac_ext=c |
| 8369 | ac_cpp='$CPP $CPPFLAGS' |
| 8370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8373 | |
| 8374 | oldcflags="$CFLAGS" |
| 8375 | CFLAGS="$CFLAGS -Wl,-R." |
| 8376 | cat >conftest.$ac_ext <<_ACEOF |
| 8377 | /* confdefs.h. */ |
| 8378 | _ACEOF |
| 8379 | cat confdefs.h >>conftest.$ac_ext |
| 8380 | cat >>conftest.$ac_ext <<_ACEOF |
| 8381 | /* end confdefs.h. */ |
| 8382 | |
| 8383 | int |
| 8384 | main () |
| 8385 | { |
| 8386 | int main() { return 0; } |
| 8387 | ; |
| 8388 | return 0; |
| 8389 | } |
| 8390 | _ACEOF |
| 8391 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8392 | if { (ac_try="$ac_link" |
| 8393 | case "(($ac_try" in |
| 8394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8395 | *) ac_try_echo=$ac_try;; |
| 8396 | esac |
| 8397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8398 | (eval "$ac_link") 2>conftest.er1 |
| 8399 | ac_status=$? |
| 8400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8401 | rm -f conftest.er1 |
| 8402 | cat conftest.err >&5 |
| 8403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8404 | (exit $ac_status); } && |
| 8405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8406 | { (case "(($ac_try" in |
| 8407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8408 | *) ac_try_echo=$ac_try;; |
| 8409 | esac |
| 8410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8411 | (eval "$ac_try") 2>&5 |
| 8412 | ac_status=$? |
| 8413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8414 | (exit $ac_status); }; } && |
| 8415 | { ac_try='test -s conftest$ac_exeext' |
| 8416 | { (case "(($ac_try" in |
| 8417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8418 | *) ac_try_echo=$ac_try;; |
| 8419 | esac |
| 8420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8421 | (eval "$ac_try") 2>&5 |
| 8422 | ac_status=$? |
| 8423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8424 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8425 | llvm_cv_link_use_r=yes |
| 8426 | else |
| 8427 | echo "$as_me: failed program was:" >&5 |
| 8428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8429 | |
| 8430 | llvm_cv_link_use_r=no |
| 8431 | fi |
| 8432 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8433 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8434 | conftest$ac_exeext conftest.$ac_ext |
| 8435 | CFLAGS="$oldcflags" |
| 8436 | ac_ext=c |
| 8437 | ac_cpp='$CPP $CPPFLAGS' |
| 8438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8441 | |
| 8442 | |
| 8443 | fi |
| 8444 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8445 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8446 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8447 | |
| 8448 | cat >>confdefs.h <<\_ACEOF |
| 8449 | #define HAVE_LINK_R 1 |
| 8450 | _ACEOF |
| 8451 | |
| 8452 | fi |
| 8453 | |
| 8454 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8455 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8456 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8457 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8459 | else |
| 8460 | ac_ext=c |
| 8461 | ac_cpp='$CPP $CPPFLAGS' |
| 8462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8465 | |
| 8466 | oldcflags="$CFLAGS" |
| 8467 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
| 8468 | cat >conftest.$ac_ext <<_ACEOF |
| 8469 | /* confdefs.h. */ |
| 8470 | _ACEOF |
| 8471 | cat confdefs.h >>conftest.$ac_ext |
| 8472 | cat >>conftest.$ac_ext <<_ACEOF |
| 8473 | /* end confdefs.h. */ |
| 8474 | |
| 8475 | int |
| 8476 | main () |
| 8477 | { |
| 8478 | int main() { return 0; } |
| 8479 | ; |
| 8480 | return 0; |
| 8481 | } |
| 8482 | _ACEOF |
| 8483 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8484 | if { (ac_try="$ac_link" |
| 8485 | case "(($ac_try" in |
| 8486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8487 | *) ac_try_echo=$ac_try;; |
| 8488 | esac |
| 8489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8490 | (eval "$ac_link") 2>conftest.er1 |
| 8491 | ac_status=$? |
| 8492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8493 | rm -f conftest.er1 |
| 8494 | cat conftest.err >&5 |
| 8495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8496 | (exit $ac_status); } && |
| 8497 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8498 | { (case "(($ac_try" in |
| 8499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8500 | *) ac_try_echo=$ac_try;; |
| 8501 | esac |
| 8502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8503 | (eval "$ac_try") 2>&5 |
| 8504 | ac_status=$? |
| 8505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8506 | (exit $ac_status); }; } && |
| 8507 | { ac_try='test -s conftest$ac_exeext' |
| 8508 | { (case "(($ac_try" in |
| 8509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8510 | *) ac_try_echo=$ac_try;; |
| 8511 | esac |
| 8512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8513 | (eval "$ac_try") 2>&5 |
| 8514 | ac_status=$? |
| 8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8516 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8517 | llvm_cv_link_use_export_dynamic=yes |
| 8518 | else |
| 8519 | echo "$as_me: failed program was:" >&5 |
| 8520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8521 | |
| 8522 | llvm_cv_link_use_export_dynamic=no |
| 8523 | fi |
| 8524 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8525 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8526 | conftest$ac_exeext conftest.$ac_ext |
| 8527 | CFLAGS="$oldcflags" |
| 8528 | ac_ext=c |
| 8529 | ac_cpp='$CPP $CPPFLAGS' |
| 8530 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8531 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8532 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8533 | |
| 8534 | |
| 8535 | fi |
| 8536 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8537 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
| 8538 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8539 | |
| 8540 | cat >>confdefs.h <<\_ACEOF |
| 8541 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8542 | _ACEOF |
| 8543 | |
| 8544 | fi |
| 8545 | |
| 8546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8547 | |
| 8548 | |
| 8549 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8550 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8551 | if test "${ac_cv_c_const+set}" = set; then |
| 8552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8553 | else |
| 8554 | cat >conftest.$ac_ext <<_ACEOF |
| 8555 | /* confdefs.h. */ |
| 8556 | _ACEOF |
| 8557 | cat confdefs.h >>conftest.$ac_ext |
| 8558 | cat >>conftest.$ac_ext <<_ACEOF |
| 8559 | /* end confdefs.h. */ |
| 8560 | |
| 8561 | int |
| 8562 | main () |
| 8563 | { |
| 8564 | /* FIXME: Include the comments suggested by Paul. */ |
| 8565 | #ifndef __cplusplus |
| 8566 | /* Ultrix mips cc rejects this. */ |
| 8567 | typedef int charset[2]; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8568 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8569 | /* SunOS 4.1.1 cc rejects this. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8570 | char const *const *ccp; |
| 8571 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8572 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8573 | struct point {int x, y;}; |
| 8574 | static struct point const zero = {0,0}; |
| 8575 | /* AIX XL C 1.02.0.0 rejects this. |
| 8576 | It does not let you subtract one const X* pointer from another in |
| 8577 | an arm of an if-expression whose if-part is not a constant |
| 8578 | expression */ |
| 8579 | const char *g = "string"; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8580 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8581 | /* HPUX 7.0 cc rejects these. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8582 | ++ccp; |
| 8583 | p = (char**) ccp; |
| 8584 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8585 | { /* SCO 3.2v4 cc rejects this. */ |
| 8586 | char *t; |
| 8587 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8588 | |
| 8589 | *t++ = 0; |
| 8590 | if (s) return 0; |
| 8591 | } |
| 8592 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8593 | int x[] = {25, 17}; |
| 8594 | const int *foo = &x[0]; |
| 8595 | ++foo; |
| 8596 | } |
| 8597 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8598 | typedef const int *iptr; |
| 8599 | iptr p = 0; |
| 8600 | ++p; |
| 8601 | } |
| 8602 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8603 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8604 | struct s { int j; const int *ap[3]; }; |
| 8605 | struct s *b; b->j = 5; |
| 8606 | } |
| 8607 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8608 | const int foo = 10; |
| 8609 | if (!foo) return 0; |
| 8610 | } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8611 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8612 | #endif |
| 8613 | |
| 8614 | ; |
| 8615 | return 0; |
| 8616 | } |
| 8617 | _ACEOF |
| 8618 | rm -f conftest.$ac_objext |
| 8619 | if { (ac_try="$ac_compile" |
| 8620 | case "(($ac_try" in |
| 8621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8622 | *) ac_try_echo=$ac_try;; |
| 8623 | esac |
| 8624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8625 | (eval "$ac_compile") 2>conftest.er1 |
| 8626 | ac_status=$? |
| 8627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8628 | rm -f conftest.er1 |
| 8629 | cat conftest.err >&5 |
| 8630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8631 | (exit $ac_status); } && |
| 8632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8633 | { (case "(($ac_try" in |
| 8634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8635 | *) ac_try_echo=$ac_try;; |
| 8636 | esac |
| 8637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8638 | (eval "$ac_try") 2>&5 |
| 8639 | ac_status=$? |
| 8640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8641 | (exit $ac_status); }; } && |
| 8642 | { ac_try='test -s conftest.$ac_objext' |
| 8643 | { (case "(($ac_try" in |
| 8644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8645 | *) ac_try_echo=$ac_try;; |
| 8646 | esac |
| 8647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8648 | (eval "$ac_try") 2>&5 |
| 8649 | ac_status=$? |
| 8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8651 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8652 | ac_cv_c_const=yes |
| 8653 | else |
| 8654 | echo "$as_me: failed program was:" >&5 |
| 8655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8656 | |
| 8657 | ac_cv_c_const=no |
| 8658 | fi |
| 8659 | |
| 8660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8661 | fi |
| 8662 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8663 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8664 | if test $ac_cv_c_const = no; then |
| 8665 | |
| 8666 | cat >>confdefs.h <<\_ACEOF |
| 8667 | #define const |
| 8668 | _ACEOF |
| 8669 | |
| 8670 | fi |
| 8671 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8672 | |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | |
| 8677 | ac_header_dirent=no |
| 8678 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8679 | 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] | 8680 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8681 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8682 | 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] | 8683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8684 | else |
| 8685 | cat >conftest.$ac_ext <<_ACEOF |
| 8686 | /* confdefs.h. */ |
| 8687 | _ACEOF |
| 8688 | cat confdefs.h >>conftest.$ac_ext |
| 8689 | cat >>conftest.$ac_ext <<_ACEOF |
| 8690 | /* end confdefs.h. */ |
| 8691 | #include <sys/types.h> |
| 8692 | #include <$ac_hdr> |
| 8693 | |
| 8694 | int |
| 8695 | main () |
| 8696 | { |
| 8697 | if ((DIR *) 0) |
| 8698 | return 0; |
| 8699 | ; |
| 8700 | return 0; |
| 8701 | } |
| 8702 | _ACEOF |
| 8703 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8704 | if { (ac_try="$ac_compile" |
| 8705 | case "(($ac_try" in |
| 8706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8707 | *) ac_try_echo=$ac_try;; |
| 8708 | esac |
| 8709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8710 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8711 | ac_status=$? |
| 8712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8713 | rm -f conftest.er1 |
| 8714 | cat conftest.err >&5 |
| 8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8716 | (exit $ac_status); } && |
| 8717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8718 | { (case "(($ac_try" in |
| 8719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8720 | *) ac_try_echo=$ac_try;; |
| 8721 | esac |
| 8722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8723 | (eval "$ac_try") 2>&5 |
| 8724 | ac_status=$? |
| 8725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8726 | (exit $ac_status); }; } && |
| 8727 | { ac_try='test -s conftest.$ac_objext' |
| 8728 | { (case "(($ac_try" in |
| 8729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8730 | *) ac_try_echo=$ac_try;; |
| 8731 | esac |
| 8732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8733 | (eval "$ac_try") 2>&5 |
| 8734 | ac_status=$? |
| 8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8736 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8737 | eval "$as_ac_Header=yes" |
| 8738 | else |
| 8739 | echo "$as_me: failed program was:" >&5 |
| 8740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8742 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8743 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8744 | |
| 8745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8746 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8747 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8748 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8749 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8750 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8751 | cat >>confdefs.h <<_ACEOF |
| 8752 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8753 | _ACEOF |
| 8754 | |
| 8755 | ac_header_dirent=$ac_hdr; break |
| 8756 | fi |
| 8757 | |
| 8758 | done |
| 8759 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8760 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8761 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8762 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8763 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8765 | else |
| 8766 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8767 | cat >conftest.$ac_ext <<_ACEOF |
| 8768 | /* confdefs.h. */ |
| 8769 | _ACEOF |
| 8770 | cat confdefs.h >>conftest.$ac_ext |
| 8771 | cat >>conftest.$ac_ext <<_ACEOF |
| 8772 | /* end confdefs.h. */ |
| 8773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8774 | /* Override any GCC internal prototype to avoid an error. |
| 8775 | Use char because int might match the return type of a GCC |
| 8776 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8777 | #ifdef __cplusplus |
| 8778 | extern "C" |
| 8779 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8780 | char opendir (); |
| 8781 | int |
| 8782 | main () |
| 8783 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8784 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8785 | ; |
| 8786 | return 0; |
| 8787 | } |
| 8788 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8789 | for ac_lib in '' dir; do |
| 8790 | if test -z "$ac_lib"; then |
| 8791 | ac_res="none required" |
| 8792 | else |
| 8793 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8794 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8795 | fi |
| 8796 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8797 | if { (ac_try="$ac_link" |
| 8798 | case "(($ac_try" in |
| 8799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8800 | *) ac_try_echo=$ac_try;; |
| 8801 | esac |
| 8802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8803 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8804 | ac_status=$? |
| 8805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8806 | rm -f conftest.er1 |
| 8807 | cat conftest.err >&5 |
| 8808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8809 | (exit $ac_status); } && |
| 8810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8811 | { (case "(($ac_try" in |
| 8812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8813 | *) ac_try_echo=$ac_try;; |
| 8814 | esac |
| 8815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8816 | (eval "$ac_try") 2>&5 |
| 8817 | ac_status=$? |
| 8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8819 | (exit $ac_status); }; } && |
| 8820 | { ac_try='test -s conftest$ac_exeext' |
| 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_try") 2>&5 |
| 8827 | ac_status=$? |
| 8828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8829 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8830 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8831 | else |
| 8832 | echo "$as_me: failed program was:" >&5 |
| 8833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8834 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8835 | |
| 8836 | fi |
| 8837 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8838 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8839 | conftest$ac_exeext |
| 8840 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8841 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8842 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8843 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8844 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8845 | : |
| 8846 | else |
| 8847 | ac_cv_search_opendir=no |
| 8848 | fi |
| 8849 | rm conftest.$ac_ext |
| 8850 | LIBS=$ac_func_search_save_LIBS |
| 8851 | fi |
| 8852 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8853 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8854 | ac_res=$ac_cv_search_opendir |
| 8855 | if test "$ac_res" != no; then |
| 8856 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8857 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8858 | fi |
| 8859 | |
| 8860 | else |
| 8861 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8862 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8863 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8865 | else |
| 8866 | ac_func_search_save_LIBS=$LIBS |
| 8867 | cat >conftest.$ac_ext <<_ACEOF |
| 8868 | /* confdefs.h. */ |
| 8869 | _ACEOF |
| 8870 | cat confdefs.h >>conftest.$ac_ext |
| 8871 | cat >>conftest.$ac_ext <<_ACEOF |
| 8872 | /* end confdefs.h. */ |
| 8873 | |
| 8874 | /* Override any GCC internal prototype to avoid an error. |
| 8875 | Use char because int might match the return type of a GCC |
| 8876 | builtin and then its argument prototype would still apply. */ |
| 8877 | #ifdef __cplusplus |
| 8878 | extern "C" |
| 8879 | #endif |
| 8880 | char opendir (); |
| 8881 | int |
| 8882 | main () |
| 8883 | { |
| 8884 | return opendir (); |
| 8885 | ; |
| 8886 | return 0; |
| 8887 | } |
| 8888 | _ACEOF |
| 8889 | for ac_lib in '' x; do |
| 8890 | if test -z "$ac_lib"; then |
| 8891 | ac_res="none required" |
| 8892 | else |
| 8893 | ac_res=-l$ac_lib |
| 8894 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8895 | fi |
| 8896 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8897 | if { (ac_try="$ac_link" |
| 8898 | case "(($ac_try" in |
| 8899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8900 | *) ac_try_echo=$ac_try;; |
| 8901 | esac |
| 8902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8903 | (eval "$ac_link") 2>conftest.er1 |
| 8904 | ac_status=$? |
| 8905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8906 | rm -f conftest.er1 |
| 8907 | cat conftest.err >&5 |
| 8908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8909 | (exit $ac_status); } && |
| 8910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8911 | { (case "(($ac_try" in |
| 8912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8913 | *) ac_try_echo=$ac_try;; |
| 8914 | esac |
| 8915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8916 | (eval "$ac_try") 2>&5 |
| 8917 | ac_status=$? |
| 8918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8919 | (exit $ac_status); }; } && |
| 8920 | { ac_try='test -s conftest$ac_exeext' |
| 8921 | { (case "(($ac_try" in |
| 8922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8923 | *) ac_try_echo=$ac_try;; |
| 8924 | esac |
| 8925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8926 | (eval "$ac_try") 2>&5 |
| 8927 | ac_status=$? |
| 8928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8929 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8930 | ac_cv_search_opendir=$ac_res |
| 8931 | else |
| 8932 | echo "$as_me: failed program was:" >&5 |
| 8933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8934 | |
| 8935 | |
| 8936 | fi |
| 8937 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8938 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8939 | conftest$ac_exeext |
| 8940 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8941 | break |
| 8942 | fi |
| 8943 | done |
| 8944 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8945 | : |
| 8946 | else |
| 8947 | ac_cv_search_opendir=no |
| 8948 | fi |
| 8949 | rm conftest.$ac_ext |
| 8950 | LIBS=$ac_func_search_save_LIBS |
| 8951 | fi |
| 8952 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8953 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8954 | ac_res=$ac_cv_search_opendir |
| 8955 | if test "$ac_res" != no; then |
| 8956 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8957 | |
| 8958 | fi |
| 8959 | |
| 8960 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8961 | |
| 8962 | |
| 8963 | for ac_header in dlfcn.h |
| 8964 | do |
| 8965 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8966 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8967 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8968 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8969 | 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] | 8970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8971 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8972 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8973 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8974 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8975 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8976 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8977 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8978 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8979 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8980 | /* confdefs.h. */ |
| 8981 | _ACEOF |
| 8982 | cat confdefs.h >>conftest.$ac_ext |
| 8983 | cat >>conftest.$ac_ext <<_ACEOF |
| 8984 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8985 | $ac_includes_default |
| 8986 | #include <$ac_header> |
| 8987 | _ACEOF |
| 8988 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8989 | if { (ac_try="$ac_compile" |
| 8990 | case "(($ac_try" in |
| 8991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8992 | *) ac_try_echo=$ac_try;; |
| 8993 | esac |
| 8994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8995 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8996 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8998 | rm -f conftest.er1 |
| 8999 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9001 | (exit $ac_status); } && |
| 9002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9003 | { (case "(($ac_try" in |
| 9004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9005 | *) ac_try_echo=$ac_try;; |
| 9006 | esac |
| 9007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9008 | (eval "$ac_try") 2>&5 |
| 9009 | ac_status=$? |
| 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9011 | (exit $ac_status); }; } && |
| 9012 | { ac_try='test -s conftest.$ac_objext' |
| 9013 | { (case "(($ac_try" in |
| 9014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9015 | *) ac_try_echo=$ac_try;; |
| 9016 | esac |
| 9017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9018 | (eval "$ac_try") 2>&5 |
| 9019 | ac_status=$? |
| 9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9021 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9022 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9023 | else |
| 9024 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9027 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9028 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9029 | |
| 9030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9031 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9032 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9033 | |
| 9034 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9035 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9037 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9038 | /* confdefs.h. */ |
| 9039 | _ACEOF |
| 9040 | cat confdefs.h >>conftest.$ac_ext |
| 9041 | cat >>conftest.$ac_ext <<_ACEOF |
| 9042 | /* end confdefs.h. */ |
| 9043 | #include <$ac_header> |
| 9044 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9045 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9046 | case "(($ac_try" in |
| 9047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9048 | *) ac_try_echo=$ac_try;; |
| 9049 | esac |
| 9050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9051 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9052 | ac_status=$? |
| 9053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9054 | rm -f conftest.er1 |
| 9055 | cat conftest.err >&5 |
| 9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9057 | (exit $ac_status); } >/dev/null; then |
| 9058 | if test -s conftest.err; then |
| 9059 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9060 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9061 | else |
| 9062 | ac_cpp_err= |
| 9063 | fi |
| 9064 | else |
| 9065 | ac_cpp_err=yes |
| 9066 | fi |
| 9067 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9068 | ac_header_preproc=yes |
| 9069 | else |
| 9070 | echo "$as_me: failed program was:" >&5 |
| 9071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9072 | |
| 9073 | ac_header_preproc=no |
| 9074 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9075 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9076 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9077 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9078 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9079 | |
| 9080 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9081 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9082 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9083 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9084 | 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] | 9085 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9086 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9087 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9088 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9089 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9090 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9091 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9092 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9093 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9094 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9095 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9096 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9097 | 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] | 9098 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9099 | 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] | 9100 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9101 | 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] | 9102 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9103 | ## ----------------------------------- ## |
| 9104 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9105 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9106 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9107 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9108 | ;; |
| 9109 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9110 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9112 | 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] | 9113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9114 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9115 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9116 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9117 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9118 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9119 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9120 | |
| 9121 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9122 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9123 | cat >>confdefs.h <<_ACEOF |
| 9124 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9125 | _ACEOF |
| 9126 | |
| 9127 | fi |
| 9128 | |
| 9129 | done |
| 9130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9131 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9132 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9133 | enableval=$enable_ltdl_install; |
| 9134 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9135 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9136 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9137 | |
| 9138 | |
| 9139 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9140 | INSTALL_LTDL_TRUE= |
| 9141 | INSTALL_LTDL_FALSE='#' |
| 9142 | else |
| 9143 | INSTALL_LTDL_TRUE='#' |
| 9144 | INSTALL_LTDL_FALSE= |
| 9145 | fi |
| 9146 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9147 | |
| 9148 | |
| 9149 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9150 | CONVENIENCE_LTDL_TRUE= |
| 9151 | CONVENIENCE_LTDL_FALSE='#' |
| 9152 | else |
| 9153 | CONVENIENCE_LTDL_TRUE='#' |
| 9154 | CONVENIENCE_LTDL_FALSE= |
| 9155 | fi |
| 9156 | |
| 9157 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9158 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9159 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9160 | library_names_spec= |
| 9161 | libname_spec='lib$name' |
| 9162 | soname_spec= |
| 9163 | shrext_cmds=".so" |
| 9164 | postinstall_cmds= |
| 9165 | postuninstall_cmds= |
| 9166 | finish_cmds= |
| 9167 | finish_eval= |
| 9168 | shlibpath_var= |
| 9169 | shlibpath_overrides_runpath=unknown |
| 9170 | version_type=none |
| 9171 | dynamic_linker="$host_os ld.so" |
| 9172 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9173 | if test "$GCC" = yes; then |
| 9174 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9175 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9176 | # if the path contains ";" then we assume it to be the separator |
| 9177 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9178 | # assumed that no part of a normal pathname contains ";" but that should |
| 9179 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9180 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9181 | else |
| 9182 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9183 | fi |
| 9184 | else |
| 9185 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9186 | fi |
| 9187 | need_lib_prefix=unknown |
| 9188 | hardcode_into_libs=no |
| 9189 | |
| 9190 | # when you set need_version to no, make sure it does not cause -set_version |
| 9191 | # flags to be left without arguments |
| 9192 | need_version=unknown |
| 9193 | |
| 9194 | case $host_os in |
| 9195 | aix3*) |
| 9196 | version_type=linux |
| 9197 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9198 | shlibpath_var=LIBPATH |
| 9199 | |
| 9200 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9201 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9202 | ;; |
| 9203 | |
| 9204 | aix4* | aix5*) |
| 9205 | version_type=linux |
| 9206 | need_lib_prefix=no |
| 9207 | need_version=no |
| 9208 | hardcode_into_libs=yes |
| 9209 | if test "$host_cpu" = ia64; then |
| 9210 | # AIX 5 supports IA64 |
| 9211 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9212 | shlibpath_var=LD_LIBRARY_PATH |
| 9213 | else |
| 9214 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9215 | # for dependence libraries. The import file would start with |
| 9216 | # the line `#! .'. This would cause the generated library to |
| 9217 | # depend on `.', always an invalid library. This was fixed in |
| 9218 | # development snapshots of GCC prior to 3.0. |
| 9219 | case $host_os in |
| 9220 | aix4 | aix4.[01] | aix4.[01].*) |
| 9221 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9222 | echo ' yes ' |
| 9223 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9224 | : |
| 9225 | else |
| 9226 | can_build_shared=no |
| 9227 | fi |
| 9228 | ;; |
| 9229 | esac |
| 9230 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9231 | # soname into executable. Probably we can add versioning support to |
| 9232 | # collect2, so additional links can be useful in future. |
| 9233 | if test "$aix_use_runtimelinking" = yes; then |
| 9234 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9235 | # instead of lib<name>.a to let people know that these are not |
| 9236 | # typical AIX shared libraries. |
| 9237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9238 | else |
| 9239 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9240 | # and later when we are not doing run time linking. |
| 9241 | library_names_spec='${libname}${release}.a $libname.a' |
| 9242 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9243 | fi |
| 9244 | shlibpath_var=LIBPATH |
| 9245 | fi |
| 9246 | ;; |
| 9247 | |
| 9248 | amigaos*) |
| 9249 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9250 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9251 | 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' |
| 9252 | ;; |
| 9253 | |
| 9254 | beos*) |
| 9255 | library_names_spec='${libname}${shared_ext}' |
| 9256 | dynamic_linker="$host_os ld.so" |
| 9257 | shlibpath_var=LIBRARY_PATH |
| 9258 | ;; |
| 9259 | |
| 9260 | bsdi[45]*) |
| 9261 | version_type=linux |
| 9262 | need_version=no |
| 9263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9264 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9265 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9266 | shlibpath_var=LD_LIBRARY_PATH |
| 9267 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9268 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9269 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9270 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9271 | # libtool to hard-code these into programs |
| 9272 | ;; |
| 9273 | |
| 9274 | cygwin* | mingw* | pw32*) |
| 9275 | version_type=windows |
| 9276 | shrext_cmds=".dll" |
| 9277 | need_version=no |
| 9278 | need_lib_prefix=no |
| 9279 | |
| 9280 | case $GCC,$host_os in |
| 9281 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9282 | library_names_spec='$libname.dll.a' |
| 9283 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9284 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9285 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9286 | dldir=$destdir/`dirname \$dlpath`~ |
| 9287 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9288 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9289 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9290 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9291 | dlpath=$dir/\$dldll~ |
| 9292 | $rm \$dlpath' |
| 9293 | shlibpath_overrides_runpath=yes |
| 9294 | |
| 9295 | case $host_os in |
| 9296 | cygwin*) |
| 9297 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9298 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9299 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9300 | ;; |
| 9301 | mingw*) |
| 9302 | # MinGW DLLs use traditional 'lib' prefix |
| 9303 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9304 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9305 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9306 | # It is most probably a Windows format PATH printed by |
| 9307 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9308 | # path with ; separators, and with drive letters. We can handle the |
| 9309 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9310 | # especially as we might pass files found there to a mingw objdump, |
| 9311 | # which wouldn't understand a cygwinified path. Ahh. |
| 9312 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9313 | else |
| 9314 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9315 | fi |
| 9316 | ;; |
| 9317 | pw32*) |
| 9318 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9319 | 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] | 9320 | ;; |
| 9321 | esac |
| 9322 | ;; |
| 9323 | |
| 9324 | *) |
| 9325 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9326 | ;; |
| 9327 | esac |
| 9328 | dynamic_linker='Win32 ld.exe' |
| 9329 | # FIXME: first we should search . and the directory the executable is in |
| 9330 | shlibpath_var=PATH |
| 9331 | ;; |
| 9332 | |
| 9333 | darwin* | rhapsody*) |
| 9334 | dynamic_linker="$host_os dyld" |
| 9335 | version_type=darwin |
| 9336 | need_lib_prefix=no |
| 9337 | need_version=no |
| 9338 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9339 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9340 | shlibpath_overrides_runpath=yes |
| 9341 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9342 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9343 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9344 | if test "$GCC" = yes; then |
| 9345 | 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"` |
| 9346 | else |
| 9347 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9348 | fi |
| 9349 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9350 | ;; |
| 9351 | |
| 9352 | dgux*) |
| 9353 | version_type=linux |
| 9354 | need_lib_prefix=no |
| 9355 | need_version=no |
| 9356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9357 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9358 | shlibpath_var=LD_LIBRARY_PATH |
| 9359 | ;; |
| 9360 | |
| 9361 | freebsd1*) |
| 9362 | dynamic_linker=no |
| 9363 | ;; |
| 9364 | |
| 9365 | kfreebsd*-gnu) |
| 9366 | version_type=linux |
| 9367 | need_lib_prefix=no |
| 9368 | need_version=no |
| 9369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9370 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9371 | shlibpath_var=LD_LIBRARY_PATH |
| 9372 | shlibpath_overrides_runpath=no |
| 9373 | hardcode_into_libs=yes |
| 9374 | dynamic_linker='GNU ld.so' |
| 9375 | ;; |
| 9376 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9377 | freebsd* | dragonfly*) |
| 9378 | # DragonFly does not have aout. When/if they implement a new |
| 9379 | # versioning mechanism, adjust this. |
| 9380 | if test -x /usr/bin/objformat; then |
| 9381 | objformat=`/usr/bin/objformat` |
| 9382 | else |
| 9383 | case $host_os in |
| 9384 | freebsd[123]*) objformat=aout ;; |
| 9385 | *) objformat=elf ;; |
| 9386 | esac |
| 9387 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9388 | version_type=freebsd-$objformat |
| 9389 | case $version_type in |
| 9390 | freebsd-elf*) |
| 9391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9392 | need_version=no |
| 9393 | need_lib_prefix=no |
| 9394 | ;; |
| 9395 | freebsd-*) |
| 9396 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9397 | need_version=yes |
| 9398 | ;; |
| 9399 | esac |
| 9400 | shlibpath_var=LD_LIBRARY_PATH |
| 9401 | case $host_os in |
| 9402 | freebsd2*) |
| 9403 | shlibpath_overrides_runpath=yes |
| 9404 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9405 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9406 | shlibpath_overrides_runpath=yes |
| 9407 | hardcode_into_libs=yes |
| 9408 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9409 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9410 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9411 | shlibpath_overrides_runpath=no |
| 9412 | hardcode_into_libs=yes |
| 9413 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9414 | freebsd*) # from 4.6 on |
| 9415 | shlibpath_overrides_runpath=yes |
| 9416 | hardcode_into_libs=yes |
| 9417 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9418 | esac |
| 9419 | ;; |
| 9420 | |
| 9421 | gnu*) |
| 9422 | version_type=linux |
| 9423 | need_lib_prefix=no |
| 9424 | need_version=no |
| 9425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9426 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9427 | shlibpath_var=LD_LIBRARY_PATH |
| 9428 | hardcode_into_libs=yes |
| 9429 | ;; |
| 9430 | |
| 9431 | hpux9* | hpux10* | hpux11*) |
| 9432 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9433 | # link against other versions. |
| 9434 | version_type=sunos |
| 9435 | need_lib_prefix=no |
| 9436 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9437 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9438 | ia64*) |
| 9439 | shrext_cmds='.so' |
| 9440 | hardcode_into_libs=yes |
| 9441 | dynamic_linker="$host_os dld.so" |
| 9442 | shlibpath_var=LD_LIBRARY_PATH |
| 9443 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9445 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9446 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9447 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9448 | else |
| 9449 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9450 | fi |
| 9451 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9452 | ;; |
| 9453 | hppa*64*) |
| 9454 | shrext_cmds='.sl' |
| 9455 | hardcode_into_libs=yes |
| 9456 | dynamic_linker="$host_os dld.sl" |
| 9457 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9458 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9460 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9461 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9462 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9463 | ;; |
| 9464 | *) |
| 9465 | shrext_cmds='.sl' |
| 9466 | dynamic_linker="$host_os dld.sl" |
| 9467 | shlibpath_var=SHLIB_PATH |
| 9468 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9469 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9470 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9471 | ;; |
| 9472 | esac |
| 9473 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9474 | postinstall_cmds='chmod 555 $lib' |
| 9475 | ;; |
| 9476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9477 | interix3*) |
| 9478 | version_type=linux |
| 9479 | need_lib_prefix=no |
| 9480 | need_version=no |
| 9481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9482 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9483 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9484 | shlibpath_var=LD_LIBRARY_PATH |
| 9485 | shlibpath_overrides_runpath=no |
| 9486 | hardcode_into_libs=yes |
| 9487 | ;; |
| 9488 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9489 | irix5* | irix6* | nonstopux*) |
| 9490 | case $host_os in |
| 9491 | nonstopux*) version_type=nonstopux ;; |
| 9492 | *) |
| 9493 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9494 | version_type=linux |
| 9495 | else |
| 9496 | version_type=irix |
| 9497 | fi ;; |
| 9498 | esac |
| 9499 | need_lib_prefix=no |
| 9500 | need_version=no |
| 9501 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9503 | case $host_os in |
| 9504 | irix5* | nonstopux*) |
| 9505 | libsuff= shlibsuff= |
| 9506 | ;; |
| 9507 | *) |
| 9508 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9509 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9510 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9511 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9512 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9513 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9514 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9515 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9516 | esac |
| 9517 | ;; |
| 9518 | esac |
| 9519 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9520 | shlibpath_overrides_runpath=no |
| 9521 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9522 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9523 | hardcode_into_libs=yes |
| 9524 | ;; |
| 9525 | |
| 9526 | # No shared lib support for Linux oldld, aout, or coff. |
| 9527 | linux*oldld* | linux*aout* | linux*coff*) |
| 9528 | dynamic_linker=no |
| 9529 | ;; |
| 9530 | |
| 9531 | # This must be Linux ELF. |
| 9532 | linux*) |
| 9533 | version_type=linux |
| 9534 | need_lib_prefix=no |
| 9535 | need_version=no |
| 9536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9537 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9538 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9539 | shlibpath_var=LD_LIBRARY_PATH |
| 9540 | shlibpath_overrides_runpath=no |
| 9541 | # This implies no fast_install, which is unacceptable. |
| 9542 | # Some rework will be needed to allow for fast_install |
| 9543 | # before this can be enabled. |
| 9544 | hardcode_into_libs=yes |
| 9545 | |
| 9546 | # Append ld.so.conf contents to the search path |
| 9547 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9548 | 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] | 9549 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9550 | fi |
| 9551 | |
| 9552 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9553 | # powerpc, because MkLinux only supported shared libraries with the |
| 9554 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9555 | # most powerpc-linux boxes support dynamic linking these days and |
| 9556 | # people can always --disable-shared, the test was removed, and we |
| 9557 | # assume the GNU/Linux dynamic linker is in use. |
| 9558 | dynamic_linker='GNU/Linux ld.so' |
| 9559 | ;; |
| 9560 | |
| 9561 | knetbsd*-gnu) |
| 9562 | version_type=linux |
| 9563 | need_lib_prefix=no |
| 9564 | need_version=no |
| 9565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9567 | shlibpath_var=LD_LIBRARY_PATH |
| 9568 | shlibpath_overrides_runpath=no |
| 9569 | hardcode_into_libs=yes |
| 9570 | dynamic_linker='GNU ld.so' |
| 9571 | ;; |
| 9572 | |
| 9573 | netbsd*) |
| 9574 | version_type=sunos |
| 9575 | need_lib_prefix=no |
| 9576 | need_version=no |
| 9577 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9579 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9580 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9581 | else |
| 9582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9583 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9584 | dynamic_linker='NetBSD ld.elf_so' |
| 9585 | fi |
| 9586 | shlibpath_var=LD_LIBRARY_PATH |
| 9587 | shlibpath_overrides_runpath=yes |
| 9588 | hardcode_into_libs=yes |
| 9589 | ;; |
| 9590 | |
| 9591 | newsos6) |
| 9592 | version_type=linux |
| 9593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9594 | shlibpath_var=LD_LIBRARY_PATH |
| 9595 | shlibpath_overrides_runpath=yes |
| 9596 | ;; |
| 9597 | |
| 9598 | nto-qnx*) |
| 9599 | version_type=linux |
| 9600 | need_lib_prefix=no |
| 9601 | need_version=no |
| 9602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9603 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9604 | shlibpath_var=LD_LIBRARY_PATH |
| 9605 | shlibpath_overrides_runpath=yes |
| 9606 | ;; |
| 9607 | |
| 9608 | openbsd*) |
| 9609 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9610 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9611 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9612 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9613 | case $host_os in |
| 9614 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9615 | *) need_version=no ;; |
| 9616 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9617 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9618 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9619 | shlibpath_var=LD_LIBRARY_PATH |
| 9620 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9621 | case $host_os in |
| 9622 | openbsd2.[89] | openbsd2.[89].*) |
| 9623 | shlibpath_overrides_runpath=no |
| 9624 | ;; |
| 9625 | *) |
| 9626 | shlibpath_overrides_runpath=yes |
| 9627 | ;; |
| 9628 | esac |
| 9629 | else |
| 9630 | shlibpath_overrides_runpath=yes |
| 9631 | fi |
| 9632 | ;; |
| 9633 | |
| 9634 | os2*) |
| 9635 | libname_spec='$name' |
| 9636 | shrext_cmds=".dll" |
| 9637 | need_lib_prefix=no |
| 9638 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9639 | dynamic_linker='OS/2 ld.exe' |
| 9640 | shlibpath_var=LIBPATH |
| 9641 | ;; |
| 9642 | |
| 9643 | osf3* | osf4* | osf5*) |
| 9644 | version_type=osf |
| 9645 | need_lib_prefix=no |
| 9646 | need_version=no |
| 9647 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9649 | shlibpath_var=LD_LIBRARY_PATH |
| 9650 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9651 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9652 | ;; |
| 9653 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9654 | solaris*) |
| 9655 | version_type=linux |
| 9656 | need_lib_prefix=no |
| 9657 | need_version=no |
| 9658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9659 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9660 | shlibpath_var=LD_LIBRARY_PATH |
| 9661 | shlibpath_overrides_runpath=yes |
| 9662 | hardcode_into_libs=yes |
| 9663 | # ldd complains unless libraries are executable |
| 9664 | postinstall_cmds='chmod +x $lib' |
| 9665 | ;; |
| 9666 | |
| 9667 | sunos4*) |
| 9668 | version_type=sunos |
| 9669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9670 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9671 | shlibpath_var=LD_LIBRARY_PATH |
| 9672 | shlibpath_overrides_runpath=yes |
| 9673 | if test "$with_gnu_ld" = yes; then |
| 9674 | need_lib_prefix=no |
| 9675 | fi |
| 9676 | need_version=yes |
| 9677 | ;; |
| 9678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9679 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9680 | version_type=linux |
| 9681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9682 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9683 | shlibpath_var=LD_LIBRARY_PATH |
| 9684 | case $host_vendor in |
| 9685 | sni) |
| 9686 | shlibpath_overrides_runpath=no |
| 9687 | need_lib_prefix=no |
| 9688 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9689 | runpath_var=LD_RUN_PATH |
| 9690 | ;; |
| 9691 | siemens) |
| 9692 | need_lib_prefix=no |
| 9693 | ;; |
| 9694 | motorola) |
| 9695 | need_lib_prefix=no |
| 9696 | need_version=no |
| 9697 | shlibpath_overrides_runpath=no |
| 9698 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9699 | ;; |
| 9700 | esac |
| 9701 | ;; |
| 9702 | |
| 9703 | sysv4*MP*) |
| 9704 | if test -d /usr/nec ;then |
| 9705 | version_type=linux |
| 9706 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9707 | soname_spec='$libname${shared_ext}.$major' |
| 9708 | shlibpath_var=LD_LIBRARY_PATH |
| 9709 | fi |
| 9710 | ;; |
| 9711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9712 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9713 | version_type=freebsd-elf |
| 9714 | need_lib_prefix=no |
| 9715 | need_version=no |
| 9716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9717 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9718 | shlibpath_var=LD_LIBRARY_PATH |
| 9719 | hardcode_into_libs=yes |
| 9720 | if test "$with_gnu_ld" = yes; then |
| 9721 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9722 | shlibpath_overrides_runpath=no |
| 9723 | else |
| 9724 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9725 | shlibpath_overrides_runpath=yes |
| 9726 | case $host_os in |
| 9727 | sco3.2v5*) |
| 9728 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9729 | ;; |
| 9730 | esac |
| 9731 | fi |
| 9732 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9733 | ;; |
| 9734 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9735 | uts4*) |
| 9736 | version_type=linux |
| 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 | shlibpath_var=LD_LIBRARY_PATH |
| 9740 | ;; |
| 9741 | |
| 9742 | *) |
| 9743 | dynamic_linker=no |
| 9744 | ;; |
| 9745 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9746 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9747 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9748 | test "$dynamic_linker" = no && can_build_shared=no |
| 9749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9750 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9751 | if test "$GCC" = yes; then |
| 9752 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9753 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9755 | |
| 9756 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9757 | 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] | 9758 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9760 | else |
| 9761 | |
| 9762 | module=yes |
| 9763 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9764 | |
| 9765 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9766 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9767 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9768 | if test -n "$libltdl_cv_shlibext"; then |
| 9769 | |
| 9770 | cat >>confdefs.h <<_ACEOF |
| 9771 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9772 | _ACEOF |
| 9773 | |
| 9774 | fi |
| 9775 | |
| 9776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9777 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9778 | 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] | 9779 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9781 | else |
| 9782 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9783 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9784 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9785 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9786 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9787 | |
| 9788 | cat >>confdefs.h <<_ACEOF |
| 9789 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9790 | _ACEOF |
| 9791 | |
| 9792 | fi |
| 9793 | |
| 9794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9795 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9796 | 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] | 9797 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9799 | else |
| 9800 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9801 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9802 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9803 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9804 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9805 | sys_search_path= |
| 9806 | for dir in $libltdl_cv_sys_search_path; do |
| 9807 | if test -z "$sys_search_path"; then |
| 9808 | sys_search_path="$dir" |
| 9809 | else |
| 9810 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9811 | fi |
| 9812 | done |
| 9813 | |
| 9814 | cat >>confdefs.h <<_ACEOF |
| 9815 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9816 | _ACEOF |
| 9817 | |
| 9818 | fi |
| 9819 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9820 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9821 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9822 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9824 | else |
| 9825 | libltdl_cv_objdir="$objdir" |
| 9826 | if test -n "$objdir"; then |
| 9827 | : |
| 9828 | else |
| 9829 | rm -f .libs 2>/dev/null |
| 9830 | mkdir .libs 2>/dev/null |
| 9831 | if test -d .libs; then |
| 9832 | libltdl_cv_objdir=.libs |
| 9833 | else |
| 9834 | # MS-DOS does not allow filenames that begin with a dot. |
| 9835 | libltdl_cv_objdir=_libs |
| 9836 | fi |
| 9837 | rmdir .libs 2>/dev/null |
| 9838 | fi |
| 9839 | |
| 9840 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9841 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9842 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9843 | |
| 9844 | cat >>confdefs.h <<_ACEOF |
| 9845 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9846 | _ACEOF |
| 9847 | |
| 9848 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9849 | |
| 9850 | |
| 9851 | |
| 9852 | |
| 9853 | # 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] | 9854 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9855 | 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] | 9856 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9858 | else |
| 9859 | |
| 9860 | # These are sane defaults that work on at least a few old systems. |
| 9861 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9862 | |
| 9863 | # Character class describing NM global symbol codes. |
| 9864 | symcode='[BCDEGRST]' |
| 9865 | |
| 9866 | # Regexp to match symbols that can be accessed directly from C. |
| 9867 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9868 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9869 | # Transform an extracted symbol line into a proper C declaration |
| 9870 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9871 | |
| 9872 | # Transform an extracted symbol line into symbol name and symbol address |
| 9873 | 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'" |
| 9874 | |
| 9875 | # Define system-specific variables. |
| 9876 | case $host_os in |
| 9877 | aix*) |
| 9878 | symcode='[BCDT]' |
| 9879 | ;; |
| 9880 | cygwin* | mingw* | pw32*) |
| 9881 | symcode='[ABCDGISTW]' |
| 9882 | ;; |
| 9883 | hpux*) # Its linker distinguishes data from code symbols |
| 9884 | if test "$host_cpu" = ia64; then |
| 9885 | symcode='[ABCDEGRST]' |
| 9886 | fi |
| 9887 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9888 | 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'" |
| 9889 | ;; |
| 9890 | linux*) |
| 9891 | if test "$host_cpu" = ia64; then |
| 9892 | symcode='[ABCDGIRSTW]' |
| 9893 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9894 | 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'" |
| 9895 | fi |
| 9896 | ;; |
| 9897 | irix* | nonstopux*) |
| 9898 | symcode='[BCDEGRST]' |
| 9899 | ;; |
| 9900 | osf*) |
| 9901 | symcode='[BCDEGQRST]' |
| 9902 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9903 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9904 | symcode='[BDRT]' |
| 9905 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9906 | sco3.2v5*) |
| 9907 | symcode='[DT]' |
| 9908 | ;; |
| 9909 | sysv4.2uw2*) |
| 9910 | symcode='[DT]' |
| 9911 | ;; |
| 9912 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9913 | symcode='[ABDT]' |
| 9914 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9915 | sysv4) |
| 9916 | symcode='[DFNSTU]' |
| 9917 | ;; |
| 9918 | esac |
| 9919 | |
| 9920 | # Handle CRLF in mingw tool chain |
| 9921 | opt_cr= |
| 9922 | case $build_os in |
| 9923 | mingw*) |
| 9924 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9925 | ;; |
| 9926 | esac |
| 9927 | |
| 9928 | # If we're using GNU nm, then use its standard symbol codes. |
| 9929 | case `$NM -V 2>&1` in |
| 9930 | *GNU* | *'with BFD'*) |
| 9931 | symcode='[ABCDGIRSTW]' ;; |
| 9932 | esac |
| 9933 | |
| 9934 | # Try without a prefix undercore, then with it. |
| 9935 | for ac_symprfx in "" "_"; do |
| 9936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9937 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9938 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9939 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9940 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9941 | 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] | 9942 | |
| 9943 | # Check to see that the pipe works correctly. |
| 9944 | pipe_works=no |
| 9945 | |
| 9946 | rm -f conftest* |
| 9947 | cat > conftest.$ac_ext <<EOF |
| 9948 | #ifdef __cplusplus |
| 9949 | extern "C" { |
| 9950 | #endif |
| 9951 | char nm_test_var; |
| 9952 | void nm_test_func(){} |
| 9953 | #ifdef __cplusplus |
| 9954 | } |
| 9955 | #endif |
| 9956 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9957 | EOF |
| 9958 | |
| 9959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9960 | (eval $ac_compile) 2>&5 |
| 9961 | ac_status=$? |
| 9962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9963 | (exit $ac_status); }; then |
| 9964 | # Now try to grab the symbols. |
| 9965 | nlist=conftest.nm |
| 9966 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9967 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9968 | ac_status=$? |
| 9969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9970 | (exit $ac_status); } && test -s "$nlist"; then |
| 9971 | # Try sorting and uniquifying the output. |
| 9972 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9973 | mv -f "$nlist"T "$nlist" |
| 9974 | else |
| 9975 | rm -f "$nlist"T |
| 9976 | fi |
| 9977 | |
| 9978 | # Make sure that we snagged all the symbols we need. |
| 9979 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9980 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9981 | cat <<EOF > conftest.$ac_ext |
| 9982 | #ifdef __cplusplus |
| 9983 | extern "C" { |
| 9984 | #endif |
| 9985 | |
| 9986 | EOF |
| 9987 | # Now generate the symbol file. |
| 9988 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9989 | |
| 9990 | cat <<EOF >> conftest.$ac_ext |
| 9991 | #if defined (__STDC__) && __STDC__ |
| 9992 | # define lt_ptr_t void * |
| 9993 | #else |
| 9994 | # define lt_ptr_t char * |
| 9995 | # define const |
| 9996 | #endif |
| 9997 | |
| 9998 | /* The mapping between symbol names and symbols. */ |
| 9999 | const struct { |
| 10000 | const char *name; |
| 10001 | lt_ptr_t address; |
| 10002 | } |
| 10003 | lt_preloaded_symbols[] = |
| 10004 | { |
| 10005 | EOF |
| 10006 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10007 | cat <<\EOF >> conftest.$ac_ext |
| 10008 | {0, (lt_ptr_t) 0} |
| 10009 | }; |
| 10010 | |
| 10011 | #ifdef __cplusplus |
| 10012 | } |
| 10013 | #endif |
| 10014 | EOF |
| 10015 | # Now try linking the two files. |
| 10016 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10017 | lt_save_LIBS="$LIBS" |
| 10018 | lt_save_CFLAGS="$CFLAGS" |
| 10019 | LIBS="conftstm.$ac_objext" |
| 10020 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 10021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10022 | (eval $ac_link) 2>&5 |
| 10023 | ac_status=$? |
| 10024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10025 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 10026 | pipe_works=yes |
| 10027 | fi |
| 10028 | LIBS="$lt_save_LIBS" |
| 10029 | CFLAGS="$lt_save_CFLAGS" |
| 10030 | else |
| 10031 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10032 | fi |
| 10033 | else |
| 10034 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10035 | fi |
| 10036 | else |
| 10037 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10038 | fi |
| 10039 | else |
| 10040 | echo "$progname: failed program was:" >&5 |
| 10041 | cat conftest.$ac_ext >&5 |
| 10042 | fi |
| 10043 | rm -f conftest* conftst* |
| 10044 | |
| 10045 | # Do not use the global_symbol_pipe unless it works. |
| 10046 | if test "$pipe_works" = yes; then |
| 10047 | break |
| 10048 | else |
| 10049 | lt_cv_sys_global_symbol_pipe= |
| 10050 | fi |
| 10051 | done |
| 10052 | |
| 10053 | fi |
| 10054 | |
| 10055 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10056 | lt_cv_sys_global_symbol_to_cdecl= |
| 10057 | fi |
| 10058 | 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] | 10059 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10060 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10061 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10062 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10063 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10064 | fi |
| 10065 | |
| 10066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10067 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10068 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10069 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10071 | else |
| 10072 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10073 | libltdl_cv_preloaded_symbols=yes |
| 10074 | else |
| 10075 | libltdl_cv_preloaded_symbols=no |
| 10076 | fi |
| 10077 | |
| 10078 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10079 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10080 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10081 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10082 | |
| 10083 | cat >>confdefs.h <<\_ACEOF |
| 10084 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10085 | _ACEOF |
| 10086 | |
| 10087 | fi |
| 10088 | |
| 10089 | LIBADD_DL= |
| 10090 | |
| 10091 | ac_ext=c |
| 10092 | ac_cpp='$CPP $CPPFLAGS' |
| 10093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10096 | |
| 10097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10098 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10099 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10100 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10102 | else |
| 10103 | cat >conftest.$ac_ext <<_ACEOF |
| 10104 | /* confdefs.h. */ |
| 10105 | _ACEOF |
| 10106 | cat confdefs.h >>conftest.$ac_ext |
| 10107 | cat >>conftest.$ac_ext <<_ACEOF |
| 10108 | /* end confdefs.h. */ |
| 10109 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10110 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10111 | #define shl_load innocuous_shl_load |
| 10112 | |
| 10113 | /* System header to define __stub macros and hopefully few prototypes, |
| 10114 | which can conflict with char shl_load (); below. |
| 10115 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10116 | <limits.h> exists even on freestanding compilers. */ |
| 10117 | |
| 10118 | #ifdef __STDC__ |
| 10119 | # include <limits.h> |
| 10120 | #else |
| 10121 | # include <assert.h> |
| 10122 | #endif |
| 10123 | |
| 10124 | #undef shl_load |
| 10125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10126 | /* Override any GCC internal prototype to avoid an error. |
| 10127 | Use char because int might match the return type of a GCC |
| 10128 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10129 | #ifdef __cplusplus |
| 10130 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10131 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10132 | char shl_load (); |
| 10133 | /* The GNU C library defines this for functions which it implements |
| 10134 | to always fail with ENOSYS. Some functions are actually named |
| 10135 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10136 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10137 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10138 | #endif |
| 10139 | |
| 10140 | int |
| 10141 | main () |
| 10142 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10143 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10144 | ; |
| 10145 | return 0; |
| 10146 | } |
| 10147 | _ACEOF |
| 10148 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10149 | if { (ac_try="$ac_link" |
| 10150 | case "(($ac_try" in |
| 10151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10152 | *) ac_try_echo=$ac_try;; |
| 10153 | esac |
| 10154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10155 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10156 | ac_status=$? |
| 10157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10158 | rm -f conftest.er1 |
| 10159 | cat conftest.err >&5 |
| 10160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10161 | (exit $ac_status); } && |
| 10162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10163 | { (case "(($ac_try" in |
| 10164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10165 | *) ac_try_echo=$ac_try;; |
| 10166 | esac |
| 10167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10168 | (eval "$ac_try") 2>&5 |
| 10169 | ac_status=$? |
| 10170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10171 | (exit $ac_status); }; } && |
| 10172 | { ac_try='test -s conftest$ac_exeext' |
| 10173 | { (case "(($ac_try" in |
| 10174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10175 | *) ac_try_echo=$ac_try;; |
| 10176 | esac |
| 10177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10178 | (eval "$ac_try") 2>&5 |
| 10179 | ac_status=$? |
| 10180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10181 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10182 | ac_cv_func_shl_load=yes |
| 10183 | else |
| 10184 | echo "$as_me: failed program was:" >&5 |
| 10185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10187 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10188 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10189 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10190 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10191 | conftest$ac_exeext conftest.$ac_ext |
| 10192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10193 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10194 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10195 | if test $ac_cv_func_shl_load = yes; then |
| 10196 | |
| 10197 | cat >>confdefs.h <<\_ACEOF |
| 10198 | #define HAVE_SHL_LOAD 1 |
| 10199 | _ACEOF |
| 10200 | |
| 10201 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10202 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10203 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10204 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10206 | else |
| 10207 | ac_check_lib_save_LIBS=$LIBS |
| 10208 | LIBS="-ldld $LIBS" |
| 10209 | cat >conftest.$ac_ext <<_ACEOF |
| 10210 | /* confdefs.h. */ |
| 10211 | _ACEOF |
| 10212 | cat confdefs.h >>conftest.$ac_ext |
| 10213 | cat >>conftest.$ac_ext <<_ACEOF |
| 10214 | /* end confdefs.h. */ |
| 10215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10216 | /* Override any GCC internal prototype to avoid an error. |
| 10217 | Use char because int might match the return type of a GCC |
| 10218 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10219 | #ifdef __cplusplus |
| 10220 | extern "C" |
| 10221 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10222 | char shl_load (); |
| 10223 | int |
| 10224 | main () |
| 10225 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10226 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10227 | ; |
| 10228 | return 0; |
| 10229 | } |
| 10230 | _ACEOF |
| 10231 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10232 | if { (ac_try="$ac_link" |
| 10233 | case "(($ac_try" in |
| 10234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10235 | *) ac_try_echo=$ac_try;; |
| 10236 | esac |
| 10237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10238 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10239 | ac_status=$? |
| 10240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10241 | rm -f conftest.er1 |
| 10242 | cat conftest.err >&5 |
| 10243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10244 | (exit $ac_status); } && |
| 10245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10246 | { (case "(($ac_try" in |
| 10247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10248 | *) ac_try_echo=$ac_try;; |
| 10249 | esac |
| 10250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10251 | (eval "$ac_try") 2>&5 |
| 10252 | ac_status=$? |
| 10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10254 | (exit $ac_status); }; } && |
| 10255 | { ac_try='test -s conftest$ac_exeext' |
| 10256 | { (case "(($ac_try" in |
| 10257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10258 | *) ac_try_echo=$ac_try;; |
| 10259 | esac |
| 10260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10261 | (eval "$ac_try") 2>&5 |
| 10262 | ac_status=$? |
| 10263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10264 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10265 | ac_cv_lib_dld_shl_load=yes |
| 10266 | else |
| 10267 | echo "$as_me: failed program was:" >&5 |
| 10268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10270 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10271 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10272 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10273 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10274 | conftest$ac_exeext conftest.$ac_ext |
| 10275 | LIBS=$ac_check_lib_save_LIBS |
| 10276 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10277 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10278 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10279 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10280 | |
| 10281 | cat >>confdefs.h <<\_ACEOF |
| 10282 | #define HAVE_SHL_LOAD 1 |
| 10283 | _ACEOF |
| 10284 | |
| 10285 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10286 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10287 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10288 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10289 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10291 | else |
| 10292 | ac_check_lib_save_LIBS=$LIBS |
| 10293 | LIBS="-ldl $LIBS" |
| 10294 | cat >conftest.$ac_ext <<_ACEOF |
| 10295 | /* confdefs.h. */ |
| 10296 | _ACEOF |
| 10297 | cat confdefs.h >>conftest.$ac_ext |
| 10298 | cat >>conftest.$ac_ext <<_ACEOF |
| 10299 | /* end confdefs.h. */ |
| 10300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10301 | /* Override any GCC internal prototype to avoid an error. |
| 10302 | Use char because int might match the return type of a GCC |
| 10303 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10304 | #ifdef __cplusplus |
| 10305 | extern "C" |
| 10306 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10307 | char dlopen (); |
| 10308 | int |
| 10309 | main () |
| 10310 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10311 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10312 | ; |
| 10313 | return 0; |
| 10314 | } |
| 10315 | _ACEOF |
| 10316 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10317 | if { (ac_try="$ac_link" |
| 10318 | case "(($ac_try" in |
| 10319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10320 | *) ac_try_echo=$ac_try;; |
| 10321 | esac |
| 10322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10323 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10324 | ac_status=$? |
| 10325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10326 | rm -f conftest.er1 |
| 10327 | cat conftest.err >&5 |
| 10328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10329 | (exit $ac_status); } && |
| 10330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10331 | { (case "(($ac_try" in |
| 10332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10333 | *) ac_try_echo=$ac_try;; |
| 10334 | esac |
| 10335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10336 | (eval "$ac_try") 2>&5 |
| 10337 | ac_status=$? |
| 10338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10339 | (exit $ac_status); }; } && |
| 10340 | { ac_try='test -s conftest$ac_exeext' |
| 10341 | { (case "(($ac_try" in |
| 10342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10343 | *) ac_try_echo=$ac_try;; |
| 10344 | esac |
| 10345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10346 | (eval "$ac_try") 2>&5 |
| 10347 | ac_status=$? |
| 10348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10349 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10350 | ac_cv_lib_dl_dlopen=yes |
| 10351 | else |
| 10352 | echo "$as_me: failed program was:" >&5 |
| 10353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10355 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10356 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10357 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10358 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10359 | conftest$ac_exeext conftest.$ac_ext |
| 10360 | LIBS=$ac_check_lib_save_LIBS |
| 10361 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10362 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10363 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10364 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10365 | |
| 10366 | cat >>confdefs.h <<\_ACEOF |
| 10367 | #define HAVE_LIBDL 1 |
| 10368 | _ACEOF |
| 10369 | |
| 10370 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10371 | else |
| 10372 | cat >conftest.$ac_ext <<_ACEOF |
| 10373 | /* confdefs.h. */ |
| 10374 | _ACEOF |
| 10375 | cat confdefs.h >>conftest.$ac_ext |
| 10376 | cat >>conftest.$ac_ext <<_ACEOF |
| 10377 | /* end confdefs.h. */ |
| 10378 | #if HAVE_DLFCN_H |
| 10379 | # include <dlfcn.h> |
| 10380 | #endif |
| 10381 | |
| 10382 | int |
| 10383 | main () |
| 10384 | { |
| 10385 | dlopen(0, 0); |
| 10386 | ; |
| 10387 | return 0; |
| 10388 | } |
| 10389 | _ACEOF |
| 10390 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10391 | if { (ac_try="$ac_link" |
| 10392 | case "(($ac_try" in |
| 10393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10394 | *) ac_try_echo=$ac_try;; |
| 10395 | esac |
| 10396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10397 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10398 | ac_status=$? |
| 10399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10400 | rm -f conftest.er1 |
| 10401 | cat conftest.err >&5 |
| 10402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10403 | (exit $ac_status); } && |
| 10404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10405 | { (case "(($ac_try" in |
| 10406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10407 | *) ac_try_echo=$ac_try;; |
| 10408 | esac |
| 10409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10410 | (eval "$ac_try") 2>&5 |
| 10411 | ac_status=$? |
| 10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10413 | (exit $ac_status); }; } && |
| 10414 | { ac_try='test -s conftest$ac_exeext' |
| 10415 | { (case "(($ac_try" in |
| 10416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10417 | *) ac_try_echo=$ac_try;; |
| 10418 | esac |
| 10419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10420 | (eval "$ac_try") 2>&5 |
| 10421 | ac_status=$? |
| 10422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10423 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10424 | |
| 10425 | cat >>confdefs.h <<\_ACEOF |
| 10426 | #define HAVE_LIBDL 1 |
| 10427 | _ACEOF |
| 10428 | libltdl_cv_func_dlopen="yes" |
| 10429 | else |
| 10430 | echo "$as_me: failed program was:" >&5 |
| 10431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10432 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10433 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10434 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10435 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10437 | else |
| 10438 | ac_check_lib_save_LIBS=$LIBS |
| 10439 | LIBS="-lsvld $LIBS" |
| 10440 | cat >conftest.$ac_ext <<_ACEOF |
| 10441 | /* confdefs.h. */ |
| 10442 | _ACEOF |
| 10443 | cat confdefs.h >>conftest.$ac_ext |
| 10444 | cat >>conftest.$ac_ext <<_ACEOF |
| 10445 | /* end confdefs.h. */ |
| 10446 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10447 | /* Override any GCC internal prototype to avoid an error. |
| 10448 | Use char because int might match the return type of a GCC |
| 10449 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10450 | #ifdef __cplusplus |
| 10451 | extern "C" |
| 10452 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10453 | char dlopen (); |
| 10454 | int |
| 10455 | main () |
| 10456 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10457 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10458 | ; |
| 10459 | return 0; |
| 10460 | } |
| 10461 | _ACEOF |
| 10462 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10463 | if { (ac_try="$ac_link" |
| 10464 | case "(($ac_try" in |
| 10465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10466 | *) ac_try_echo=$ac_try;; |
| 10467 | esac |
| 10468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10469 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10470 | ac_status=$? |
| 10471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10472 | rm -f conftest.er1 |
| 10473 | cat conftest.err >&5 |
| 10474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10475 | (exit $ac_status); } && |
| 10476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10477 | { (case "(($ac_try" in |
| 10478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10479 | *) ac_try_echo=$ac_try;; |
| 10480 | esac |
| 10481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10482 | (eval "$ac_try") 2>&5 |
| 10483 | ac_status=$? |
| 10484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10485 | (exit $ac_status); }; } && |
| 10486 | { ac_try='test -s conftest$ac_exeext' |
| 10487 | { (case "(($ac_try" in |
| 10488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10489 | *) ac_try_echo=$ac_try;; |
| 10490 | esac |
| 10491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10492 | (eval "$ac_try") 2>&5 |
| 10493 | ac_status=$? |
| 10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10495 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10496 | ac_cv_lib_svld_dlopen=yes |
| 10497 | else |
| 10498 | echo "$as_me: failed program was:" >&5 |
| 10499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10500 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10501 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10503 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10504 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10505 | conftest$ac_exeext conftest.$ac_ext |
| 10506 | LIBS=$ac_check_lib_save_LIBS |
| 10507 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10508 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10509 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10510 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10511 | |
| 10512 | cat >>confdefs.h <<\_ACEOF |
| 10513 | #define HAVE_LIBDL 1 |
| 10514 | _ACEOF |
| 10515 | |
| 10516 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10517 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10518 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10519 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10520 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10522 | else |
| 10523 | ac_check_lib_save_LIBS=$LIBS |
| 10524 | LIBS="-ldld $LIBS" |
| 10525 | cat >conftest.$ac_ext <<_ACEOF |
| 10526 | /* confdefs.h. */ |
| 10527 | _ACEOF |
| 10528 | cat confdefs.h >>conftest.$ac_ext |
| 10529 | cat >>conftest.$ac_ext <<_ACEOF |
| 10530 | /* end confdefs.h. */ |
| 10531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10532 | /* Override any GCC internal prototype to avoid an error. |
| 10533 | Use char because int might match the return type of a GCC |
| 10534 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10535 | #ifdef __cplusplus |
| 10536 | extern "C" |
| 10537 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10538 | char dld_link (); |
| 10539 | int |
| 10540 | main () |
| 10541 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10542 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10543 | ; |
| 10544 | return 0; |
| 10545 | } |
| 10546 | _ACEOF |
| 10547 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10548 | if { (ac_try="$ac_link" |
| 10549 | case "(($ac_try" in |
| 10550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10551 | *) ac_try_echo=$ac_try;; |
| 10552 | esac |
| 10553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10554 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10555 | ac_status=$? |
| 10556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10557 | rm -f conftest.er1 |
| 10558 | cat conftest.err >&5 |
| 10559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10560 | (exit $ac_status); } && |
| 10561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10562 | { (case "(($ac_try" in |
| 10563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10564 | *) ac_try_echo=$ac_try;; |
| 10565 | esac |
| 10566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10567 | (eval "$ac_try") 2>&5 |
| 10568 | ac_status=$? |
| 10569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10570 | (exit $ac_status); }; } && |
| 10571 | { ac_try='test -s conftest$ac_exeext' |
| 10572 | { (case "(($ac_try" in |
| 10573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10574 | *) ac_try_echo=$ac_try;; |
| 10575 | esac |
| 10576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10577 | (eval "$ac_try") 2>&5 |
| 10578 | ac_status=$? |
| 10579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10580 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10581 | ac_cv_lib_dld_dld_link=yes |
| 10582 | else |
| 10583 | echo "$as_me: failed program was:" >&5 |
| 10584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10586 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10587 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10588 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10589 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10590 | conftest$ac_exeext conftest.$ac_ext |
| 10591 | LIBS=$ac_check_lib_save_LIBS |
| 10592 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10593 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10594 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10595 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10596 | |
| 10597 | cat >>confdefs.h <<\_ACEOF |
| 10598 | #define HAVE_DLD 1 |
| 10599 | _ACEOF |
| 10600 | |
| 10601 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10602 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10603 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10604 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10605 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10607 | else |
| 10608 | cat >conftest.$ac_ext <<_ACEOF |
| 10609 | /* confdefs.h. */ |
| 10610 | _ACEOF |
| 10611 | cat confdefs.h >>conftest.$ac_ext |
| 10612 | cat >>conftest.$ac_ext <<_ACEOF |
| 10613 | /* end confdefs.h. */ |
| 10614 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10615 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10616 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10617 | |
| 10618 | /* System header to define __stub macros and hopefully few prototypes, |
| 10619 | which can conflict with char _dyld_func_lookup (); below. |
| 10620 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10621 | <limits.h> exists even on freestanding compilers. */ |
| 10622 | |
| 10623 | #ifdef __STDC__ |
| 10624 | # include <limits.h> |
| 10625 | #else |
| 10626 | # include <assert.h> |
| 10627 | #endif |
| 10628 | |
| 10629 | #undef _dyld_func_lookup |
| 10630 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10631 | /* Override any GCC internal prototype to avoid an error. |
| 10632 | Use char because int might match the return type of a GCC |
| 10633 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10634 | #ifdef __cplusplus |
| 10635 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10636 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10637 | char _dyld_func_lookup (); |
| 10638 | /* The GNU C library defines this for functions which it implements |
| 10639 | to always fail with ENOSYS. Some functions are actually named |
| 10640 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10641 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10642 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10643 | #endif |
| 10644 | |
| 10645 | int |
| 10646 | main () |
| 10647 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10648 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10649 | ; |
| 10650 | return 0; |
| 10651 | } |
| 10652 | _ACEOF |
| 10653 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10654 | if { (ac_try="$ac_link" |
| 10655 | case "(($ac_try" in |
| 10656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10657 | *) ac_try_echo=$ac_try;; |
| 10658 | esac |
| 10659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10660 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10661 | ac_status=$? |
| 10662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10663 | rm -f conftest.er1 |
| 10664 | cat conftest.err >&5 |
| 10665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10666 | (exit $ac_status); } && |
| 10667 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10668 | { (case "(($ac_try" in |
| 10669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10670 | *) ac_try_echo=$ac_try;; |
| 10671 | esac |
| 10672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10673 | (eval "$ac_try") 2>&5 |
| 10674 | ac_status=$? |
| 10675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10676 | (exit $ac_status); }; } && |
| 10677 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10687 | ac_cv_func__dyld_func_lookup=yes |
| 10688 | else |
| 10689 | echo "$as_me: failed program was:" >&5 |
| 10690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10692 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10693 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10694 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10695 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10696 | conftest$ac_exeext conftest.$ac_ext |
| 10697 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10698 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10699 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10700 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10701 | |
| 10702 | cat >>confdefs.h <<\_ACEOF |
| 10703 | #define HAVE_DYLD 1 |
| 10704 | _ACEOF |
| 10705 | |
| 10706 | fi |
| 10707 | |
| 10708 | |
| 10709 | fi |
| 10710 | |
| 10711 | |
| 10712 | fi |
| 10713 | |
| 10714 | |
| 10715 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10716 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10717 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10718 | conftest$ac_exeext conftest.$ac_ext |
| 10719 | |
| 10720 | fi |
| 10721 | |
| 10722 | |
| 10723 | fi |
| 10724 | |
| 10725 | |
| 10726 | fi |
| 10727 | |
| 10728 | |
| 10729 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10730 | then |
| 10731 | lt_save_LIBS="$LIBS" |
| 10732 | LIBS="$LIBS $LIBADD_DL" |
| 10733 | |
| 10734 | for ac_func in dlerror |
| 10735 | do |
| 10736 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10737 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10738 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10739 | 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] | 10740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10741 | else |
| 10742 | cat >conftest.$ac_ext <<_ACEOF |
| 10743 | /* confdefs.h. */ |
| 10744 | _ACEOF |
| 10745 | cat confdefs.h >>conftest.$ac_ext |
| 10746 | cat >>conftest.$ac_ext <<_ACEOF |
| 10747 | /* end confdefs.h. */ |
| 10748 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10749 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10750 | #define $ac_func innocuous_$ac_func |
| 10751 | |
| 10752 | /* System header to define __stub macros and hopefully few prototypes, |
| 10753 | which can conflict with char $ac_func (); below. |
| 10754 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10755 | <limits.h> exists even on freestanding compilers. */ |
| 10756 | |
| 10757 | #ifdef __STDC__ |
| 10758 | # include <limits.h> |
| 10759 | #else |
| 10760 | # include <assert.h> |
| 10761 | #endif |
| 10762 | |
| 10763 | #undef $ac_func |
| 10764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10765 | /* Override any GCC internal prototype to avoid an error. |
| 10766 | Use char because int might match the return type of a GCC |
| 10767 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10768 | #ifdef __cplusplus |
| 10769 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10770 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10771 | char $ac_func (); |
| 10772 | /* The GNU C library defines this for functions which it implements |
| 10773 | to always fail with ENOSYS. Some functions are actually named |
| 10774 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10775 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10776 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10777 | #endif |
| 10778 | |
| 10779 | int |
| 10780 | main () |
| 10781 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10782 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10783 | ; |
| 10784 | return 0; |
| 10785 | } |
| 10786 | _ACEOF |
| 10787 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10788 | if { (ac_try="$ac_link" |
| 10789 | case "(($ac_try" in |
| 10790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10791 | *) ac_try_echo=$ac_try;; |
| 10792 | esac |
| 10793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10794 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10795 | ac_status=$? |
| 10796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10797 | rm -f conftest.er1 |
| 10798 | cat conftest.err >&5 |
| 10799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10800 | (exit $ac_status); } && |
| 10801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10802 | { (case "(($ac_try" in |
| 10803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10804 | *) ac_try_echo=$ac_try;; |
| 10805 | esac |
| 10806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10807 | (eval "$ac_try") 2>&5 |
| 10808 | ac_status=$? |
| 10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10810 | (exit $ac_status); }; } && |
| 10811 | { ac_try='test -s conftest$ac_exeext' |
| 10812 | { (case "(($ac_try" in |
| 10813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10814 | *) ac_try_echo=$ac_try;; |
| 10815 | esac |
| 10816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10817 | (eval "$ac_try") 2>&5 |
| 10818 | ac_status=$? |
| 10819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10820 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10821 | eval "$as_ac_var=yes" |
| 10822 | else |
| 10823 | echo "$as_me: failed program was:" >&5 |
| 10824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10826 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10827 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10828 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10829 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10830 | conftest$ac_exeext conftest.$ac_ext |
| 10831 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10832 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10833 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10834 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10835 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10836 | cat >>confdefs.h <<_ACEOF |
| 10837 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10838 | _ACEOF |
| 10839 | |
| 10840 | fi |
| 10841 | done |
| 10842 | |
| 10843 | LIBS="$lt_save_LIBS" |
| 10844 | fi |
| 10845 | ac_ext=c |
| 10846 | ac_cpp='$CPP $CPPFLAGS' |
| 10847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10850 | |
| 10851 | |
| 10852 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10853 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10854 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10855 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10857 | else |
| 10858 | ac_cv_sys_symbol_underscore=no |
| 10859 | cat > conftest.$ac_ext <<EOF |
| 10860 | void nm_test_func(){} |
| 10861 | int main(){nm_test_func;return 0;} |
| 10862 | EOF |
| 10863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10864 | (eval $ac_compile) 2>&5 |
| 10865 | ac_status=$? |
| 10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10867 | (exit $ac_status); }; then |
| 10868 | # Now try to grab the symbols. |
| 10869 | ac_nlist=conftest.nm |
| 10870 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10871 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10872 | ac_status=$? |
| 10873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10874 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10875 | # See whether the symbols have a leading underscore. |
| 10876 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10877 | ac_cv_sys_symbol_underscore=yes |
| 10878 | else |
| 10879 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10880 | : |
| 10881 | else |
| 10882 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10883 | fi |
| 10884 | fi |
| 10885 | else |
| 10886 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10887 | fi |
| 10888 | else |
| 10889 | echo "configure: failed program was:" >&5 |
| 10890 | cat conftest.c >&5 |
| 10891 | fi |
| 10892 | rm -rf conftest* |
| 10893 | |
| 10894 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10895 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10896 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10897 | |
| 10898 | |
| 10899 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10900 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10901 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10902 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10903 | 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] | 10904 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10906 | else |
| 10907 | libltdl_cv_need_uscore=unknown |
| 10908 | save_LIBS="$LIBS" |
| 10909 | LIBS="$LIBS $LIBADD_DL" |
| 10910 | if test "$cross_compiling" = yes; then : |
| 10911 | libltdl_cv_need_uscore=cross |
| 10912 | else |
| 10913 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10914 | lt_status=$lt_dlunknown |
| 10915 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 10916 | #line 10916 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10917 | #include "confdefs.h" |
| 10918 | |
| 10919 | #if HAVE_DLFCN_H |
| 10920 | #include <dlfcn.h> |
| 10921 | #endif |
| 10922 | |
| 10923 | #include <stdio.h> |
| 10924 | |
| 10925 | #ifdef RTLD_GLOBAL |
| 10926 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10927 | #else |
| 10928 | # ifdef DL_GLOBAL |
| 10929 | # define LT_DLGLOBAL DL_GLOBAL |
| 10930 | # else |
| 10931 | # define LT_DLGLOBAL 0 |
| 10932 | # endif |
| 10933 | #endif |
| 10934 | |
| 10935 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10936 | find out it does not work in some platform. */ |
| 10937 | #ifndef LT_DLLAZY_OR_NOW |
| 10938 | # ifdef RTLD_LAZY |
| 10939 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10940 | # else |
| 10941 | # ifdef DL_LAZY |
| 10942 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10943 | # else |
| 10944 | # ifdef RTLD_NOW |
| 10945 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10946 | # else |
| 10947 | # ifdef DL_NOW |
| 10948 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10949 | # else |
| 10950 | # define LT_DLLAZY_OR_NOW 0 |
| 10951 | # endif |
| 10952 | # endif |
| 10953 | # endif |
| 10954 | # endif |
| 10955 | #endif |
| 10956 | |
| 10957 | #ifdef __cplusplus |
| 10958 | extern "C" void exit (int); |
| 10959 | #endif |
| 10960 | |
| 10961 | void fnord() { int i=42;} |
| 10962 | int main () |
| 10963 | { |
| 10964 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10965 | int status = $lt_dlunknown; |
| 10966 | |
| 10967 | if (self) |
| 10968 | { |
| 10969 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10970 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10971 | /* dlclose (self); */ |
| 10972 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10973 | else |
| 10974 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10975 | |
| 10976 | exit (status); |
| 10977 | } |
| 10978 | EOF |
| 10979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10980 | (eval $ac_link) 2>&5 |
| 10981 | ac_status=$? |
| 10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10983 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10984 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10985 | lt_status=$? |
| 10986 | case x$lt_status in |
| 10987 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10988 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10989 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10990 | esac |
| 10991 | else : |
| 10992 | # compilation failed |
| 10993 | |
| 10994 | fi |
| 10995 | fi |
| 10996 | rm -fr conftest* |
| 10997 | |
| 10998 | LIBS="$save_LIBS" |
| 10999 | |
| 11000 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11001 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11002 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11003 | fi |
| 11004 | fi |
| 11005 | |
| 11006 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11007 | |
| 11008 | cat >>confdefs.h <<\_ACEOF |
| 11009 | #define NEED_USCORE 1 |
| 11010 | _ACEOF |
| 11011 | |
| 11012 | fi |
| 11013 | |
| 11014 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11015 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11016 | 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] | 11017 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11019 | else |
| 11020 | # PORTME does your system automatically load deplibs for dlopen? |
| 11021 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11022 | # For now, we just catch OSes we know something about -- in the |
| 11023 | # future, we'll try test this programmatically. |
| 11024 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11025 | case "$host_os" in |
| 11026 | aix3*|aix4.1.*|aix4.2.*) |
| 11027 | # Unknown whether this is true for these versions of AIX, but |
| 11028 | # we want this `case' here to explicitly catch those versions. |
| 11029 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11030 | ;; |
| 11031 | aix[45]*) |
| 11032 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11033 | ;; |
| 11034 | darwin*) |
| 11035 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11036 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11037 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11038 | ;; |
| 11039 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11040 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11041 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11042 | ;; |
| 11043 | hpux10*|hpux11*) |
| 11044 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11045 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11046 | interix*) |
| 11047 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11048 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11049 | irix[12345]*|irix6.[01]*) |
| 11050 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11051 | # know how it worked for any of those versions. |
| 11052 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11053 | ;; |
| 11054 | irix*) |
| 11055 | # The case above catches anything before 6.2, and it's known that |
| 11056 | # at 6.2 and later dlopen does load deplibs. |
| 11057 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11058 | ;; |
| 11059 | netbsd*) |
| 11060 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11061 | ;; |
| 11062 | openbsd*) |
| 11063 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11064 | ;; |
| 11065 | osf[1234]*) |
| 11066 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11067 | # it did *not* use an RPATH in a shared library to find objects the |
| 11068 | # library depends on, so we explictly say `no'. |
| 11069 | libltdl_cv_sys_dlopen_deplibs=no |
| 11070 | ;; |
| 11071 | osf5.0|osf5.0a|osf5.1) |
| 11072 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11073 | # it even uses RPATH in a shared library to search for shared objects |
| 11074 | # that the library depends on, but there's no easy way to know if that |
| 11075 | # patch is installed. Since this is the case, all we can really |
| 11076 | # say is unknown -- it depends on the patch being installed. If |
| 11077 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11078 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11079 | ;; |
| 11080 | osf*) |
| 11081 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11082 | # the comments above for what we know about them. |
| 11083 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11084 | # is used to find them so we can finally say `yes'. |
| 11085 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11086 | ;; |
| 11087 | solaris*) |
| 11088 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11089 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11090 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11091 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11092 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11093 | esac |
| 11094 | |
| 11095 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11096 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11097 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11098 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11099 | |
| 11100 | cat >>confdefs.h <<\_ACEOF |
| 11101 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11102 | _ACEOF |
| 11103 | |
| 11104 | fi |
| 11105 | |
| 11106 | |
| 11107 | for ac_header in argz.h |
| 11108 | do |
| 11109 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11110 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11111 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11113 | 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] | 11114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11115 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11116 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11118 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11119 | else |
| 11120 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11121 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11122 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11123 | cat >conftest.$ac_ext <<_ACEOF |
| 11124 | /* confdefs.h. */ |
| 11125 | _ACEOF |
| 11126 | cat confdefs.h >>conftest.$ac_ext |
| 11127 | cat >>conftest.$ac_ext <<_ACEOF |
| 11128 | /* end confdefs.h. */ |
| 11129 | $ac_includes_default |
| 11130 | #include <$ac_header> |
| 11131 | _ACEOF |
| 11132 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11133 | if { (ac_try="$ac_compile" |
| 11134 | case "(($ac_try" in |
| 11135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11136 | *) ac_try_echo=$ac_try;; |
| 11137 | esac |
| 11138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11139 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11140 | ac_status=$? |
| 11141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11142 | rm -f conftest.er1 |
| 11143 | cat conftest.err >&5 |
| 11144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11145 | (exit $ac_status); } && |
| 11146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11147 | { (case "(($ac_try" in |
| 11148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11149 | *) ac_try_echo=$ac_try;; |
| 11150 | esac |
| 11151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11152 | (eval "$ac_try") 2>&5 |
| 11153 | ac_status=$? |
| 11154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11155 | (exit $ac_status); }; } && |
| 11156 | { ac_try='test -s conftest.$ac_objext' |
| 11157 | { (case "(($ac_try" in |
| 11158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11159 | *) ac_try_echo=$ac_try;; |
| 11160 | esac |
| 11161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11162 | (eval "$ac_try") 2>&5 |
| 11163 | ac_status=$? |
| 11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11165 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11166 | ac_header_compiler=yes |
| 11167 | else |
| 11168 | echo "$as_me: failed program was:" >&5 |
| 11169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11171 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11172 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11173 | |
| 11174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11175 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11176 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11177 | |
| 11178 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11179 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11181 | cat >conftest.$ac_ext <<_ACEOF |
| 11182 | /* confdefs.h. */ |
| 11183 | _ACEOF |
| 11184 | cat confdefs.h >>conftest.$ac_ext |
| 11185 | cat >>conftest.$ac_ext <<_ACEOF |
| 11186 | /* end confdefs.h. */ |
| 11187 | #include <$ac_header> |
| 11188 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11189 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11190 | case "(($ac_try" in |
| 11191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11192 | *) ac_try_echo=$ac_try;; |
| 11193 | esac |
| 11194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11195 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11196 | ac_status=$? |
| 11197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11198 | rm -f conftest.er1 |
| 11199 | cat conftest.err >&5 |
| 11200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11201 | (exit $ac_status); } >/dev/null; then |
| 11202 | if test -s conftest.err; then |
| 11203 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11204 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11205 | else |
| 11206 | ac_cpp_err= |
| 11207 | fi |
| 11208 | else |
| 11209 | ac_cpp_err=yes |
| 11210 | fi |
| 11211 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11212 | ac_header_preproc=yes |
| 11213 | else |
| 11214 | echo "$as_me: failed program was:" >&5 |
| 11215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11216 | |
| 11217 | ac_header_preproc=no |
| 11218 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11219 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11220 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11221 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11222 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11223 | |
| 11224 | # So? What about this header? |
| 11225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11226 | yes:no: ) |
| 11227 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11228 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11230 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11231 | ac_header_preproc=yes |
| 11232 | ;; |
| 11233 | no:yes:* ) |
| 11234 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11235 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11236 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11237 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11238 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11239 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11240 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11241 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11243 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11244 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11245 | 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] | 11246 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11247 | ## ----------------------------------- ## |
| 11248 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11249 | ## ----------------------------------- ## |
| 11250 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11251 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11252 | ;; |
| 11253 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11254 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11255 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11256 | 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] | 11257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11258 | else |
| 11259 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11260 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11261 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11262 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11263 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11264 | |
| 11265 | fi |
| 11266 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11267 | cat >>confdefs.h <<_ACEOF |
| 11268 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11269 | _ACEOF |
| 11270 | |
| 11271 | fi |
| 11272 | |
| 11273 | done |
| 11274 | |
| 11275 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11276 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11277 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11278 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11280 | else |
| 11281 | cat >conftest.$ac_ext <<_ACEOF |
| 11282 | /* confdefs.h. */ |
| 11283 | _ACEOF |
| 11284 | cat confdefs.h >>conftest.$ac_ext |
| 11285 | cat >>conftest.$ac_ext <<_ACEOF |
| 11286 | /* end confdefs.h. */ |
| 11287 | #if HAVE_ARGZ_H |
| 11288 | # include <argz.h> |
| 11289 | #endif |
| 11290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11291 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11292 | int |
| 11293 | main () |
| 11294 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11295 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11296 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11297 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11298 | return 0; |
| 11299 | ; |
| 11300 | return 0; |
| 11301 | } |
| 11302 | _ACEOF |
| 11303 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11304 | if { (ac_try="$ac_compile" |
| 11305 | case "(($ac_try" in |
| 11306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11307 | *) ac_try_echo=$ac_try;; |
| 11308 | esac |
| 11309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11310 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11311 | ac_status=$? |
| 11312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11313 | rm -f conftest.er1 |
| 11314 | cat conftest.err >&5 |
| 11315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11316 | (exit $ac_status); } && |
| 11317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11318 | { (case "(($ac_try" in |
| 11319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11320 | *) ac_try_echo=$ac_try;; |
| 11321 | esac |
| 11322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11323 | (eval "$ac_try") 2>&5 |
| 11324 | ac_status=$? |
| 11325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11326 | (exit $ac_status); }; } && |
| 11327 | { ac_try='test -s conftest.$ac_objext' |
| 11328 | { (case "(($ac_try" in |
| 11329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11330 | *) ac_try_echo=$ac_try;; |
| 11331 | esac |
| 11332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11333 | (eval "$ac_try") 2>&5 |
| 11334 | ac_status=$? |
| 11335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11336 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11337 | ac_cv_type_error_t=yes |
| 11338 | else |
| 11339 | echo "$as_me: failed program was:" >&5 |
| 11340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11341 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11342 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11343 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11344 | |
| 11345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11346 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11347 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11348 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11349 | if test $ac_cv_type_error_t = yes; then |
| 11350 | |
| 11351 | cat >>confdefs.h <<_ACEOF |
| 11352 | #define HAVE_ERROR_T 1 |
| 11353 | _ACEOF |
| 11354 | |
| 11355 | |
| 11356 | else |
| 11357 | |
| 11358 | cat >>confdefs.h <<\_ACEOF |
| 11359 | #define error_t int |
| 11360 | _ACEOF |
| 11361 | |
| 11362 | fi |
| 11363 | |
| 11364 | |
| 11365 | |
| 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11371 | do |
| 11372 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11373 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11374 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11375 | 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] | 11376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11377 | else |
| 11378 | cat >conftest.$ac_ext <<_ACEOF |
| 11379 | /* confdefs.h. */ |
| 11380 | _ACEOF |
| 11381 | cat confdefs.h >>conftest.$ac_ext |
| 11382 | cat >>conftest.$ac_ext <<_ACEOF |
| 11383 | /* end confdefs.h. */ |
| 11384 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11386 | #define $ac_func innocuous_$ac_func |
| 11387 | |
| 11388 | /* System header to define __stub macros and hopefully few prototypes, |
| 11389 | which can conflict with char $ac_func (); below. |
| 11390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11391 | <limits.h> exists even on freestanding compilers. */ |
| 11392 | |
| 11393 | #ifdef __STDC__ |
| 11394 | # include <limits.h> |
| 11395 | #else |
| 11396 | # include <assert.h> |
| 11397 | #endif |
| 11398 | |
| 11399 | #undef $ac_func |
| 11400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11401 | /* Override any GCC internal prototype to avoid an error. |
| 11402 | Use char because int might match the return type of a GCC |
| 11403 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11404 | #ifdef __cplusplus |
| 11405 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11406 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11407 | char $ac_func (); |
| 11408 | /* The GNU C library defines this for functions which it implements |
| 11409 | to always fail with ENOSYS. Some functions are actually named |
| 11410 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11411 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11412 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11413 | #endif |
| 11414 | |
| 11415 | int |
| 11416 | main () |
| 11417 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11418 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11419 | ; |
| 11420 | return 0; |
| 11421 | } |
| 11422 | _ACEOF |
| 11423 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11424 | if { (ac_try="$ac_link" |
| 11425 | case "(($ac_try" in |
| 11426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11427 | *) ac_try_echo=$ac_try;; |
| 11428 | esac |
| 11429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11430 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11431 | ac_status=$? |
| 11432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11433 | rm -f conftest.er1 |
| 11434 | cat conftest.err >&5 |
| 11435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11436 | (exit $ac_status); } && |
| 11437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11438 | { (case "(($ac_try" in |
| 11439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11440 | *) ac_try_echo=$ac_try;; |
| 11441 | esac |
| 11442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11443 | (eval "$ac_try") 2>&5 |
| 11444 | ac_status=$? |
| 11445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11446 | (exit $ac_status); }; } && |
| 11447 | { ac_try='test -s conftest$ac_exeext' |
| 11448 | { (case "(($ac_try" in |
| 11449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11450 | *) ac_try_echo=$ac_try;; |
| 11451 | esac |
| 11452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11453 | (eval "$ac_try") 2>&5 |
| 11454 | ac_status=$? |
| 11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11456 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11457 | eval "$as_ac_var=yes" |
| 11458 | else |
| 11459 | echo "$as_me: failed program was:" >&5 |
| 11460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11461 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11462 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11463 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11464 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11465 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11466 | conftest$ac_exeext conftest.$ac_ext |
| 11467 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11468 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11469 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11470 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11471 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11472 | cat >>confdefs.h <<_ACEOF |
| 11473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11474 | _ACEOF |
| 11475 | |
| 11476 | fi |
| 11477 | done |
| 11478 | |
| 11479 | |
| 11480 | |
| 11481 | |
| 11482 | |
| 11483 | |
| 11484 | |
| 11485 | |
| 11486 | |
| 11487 | |
| 11488 | |
| 11489 | |
| 11490 | |
| 11491 | |
| 11492 | |
| 11493 | |
| 11494 | |
| 11495 | |
| 11496 | |
| 11497 | |
| 11498 | |
| 11499 | |
| 11500 | |
| 11501 | |
| 11502 | |
| 11503 | |
| 11504 | |
| 11505 | |
| 11506 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11507 | stdio.h unistd.h |
| 11508 | do |
| 11509 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11510 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11511 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11513 | 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] | 11514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11515 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11516 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11517 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11518 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11519 | else |
| 11520 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11521 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11522 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11523 | cat >conftest.$ac_ext <<_ACEOF |
| 11524 | /* confdefs.h. */ |
| 11525 | _ACEOF |
| 11526 | cat confdefs.h >>conftest.$ac_ext |
| 11527 | cat >>conftest.$ac_ext <<_ACEOF |
| 11528 | /* end confdefs.h. */ |
| 11529 | $ac_includes_default |
| 11530 | #include <$ac_header> |
| 11531 | _ACEOF |
| 11532 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11533 | if { (ac_try="$ac_compile" |
| 11534 | case "(($ac_try" in |
| 11535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11536 | *) ac_try_echo=$ac_try;; |
| 11537 | esac |
| 11538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11539 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11540 | ac_status=$? |
| 11541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11542 | rm -f conftest.er1 |
| 11543 | cat conftest.err >&5 |
| 11544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11545 | (exit $ac_status); } && |
| 11546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11547 | { (case "(($ac_try" in |
| 11548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11549 | *) ac_try_echo=$ac_try;; |
| 11550 | esac |
| 11551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11552 | (eval "$ac_try") 2>&5 |
| 11553 | ac_status=$? |
| 11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11555 | (exit $ac_status); }; } && |
| 11556 | { ac_try='test -s conftest.$ac_objext' |
| 11557 | { (case "(($ac_try" in |
| 11558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11559 | *) ac_try_echo=$ac_try;; |
| 11560 | esac |
| 11561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11562 | (eval "$ac_try") 2>&5 |
| 11563 | ac_status=$? |
| 11564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11565 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11566 | ac_header_compiler=yes |
| 11567 | else |
| 11568 | echo "$as_me: failed program was:" >&5 |
| 11569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11571 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11572 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11573 | |
| 11574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11575 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11576 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11577 | |
| 11578 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11579 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11580 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11581 | cat >conftest.$ac_ext <<_ACEOF |
| 11582 | /* confdefs.h. */ |
| 11583 | _ACEOF |
| 11584 | cat confdefs.h >>conftest.$ac_ext |
| 11585 | cat >>conftest.$ac_ext <<_ACEOF |
| 11586 | /* end confdefs.h. */ |
| 11587 | #include <$ac_header> |
| 11588 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11589 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11590 | case "(($ac_try" in |
| 11591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11592 | *) ac_try_echo=$ac_try;; |
| 11593 | esac |
| 11594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11595 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11596 | ac_status=$? |
| 11597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11598 | rm -f conftest.er1 |
| 11599 | cat conftest.err >&5 |
| 11600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11601 | (exit $ac_status); } >/dev/null; then |
| 11602 | if test -s conftest.err; then |
| 11603 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11604 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11605 | else |
| 11606 | ac_cpp_err= |
| 11607 | fi |
| 11608 | else |
| 11609 | ac_cpp_err=yes |
| 11610 | fi |
| 11611 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11612 | ac_header_preproc=yes |
| 11613 | else |
| 11614 | echo "$as_me: failed program was:" >&5 |
| 11615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11616 | |
| 11617 | ac_header_preproc=no |
| 11618 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11619 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11620 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11621 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11622 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11623 | |
| 11624 | # So? What about this header? |
| 11625 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11626 | yes:no: ) |
| 11627 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11628 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11630 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11631 | ac_header_preproc=yes |
| 11632 | ;; |
| 11633 | no:yes:* ) |
| 11634 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11635 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11636 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11637 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11638 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11639 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11640 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11641 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11642 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11643 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11644 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11645 | 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] | 11646 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11647 | ## ----------------------------------- ## |
| 11648 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11649 | ## ----------------------------------- ## |
| 11650 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11651 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11652 | ;; |
| 11653 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11654 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11655 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11656 | 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] | 11657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11658 | else |
| 11659 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11660 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11661 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11662 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11663 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11664 | |
| 11665 | fi |
| 11666 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11667 | cat >>confdefs.h <<_ACEOF |
| 11668 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11669 | _ACEOF |
| 11670 | |
| 11671 | fi |
| 11672 | |
| 11673 | done |
| 11674 | |
| 11675 | |
| 11676 | |
| 11677 | |
| 11678 | |
| 11679 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11680 | do |
| 11681 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11682 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11683 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11685 | 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] | 11686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11687 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11688 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11689 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11690 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11691 | else |
| 11692 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11693 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11694 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11695 | cat >conftest.$ac_ext <<_ACEOF |
| 11696 | /* confdefs.h. */ |
| 11697 | _ACEOF |
| 11698 | cat confdefs.h >>conftest.$ac_ext |
| 11699 | cat >>conftest.$ac_ext <<_ACEOF |
| 11700 | /* end confdefs.h. */ |
| 11701 | $ac_includes_default |
| 11702 | #include <$ac_header> |
| 11703 | _ACEOF |
| 11704 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11705 | if { (ac_try="$ac_compile" |
| 11706 | case "(($ac_try" in |
| 11707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11708 | *) ac_try_echo=$ac_try;; |
| 11709 | esac |
| 11710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11711 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11712 | ac_status=$? |
| 11713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11714 | rm -f conftest.er1 |
| 11715 | cat conftest.err >&5 |
| 11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11717 | (exit $ac_status); } && |
| 11718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11719 | { (case "(($ac_try" in |
| 11720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11721 | *) ac_try_echo=$ac_try;; |
| 11722 | esac |
| 11723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11724 | (eval "$ac_try") 2>&5 |
| 11725 | ac_status=$? |
| 11726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11727 | (exit $ac_status); }; } && |
| 11728 | { ac_try='test -s conftest.$ac_objext' |
| 11729 | { (case "(($ac_try" in |
| 11730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11731 | *) ac_try_echo=$ac_try;; |
| 11732 | esac |
| 11733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11734 | (eval "$ac_try") 2>&5 |
| 11735 | ac_status=$? |
| 11736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11737 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11738 | ac_header_compiler=yes |
| 11739 | else |
| 11740 | echo "$as_me: failed program was:" >&5 |
| 11741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11742 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11743 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11744 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11745 | |
| 11746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11747 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11748 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11749 | |
| 11750 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11751 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11752 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11753 | cat >conftest.$ac_ext <<_ACEOF |
| 11754 | /* confdefs.h. */ |
| 11755 | _ACEOF |
| 11756 | cat confdefs.h >>conftest.$ac_ext |
| 11757 | cat >>conftest.$ac_ext <<_ACEOF |
| 11758 | /* end confdefs.h. */ |
| 11759 | #include <$ac_header> |
| 11760 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11761 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11762 | case "(($ac_try" in |
| 11763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11764 | *) ac_try_echo=$ac_try;; |
| 11765 | esac |
| 11766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11767 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11768 | ac_status=$? |
| 11769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11770 | rm -f conftest.er1 |
| 11771 | cat conftest.err >&5 |
| 11772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11773 | (exit $ac_status); } >/dev/null; then |
| 11774 | if test -s conftest.err; then |
| 11775 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11776 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11777 | else |
| 11778 | ac_cpp_err= |
| 11779 | fi |
| 11780 | else |
| 11781 | ac_cpp_err=yes |
| 11782 | fi |
| 11783 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11784 | ac_header_preproc=yes |
| 11785 | else |
| 11786 | echo "$as_me: failed program was:" >&5 |
| 11787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11788 | |
| 11789 | ac_header_preproc=no |
| 11790 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11791 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11792 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11793 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11794 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11795 | |
| 11796 | # So? What about this header? |
| 11797 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11798 | yes:no: ) |
| 11799 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11800 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11801 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11802 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11803 | ac_header_preproc=yes |
| 11804 | ;; |
| 11805 | no:yes:* ) |
| 11806 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11807 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11808 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11809 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11810 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11811 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11812 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11813 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11814 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11815 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11816 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11817 | 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] | 11818 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11819 | ## ----------------------------------- ## |
| 11820 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11821 | ## ----------------------------------- ## |
| 11822 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11823 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11824 | ;; |
| 11825 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11826 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11828 | 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] | 11829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11830 | else |
| 11831 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11832 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11833 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11834 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11835 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11836 | |
| 11837 | fi |
| 11838 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11839 | cat >>confdefs.h <<_ACEOF |
| 11840 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11841 | _ACEOF |
| 11842 | |
| 11843 | fi |
| 11844 | |
| 11845 | done |
| 11846 | |
| 11847 | |
| 11848 | |
| 11849 | for ac_header in string.h strings.h |
| 11850 | do |
| 11851 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11852 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11853 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11855 | 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] | 11856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11857 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11858 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11859 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11860 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11861 | else |
| 11862 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11863 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11864 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11865 | cat >conftest.$ac_ext <<_ACEOF |
| 11866 | /* confdefs.h. */ |
| 11867 | _ACEOF |
| 11868 | cat confdefs.h >>conftest.$ac_ext |
| 11869 | cat >>conftest.$ac_ext <<_ACEOF |
| 11870 | /* end confdefs.h. */ |
| 11871 | $ac_includes_default |
| 11872 | #include <$ac_header> |
| 11873 | _ACEOF |
| 11874 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11875 | if { (ac_try="$ac_compile" |
| 11876 | case "(($ac_try" in |
| 11877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11878 | *) ac_try_echo=$ac_try;; |
| 11879 | esac |
| 11880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11881 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11882 | ac_status=$? |
| 11883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11884 | rm -f conftest.er1 |
| 11885 | cat conftest.err >&5 |
| 11886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11887 | (exit $ac_status); } && |
| 11888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11889 | { (case "(($ac_try" in |
| 11890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11891 | *) ac_try_echo=$ac_try;; |
| 11892 | esac |
| 11893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11894 | (eval "$ac_try") 2>&5 |
| 11895 | ac_status=$? |
| 11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11897 | (exit $ac_status); }; } && |
| 11898 | { ac_try='test -s conftest.$ac_objext' |
| 11899 | { (case "(($ac_try" in |
| 11900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11901 | *) ac_try_echo=$ac_try;; |
| 11902 | esac |
| 11903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11904 | (eval "$ac_try") 2>&5 |
| 11905 | ac_status=$? |
| 11906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11907 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11908 | ac_header_compiler=yes |
| 11909 | else |
| 11910 | echo "$as_me: failed program was:" >&5 |
| 11911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11913 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11914 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11915 | |
| 11916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11917 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11918 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11919 | |
| 11920 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11921 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11922 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11923 | cat >conftest.$ac_ext <<_ACEOF |
| 11924 | /* confdefs.h. */ |
| 11925 | _ACEOF |
| 11926 | cat confdefs.h >>conftest.$ac_ext |
| 11927 | cat >>conftest.$ac_ext <<_ACEOF |
| 11928 | /* end confdefs.h. */ |
| 11929 | #include <$ac_header> |
| 11930 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11931 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11932 | case "(($ac_try" in |
| 11933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11934 | *) ac_try_echo=$ac_try;; |
| 11935 | esac |
| 11936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11937 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11938 | ac_status=$? |
| 11939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11940 | rm -f conftest.er1 |
| 11941 | cat conftest.err >&5 |
| 11942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11943 | (exit $ac_status); } >/dev/null; then |
| 11944 | if test -s conftest.err; then |
| 11945 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11946 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11947 | else |
| 11948 | ac_cpp_err= |
| 11949 | fi |
| 11950 | else |
| 11951 | ac_cpp_err=yes |
| 11952 | fi |
| 11953 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11954 | ac_header_preproc=yes |
| 11955 | else |
| 11956 | echo "$as_me: failed program was:" >&5 |
| 11957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11958 | |
| 11959 | ac_header_preproc=no |
| 11960 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11961 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11962 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11963 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11964 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11965 | |
| 11966 | # So? What about this header? |
| 11967 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11968 | yes:no: ) |
| 11969 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11970 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11971 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11972 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11973 | ac_header_preproc=yes |
| 11974 | ;; |
| 11975 | no:yes:* ) |
| 11976 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11977 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11978 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11979 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11980 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11981 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11982 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11983 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11984 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11985 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11986 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11987 | 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] | 11988 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11989 | ## ----------------------------------- ## |
| 11990 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11991 | ## ----------------------------------- ## |
| 11992 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11993 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11994 | ;; |
| 11995 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11996 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11998 | 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] | 11999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12000 | else |
| 12001 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12002 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12003 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12004 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12005 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12006 | |
| 12007 | fi |
| 12008 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12009 | cat >>confdefs.h <<_ACEOF |
| 12010 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12011 | _ACEOF |
| 12012 | break |
| 12013 | fi |
| 12014 | |
| 12015 | done |
| 12016 | |
| 12017 | |
| 12018 | |
| 12019 | |
| 12020 | for ac_func in strchr index |
| 12021 | do |
| 12022 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12023 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12024 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12025 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12027 | else |
| 12028 | cat >conftest.$ac_ext <<_ACEOF |
| 12029 | /* confdefs.h. */ |
| 12030 | _ACEOF |
| 12031 | cat confdefs.h >>conftest.$ac_ext |
| 12032 | cat >>conftest.$ac_ext <<_ACEOF |
| 12033 | /* end confdefs.h. */ |
| 12034 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12035 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12036 | #define $ac_func innocuous_$ac_func |
| 12037 | |
| 12038 | /* System header to define __stub macros and hopefully few prototypes, |
| 12039 | which can conflict with char $ac_func (); below. |
| 12040 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12041 | <limits.h> exists even on freestanding compilers. */ |
| 12042 | |
| 12043 | #ifdef __STDC__ |
| 12044 | # include <limits.h> |
| 12045 | #else |
| 12046 | # include <assert.h> |
| 12047 | #endif |
| 12048 | |
| 12049 | #undef $ac_func |
| 12050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12051 | /* Override any GCC internal prototype to avoid an error. |
| 12052 | Use char because int might match the return type of a GCC |
| 12053 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12054 | #ifdef __cplusplus |
| 12055 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12056 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12057 | char $ac_func (); |
| 12058 | /* The GNU C library defines this for functions which it implements |
| 12059 | to always fail with ENOSYS. Some functions are actually named |
| 12060 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12061 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12062 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12063 | #endif |
| 12064 | |
| 12065 | int |
| 12066 | main () |
| 12067 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12068 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12069 | ; |
| 12070 | return 0; |
| 12071 | } |
| 12072 | _ACEOF |
| 12073 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12074 | if { (ac_try="$ac_link" |
| 12075 | case "(($ac_try" in |
| 12076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12077 | *) ac_try_echo=$ac_try;; |
| 12078 | esac |
| 12079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12080 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12081 | ac_status=$? |
| 12082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12083 | rm -f conftest.er1 |
| 12084 | cat conftest.err >&5 |
| 12085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12086 | (exit $ac_status); } && |
| 12087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12088 | { (case "(($ac_try" in |
| 12089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12090 | *) ac_try_echo=$ac_try;; |
| 12091 | esac |
| 12092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12093 | (eval "$ac_try") 2>&5 |
| 12094 | ac_status=$? |
| 12095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12096 | (exit $ac_status); }; } && |
| 12097 | { ac_try='test -s conftest$ac_exeext' |
| 12098 | { (case "(($ac_try" in |
| 12099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12100 | *) ac_try_echo=$ac_try;; |
| 12101 | esac |
| 12102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12103 | (eval "$ac_try") 2>&5 |
| 12104 | ac_status=$? |
| 12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12106 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12107 | eval "$as_ac_var=yes" |
| 12108 | else |
| 12109 | echo "$as_me: failed program was:" >&5 |
| 12110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12111 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12112 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12113 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12114 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12115 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12116 | conftest$ac_exeext conftest.$ac_ext |
| 12117 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12118 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12119 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12120 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12121 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12122 | cat >>confdefs.h <<_ACEOF |
| 12123 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12124 | _ACEOF |
| 12125 | break |
| 12126 | fi |
| 12127 | done |
| 12128 | |
| 12129 | |
| 12130 | |
| 12131 | for ac_func in strrchr rindex |
| 12132 | do |
| 12133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12134 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12136 | 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] | 12137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12138 | else |
| 12139 | cat >conftest.$ac_ext <<_ACEOF |
| 12140 | /* confdefs.h. */ |
| 12141 | _ACEOF |
| 12142 | cat confdefs.h >>conftest.$ac_ext |
| 12143 | cat >>conftest.$ac_ext <<_ACEOF |
| 12144 | /* end confdefs.h. */ |
| 12145 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12147 | #define $ac_func innocuous_$ac_func |
| 12148 | |
| 12149 | /* System header to define __stub macros and hopefully few prototypes, |
| 12150 | which can conflict with char $ac_func (); below. |
| 12151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12152 | <limits.h> exists even on freestanding compilers. */ |
| 12153 | |
| 12154 | #ifdef __STDC__ |
| 12155 | # include <limits.h> |
| 12156 | #else |
| 12157 | # include <assert.h> |
| 12158 | #endif |
| 12159 | |
| 12160 | #undef $ac_func |
| 12161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12162 | /* Override any GCC internal prototype to avoid an error. |
| 12163 | Use char because int might match the return type of a GCC |
| 12164 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12165 | #ifdef __cplusplus |
| 12166 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12167 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12168 | char $ac_func (); |
| 12169 | /* The GNU C library defines this for functions which it implements |
| 12170 | to always fail with ENOSYS. Some functions are actually named |
| 12171 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12172 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12173 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12174 | #endif |
| 12175 | |
| 12176 | int |
| 12177 | main () |
| 12178 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12179 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12180 | ; |
| 12181 | return 0; |
| 12182 | } |
| 12183 | _ACEOF |
| 12184 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12185 | if { (ac_try="$ac_link" |
| 12186 | case "(($ac_try" in |
| 12187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12188 | *) ac_try_echo=$ac_try;; |
| 12189 | esac |
| 12190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12191 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12192 | ac_status=$? |
| 12193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12194 | rm -f conftest.er1 |
| 12195 | cat conftest.err >&5 |
| 12196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12197 | (exit $ac_status); } && |
| 12198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12199 | { (case "(($ac_try" in |
| 12200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12201 | *) ac_try_echo=$ac_try;; |
| 12202 | esac |
| 12203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12204 | (eval "$ac_try") 2>&5 |
| 12205 | ac_status=$? |
| 12206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12207 | (exit $ac_status); }; } && |
| 12208 | { ac_try='test -s conftest$ac_exeext' |
| 12209 | { (case "(($ac_try" in |
| 12210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12211 | *) ac_try_echo=$ac_try;; |
| 12212 | esac |
| 12213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12214 | (eval "$ac_try") 2>&5 |
| 12215 | ac_status=$? |
| 12216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12217 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12218 | eval "$as_ac_var=yes" |
| 12219 | else |
| 12220 | echo "$as_me: failed program was:" >&5 |
| 12221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12222 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12223 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12225 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12226 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12227 | conftest$ac_exeext conftest.$ac_ext |
| 12228 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12229 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12230 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12231 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12232 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12233 | cat >>confdefs.h <<_ACEOF |
| 12234 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12235 | _ACEOF |
| 12236 | break |
| 12237 | fi |
| 12238 | done |
| 12239 | |
| 12240 | |
| 12241 | |
| 12242 | for ac_func in memcpy bcopy |
| 12243 | do |
| 12244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12245 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12247 | 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] | 12248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12249 | else |
| 12250 | cat >conftest.$ac_ext <<_ACEOF |
| 12251 | /* confdefs.h. */ |
| 12252 | _ACEOF |
| 12253 | cat confdefs.h >>conftest.$ac_ext |
| 12254 | cat >>conftest.$ac_ext <<_ACEOF |
| 12255 | /* end confdefs.h. */ |
| 12256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12258 | #define $ac_func innocuous_$ac_func |
| 12259 | |
| 12260 | /* System header to define __stub macros and hopefully few prototypes, |
| 12261 | which can conflict with char $ac_func (); below. |
| 12262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12263 | <limits.h> exists even on freestanding compilers. */ |
| 12264 | |
| 12265 | #ifdef __STDC__ |
| 12266 | # include <limits.h> |
| 12267 | #else |
| 12268 | # include <assert.h> |
| 12269 | #endif |
| 12270 | |
| 12271 | #undef $ac_func |
| 12272 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12273 | /* Override any GCC internal prototype to avoid an error. |
| 12274 | Use char because int might match the return type of a GCC |
| 12275 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12276 | #ifdef __cplusplus |
| 12277 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12278 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12279 | char $ac_func (); |
| 12280 | /* The GNU C library defines this for functions which it implements |
| 12281 | to always fail with ENOSYS. Some functions are actually named |
| 12282 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12283 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12284 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12285 | #endif |
| 12286 | |
| 12287 | int |
| 12288 | main () |
| 12289 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12290 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12291 | ; |
| 12292 | return 0; |
| 12293 | } |
| 12294 | _ACEOF |
| 12295 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12296 | if { (ac_try="$ac_link" |
| 12297 | case "(($ac_try" in |
| 12298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12299 | *) ac_try_echo=$ac_try;; |
| 12300 | esac |
| 12301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12302 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12303 | ac_status=$? |
| 12304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12305 | rm -f conftest.er1 |
| 12306 | cat conftest.err >&5 |
| 12307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12308 | (exit $ac_status); } && |
| 12309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12310 | { (case "(($ac_try" in |
| 12311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12312 | *) ac_try_echo=$ac_try;; |
| 12313 | esac |
| 12314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12315 | (eval "$ac_try") 2>&5 |
| 12316 | ac_status=$? |
| 12317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12318 | (exit $ac_status); }; } && |
| 12319 | { ac_try='test -s conftest$ac_exeext' |
| 12320 | { (case "(($ac_try" in |
| 12321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12322 | *) ac_try_echo=$ac_try;; |
| 12323 | esac |
| 12324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12325 | (eval "$ac_try") 2>&5 |
| 12326 | ac_status=$? |
| 12327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12328 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12329 | eval "$as_ac_var=yes" |
| 12330 | else |
| 12331 | echo "$as_me: failed program was:" >&5 |
| 12332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12334 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12335 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12336 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12337 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12338 | conftest$ac_exeext conftest.$ac_ext |
| 12339 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12340 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12341 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12342 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12343 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12344 | cat >>confdefs.h <<_ACEOF |
| 12345 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12346 | _ACEOF |
| 12347 | break |
| 12348 | fi |
| 12349 | done |
| 12350 | |
| 12351 | |
| 12352 | |
| 12353 | for ac_func in memmove strcmp |
| 12354 | do |
| 12355 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12356 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12357 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12358 | 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] | 12359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12360 | else |
| 12361 | cat >conftest.$ac_ext <<_ACEOF |
| 12362 | /* confdefs.h. */ |
| 12363 | _ACEOF |
| 12364 | cat confdefs.h >>conftest.$ac_ext |
| 12365 | cat >>conftest.$ac_ext <<_ACEOF |
| 12366 | /* end confdefs.h. */ |
| 12367 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12368 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12369 | #define $ac_func innocuous_$ac_func |
| 12370 | |
| 12371 | /* System header to define __stub macros and hopefully few prototypes, |
| 12372 | which can conflict with char $ac_func (); below. |
| 12373 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12374 | <limits.h> exists even on freestanding compilers. */ |
| 12375 | |
| 12376 | #ifdef __STDC__ |
| 12377 | # include <limits.h> |
| 12378 | #else |
| 12379 | # include <assert.h> |
| 12380 | #endif |
| 12381 | |
| 12382 | #undef $ac_func |
| 12383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12384 | /* Override any GCC internal prototype to avoid an error. |
| 12385 | Use char because int might match the return type of a GCC |
| 12386 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12387 | #ifdef __cplusplus |
| 12388 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12389 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12390 | char $ac_func (); |
| 12391 | /* The GNU C library defines this for functions which it implements |
| 12392 | to always fail with ENOSYS. Some functions are actually named |
| 12393 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12394 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12395 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12396 | #endif |
| 12397 | |
| 12398 | int |
| 12399 | main () |
| 12400 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12401 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12402 | ; |
| 12403 | return 0; |
| 12404 | } |
| 12405 | _ACEOF |
| 12406 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12407 | if { (ac_try="$ac_link" |
| 12408 | case "(($ac_try" in |
| 12409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12410 | *) ac_try_echo=$ac_try;; |
| 12411 | esac |
| 12412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12413 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12414 | ac_status=$? |
| 12415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12416 | rm -f conftest.er1 |
| 12417 | cat conftest.err >&5 |
| 12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12419 | (exit $ac_status); } && |
| 12420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12421 | { (case "(($ac_try" in |
| 12422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12423 | *) ac_try_echo=$ac_try;; |
| 12424 | esac |
| 12425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12426 | (eval "$ac_try") 2>&5 |
| 12427 | ac_status=$? |
| 12428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12429 | (exit $ac_status); }; } && |
| 12430 | { ac_try='test -s conftest$ac_exeext' |
| 12431 | { (case "(($ac_try" in |
| 12432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12433 | *) ac_try_echo=$ac_try;; |
| 12434 | esac |
| 12435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12436 | (eval "$ac_try") 2>&5 |
| 12437 | ac_status=$? |
| 12438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12439 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12440 | eval "$as_ac_var=yes" |
| 12441 | else |
| 12442 | echo "$as_me: failed program was:" >&5 |
| 12443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12445 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12446 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12447 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12448 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12449 | conftest$ac_exeext conftest.$ac_ext |
| 12450 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12451 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12452 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12453 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12454 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12455 | cat >>confdefs.h <<_ACEOF |
| 12456 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12457 | _ACEOF |
| 12458 | |
| 12459 | fi |
| 12460 | done |
| 12461 | |
| 12462 | |
| 12463 | |
| 12464 | |
| 12465 | for ac_func in closedir opendir readdir |
| 12466 | do |
| 12467 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12468 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12469 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12470 | 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] | 12471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12472 | else |
| 12473 | cat >conftest.$ac_ext <<_ACEOF |
| 12474 | /* confdefs.h. */ |
| 12475 | _ACEOF |
| 12476 | cat confdefs.h >>conftest.$ac_ext |
| 12477 | cat >>conftest.$ac_ext <<_ACEOF |
| 12478 | /* end confdefs.h. */ |
| 12479 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12480 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12481 | #define $ac_func innocuous_$ac_func |
| 12482 | |
| 12483 | /* System header to define __stub macros and hopefully few prototypes, |
| 12484 | which can conflict with char $ac_func (); below. |
| 12485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12486 | <limits.h> exists even on freestanding compilers. */ |
| 12487 | |
| 12488 | #ifdef __STDC__ |
| 12489 | # include <limits.h> |
| 12490 | #else |
| 12491 | # include <assert.h> |
| 12492 | #endif |
| 12493 | |
| 12494 | #undef $ac_func |
| 12495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12496 | /* Override any GCC internal prototype to avoid an error. |
| 12497 | Use char because int might match the return type of a GCC |
| 12498 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12499 | #ifdef __cplusplus |
| 12500 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12501 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12502 | char $ac_func (); |
| 12503 | /* The GNU C library defines this for functions which it implements |
| 12504 | to always fail with ENOSYS. Some functions are actually named |
| 12505 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12506 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12507 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12508 | #endif |
| 12509 | |
| 12510 | int |
| 12511 | main () |
| 12512 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12513 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12514 | ; |
| 12515 | return 0; |
| 12516 | } |
| 12517 | _ACEOF |
| 12518 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12519 | if { (ac_try="$ac_link" |
| 12520 | case "(($ac_try" in |
| 12521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12522 | *) ac_try_echo=$ac_try;; |
| 12523 | esac |
| 12524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12525 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12526 | ac_status=$? |
| 12527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12528 | rm -f conftest.er1 |
| 12529 | cat conftest.err >&5 |
| 12530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12531 | (exit $ac_status); } && |
| 12532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12533 | { (case "(($ac_try" in |
| 12534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12535 | *) ac_try_echo=$ac_try;; |
| 12536 | esac |
| 12537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12538 | (eval "$ac_try") 2>&5 |
| 12539 | ac_status=$? |
| 12540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12541 | (exit $ac_status); }; } && |
| 12542 | { ac_try='test -s conftest$ac_exeext' |
| 12543 | { (case "(($ac_try" in |
| 12544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12545 | *) ac_try_echo=$ac_try;; |
| 12546 | esac |
| 12547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12548 | (eval "$ac_try") 2>&5 |
| 12549 | ac_status=$? |
| 12550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12551 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12552 | eval "$as_ac_var=yes" |
| 12553 | else |
| 12554 | echo "$as_me: failed program was:" >&5 |
| 12555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12557 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12558 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12559 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12560 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12561 | conftest$ac_exeext conftest.$ac_ext |
| 12562 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12563 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12564 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12565 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12566 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12567 | cat >>confdefs.h <<_ACEOF |
| 12568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12569 | _ACEOF |
| 12570 | |
| 12571 | fi |
| 12572 | done |
| 12573 | |
| 12574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12575 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12576 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12577 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12578 | case $enableval in |
| 12579 | yes) enable_shared=yes ;; |
| 12580 | no) enable_shared=no ;; |
| 12581 | *) |
| 12582 | enable_shared=no |
| 12583 | # Look at the argument we got. We use all the common list separators. |
| 12584 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12585 | for pkg in $enableval; do |
| 12586 | IFS="$lt_save_ifs" |
| 12587 | if test "X$pkg" = "X$p"; then |
| 12588 | enable_shared=yes |
| 12589 | fi |
| 12590 | done |
| 12591 | IFS="$lt_save_ifs" |
| 12592 | ;; |
| 12593 | esac |
| 12594 | else |
| 12595 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12596 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12598 | |
| 12599 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12600 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12601 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12602 | case $enableval in |
| 12603 | yes) enable_static=yes ;; |
| 12604 | no) enable_static=no ;; |
| 12605 | *) |
| 12606 | enable_static=no |
| 12607 | # Look at the argument we got. We use all the common list separators. |
| 12608 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12609 | for pkg in $enableval; do |
| 12610 | IFS="$lt_save_ifs" |
| 12611 | if test "X$pkg" = "X$p"; then |
| 12612 | enable_static=yes |
| 12613 | fi |
| 12614 | done |
| 12615 | IFS="$lt_save_ifs" |
| 12616 | ;; |
| 12617 | esac |
| 12618 | else |
| 12619 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12620 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12621 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12622 | |
| 12623 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12624 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12625 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12626 | case $enableval in |
| 12627 | yes) enable_fast_install=yes ;; |
| 12628 | no) enable_fast_install=no ;; |
| 12629 | *) |
| 12630 | enable_fast_install=no |
| 12631 | # Look at the argument we got. We use all the common list separators. |
| 12632 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12633 | for pkg in $enableval; do |
| 12634 | IFS="$lt_save_ifs" |
| 12635 | if test "X$pkg" = "X$p"; then |
| 12636 | enable_fast_install=yes |
| 12637 | fi |
| 12638 | done |
| 12639 | IFS="$lt_save_ifs" |
| 12640 | ;; |
| 12641 | esac |
| 12642 | else |
| 12643 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12644 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12646 | |
| 12647 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12648 | 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] | 12649 | if test "${lt_cv_path_SED+set}" = set; then |
| 12650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12651 | else |
| 12652 | # Loop through the user's path and test for sed and gsed. |
| 12653 | # Then use that list of sed's as ones to test for truncation. |
| 12654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12655 | for as_dir in $PATH |
| 12656 | do |
| 12657 | IFS=$as_save_IFS |
| 12658 | test -z "$as_dir" && as_dir=. |
| 12659 | for lt_ac_prog in sed gsed; do |
| 12660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12661 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12662 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12663 | fi |
| 12664 | done |
| 12665 | done |
| 12666 | done |
| 12667 | lt_ac_max=0 |
| 12668 | lt_ac_count=0 |
| 12669 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12670 | # along with /bin/sed that truncates output. |
| 12671 | 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] | 12672 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12673 | cat /dev/null > conftest.in |
| 12674 | lt_ac_count=0 |
| 12675 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12676 | # Check for GNU sed and select it if it is found. |
| 12677 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12678 | lt_cv_path_SED=$lt_ac_sed |
| 12679 | break |
| 12680 | fi |
| 12681 | while true; do |
| 12682 | cat conftest.in conftest.in >conftest.tmp |
| 12683 | mv conftest.tmp conftest.in |
| 12684 | cp conftest.in conftest.nl |
| 12685 | echo >>conftest.nl |
| 12686 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12687 | cmp -s conftest.out conftest.nl || break |
| 12688 | # 10000 chars as input seems more than enough |
| 12689 | test $lt_ac_count -gt 10 && break |
| 12690 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12691 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12692 | lt_ac_max=$lt_ac_count |
| 12693 | lt_cv_path_SED=$lt_ac_sed |
| 12694 | fi |
| 12695 | done |
| 12696 | done |
| 12697 | |
| 12698 | fi |
| 12699 | |
| 12700 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12701 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12702 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12703 | |
| 12704 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12705 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12706 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12707 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12708 | else |
| 12709 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12710 | fi |
| 12711 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12712 | ac_prog=ld |
| 12713 | if test "$GCC" = yes; then |
| 12714 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12715 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12716 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12717 | case $host in |
| 12718 | *-*-mingw*) |
| 12719 | # gcc leaves a trailing carriage return which upsets mingw |
| 12720 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12721 | *) |
| 12722 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12723 | esac |
| 12724 | case $ac_prog in |
| 12725 | # Accept absolute paths. |
| 12726 | [\\/]* | ?:[\\/]*) |
| 12727 | re_direlt='/[^/][^/]*/\.\./' |
| 12728 | # Canonicalize the pathname of ld |
| 12729 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12730 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12731 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12732 | done |
| 12733 | test -z "$LD" && LD="$ac_prog" |
| 12734 | ;; |
| 12735 | "") |
| 12736 | # If it fails, then pretend we aren't using GCC. |
| 12737 | ac_prog=ld |
| 12738 | ;; |
| 12739 | *) |
| 12740 | # If it is relative, then search for the first ld in PATH. |
| 12741 | with_gnu_ld=unknown |
| 12742 | ;; |
| 12743 | esac |
| 12744 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12745 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12746 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12747 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12748 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12749 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12750 | fi |
| 12751 | if test "${lt_cv_path_LD+set}" = set; then |
| 12752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12753 | else |
| 12754 | if test -z "$LD"; then |
| 12755 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12756 | for ac_dir in $PATH; do |
| 12757 | IFS="$lt_save_ifs" |
| 12758 | test -z "$ac_dir" && ac_dir=. |
| 12759 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12760 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12761 | # 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] | 12762 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12763 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12764 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12765 | *GNU* | *'with BFD'*) |
| 12766 | test "$with_gnu_ld" != no && break |
| 12767 | ;; |
| 12768 | *) |
| 12769 | test "$with_gnu_ld" != yes && break |
| 12770 | ;; |
| 12771 | esac |
| 12772 | fi |
| 12773 | done |
| 12774 | IFS="$lt_save_ifs" |
| 12775 | else |
| 12776 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12777 | fi |
| 12778 | fi |
| 12779 | |
| 12780 | LD="$lt_cv_path_LD" |
| 12781 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12782 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12783 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12784 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12785 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12786 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12787 | fi |
| 12788 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12789 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12790 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12791 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12792 | 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] | 12793 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12795 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12796 | # 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] | 12797 | case `$LD -v 2>&1 </dev/null` in |
| 12798 | *GNU* | *'with BFD'*) |
| 12799 | lt_cv_prog_gnu_ld=yes |
| 12800 | ;; |
| 12801 | *) |
| 12802 | lt_cv_prog_gnu_ld=no |
| 12803 | ;; |
| 12804 | esac |
| 12805 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12806 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12807 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12808 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12809 | |
| 12810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12811 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12812 | 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] | 12813 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12815 | else |
| 12816 | lt_cv_ld_reload_flag='-r' |
| 12817 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12818 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12819 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12820 | reload_flag=$lt_cv_ld_reload_flag |
| 12821 | case $reload_flag in |
| 12822 | "" | " "*) ;; |
| 12823 | *) reload_flag=" $reload_flag" ;; |
| 12824 | esac |
| 12825 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12826 | case $host_os in |
| 12827 | darwin*) |
| 12828 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12829 | 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] | 12830 | else |
| 12831 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12832 | fi |
| 12833 | ;; |
| 12834 | esac |
| 12835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12836 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12837 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12838 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12840 | else |
| 12841 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12842 | lt_cv_file_magic_test_file= |
| 12843 | lt_cv_deplibs_check_method='unknown' |
| 12844 | # Need to set the preceding variable on all platforms that support |
| 12845 | # interlibrary dependencies. |
| 12846 | # 'none' -- dependencies not supported. |
| 12847 | # `unknown' -- same as none, but documents that we really don't know. |
| 12848 | # 'pass_all' -- all dependencies passed with no checks. |
| 12849 | # 'test_compile' -- check by making test program. |
| 12850 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12851 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12852 | # If you have `file' or equivalent on your system and you're not sure |
| 12853 | # whether `pass_all' will *always* work, you probably want this one. |
| 12854 | |
| 12855 | case $host_os in |
| 12856 | aix4* | aix5*) |
| 12857 | lt_cv_deplibs_check_method=pass_all |
| 12858 | ;; |
| 12859 | |
| 12860 | beos*) |
| 12861 | lt_cv_deplibs_check_method=pass_all |
| 12862 | ;; |
| 12863 | |
| 12864 | bsdi[45]*) |
| 12865 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12866 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12867 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12868 | ;; |
| 12869 | |
| 12870 | cygwin*) |
| 12871 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12872 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12873 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12874 | ;; |
| 12875 | |
| 12876 | mingw* | pw32*) |
| 12877 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12878 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12879 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12880 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12881 | ;; |
| 12882 | |
| 12883 | darwin* | rhapsody*) |
| 12884 | lt_cv_deplibs_check_method=pass_all |
| 12885 | ;; |
| 12886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12887 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12888 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12889 | case $host_cpu in |
| 12890 | i*86 ) |
| 12891 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12892 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12893 | 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] | 12894 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12895 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12896 | ;; |
| 12897 | esac |
| 12898 | else |
| 12899 | lt_cv_deplibs_check_method=pass_all |
| 12900 | fi |
| 12901 | ;; |
| 12902 | |
| 12903 | gnu*) |
| 12904 | lt_cv_deplibs_check_method=pass_all |
| 12905 | ;; |
| 12906 | |
| 12907 | hpux10.20* | hpux11*) |
| 12908 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12909 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12910 | ia64*) |
| 12911 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12912 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12913 | ;; |
| 12914 | hppa*64*) |
| 12915 | 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]' |
| 12916 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12917 | ;; |
| 12918 | *) |
| 12919 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12920 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12921 | ;; |
| 12922 | esac |
| 12923 | ;; |
| 12924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12925 | interix3*) |
| 12926 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12927 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12928 | ;; |
| 12929 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12930 | irix5* | irix6* | nonstopux*) |
| 12931 | case $LD in |
| 12932 | *-32|*"-32 ") libmagic=32-bit;; |
| 12933 | *-n32|*"-n32 ") libmagic=N32;; |
| 12934 | *-64|*"-64 ") libmagic=64-bit;; |
| 12935 | *) libmagic=never-match;; |
| 12936 | esac |
| 12937 | lt_cv_deplibs_check_method=pass_all |
| 12938 | ;; |
| 12939 | |
| 12940 | # This must be Linux ELF. |
| 12941 | linux*) |
| 12942 | lt_cv_deplibs_check_method=pass_all |
| 12943 | ;; |
| 12944 | |
| 12945 | netbsd*) |
| 12946 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12947 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12948 | else |
| 12949 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12950 | fi |
| 12951 | ;; |
| 12952 | |
| 12953 | newos6*) |
| 12954 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12955 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12956 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12957 | ;; |
| 12958 | |
| 12959 | nto-qnx*) |
| 12960 | lt_cv_deplibs_check_method=unknown |
| 12961 | ;; |
| 12962 | |
| 12963 | openbsd*) |
| 12964 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12965 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12966 | else |
| 12967 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12968 | fi |
| 12969 | ;; |
| 12970 | |
| 12971 | osf3* | osf4* | osf5*) |
| 12972 | lt_cv_deplibs_check_method=pass_all |
| 12973 | ;; |
| 12974 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12975 | solaris*) |
| 12976 | lt_cv_deplibs_check_method=pass_all |
| 12977 | ;; |
| 12978 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12979 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12980 | case $host_vendor in |
| 12981 | motorola) |
| 12982 | 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]' |
| 12983 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12984 | ;; |
| 12985 | ncr) |
| 12986 | lt_cv_deplibs_check_method=pass_all |
| 12987 | ;; |
| 12988 | sequent) |
| 12989 | lt_cv_file_magic_cmd='/bin/file' |
| 12990 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12991 | ;; |
| 12992 | sni) |
| 12993 | lt_cv_file_magic_cmd='/bin/file' |
| 12994 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12995 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12996 | ;; |
| 12997 | siemens) |
| 12998 | lt_cv_deplibs_check_method=pass_all |
| 12999 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13000 | pc) |
| 13001 | lt_cv_deplibs_check_method=pass_all |
| 13002 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13003 | esac |
| 13004 | ;; |
| 13005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13006 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13007 | lt_cv_deplibs_check_method=pass_all |
| 13008 | ;; |
| 13009 | esac |
| 13010 | |
| 13011 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13012 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 13013 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13014 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 13015 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 13016 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 13017 | |
| 13018 | |
| 13019 | |
| 13020 | # If no C compiler was specified, use CC. |
| 13021 | LTCC=${LTCC-"$CC"} |
| 13022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13023 | # If no C compiler flags were specified, use CFLAGS. |
| 13024 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13025 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13026 | # Allow CC to be a program name with arguments. |
| 13027 | compiler=$CC |
| 13028 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13029 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13030 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13031 | enableval=$enable_libtool_lock; |
| 13032 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13033 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13034 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 13035 | |
| 13036 | # Some flags need to be propagated to the compiler or linker for good |
| 13037 | # libtool support. |
| 13038 | case $host in |
| 13039 | ia64-*-hpux*) |
| 13040 | # Find out which ABI we are using. |
| 13041 | echo 'int i;' > conftest.$ac_ext |
| 13042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13043 | (eval $ac_compile) 2>&5 |
| 13044 | ac_status=$? |
| 13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13046 | (exit $ac_status); }; then |
| 13047 | case `/usr/bin/file conftest.$ac_objext` in |
| 13048 | *ELF-32*) |
| 13049 | HPUX_IA64_MODE="32" |
| 13050 | ;; |
| 13051 | *ELF-64*) |
| 13052 | HPUX_IA64_MODE="64" |
| 13053 | ;; |
| 13054 | esac |
| 13055 | fi |
| 13056 | rm -rf conftest* |
| 13057 | ;; |
| 13058 | *-*-irix6*) |
| 13059 | # Find out which ABI we are using. |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13060 | echo '#line 13060 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13062 | (eval $ac_compile) 2>&5 |
| 13063 | ac_status=$? |
| 13064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13065 | (exit $ac_status); }; then |
| 13066 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13067 | case `/usr/bin/file conftest.$ac_objext` in |
| 13068 | *32-bit*) |
| 13069 | LD="${LD-ld} -melf32bsmip" |
| 13070 | ;; |
| 13071 | *N32*) |
| 13072 | LD="${LD-ld} -melf32bmipn32" |
| 13073 | ;; |
| 13074 | *64-bit*) |
| 13075 | LD="${LD-ld} -melf64bmip" |
| 13076 | ;; |
| 13077 | esac |
| 13078 | else |
| 13079 | case `/usr/bin/file conftest.$ac_objext` in |
| 13080 | *32-bit*) |
| 13081 | LD="${LD-ld} -32" |
| 13082 | ;; |
| 13083 | *N32*) |
| 13084 | LD="${LD-ld} -n32" |
| 13085 | ;; |
| 13086 | *64-bit*) |
| 13087 | LD="${LD-ld} -64" |
| 13088 | ;; |
| 13089 | esac |
| 13090 | fi |
| 13091 | fi |
| 13092 | rm -rf conftest* |
| 13093 | ;; |
| 13094 | |
| 13095 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 13096 | # Find out which ABI we are using. |
| 13097 | echo 'int i;' > conftest.$ac_ext |
| 13098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13099 | (eval $ac_compile) 2>&5 |
| 13100 | ac_status=$? |
| 13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13102 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13103 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13104 | *32-bit*) |
| 13105 | case $host in |
| 13106 | x86_64-*linux*) |
| 13107 | LD="${LD-ld} -m elf_i386" |
| 13108 | ;; |
| 13109 | ppc64-*linux*|powerpc64-*linux*) |
| 13110 | LD="${LD-ld} -m elf32ppclinux" |
| 13111 | ;; |
| 13112 | s390x-*linux*) |
| 13113 | LD="${LD-ld} -m elf_s390" |
| 13114 | ;; |
| 13115 | sparc64-*linux*) |
| 13116 | LD="${LD-ld} -m elf32_sparc" |
| 13117 | ;; |
| 13118 | esac |
| 13119 | ;; |
| 13120 | *64-bit*) |
| 13121 | case $host in |
| 13122 | x86_64-*linux*) |
| 13123 | LD="${LD-ld} -m elf_x86_64" |
| 13124 | ;; |
| 13125 | ppc*-*linux*|powerpc*-*linux*) |
| 13126 | LD="${LD-ld} -m elf64ppc" |
| 13127 | ;; |
| 13128 | s390*-*linux*) |
| 13129 | LD="${LD-ld} -m elf64_s390" |
| 13130 | ;; |
| 13131 | sparc*-*linux*) |
| 13132 | LD="${LD-ld} -m elf64_sparc" |
| 13133 | ;; |
| 13134 | esac |
| 13135 | ;; |
| 13136 | esac |
| 13137 | fi |
| 13138 | rm -rf conftest* |
| 13139 | ;; |
| 13140 | |
| 13141 | *-*-sco3.2v5*) |
| 13142 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 13143 | SAVE_CFLAGS="$CFLAGS" |
| 13144 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13145 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 13146 | 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] | 13147 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 13148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13149 | else |
| 13150 | ac_ext=c |
| 13151 | ac_cpp='$CPP $CPPFLAGS' |
| 13152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13155 | |
| 13156 | cat >conftest.$ac_ext <<_ACEOF |
| 13157 | /* confdefs.h. */ |
| 13158 | _ACEOF |
| 13159 | cat confdefs.h >>conftest.$ac_ext |
| 13160 | cat >>conftest.$ac_ext <<_ACEOF |
| 13161 | /* end confdefs.h. */ |
| 13162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13163 | int |
| 13164 | main () |
| 13165 | { |
| 13166 | |
| 13167 | ; |
| 13168 | return 0; |
| 13169 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13170 | _ACEOF |
| 13171 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13172 | if { (ac_try="$ac_link" |
| 13173 | case "(($ac_try" in |
| 13174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13175 | *) ac_try_echo=$ac_try;; |
| 13176 | esac |
| 13177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13178 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13179 | ac_status=$? |
| 13180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13181 | rm -f conftest.er1 |
| 13182 | cat conftest.err >&5 |
| 13183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13184 | (exit $ac_status); } && |
| 13185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13186 | { (case "(($ac_try" in |
| 13187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13188 | *) ac_try_echo=$ac_try;; |
| 13189 | esac |
| 13190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13191 | (eval "$ac_try") 2>&5 |
| 13192 | ac_status=$? |
| 13193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13194 | (exit $ac_status); }; } && |
| 13195 | { ac_try='test -s conftest$ac_exeext' |
| 13196 | { (case "(($ac_try" in |
| 13197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13198 | *) ac_try_echo=$ac_try;; |
| 13199 | esac |
| 13200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13201 | (eval "$ac_try") 2>&5 |
| 13202 | ac_status=$? |
| 13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13204 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13205 | lt_cv_cc_needs_belf=yes |
| 13206 | else |
| 13207 | echo "$as_me: failed program was:" >&5 |
| 13208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13210 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13211 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13212 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13213 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13214 | conftest$ac_exeext conftest.$ac_ext |
| 13215 | ac_ext=c |
| 13216 | ac_cpp='$CPP $CPPFLAGS' |
| 13217 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13218 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13219 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13220 | |
| 13221 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13222 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 13223 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13224 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 13225 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 13226 | CFLAGS="$SAVE_CFLAGS" |
| 13227 | fi |
| 13228 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13229 | sparc*-*solaris*) |
| 13230 | # Find out which ABI we are using. |
| 13231 | echo 'int i;' > conftest.$ac_ext |
| 13232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13233 | (eval $ac_compile) 2>&5 |
| 13234 | ac_status=$? |
| 13235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13236 | (exit $ac_status); }; then |
| 13237 | case `/usr/bin/file conftest.o` in |
| 13238 | *64-bit*) |
| 13239 | case $lt_cv_prog_gnu_ld in |
| 13240 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 13241 | *) LD="${LD-ld} -64" ;; |
| 13242 | esac |
| 13243 | ;; |
| 13244 | esac |
| 13245 | fi |
| 13246 | rm -rf conftest* |
| 13247 | ;; |
| 13248 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13249 | |
| 13250 | esac |
| 13251 | |
| 13252 | need_locks="$enable_libtool_lock" |
| 13253 | |
| 13254 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13255 | |
| 13256 | |
| 13257 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 13258 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 13259 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13260 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13261 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13262 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13263 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13264 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13265 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 13266 | 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] | 13267 | if test -z "$CXXCPP"; then |
| 13268 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13270 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13271 | # Double quotes because CXXCPP needs to be expanded |
| 13272 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 13273 | do |
| 13274 | ac_preproc_ok=false |
| 13275 | for ac_cxx_preproc_warn_flag in '' yes |
| 13276 | do |
| 13277 | # Use a header file that comes with gcc, so configuring glibc |
| 13278 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13279 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13280 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13281 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13282 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13283 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13284 | /* confdefs.h. */ |
| 13285 | _ACEOF |
| 13286 | cat confdefs.h >>conftest.$ac_ext |
| 13287 | cat >>conftest.$ac_ext <<_ACEOF |
| 13288 | /* end confdefs.h. */ |
| 13289 | #ifdef __STDC__ |
| 13290 | # include <limits.h> |
| 13291 | #else |
| 13292 | # include <assert.h> |
| 13293 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13294 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13295 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13296 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13297 | case "(($ac_try" in |
| 13298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13299 | *) ac_try_echo=$ac_try;; |
| 13300 | esac |
| 13301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13302 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13303 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13304 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13305 | rm -f conftest.er1 |
| 13306 | cat conftest.err >&5 |
| 13307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13308 | (exit $ac_status); } >/dev/null; then |
| 13309 | if test -s conftest.err; then |
| 13310 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13311 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13312 | else |
| 13313 | ac_cpp_err= |
| 13314 | fi |
| 13315 | else |
| 13316 | ac_cpp_err=yes |
| 13317 | fi |
| 13318 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13319 | : |
| 13320 | else |
| 13321 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13323 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13324 | # Broken: fails on valid input. |
| 13325 | continue |
| 13326 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13327 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13328 | rm -f conftest.err conftest.$ac_ext |
| 13329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13330 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13331 | # can be detected and how. |
| 13332 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13333 | /* confdefs.h. */ |
| 13334 | _ACEOF |
| 13335 | cat confdefs.h >>conftest.$ac_ext |
| 13336 | cat >>conftest.$ac_ext <<_ACEOF |
| 13337 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13338 | #include <ac_nonexistent.h> |
| 13339 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13340 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13341 | case "(($ac_try" in |
| 13342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13343 | *) ac_try_echo=$ac_try;; |
| 13344 | esac |
| 13345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13346 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13347 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13348 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13349 | rm -f conftest.er1 |
| 13350 | cat conftest.err >&5 |
| 13351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13352 | (exit $ac_status); } >/dev/null; then |
| 13353 | if test -s conftest.err; then |
| 13354 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13355 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13356 | else |
| 13357 | ac_cpp_err= |
| 13358 | fi |
| 13359 | else |
| 13360 | ac_cpp_err=yes |
| 13361 | fi |
| 13362 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13363 | # Broken: success on invalid input. |
| 13364 | continue |
| 13365 | else |
| 13366 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13368 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13369 | # Passes both tests. |
| 13370 | ac_preproc_ok=: |
| 13371 | break |
| 13372 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13373 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13374 | rm -f conftest.err conftest.$ac_ext |
| 13375 | |
| 13376 | done |
| 13377 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13378 | rm -f conftest.err conftest.$ac_ext |
| 13379 | if $ac_preproc_ok; then |
| 13380 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13381 | fi |
| 13382 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13383 | done |
| 13384 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13385 | |
| 13386 | fi |
| 13387 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13388 | else |
| 13389 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13390 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13391 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13392 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13393 | ac_preproc_ok=false |
| 13394 | for ac_cxx_preproc_warn_flag in '' yes |
| 13395 | do |
| 13396 | # Use a header file that comes with gcc, so configuring glibc |
| 13397 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13398 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13399 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13400 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13401 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13402 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13403 | /* confdefs.h. */ |
| 13404 | _ACEOF |
| 13405 | cat confdefs.h >>conftest.$ac_ext |
| 13406 | cat >>conftest.$ac_ext <<_ACEOF |
| 13407 | /* end confdefs.h. */ |
| 13408 | #ifdef __STDC__ |
| 13409 | # include <limits.h> |
| 13410 | #else |
| 13411 | # include <assert.h> |
| 13412 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13413 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13414 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13415 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13416 | case "(($ac_try" in |
| 13417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13418 | *) ac_try_echo=$ac_try;; |
| 13419 | esac |
| 13420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13422 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13423 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13424 | rm -f conftest.er1 |
| 13425 | cat conftest.err >&5 |
| 13426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13427 | (exit $ac_status); } >/dev/null; then |
| 13428 | if test -s conftest.err; then |
| 13429 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13430 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13431 | else |
| 13432 | ac_cpp_err= |
| 13433 | fi |
| 13434 | else |
| 13435 | ac_cpp_err=yes |
| 13436 | fi |
| 13437 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13438 | : |
| 13439 | else |
| 13440 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13442 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13443 | # Broken: fails on valid input. |
| 13444 | continue |
| 13445 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13446 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13447 | rm -f conftest.err conftest.$ac_ext |
| 13448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13449 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13450 | # can be detected and how. |
| 13451 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13452 | /* confdefs.h. */ |
| 13453 | _ACEOF |
| 13454 | cat confdefs.h >>conftest.$ac_ext |
| 13455 | cat >>conftest.$ac_ext <<_ACEOF |
| 13456 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13457 | #include <ac_nonexistent.h> |
| 13458 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13459 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13460 | case "(($ac_try" in |
| 13461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13462 | *) ac_try_echo=$ac_try;; |
| 13463 | esac |
| 13464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13466 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13467 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13468 | rm -f conftest.er1 |
| 13469 | cat conftest.err >&5 |
| 13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13471 | (exit $ac_status); } >/dev/null; then |
| 13472 | if test -s conftest.err; then |
| 13473 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13474 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13475 | else |
| 13476 | ac_cpp_err= |
| 13477 | fi |
| 13478 | else |
| 13479 | ac_cpp_err=yes |
| 13480 | fi |
| 13481 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13482 | # Broken: success on invalid input. |
| 13483 | continue |
| 13484 | else |
| 13485 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13487 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13488 | # Passes both tests. |
| 13489 | ac_preproc_ok=: |
| 13490 | break |
| 13491 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13492 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13493 | rm -f conftest.err conftest.$ac_ext |
| 13494 | |
| 13495 | done |
| 13496 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13497 | rm -f conftest.err conftest.$ac_ext |
| 13498 | if $ac_preproc_ok; then |
| 13499 | : |
| 13500 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13501 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13502 | See \`config.log' for more details." >&5 |
| 13503 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13504 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13505 | { (exit 1); exit 1; }; } |
| 13506 | fi |
| 13507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13508 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13509 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13510 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13511 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13512 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13513 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13514 | fi |
| 13515 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13516 | |
| 13517 | ac_ext=f |
| 13518 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13519 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13520 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13521 | if test -n "$ac_tool_prefix"; then |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13522 | 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] | 13523 | do |
| 13524 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13525 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13526 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13528 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13530 | else |
| 13531 | if test -n "$F77"; then |
| 13532 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13533 | else |
| 13534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13535 | for as_dir in $PATH |
| 13536 | do |
| 13537 | IFS=$as_save_IFS |
| 13538 | test -z "$as_dir" && as_dir=. |
| 13539 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13540 | 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] | 13541 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13543 | break 2 |
| 13544 | fi |
| 13545 | done |
| 13546 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13547 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13548 | |
| 13549 | fi |
| 13550 | fi |
| 13551 | F77=$ac_cv_prog_F77 |
| 13552 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13553 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13554 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13555 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13556 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13557 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13558 | fi |
| 13559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13560 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13561 | test -n "$F77" && break |
| 13562 | done |
| 13563 | fi |
| 13564 | if test -z "$F77"; then |
| 13565 | ac_ct_F77=$F77 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13566 | 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] | 13567 | do |
| 13568 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13569 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13570 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13572 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13574 | else |
| 13575 | if test -n "$ac_ct_F77"; then |
| 13576 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13577 | else |
| 13578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13579 | for as_dir in $PATH |
| 13580 | do |
| 13581 | IFS=$as_save_IFS |
| 13582 | test -z "$as_dir" && as_dir=. |
| 13583 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13585 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13587 | break 2 |
| 13588 | fi |
| 13589 | done |
| 13590 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13591 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13592 | |
| 13593 | fi |
| 13594 | fi |
| 13595 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13596 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13597 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13598 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13599 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13600 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13601 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13602 | fi |
| 13603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13604 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13605 | test -n "$ac_ct_F77" && break |
| 13606 | done |
| 13607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13608 | if test "x$ac_ct_F77" = x; then |
| 13609 | F77="" |
| 13610 | else |
| 13611 | case $cross_compiling:$ac_tool_warned in |
| 13612 | yes:) |
| 13613 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13614 | whose name does not start with the host triplet. If you think this |
| 13615 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13616 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13617 | whose name does not start with the host triplet. If you think this |
| 13618 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13619 | ac_tool_warned=yes ;; |
| 13620 | esac |
| 13621 | F77=$ac_ct_F77 |
| 13622 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13623 | fi |
| 13624 | |
| 13625 | |
| 13626 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13627 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13628 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13629 | { (ac_try="$ac_compiler --version >&5" |
| 13630 | case "(($ac_try" in |
| 13631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13632 | *) ac_try_echo=$ac_try;; |
| 13633 | esac |
| 13634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13635 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13636 | ac_status=$? |
| 13637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13638 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13639 | { (ac_try="$ac_compiler -v >&5" |
| 13640 | case "(($ac_try" in |
| 13641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13642 | *) ac_try_echo=$ac_try;; |
| 13643 | esac |
| 13644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13645 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13646 | ac_status=$? |
| 13647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13648 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13649 | { (ac_try="$ac_compiler -V >&5" |
| 13650 | case "(($ac_try" in |
| 13651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13652 | *) ac_try_echo=$ac_try;; |
| 13653 | esac |
| 13654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13655 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13656 | ac_status=$? |
| 13657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13658 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13659 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13660 | |
| 13661 | # 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] | 13662 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13663 | ac_save_ext=$ac_ext |
| 13664 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13665 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13666 | 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] | 13667 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13669 | else |
| 13670 | cat >conftest.$ac_ext <<_ACEOF |
| 13671 | program main |
| 13672 | #ifndef __GNUC__ |
| 13673 | choke me |
| 13674 | #endif |
| 13675 | |
| 13676 | end |
| 13677 | _ACEOF |
| 13678 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13679 | if { (ac_try="$ac_compile" |
| 13680 | case "(($ac_try" in |
| 13681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13682 | *) ac_try_echo=$ac_try;; |
| 13683 | esac |
| 13684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13685 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13686 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13688 | rm -f conftest.er1 |
| 13689 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13691 | (exit $ac_status); } && |
| 13692 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13693 | { (case "(($ac_try" in |
| 13694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13695 | *) ac_try_echo=$ac_try;; |
| 13696 | esac |
| 13697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13698 | (eval "$ac_try") 2>&5 |
| 13699 | ac_status=$? |
| 13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13701 | (exit $ac_status); }; } && |
| 13702 | { ac_try='test -s conftest.$ac_objext' |
| 13703 | { (case "(($ac_try" in |
| 13704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13705 | *) ac_try_echo=$ac_try;; |
| 13706 | esac |
| 13707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13708 | (eval "$ac_try") 2>&5 |
| 13709 | ac_status=$? |
| 13710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13711 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13712 | ac_compiler_gnu=yes |
| 13713 | else |
| 13714 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13717 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13718 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13719 | |
| 13720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13721 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13722 | |
| 13723 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13724 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13725 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13726 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13727 | ac_test_FFLAGS=${FFLAGS+set} |
| 13728 | ac_save_FFLAGS=$FFLAGS |
| 13729 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13730 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13731 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13732 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13734 | else |
| 13735 | FFLAGS=-g |
| 13736 | cat >conftest.$ac_ext <<_ACEOF |
| 13737 | program main |
| 13738 | |
| 13739 | end |
| 13740 | _ACEOF |
| 13741 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13742 | if { (ac_try="$ac_compile" |
| 13743 | case "(($ac_try" in |
| 13744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13745 | *) ac_try_echo=$ac_try;; |
| 13746 | esac |
| 13747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13748 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13749 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13751 | rm -f conftest.er1 |
| 13752 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13754 | (exit $ac_status); } && |
| 13755 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13756 | { (case "(($ac_try" in |
| 13757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13758 | *) ac_try_echo=$ac_try;; |
| 13759 | esac |
| 13760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13761 | (eval "$ac_try") 2>&5 |
| 13762 | ac_status=$? |
| 13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13764 | (exit $ac_status); }; } && |
| 13765 | { ac_try='test -s conftest.$ac_objext' |
| 13766 | { (case "(($ac_try" in |
| 13767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13768 | *) ac_try_echo=$ac_try;; |
| 13769 | esac |
| 13770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13771 | (eval "$ac_try") 2>&5 |
| 13772 | ac_status=$? |
| 13773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13774 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13775 | ac_cv_prog_f77_g=yes |
| 13776 | else |
| 13777 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13779 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13780 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13781 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13782 | |
| 13783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13784 | |
| 13785 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13786 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13787 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13788 | if test "$ac_test_FFLAGS" = set; then |
| 13789 | FFLAGS=$ac_save_FFLAGS |
| 13790 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13791 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13792 | FFLAGS="-g -O2" |
| 13793 | else |
| 13794 | FFLAGS="-g" |
| 13795 | fi |
| 13796 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13797 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13798 | FFLAGS="-O2" |
| 13799 | else |
| 13800 | FFLAGS= |
| 13801 | fi |
| 13802 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13803 | |
| 13804 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13805 | ac_ext=c |
| 13806 | ac_cpp='$CPP $CPPFLAGS' |
| 13807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13810 | |
| 13811 | |
| 13812 | |
| 13813 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13814 | |
| 13815 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13816 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13817 | 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] | 13818 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13820 | else |
| 13821 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13822 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13823 | |
| 13824 | case $build_os in |
| 13825 | msdosdjgpp*) |
| 13826 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13827 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13828 | # during glob expansion). Even if it were fixed, the result of this |
| 13829 | # check would be larger than it should be. |
| 13830 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13831 | ;; |
| 13832 | |
| 13833 | gnu*) |
| 13834 | # Under GNU Hurd, this test is not required because there is |
| 13835 | # no limit to the length of command line arguments. |
| 13836 | # Libtool will interpret -1 as no limit whatsoever |
| 13837 | lt_cv_sys_max_cmd_len=-1; |
| 13838 | ;; |
| 13839 | |
| 13840 | cygwin* | mingw*) |
| 13841 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13842 | # about 5 minutes as the teststring grows exponentially. |
| 13843 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13844 | # you end up with a "frozen" computer, even though with patience |
| 13845 | # the test eventually succeeds (with a max line length of 256k). |
| 13846 | # Instead, let's just punt: use the minimum linelength reported by |
| 13847 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13848 | lt_cv_sys_max_cmd_len=8192; |
| 13849 | ;; |
| 13850 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13851 | amigaos*) |
| 13852 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13853 | # So we just punt and use a minimum line length of 8192. |
| 13854 | lt_cv_sys_max_cmd_len=8192; |
| 13855 | ;; |
| 13856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13857 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13858 | # This has been around since 386BSD, at least. Likely further. |
| 13859 | if test -x /sbin/sysctl; then |
| 13860 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13861 | elif test -x /usr/sbin/sysctl; then |
| 13862 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13863 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13864 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13865 | fi |
| 13866 | # And add a safety zone |
| 13867 | 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] | 13868 | 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] | 13869 | ;; |
| 13870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13871 | interix*) |
| 13872 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13873 | lt_cv_sys_max_cmd_len=196608 |
| 13874 | ;; |
| 13875 | |
| 13876 | osf*) |
| 13877 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13878 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13879 | # nice to cause kernel panics so lets avoid the loop below. |
| 13880 | # First set a reasonable default. |
| 13881 | lt_cv_sys_max_cmd_len=16384 |
| 13882 | # |
| 13883 | if test -x /sbin/sysconfig; then |
| 13884 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13885 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13886 | esac |
| 13887 | fi |
| 13888 | ;; |
| 13889 | sco3.2v5*) |
| 13890 | lt_cv_sys_max_cmd_len=102400 |
| 13891 | ;; |
| 13892 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13893 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13894 | if test -n "$kargmax"; then |
| 13895 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13896 | else |
| 13897 | lt_cv_sys_max_cmd_len=32768 |
| 13898 | fi |
| 13899 | ;; |
| 13900 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13901 | # If test is not a shell built-in, we'll probably end up computing a |
| 13902 | # maximum length that is only half of the actual maximum length, but |
| 13903 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13904 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13905 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13906 | = "XX$teststring") >/dev/null 2>&1 && |
| 13907 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13908 | lt_cv_sys_max_cmd_len=$new_result && |
| 13909 | test $i != 17 # 1/2 MB should be enough |
| 13910 | do |
| 13911 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13912 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13913 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13914 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13915 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13916 | # amounts of additional arguments before passing them to the linker. |
| 13917 | # It appears as though 1/2 is a usable value. |
| 13918 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13919 | ;; |
| 13920 | esac |
| 13921 | |
| 13922 | fi |
| 13923 | |
| 13924 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13925 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13926 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13927 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13928 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13929 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13930 | fi |
| 13931 | |
| 13932 | |
| 13933 | |
| 13934 | |
| 13935 | # 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] | 13936 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13937 | 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] | 13938 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13940 | else |
| 13941 | |
| 13942 | # These are sane defaults that work on at least a few old systems. |
| 13943 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13944 | |
| 13945 | # Character class describing NM global symbol codes. |
| 13946 | symcode='[BCDEGRST]' |
| 13947 | |
| 13948 | # Regexp to match symbols that can be accessed directly from C. |
| 13949 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13950 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13951 | # Transform an extracted symbol line into a proper C declaration |
| 13952 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13953 | |
| 13954 | # Transform an extracted symbol line into symbol name and symbol address |
| 13955 | 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'" |
| 13956 | |
| 13957 | # Define system-specific variables. |
| 13958 | case $host_os in |
| 13959 | aix*) |
| 13960 | symcode='[BCDT]' |
| 13961 | ;; |
| 13962 | cygwin* | mingw* | pw32*) |
| 13963 | symcode='[ABCDGISTW]' |
| 13964 | ;; |
| 13965 | hpux*) # Its linker distinguishes data from code symbols |
| 13966 | if test "$host_cpu" = ia64; then |
| 13967 | symcode='[ABCDEGRST]' |
| 13968 | fi |
| 13969 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13970 | 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'" |
| 13971 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13972 | linux*) |
| 13973 | if test "$host_cpu" = ia64; then |
| 13974 | symcode='[ABCDGIRSTW]' |
| 13975 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13976 | 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'" |
| 13977 | fi |
| 13978 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13979 | irix* | nonstopux*) |
| 13980 | symcode='[BCDEGRST]' |
| 13981 | ;; |
| 13982 | osf*) |
| 13983 | symcode='[BCDEGQRST]' |
| 13984 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13985 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13986 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13987 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13988 | sco3.2v5*) |
| 13989 | symcode='[DT]' |
| 13990 | ;; |
| 13991 | sysv4.2uw2*) |
| 13992 | symcode='[DT]' |
| 13993 | ;; |
| 13994 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13995 | symcode='[ABDT]' |
| 13996 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13997 | sysv4) |
| 13998 | symcode='[DFNSTU]' |
| 13999 | ;; |
| 14000 | esac |
| 14001 | |
| 14002 | # Handle CRLF in mingw tool chain |
| 14003 | opt_cr= |
| 14004 | case $build_os in |
| 14005 | mingw*) |
| 14006 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 14007 | ;; |
| 14008 | esac |
| 14009 | |
| 14010 | # If we're using GNU nm, then use its standard symbol codes. |
| 14011 | case `$NM -V 2>&1` in |
| 14012 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14013 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14014 | esac |
| 14015 | |
| 14016 | # Try without a prefix undercore, then with it. |
| 14017 | for ac_symprfx in "" "_"; do |
| 14018 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14019 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 14020 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 14021 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14022 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14023 | 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] | 14024 | |
| 14025 | # Check to see that the pipe works correctly. |
| 14026 | pipe_works=no |
| 14027 | |
| 14028 | rm -f conftest* |
| 14029 | cat > conftest.$ac_ext <<EOF |
| 14030 | #ifdef __cplusplus |
| 14031 | extern "C" { |
| 14032 | #endif |
| 14033 | char nm_test_var; |
| 14034 | void nm_test_func(){} |
| 14035 | #ifdef __cplusplus |
| 14036 | } |
| 14037 | #endif |
| 14038 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 14039 | EOF |
| 14040 | |
| 14041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14042 | (eval $ac_compile) 2>&5 |
| 14043 | ac_status=$? |
| 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14045 | (exit $ac_status); }; then |
| 14046 | # Now try to grab the symbols. |
| 14047 | nlist=conftest.nm |
| 14048 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 14049 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 14050 | ac_status=$? |
| 14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14052 | (exit $ac_status); } && test -s "$nlist"; then |
| 14053 | # Try sorting and uniquifying the output. |
| 14054 | if sort "$nlist" | uniq > "$nlist"T; then |
| 14055 | mv -f "$nlist"T "$nlist" |
| 14056 | else |
| 14057 | rm -f "$nlist"T |
| 14058 | fi |
| 14059 | |
| 14060 | # Make sure that we snagged all the symbols we need. |
| 14061 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 14062 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 14063 | cat <<EOF > conftest.$ac_ext |
| 14064 | #ifdef __cplusplus |
| 14065 | extern "C" { |
| 14066 | #endif |
| 14067 | |
| 14068 | EOF |
| 14069 | # Now generate the symbol file. |
| 14070 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 14071 | |
| 14072 | cat <<EOF >> conftest.$ac_ext |
| 14073 | #if defined (__STDC__) && __STDC__ |
| 14074 | # define lt_ptr_t void * |
| 14075 | #else |
| 14076 | # define lt_ptr_t char * |
| 14077 | # define const |
| 14078 | #endif |
| 14079 | |
| 14080 | /* The mapping between symbol names and symbols. */ |
| 14081 | const struct { |
| 14082 | const char *name; |
| 14083 | lt_ptr_t address; |
| 14084 | } |
| 14085 | lt_preloaded_symbols[] = |
| 14086 | { |
| 14087 | EOF |
| 14088 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 14089 | cat <<\EOF >> conftest.$ac_ext |
| 14090 | {0, (lt_ptr_t) 0} |
| 14091 | }; |
| 14092 | |
| 14093 | #ifdef __cplusplus |
| 14094 | } |
| 14095 | #endif |
| 14096 | EOF |
| 14097 | # Now try linking the two files. |
| 14098 | mv conftest.$ac_objext conftstm.$ac_objext |
| 14099 | lt_save_LIBS="$LIBS" |
| 14100 | lt_save_CFLAGS="$CFLAGS" |
| 14101 | LIBS="conftstm.$ac_objext" |
| 14102 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 14103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14104 | (eval $ac_link) 2>&5 |
| 14105 | ac_status=$? |
| 14106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14107 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 14108 | pipe_works=yes |
| 14109 | fi |
| 14110 | LIBS="$lt_save_LIBS" |
| 14111 | CFLAGS="$lt_save_CFLAGS" |
| 14112 | else |
| 14113 | echo "cannot find nm_test_func in $nlist" >&5 |
| 14114 | fi |
| 14115 | else |
| 14116 | echo "cannot find nm_test_var in $nlist" >&5 |
| 14117 | fi |
| 14118 | else |
| 14119 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 14120 | fi |
| 14121 | else |
| 14122 | echo "$progname: failed program was:" >&5 |
| 14123 | cat conftest.$ac_ext >&5 |
| 14124 | fi |
| 14125 | rm -f conftest* conftst* |
| 14126 | |
| 14127 | # Do not use the global_symbol_pipe unless it works. |
| 14128 | if test "$pipe_works" = yes; then |
| 14129 | break |
| 14130 | else |
| 14131 | lt_cv_sys_global_symbol_pipe= |
| 14132 | fi |
| 14133 | done |
| 14134 | |
| 14135 | fi |
| 14136 | |
| 14137 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 14138 | lt_cv_sys_global_symbol_to_cdecl= |
| 14139 | fi |
| 14140 | 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] | 14141 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 14142 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14143 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14144 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 14145 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14146 | fi |
| 14147 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14148 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 14149 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14150 | if test "${lt_cv_objdir+set}" = set; then |
| 14151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14152 | else |
| 14153 | rm -f .libs 2>/dev/null |
| 14154 | mkdir .libs 2>/dev/null |
| 14155 | if test -d .libs; then |
| 14156 | lt_cv_objdir=.libs |
| 14157 | else |
| 14158 | # MS-DOS does not allow filenames that begin with a dot. |
| 14159 | lt_cv_objdir=_libs |
| 14160 | fi |
| 14161 | rmdir .libs 2>/dev/null |
| 14162 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14163 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 14164 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14165 | objdir=$lt_cv_objdir |
| 14166 | |
| 14167 | |
| 14168 | |
| 14169 | |
| 14170 | |
| 14171 | case $host_os in |
| 14172 | aix3*) |
| 14173 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14174 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14175 | # vanish in a puff of smoke. |
| 14176 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14177 | COLLECT_NAMES= |
| 14178 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14179 | fi |
| 14180 | ;; |
| 14181 | esac |
| 14182 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14183 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 14184 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14185 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14186 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 14187 | |
| 14188 | # Same as above, but do not quote variable references. |
| 14189 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 14190 | |
| 14191 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 14192 | # double_quote_subst'ed string. |
| 14193 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 14194 | |
| 14195 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 14196 | no_glob_subst='s/\*/\\\*/g' |
| 14197 | |
| 14198 | # Constants: |
| 14199 | rm="rm -f" |
| 14200 | |
| 14201 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 14202 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14203 | can_build_shared=yes |
| 14204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14205 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14206 | # which needs '.lib'). |
| 14207 | libext=a |
| 14208 | ltmain="$ac_aux_dir/ltmain.sh" |
| 14209 | ofile="$default_ofile" |
| 14210 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 14211 | |
| 14212 | if test -n "$ac_tool_prefix"; then |
| 14213 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 14214 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14215 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14217 | if test "${ac_cv_prog_AR+set}" = set; then |
| 14218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14219 | else |
| 14220 | if test -n "$AR"; then |
| 14221 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 14222 | else |
| 14223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14224 | for as_dir in $PATH |
| 14225 | do |
| 14226 | IFS=$as_save_IFS |
| 14227 | test -z "$as_dir" && as_dir=. |
| 14228 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14229 | 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] | 14230 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 14231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14232 | break 2 |
| 14233 | fi |
| 14234 | done |
| 14235 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14236 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14237 | |
| 14238 | fi |
| 14239 | fi |
| 14240 | AR=$ac_cv_prog_AR |
| 14241 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14242 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 14243 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14244 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14245 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14246 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14247 | fi |
| 14248 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14249 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14250 | fi |
| 14251 | if test -z "$ac_cv_prog_AR"; then |
| 14252 | ac_ct_AR=$AR |
| 14253 | # Extract the first word of "ar", so it can be a program name with args. |
| 14254 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14257 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 14258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14259 | else |
| 14260 | if test -n "$ac_ct_AR"; then |
| 14261 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 14262 | else |
| 14263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14264 | for as_dir in $PATH |
| 14265 | do |
| 14266 | IFS=$as_save_IFS |
| 14267 | test -z "$as_dir" && as_dir=. |
| 14268 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14269 | 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] | 14270 | ac_cv_prog_ac_ct_AR="ar" |
| 14271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14272 | break 2 |
| 14273 | fi |
| 14274 | done |
| 14275 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14276 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14277 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14278 | fi |
| 14279 | fi |
| 14280 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 14281 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14282 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 14283 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14284 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14285 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14286 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14287 | fi |
| 14288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14289 | if test "x$ac_ct_AR" = x; then |
| 14290 | AR="false" |
| 14291 | else |
| 14292 | case $cross_compiling:$ac_tool_warned in |
| 14293 | yes:) |
| 14294 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14295 | whose name does not start with the host triplet. If you think this |
| 14296 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14297 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14298 | whose name does not start with the host triplet. If you think this |
| 14299 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14300 | ac_tool_warned=yes ;; |
| 14301 | esac |
| 14302 | AR=$ac_ct_AR |
| 14303 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14304 | else |
| 14305 | AR="$ac_cv_prog_AR" |
| 14306 | fi |
| 14307 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14308 | if test -n "$ac_tool_prefix"; then |
| 14309 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 14310 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14311 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14312 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14313 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 14314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14315 | else |
| 14316 | if test -n "$RANLIB"; then |
| 14317 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 14318 | else |
| 14319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14320 | for as_dir in $PATH |
| 14321 | do |
| 14322 | IFS=$as_save_IFS |
| 14323 | test -z "$as_dir" && as_dir=. |
| 14324 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14325 | 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] | 14326 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 14327 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14328 | break 2 |
| 14329 | fi |
| 14330 | done |
| 14331 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14332 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14333 | |
| 14334 | fi |
| 14335 | fi |
| 14336 | RANLIB=$ac_cv_prog_RANLIB |
| 14337 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14338 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 14339 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14340 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14341 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14342 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14343 | fi |
| 14344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14345 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14346 | fi |
| 14347 | if test -z "$ac_cv_prog_RANLIB"; then |
| 14348 | ac_ct_RANLIB=$RANLIB |
| 14349 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 14350 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14351 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14353 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 14354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14355 | else |
| 14356 | if test -n "$ac_ct_RANLIB"; then |
| 14357 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 14358 | else |
| 14359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14360 | for as_dir in $PATH |
| 14361 | do |
| 14362 | IFS=$as_save_IFS |
| 14363 | test -z "$as_dir" && as_dir=. |
| 14364 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14365 | 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] | 14366 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 14367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14368 | break 2 |
| 14369 | fi |
| 14370 | done |
| 14371 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14372 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14373 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14374 | fi |
| 14375 | fi |
| 14376 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14377 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14378 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14379 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14380 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14381 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14382 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14383 | fi |
| 14384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14385 | if test "x$ac_ct_RANLIB" = x; then |
| 14386 | RANLIB=":" |
| 14387 | else |
| 14388 | case $cross_compiling:$ac_tool_warned in |
| 14389 | yes:) |
| 14390 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14391 | whose name does not start with the host triplet. If you think this |
| 14392 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14393 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14394 | whose name does not start with the host triplet. If you think this |
| 14395 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14396 | ac_tool_warned=yes ;; |
| 14397 | esac |
| 14398 | RANLIB=$ac_ct_RANLIB |
| 14399 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14400 | else |
| 14401 | RANLIB="$ac_cv_prog_RANLIB" |
| 14402 | fi |
| 14403 | |
| 14404 | if test -n "$ac_tool_prefix"; then |
| 14405 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14406 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14407 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14409 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14411 | else |
| 14412 | if test -n "$STRIP"; then |
| 14413 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14414 | else |
| 14415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14416 | for as_dir in $PATH |
| 14417 | do |
| 14418 | IFS=$as_save_IFS |
| 14419 | test -z "$as_dir" && as_dir=. |
| 14420 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14421 | 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] | 14422 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14424 | break 2 |
| 14425 | fi |
| 14426 | done |
| 14427 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14428 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14429 | |
| 14430 | fi |
| 14431 | fi |
| 14432 | STRIP=$ac_cv_prog_STRIP |
| 14433 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14434 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14435 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14436 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14437 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14438 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14439 | fi |
| 14440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14441 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14442 | fi |
| 14443 | if test -z "$ac_cv_prog_STRIP"; then |
| 14444 | ac_ct_STRIP=$STRIP |
| 14445 | # Extract the first word of "strip", so it can be a program name with args. |
| 14446 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14447 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14449 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14451 | else |
| 14452 | if test -n "$ac_ct_STRIP"; then |
| 14453 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14454 | else |
| 14455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14456 | for as_dir in $PATH |
| 14457 | do |
| 14458 | IFS=$as_save_IFS |
| 14459 | test -z "$as_dir" && as_dir=. |
| 14460 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14461 | 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] | 14462 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14464 | break 2 |
| 14465 | fi |
| 14466 | done |
| 14467 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14468 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14469 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14470 | fi |
| 14471 | fi |
| 14472 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14473 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14474 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14475 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14476 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14477 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14478 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14479 | fi |
| 14480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14481 | if test "x$ac_ct_STRIP" = x; then |
| 14482 | STRIP=":" |
| 14483 | else |
| 14484 | case $cross_compiling:$ac_tool_warned in |
| 14485 | yes:) |
| 14486 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14487 | whose name does not start with the host triplet. If you think this |
| 14488 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14489 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14490 | whose name does not start with the host triplet. If you think this |
| 14491 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14492 | ac_tool_warned=yes ;; |
| 14493 | esac |
| 14494 | STRIP=$ac_ct_STRIP |
| 14495 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14496 | else |
| 14497 | STRIP="$ac_cv_prog_STRIP" |
| 14498 | fi |
| 14499 | |
| 14500 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14501 | old_CC="$CC" |
| 14502 | old_CFLAGS="$CFLAGS" |
| 14503 | |
| 14504 | # Set sane defaults for various variables |
| 14505 | test -z "$AR" && AR=ar |
| 14506 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14507 | test -z "$AS" && AS=as |
| 14508 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14509 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14510 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14511 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14512 | test -z "$LD" && LD=ld |
| 14513 | test -z "$LN_S" && LN_S="ln -s" |
| 14514 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14515 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14516 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14517 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14518 | test -z "$RANLIB" && RANLIB=: |
| 14519 | test -z "$STRIP" && STRIP=: |
| 14520 | test -z "$ac_objext" && ac_objext=o |
| 14521 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14522 | # Determine commands to create old-style static archives. |
| 14523 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14524 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14525 | old_postuninstall_cmds= |
| 14526 | |
| 14527 | if test -n "$RANLIB"; then |
| 14528 | case $host_os in |
| 14529 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14530 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14531 | ;; |
| 14532 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14533 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14534 | ;; |
| 14535 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14536 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14537 | fi |
| 14538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14539 | for cc_temp in $compiler""; do |
| 14540 | case $cc_temp in |
| 14541 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14542 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14543 | \-*) ;; |
| 14544 | *) break;; |
| 14545 | esac |
| 14546 | done |
| 14547 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14548 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14549 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14550 | # Only perform the check for file, if the check method requires it |
| 14551 | case $deplibs_check_method in |
| 14552 | file_magic*) |
| 14553 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14554 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14555 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14556 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14558 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14559 | case $MAGIC_CMD in |
| 14560 | [\\/*] | ?:[\\/]*) |
| 14561 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14562 | ;; |
| 14563 | *) |
| 14564 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14565 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14566 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14567 | for ac_dir in $ac_dummy; do |
| 14568 | IFS="$lt_save_ifs" |
| 14569 | test -z "$ac_dir" && ac_dir=. |
| 14570 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14571 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14572 | if test -n "$file_magic_test_file"; then |
| 14573 | case $deplibs_check_method in |
| 14574 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14575 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14576 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14577 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14578 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14579 | : |
| 14580 | else |
| 14581 | cat <<EOF 1>&2 |
| 14582 | |
| 14583 | *** Warning: the command libtool uses to detect shared libraries, |
| 14584 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14585 | *** The result is that libtool may fail to recognize shared libraries |
| 14586 | *** as such. This will affect the creation of libtool libraries that |
| 14587 | *** depend on shared libraries, but programs linked with such libtool |
| 14588 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14589 | *** may want to report the problem to your system manager and/or to |
| 14590 | *** bug-libtool@gnu.org |
| 14591 | |
| 14592 | EOF |
| 14593 | fi ;; |
| 14594 | esac |
| 14595 | fi |
| 14596 | break |
| 14597 | fi |
| 14598 | done |
| 14599 | IFS="$lt_save_ifs" |
| 14600 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14601 | ;; |
| 14602 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14603 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14604 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14605 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14606 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14607 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14608 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14609 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14610 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14611 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14612 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14613 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14614 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14615 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14616 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14617 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14618 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14620 | else |
| 14621 | case $MAGIC_CMD in |
| 14622 | [\\/*] | ?:[\\/]*) |
| 14623 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14624 | ;; |
| 14625 | *) |
| 14626 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14627 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14628 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14629 | for ac_dir in $ac_dummy; do |
| 14630 | IFS="$lt_save_ifs" |
| 14631 | test -z "$ac_dir" && ac_dir=. |
| 14632 | if test -f $ac_dir/file; then |
| 14633 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14634 | if test -n "$file_magic_test_file"; then |
| 14635 | case $deplibs_check_method in |
| 14636 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14637 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14638 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14639 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14640 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14641 | : |
| 14642 | else |
| 14643 | cat <<EOF 1>&2 |
| 14644 | |
| 14645 | *** Warning: the command libtool uses to detect shared libraries, |
| 14646 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14647 | *** The result is that libtool may fail to recognize shared libraries |
| 14648 | *** as such. This will affect the creation of libtool libraries that |
| 14649 | *** depend on shared libraries, but programs linked with such libtool |
| 14650 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14651 | *** may want to report the problem to your system manager and/or to |
| 14652 | *** bug-libtool@gnu.org |
| 14653 | |
| 14654 | EOF |
| 14655 | fi ;; |
| 14656 | esac |
| 14657 | fi |
| 14658 | break |
| 14659 | fi |
| 14660 | done |
| 14661 | IFS="$lt_save_ifs" |
| 14662 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14663 | ;; |
| 14664 | esac |
| 14665 | fi |
| 14666 | |
| 14667 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14668 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14669 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14670 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14671 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14672 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14673 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14674 | fi |
| 14675 | |
| 14676 | else |
| 14677 | MAGIC_CMD=: |
| 14678 | fi |
| 14679 | fi |
| 14680 | |
| 14681 | fi |
| 14682 | ;; |
| 14683 | esac |
| 14684 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14685 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14686 | enable_win32_dll=no |
| 14687 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14688 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14689 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14690 | enableval=$enable_libtool_lock; |
| 14691 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14692 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14693 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14694 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14696 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14697 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14698 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14699 | else |
| 14700 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14701 | fi |
| 14702 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14703 | test -z "$pic_mode" && pic_mode=default |
| 14704 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14705 | # Use C for the default configuration in the libtool script |
| 14706 | tagname= |
| 14707 | lt_save_CC="$CC" |
| 14708 | ac_ext=c |
| 14709 | ac_cpp='$CPP $CPPFLAGS' |
| 14710 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14711 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14712 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14713 | |
| 14714 | |
| 14715 | # Source file extension for C test sources. |
| 14716 | ac_ext=c |
| 14717 | |
| 14718 | # Object file extension for compiled C test sources. |
| 14719 | objext=o |
| 14720 | objext=$objext |
| 14721 | |
| 14722 | # Code to be used in simple compile tests |
| 14723 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14724 | |
| 14725 | # Code to be used in simple link tests |
| 14726 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14727 | |
| 14728 | |
| 14729 | # If no C compiler was specified, use CC. |
| 14730 | LTCC=${LTCC-"$CC"} |
| 14731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14732 | # If no C compiler flags were specified, use CFLAGS. |
| 14733 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14734 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14735 | # Allow CC to be a program name with arguments. |
| 14736 | compiler=$CC |
| 14737 | |
| 14738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14739 | # save warnings/boilerplate of simple test code |
| 14740 | ac_outfile=conftest.$ac_objext |
| 14741 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14742 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14743 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14744 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14746 | ac_outfile=conftest.$ac_objext |
| 14747 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14748 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14749 | _lt_linker_boilerplate=`cat conftest.err` |
| 14750 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14751 | |
| 14752 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14753 | |
| 14754 | lt_prog_compiler_no_builtin_flag= |
| 14755 | |
| 14756 | if test "$GCC" = yes; then |
| 14757 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14758 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14759 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14760 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14761 | 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] | 14762 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14764 | else |
| 14765 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14766 | ac_outfile=conftest.$ac_objext |
| 14767 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14768 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14769 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14770 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14771 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14772 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14773 | # The option is referenced via a variable to avoid confusing sed. |
| 14774 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14775 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14776 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14777 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 14778 | (eval echo "\"\$as_me:14778: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14779 | (eval "$lt_compile" 2>conftest.err) |
| 14780 | ac_status=$? |
| 14781 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 14782 | echo "$as_me:14782: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14783 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14784 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14785 | # So say no if there are warnings other than the usual output. |
| 14786 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14787 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14788 | 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] | 14789 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14790 | fi |
| 14791 | fi |
| 14792 | $rm conftest* |
| 14793 | |
| 14794 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14795 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14796 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14797 | |
| 14798 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14799 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14800 | else |
| 14801 | : |
| 14802 | fi |
| 14803 | |
| 14804 | fi |
| 14805 | |
| 14806 | lt_prog_compiler_wl= |
| 14807 | lt_prog_compiler_pic= |
| 14808 | lt_prog_compiler_static= |
| 14809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14810 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14811 | 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] | 14812 | |
| 14813 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14814 | lt_prog_compiler_wl='-Wl,' |
| 14815 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14816 | |
| 14817 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14818 | aix*) |
| 14819 | # All AIX code is PIC. |
| 14820 | if test "$host_cpu" = ia64; then |
| 14821 | # AIX 5 now supports IA64 processor |
| 14822 | lt_prog_compiler_static='-Bstatic' |
| 14823 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14824 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14825 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14826 | amigaos*) |
| 14827 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14828 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14829 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14830 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14831 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14832 | |
| 14833 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14834 | # PIC is the default for these OSes. |
| 14835 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14836 | |
| 14837 | mingw* | pw32* | os2*) |
| 14838 | # This hack is so that the source file can tell whether it is being |
| 14839 | # built for inclusion in a dll (and should export symbols for example). |
| 14840 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14841 | ;; |
| 14842 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14843 | darwin* | rhapsody*) |
| 14844 | # PIC is the default on this platform |
| 14845 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14846 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14847 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14849 | interix3*) |
| 14850 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14851 | # Instead, we relocate shared libraries at runtime. |
| 14852 | ;; |
| 14853 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14854 | msdosdjgpp*) |
| 14855 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14856 | # on systems that don't support them. |
| 14857 | lt_prog_compiler_can_build_shared=no |
| 14858 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14859 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14860 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14861 | sysv4*MP*) |
| 14862 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14863 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14864 | fi |
| 14865 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14866 | |
| 14867 | hpux*) |
| 14868 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14869 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14870 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14871 | hppa*64*|ia64*) |
| 14872 | # +Z the default |
| 14873 | ;; |
| 14874 | *) |
| 14875 | lt_prog_compiler_pic='-fPIC' |
| 14876 | ;; |
| 14877 | esac |
| 14878 | ;; |
| 14879 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14880 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14881 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14882 | ;; |
| 14883 | esac |
| 14884 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14885 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14886 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14887 | aix*) |
| 14888 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14889 | if test "$host_cpu" = ia64; then |
| 14890 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14891 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14892 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14893 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14894 | fi |
| 14895 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14896 | darwin*) |
| 14897 | # PIC is the default on this platform |
| 14898 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14899 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14900 | xlc*) |
| 14901 | lt_prog_compiler_pic='-qnocommon' |
| 14902 | lt_prog_compiler_wl='-Wl,' |
| 14903 | ;; |
| 14904 | esac |
| 14905 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14906 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14907 | mingw* | pw32* | os2*) |
| 14908 | # This hack is so that the source file can tell whether it is being |
| 14909 | # built for inclusion in a dll (and should export symbols for example). |
| 14910 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14911 | ;; |
| 14912 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14913 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14914 | lt_prog_compiler_wl='-Wl,' |
| 14915 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14916 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14917 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14918 | hppa*64*|ia64*) |
| 14919 | # +Z the default |
| 14920 | ;; |
| 14921 | *) |
| 14922 | lt_prog_compiler_pic='+Z' |
| 14923 | ;; |
| 14924 | esac |
| 14925 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14926 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14927 | ;; |
| 14928 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14929 | irix5* | irix6* | nonstopux*) |
| 14930 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14931 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14932 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14933 | ;; |
| 14934 | |
| 14935 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14936 | lt_prog_compiler_pic='-KPIC' |
| 14937 | lt_prog_compiler_static='-Bstatic' |
| 14938 | ;; |
| 14939 | |
| 14940 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14941 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14942 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14943 | lt_prog_compiler_wl='-Wl,' |
| 14944 | lt_prog_compiler_pic='-KPIC' |
| 14945 | lt_prog_compiler_static='-static' |
| 14946 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14947 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14948 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14949 | # which looks to be a dead project) |
| 14950 | lt_prog_compiler_wl='-Wl,' |
| 14951 | lt_prog_compiler_pic='-fpic' |
| 14952 | lt_prog_compiler_static='-Bstatic' |
| 14953 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14954 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14955 | lt_prog_compiler_wl='-Wl,' |
| 14956 | # All Alpha code is PIC. |
| 14957 | lt_prog_compiler_static='-non_shared' |
| 14958 | ;; |
| 14959 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14960 | ;; |
| 14961 | |
| 14962 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14963 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14964 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14965 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14966 | ;; |
| 14967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14968 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14969 | lt_prog_compiler_pic='-KPIC' |
| 14970 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14971 | case $cc_basename in |
| 14972 | f77* | f90* | f95*) |
| 14973 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14974 | *) |
| 14975 | lt_prog_compiler_wl='-Wl,';; |
| 14976 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14977 | ;; |
| 14978 | |
| 14979 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14980 | lt_prog_compiler_wl='-Qoption ld ' |
| 14981 | lt_prog_compiler_pic='-PIC' |
| 14982 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14983 | ;; |
| 14984 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14985 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14986 | lt_prog_compiler_wl='-Wl,' |
| 14987 | lt_prog_compiler_pic='-KPIC' |
| 14988 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14989 | ;; |
| 14990 | |
| 14991 | sysv4*MP*) |
| 14992 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14993 | lt_prog_compiler_pic='-Kconform_pic' |
| 14994 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14995 | fi |
| 14996 | ;; |
| 14997 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14998 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14999 | lt_prog_compiler_wl='-Wl,' |
| 15000 | lt_prog_compiler_pic='-KPIC' |
| 15001 | lt_prog_compiler_static='-Bstatic' |
| 15002 | ;; |
| 15003 | |
| 15004 | unicos*) |
| 15005 | lt_prog_compiler_wl='-Wl,' |
| 15006 | lt_prog_compiler_can_build_shared=no |
| 15007 | ;; |
| 15008 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15009 | uts4*) |
| 15010 | lt_prog_compiler_pic='-pic' |
| 15011 | lt_prog_compiler_static='-Bstatic' |
| 15012 | ;; |
| 15013 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15014 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15015 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15016 | ;; |
| 15017 | esac |
| 15018 | fi |
| 15019 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15020 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 15021 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15022 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15023 | # |
| 15024 | # Check to make sure the PIC flag actually works. |
| 15025 | # |
| 15026 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15027 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15028 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 15029 | 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] | 15030 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15032 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15033 | lt_prog_compiler_pic_works=no |
| 15034 | ac_outfile=conftest.$ac_objext |
| 15035 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15036 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 15037 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15038 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15039 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15040 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15041 | # The option is referenced via a variable to avoid confusing sed. |
| 15042 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15043 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15044 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15045 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 15046 | (eval echo "\"\$as_me:15046: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15047 | (eval "$lt_compile" 2>conftest.err) |
| 15048 | ac_status=$? |
| 15049 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 15050 | echo "$as_me:15050: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15051 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15052 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15053 | # So say no if there are warnings other than the usual output. |
| 15054 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 15055 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15056 | 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] | 15057 | lt_prog_compiler_pic_works=yes |
| 15058 | fi |
| 15059 | fi |
| 15060 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15061 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15062 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15063 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 15064 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15065 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15066 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 15067 | case $lt_prog_compiler_pic in |
| 15068 | "" | " "*) ;; |
| 15069 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 15070 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15071 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15072 | lt_prog_compiler_pic= |
| 15073 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15074 | fi |
| 15075 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15076 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15077 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15078 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15079 | *djgpp*) |
| 15080 | lt_prog_compiler_pic= |
| 15081 | ;; |
| 15082 | *) |
| 15083 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 15084 | ;; |
| 15085 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15087 | # |
| 15088 | # Check to make sure the static flag actually works. |
| 15089 | # |
| 15090 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 15091 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15092 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 15093 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 15094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15095 | else |
| 15096 | lt_prog_compiler_static_works=no |
| 15097 | save_LDFLAGS="$LDFLAGS" |
| 15098 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15099 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15100 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15101 | # The linker can only warn and ignore the option if not recognized |
| 15102 | # So say no if there are warnings |
| 15103 | if test -s conftest.err; then |
| 15104 | # Append any errors to the config.log. |
| 15105 | cat conftest.err 1>&5 |
| 15106 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 15107 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15108 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15109 | lt_prog_compiler_static_works=yes |
| 15110 | fi |
| 15111 | else |
| 15112 | lt_prog_compiler_static_works=yes |
| 15113 | fi |
| 15114 | fi |
| 15115 | $rm conftest* |
| 15116 | LDFLAGS="$save_LDFLAGS" |
| 15117 | |
| 15118 | fi |
| 15119 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 15120 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 15121 | |
| 15122 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 15123 | : |
| 15124 | else |
| 15125 | lt_prog_compiler_static= |
| 15126 | fi |
| 15127 | |
| 15128 | |
| 15129 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15130 | 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] | 15131 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15133 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15134 | lt_cv_prog_compiler_c_o=no |
| 15135 | $rm -r conftest 2>/dev/null |
| 15136 | mkdir conftest |
| 15137 | cd conftest |
| 15138 | mkdir out |
| 15139 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15140 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15141 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15142 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15143 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15144 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15145 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15146 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15147 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15148 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15149 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 15150 | (eval echo "\"\$as_me:15150: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15151 | (eval "$lt_compile" 2>out/conftest.err) |
| 15152 | ac_status=$? |
| 15153 | cat out/conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 15154 | echo "$as_me:15154: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15155 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15156 | then |
| 15157 | # The compiler can only warn and ignore the option if not recognized |
| 15158 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15159 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 15160 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15161 | 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] | 15162 | lt_cv_prog_compiler_c_o=yes |
| 15163 | fi |
| 15164 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15165 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15166 | $rm conftest* |
| 15167 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15168 | # template instantiation |
| 15169 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15170 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15171 | cd .. |
| 15172 | rmdir conftest |
| 15173 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15174 | |
| 15175 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15176 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 15177 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15178 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15179 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15180 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15181 | 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] | 15182 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15183 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15184 | 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] | 15185 | hard_links=yes |
| 15186 | $rm conftest* |
| 15187 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15188 | touch conftest.a |
| 15189 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15190 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15191 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15192 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15193 | if test "$hard_links" = no; then |
| 15194 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15195 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15196 | need_locks=warn |
| 15197 | fi |
| 15198 | else |
| 15199 | need_locks=no |
| 15200 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15202 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15203 | 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] | 15204 | |
| 15205 | runpath_var= |
| 15206 | allow_undefined_flag= |
| 15207 | enable_shared_with_static_runtimes=no |
| 15208 | archive_cmds= |
| 15209 | archive_expsym_cmds= |
| 15210 | old_archive_From_new_cmds= |
| 15211 | old_archive_from_expsyms_cmds= |
| 15212 | export_dynamic_flag_spec= |
| 15213 | whole_archive_flag_spec= |
| 15214 | thread_safe_flag_spec= |
| 15215 | hardcode_libdir_flag_spec= |
| 15216 | hardcode_libdir_flag_spec_ld= |
| 15217 | hardcode_libdir_separator= |
| 15218 | hardcode_direct=no |
| 15219 | hardcode_minus_L=no |
| 15220 | hardcode_shlibpath_var=unsupported |
| 15221 | link_all_deplibs=unknown |
| 15222 | hardcode_automatic=no |
| 15223 | module_cmds= |
| 15224 | module_expsym_cmds= |
| 15225 | always_export_symbols=no |
| 15226 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15227 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15228 | # included in the symbol list |
| 15229 | include_expsyms= |
| 15230 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15231 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15232 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15233 | # as well as any symbol that contains `d'. |
| 15234 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 15235 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15236 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15237 | # the symbol is explicitly referenced. Since portable code cannot |
| 15238 | # rely on this symbol name, it's probably fine to never include it in |
| 15239 | # preloaded symbol tables. |
| 15240 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15241 | # Just being paranoid about ensuring that cc_basename is set. |
| 15242 | for cc_temp in $compiler""; do |
| 15243 | case $cc_temp in |
| 15244 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15245 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15246 | \-*) ;; |
| 15247 | *) break;; |
| 15248 | esac |
| 15249 | done |
| 15250 | 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] | 15251 | |
| 15252 | case $host_os in |
| 15253 | cygwin* | mingw* | pw32*) |
| 15254 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15255 | # When not using gcc, we currently assume that we are using |
| 15256 | # Microsoft Visual C++. |
| 15257 | if test "$GCC" != yes; then |
| 15258 | with_gnu_ld=no |
| 15259 | fi |
| 15260 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15261 | interix*) |
| 15262 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 15263 | with_gnu_ld=yes |
| 15264 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15265 | openbsd*) |
| 15266 | with_gnu_ld=no |
| 15267 | ;; |
| 15268 | esac |
| 15269 | |
| 15270 | ld_shlibs=yes |
| 15271 | if test "$with_gnu_ld" = yes; then |
| 15272 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15273 | wlarc='${wl}' |
| 15274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15275 | # Set some defaults for GNU ld with shared library support. These |
| 15276 | # are reset later if shared libraries are not supported. Putting them |
| 15277 | # here allows them to be overridden if necessary. |
| 15278 | runpath_var=LD_RUN_PATH |
| 15279 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 15280 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 15281 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15282 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15283 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15284 | else |
| 15285 | whole_archive_flag_spec= |
| 15286 | fi |
| 15287 | supports_anon_versioning=no |
| 15288 | case `$LD -v 2>/dev/null` in |
| 15289 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15290 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15291 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15292 | *\ 2.11.*) ;; # other 2.11 versions |
| 15293 | *) supports_anon_versioning=yes ;; |
| 15294 | esac |
| 15295 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15296 | # See if GNU ld supports shared libraries. |
| 15297 | case $host_os in |
| 15298 | aix3* | aix4* | aix5*) |
| 15299 | # On AIX/PPC, the GNU linker is very broken |
| 15300 | if test "$host_cpu" != ia64; then |
| 15301 | ld_shlibs=no |
| 15302 | cat <<EOF 1>&2 |
| 15303 | |
| 15304 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15305 | *** to be unable to reliably create shared libraries on AIX. |
| 15306 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15307 | *** really care for shared libraries, you may want to modify your PATH |
| 15308 | *** so that a non-GNU linker is found, and then restart. |
| 15309 | |
| 15310 | EOF |
| 15311 | fi |
| 15312 | ;; |
| 15313 | |
| 15314 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15315 | 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] | 15316 | hardcode_libdir_flag_spec='-L$libdir' |
| 15317 | hardcode_minus_L=yes |
| 15318 | |
| 15319 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15320 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15321 | # to version 4, is to share data among multiple programs linked |
| 15322 | # with the same dynamic library. Since this doesn't match the |
| 15323 | # behavior of shared libraries on other platforms, we can't use |
| 15324 | # them. |
| 15325 | ld_shlibs=no |
| 15326 | ;; |
| 15327 | |
| 15328 | beos*) |
| 15329 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15330 | allow_undefined_flag=unsupported |
| 15331 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15332 | # support --undefined. This deserves some investigation. FIXME |
| 15333 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15334 | else |
| 15335 | ld_shlibs=no |
| 15336 | fi |
| 15337 | ;; |
| 15338 | |
| 15339 | cygwin* | mingw* | pw32*) |
| 15340 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15341 | # as there is no search path for DLLs. |
| 15342 | hardcode_libdir_flag_spec='-L$libdir' |
| 15343 | allow_undefined_flag=unsupported |
| 15344 | always_export_symbols=no |
| 15345 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15346 | 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] | 15347 | |
| 15348 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15349 | 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] | 15350 | # If the export-symbols file already is a .def file (1st line |
| 15351 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15352 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15353 | cp $export_symbols $output_objdir/$soname.def; |
| 15354 | else |
| 15355 | echo EXPORTS > $output_objdir/$soname.def; |
| 15356 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15357 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15358 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15359 | else |
| 15360 | ld_shlibs=no |
| 15361 | fi |
| 15362 | ;; |
| 15363 | |
| 15364 | interix3*) |
| 15365 | hardcode_direct=no |
| 15366 | hardcode_shlibpath_var=no |
| 15367 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15368 | export_dynamic_flag_spec='${wl}-E' |
| 15369 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15370 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15371 | # default) and relocated if they conflict, which is a slow very memory |
| 15372 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15373 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15374 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15375 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15376 | 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' |
| 15377 | ;; |
| 15378 | |
| 15379 | linux*) |
| 15380 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15381 | tmp_addflag= |
| 15382 | case $cc_basename,$host_cpu in |
| 15383 | pgcc*) # Portland Group C compiler |
| 15384 | 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' |
| 15385 | tmp_addflag=' $pic_flag' |
| 15386 | ;; |
| 15387 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15388 | 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' |
| 15389 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15390 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15391 | tmp_addflag=' -i_dynamic' ;; |
| 15392 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15393 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15394 | ifc* | ifort*) # Intel Fortran compiler |
| 15395 | tmp_addflag=' -nofor_main' ;; |
| 15396 | esac |
| 15397 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15398 | |
| 15399 | if test $supports_anon_versioning = yes; then |
| 15400 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15401 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15402 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15403 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15404 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15405 | else |
| 15406 | ld_shlibs=no |
| 15407 | fi |
| 15408 | ;; |
| 15409 | |
| 15410 | netbsd*) |
| 15411 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15412 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15413 | wlarc= |
| 15414 | else |
| 15415 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15416 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15417 | fi |
| 15418 | ;; |
| 15419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15420 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15421 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15422 | ld_shlibs=no |
| 15423 | cat <<EOF 1>&2 |
| 15424 | |
| 15425 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15426 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15427 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15428 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15429 | *** your PATH or compiler configuration so that the native linker is |
| 15430 | *** used, and then restart. |
| 15431 | |
| 15432 | EOF |
| 15433 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15434 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15435 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15436 | else |
| 15437 | ld_shlibs=no |
| 15438 | fi |
| 15439 | ;; |
| 15440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15441 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15442 | case `$LD -v 2>&1` in |
| 15443 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15444 | ld_shlibs=no |
| 15445 | cat <<_LT_EOF 1>&2 |
| 15446 | |
| 15447 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15448 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15449 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15450 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15451 | *** your PATH or compiler configuration so that the native linker is |
| 15452 | *** used, and then restart. |
| 15453 | |
| 15454 | _LT_EOF |
| 15455 | ;; |
| 15456 | *) |
| 15457 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15458 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15459 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15460 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15461 | else |
| 15462 | ld_shlibs=no |
| 15463 | fi |
| 15464 | ;; |
| 15465 | esac |
| 15466 | ;; |
| 15467 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15468 | sunos4*) |
| 15469 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15470 | wlarc= |
| 15471 | hardcode_direct=yes |
| 15472 | hardcode_shlibpath_var=no |
| 15473 | ;; |
| 15474 | |
| 15475 | *) |
| 15476 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15477 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15478 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15479 | else |
| 15480 | ld_shlibs=no |
| 15481 | fi |
| 15482 | ;; |
| 15483 | esac |
| 15484 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15485 | if test "$ld_shlibs" = no; then |
| 15486 | runpath_var= |
| 15487 | hardcode_libdir_flag_spec= |
| 15488 | export_dynamic_flag_spec= |
| 15489 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15490 | fi |
| 15491 | else |
| 15492 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15493 | case $host_os in |
| 15494 | aix3*) |
| 15495 | allow_undefined_flag=unsupported |
| 15496 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15497 | 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] | 15498 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15499 | # are no directories specified by -L. |
| 15500 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15501 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15502 | # Neither direct hardcoding nor static linking is supported with a |
| 15503 | # broken collect2. |
| 15504 | hardcode_direct=unsupported |
| 15505 | fi |
| 15506 | ;; |
| 15507 | |
| 15508 | aix4* | aix5*) |
| 15509 | if test "$host_cpu" = ia64; then |
| 15510 | # On IA64, the linker does run time linking by default, so we don't |
| 15511 | # have to do anything special. |
| 15512 | aix_use_runtimelinking=no |
| 15513 | exp_sym_flag='-Bexport' |
| 15514 | no_entry_flag="" |
| 15515 | else |
| 15516 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15517 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15518 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15519 | 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' |
| 15520 | else |
| 15521 | 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' |
| 15522 | fi |
| 15523 | aix_use_runtimelinking=no |
| 15524 | |
| 15525 | # Test if we are trying to use run time linking or normal |
| 15526 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15527 | # need to do runtime linking. |
| 15528 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15529 | for ld_flag in $LDFLAGS; do |
| 15530 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15531 | aix_use_runtimelinking=yes |
| 15532 | break |
| 15533 | fi |
| 15534 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15535 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15536 | esac |
| 15537 | |
| 15538 | exp_sym_flag='-bexport' |
| 15539 | no_entry_flag='-bnoentry' |
| 15540 | fi |
| 15541 | |
| 15542 | # When large executables or shared objects are built, AIX ld can |
| 15543 | # have problems creating the table of contents. If linking a library |
| 15544 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15545 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15546 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15547 | |
| 15548 | archive_cmds='' |
| 15549 | hardcode_direct=yes |
| 15550 | hardcode_libdir_separator=':' |
| 15551 | link_all_deplibs=yes |
| 15552 | |
| 15553 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15554 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15555 | # We only want to do this on AIX 4.2 and lower, the check |
| 15556 | # below for broken collect2 doesn't work under 4.3+ |
| 15557 | collect2name=`${CC} -print-prog-name=collect2` |
| 15558 | if test -f "$collect2name" && \ |
| 15559 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15560 | then |
| 15561 | # We have reworked collect2 |
| 15562 | hardcode_direct=yes |
| 15563 | else |
| 15564 | # We have old collect2 |
| 15565 | hardcode_direct=unsupported |
| 15566 | # It fails to find uninstalled libraries when the uninstalled |
| 15567 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15568 | # to unsupported forces relinking |
| 15569 | hardcode_minus_L=yes |
| 15570 | hardcode_libdir_flag_spec='-L$libdir' |
| 15571 | hardcode_libdir_separator= |
| 15572 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15573 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15574 | esac |
| 15575 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15576 | if test "$aix_use_runtimelinking" = yes; then |
| 15577 | shared_flag="$shared_flag "'${wl}-G' |
| 15578 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15579 | else |
| 15580 | # not using gcc |
| 15581 | if test "$host_cpu" = ia64; then |
| 15582 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15583 | # chokes on -Wl,-G. The following line is correct: |
| 15584 | shared_flag='-G' |
| 15585 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15586 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15587 | shared_flag='${wl}-G' |
| 15588 | else |
| 15589 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15590 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15591 | fi |
| 15592 | fi |
| 15593 | |
| 15594 | # It seems that -bexpall does not export symbols beginning with |
| 15595 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15596 | always_export_symbols=yes |
| 15597 | if test "$aix_use_runtimelinking" = yes; then |
| 15598 | # Warning - without using the other runtime loading flags (-brtl), |
| 15599 | # -berok will link without error, but may produce a broken library. |
| 15600 | allow_undefined_flag='-berok' |
| 15601 | # Determine the default libpath from the value encoded in an empty executable. |
| 15602 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15603 | /* confdefs.h. */ |
| 15604 | _ACEOF |
| 15605 | cat confdefs.h >>conftest.$ac_ext |
| 15606 | cat >>conftest.$ac_ext <<_ACEOF |
| 15607 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15608 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15609 | int |
| 15610 | main () |
| 15611 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15612 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15613 | ; |
| 15614 | return 0; |
| 15615 | } |
| 15616 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15617 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15618 | if { (ac_try="$ac_link" |
| 15619 | case "(($ac_try" in |
| 15620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15621 | *) ac_try_echo=$ac_try;; |
| 15622 | esac |
| 15623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15624 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15625 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15627 | rm -f conftest.er1 |
| 15628 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15630 | (exit $ac_status); } && |
| 15631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15632 | { (case "(($ac_try" in |
| 15633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15634 | *) ac_try_echo=$ac_try;; |
| 15635 | esac |
| 15636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15637 | (eval "$ac_try") 2>&5 |
| 15638 | ac_status=$? |
| 15639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15640 | (exit $ac_status); }; } && |
| 15641 | { ac_try='test -s conftest$ac_exeext' |
| 15642 | { (case "(($ac_try" in |
| 15643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15644 | *) ac_try_echo=$ac_try;; |
| 15645 | esac |
| 15646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15647 | (eval "$ac_try") 2>&5 |
| 15648 | ac_status=$? |
| 15649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15650 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15652 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15653 | }'` |
| 15654 | # Check for a 64-bit object if we didn't find anything. |
| 15655 | 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; } |
| 15656 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15657 | else |
| 15658 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15661 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15662 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15663 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15664 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15665 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15666 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15667 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15668 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15669 | 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] | 15670 | else |
| 15671 | if test "$host_cpu" = ia64; then |
| 15672 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15673 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15674 | 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] | 15675 | else |
| 15676 | # Determine the default libpath from the value encoded in an empty executable. |
| 15677 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15678 | /* confdefs.h. */ |
| 15679 | _ACEOF |
| 15680 | cat confdefs.h >>conftest.$ac_ext |
| 15681 | cat >>conftest.$ac_ext <<_ACEOF |
| 15682 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15684 | int |
| 15685 | main () |
| 15686 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15687 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15688 | ; |
| 15689 | return 0; |
| 15690 | } |
| 15691 | _ACEOF |
| 15692 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15693 | if { (ac_try="$ac_link" |
| 15694 | case "(($ac_try" in |
| 15695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15696 | *) ac_try_echo=$ac_try;; |
| 15697 | esac |
| 15698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15699 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15700 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15702 | rm -f conftest.er1 |
| 15703 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15705 | (exit $ac_status); } && |
| 15706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15707 | { (case "(($ac_try" in |
| 15708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15709 | *) ac_try_echo=$ac_try;; |
| 15710 | esac |
| 15711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15712 | (eval "$ac_try") 2>&5 |
| 15713 | ac_status=$? |
| 15714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15715 | (exit $ac_status); }; } && |
| 15716 | { ac_try='test -s conftest$ac_exeext' |
| 15717 | { (case "(($ac_try" in |
| 15718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15719 | *) ac_try_echo=$ac_try;; |
| 15720 | esac |
| 15721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15722 | (eval "$ac_try") 2>&5 |
| 15723 | ac_status=$? |
| 15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15725 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15726 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15727 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15728 | }'` |
| 15729 | # Check for a 64-bit object if we didn't find anything. |
| 15730 | 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; } |
| 15731 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15732 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15733 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15735 | |
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 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15738 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15739 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15740 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15741 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15742 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15743 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15744 | # Warning - without using the other run time loading flags, |
| 15745 | # -berok will link without error, but may produce a broken library. |
| 15746 | no_undefined_flag=' ${wl}-bernotok' |
| 15747 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15748 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15749 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15750 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15751 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15752 | 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] | 15753 | fi |
| 15754 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15755 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15756 | |
| 15757 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15758 | 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] | 15759 | hardcode_libdir_flag_spec='-L$libdir' |
| 15760 | hardcode_minus_L=yes |
| 15761 | # see comment about different semantics on the GNU ld section |
| 15762 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15763 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15764 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15765 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15766 | export_dynamic_flag_spec=-rdynamic |
| 15767 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15768 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15769 | cygwin* | mingw* | pw32*) |
| 15770 | # When not using gcc, we currently assume that we are using |
| 15771 | # Microsoft Visual C++. |
| 15772 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15773 | # no search path for DLLs. |
| 15774 | hardcode_libdir_flag_spec=' ' |
| 15775 | allow_undefined_flag=unsupported |
| 15776 | # Tell ltmain to make .lib files, not .a files. |
| 15777 | libext=lib |
| 15778 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15779 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15780 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15781 | 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] | 15782 | # The linker will automatically build a .lib file if we build a DLL. |
| 15783 | old_archive_From_new_cmds='true' |
| 15784 | # FIXME: Should let the user specify the lib program. |
| 15785 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15786 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15787 | enable_shared_with_static_runtimes=yes |
| 15788 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15789 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15790 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15791 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15792 | rhapsody* | darwin1.[012]) |
| 15793 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15794 | ;; |
| 15795 | *) # Darwin 1.3 on |
| 15796 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15797 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15798 | else |
| 15799 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15800 | 10.[012]) |
| 15801 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15802 | ;; |
| 15803 | 10.*) |
| 15804 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15805 | ;; |
| 15806 | esac |
| 15807 | fi |
| 15808 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15809 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15810 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15811 | hardcode_direct=no |
| 15812 | hardcode_automatic=yes |
| 15813 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15814 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15815 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15816 | if test "$GCC" = yes ; then |
| 15817 | output_verbose_link_cmd='echo' |
| 15818 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15819 | 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] | 15820 | # 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] | 15821 | 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}' |
| 15822 | 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] | 15823 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15824 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15825 | xlc*) |
| 15826 | output_verbose_link_cmd='echo' |
| 15827 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15828 | 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] | 15829 | # 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] | 15830 | 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}' |
| 15831 | 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] | 15832 | ;; |
| 15833 | *) |
| 15834 | ld_shlibs=no |
| 15835 | ;; |
| 15836 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15837 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15838 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15839 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15840 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15841 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15842 | hardcode_libdir_flag_spec='-L$libdir' |
| 15843 | hardcode_shlibpath_var=no |
| 15844 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15845 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15846 | freebsd1*) |
| 15847 | ld_shlibs=no |
| 15848 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15849 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15850 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15851 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15852 | # does not break anything, and helps significantly (at the cost of a little |
| 15853 | # extra space). |
| 15854 | freebsd2.2*) |
| 15855 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15856 | hardcode_libdir_flag_spec='-R$libdir' |
| 15857 | hardcode_direct=yes |
| 15858 | hardcode_shlibpath_var=no |
| 15859 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15860 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15861 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15862 | freebsd2*) |
| 15863 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15864 | hardcode_direct=yes |
| 15865 | hardcode_minus_L=yes |
| 15866 | hardcode_shlibpath_var=no |
| 15867 | ;; |
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 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15870 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15871 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15872 | hardcode_libdir_flag_spec='-R$libdir' |
| 15873 | hardcode_direct=yes |
| 15874 | hardcode_shlibpath_var=no |
| 15875 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15876 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15877 | hpux9*) |
| 15878 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15879 | 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] | 15880 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15881 | 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] | 15882 | fi |
| 15883 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15884 | hardcode_libdir_separator=: |
| 15885 | hardcode_direct=yes |
| 15886 | |
| 15887 | # hardcode_minus_L: Not really in the search PATH, |
| 15888 | # but as the default location of the library. |
| 15889 | hardcode_minus_L=yes |
| 15890 | export_dynamic_flag_spec='${wl}-E' |
| 15891 | ;; |
| 15892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15893 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15894 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15895 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15896 | else |
| 15897 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15898 | fi |
| 15899 | if test "$with_gnu_ld" = no; then |
| 15900 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15901 | hardcode_libdir_separator=: |
| 15902 | |
| 15903 | hardcode_direct=yes |
| 15904 | export_dynamic_flag_spec='${wl}-E' |
| 15905 | |
| 15906 | # hardcode_minus_L: Not really in the search PATH, |
| 15907 | # but as the default location of the library. |
| 15908 | hardcode_minus_L=yes |
| 15909 | fi |
| 15910 | ;; |
| 15911 | |
| 15912 | hpux11*) |
| 15913 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15914 | case $host_cpu in |
| 15915 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15916 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15917 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15918 | ia64*) |
| 15919 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15920 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15921 | *) |
| 15922 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15923 | ;; |
| 15924 | esac |
| 15925 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15926 | case $host_cpu in |
| 15927 | hppa*64*) |
| 15928 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15929 | ;; |
| 15930 | ia64*) |
| 15931 | 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] | 15932 | ;; |
| 15933 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15934 | 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] | 15935 | ;; |
| 15936 | esac |
| 15937 | fi |
| 15938 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15939 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15940 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15942 | case $host_cpu in |
| 15943 | hppa*64*|ia64*) |
| 15944 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15945 | hardcode_direct=no |
| 15946 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15947 | ;; |
| 15948 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15949 | hardcode_direct=yes |
| 15950 | export_dynamic_flag_spec='${wl}-E' |
| 15951 | |
| 15952 | # hardcode_minus_L: Not really in the search PATH, |
| 15953 | # but as the default location of the library. |
| 15954 | hardcode_minus_L=yes |
| 15955 | ;; |
| 15956 | esac |
| 15957 | fi |
| 15958 | ;; |
| 15959 | |
| 15960 | irix5* | irix6* | nonstopux*) |
| 15961 | if test "$GCC" = yes; then |
| 15962 | 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' |
| 15963 | else |
| 15964 | 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' |
| 15965 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15966 | fi |
| 15967 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15968 | hardcode_libdir_separator=: |
| 15969 | link_all_deplibs=yes |
| 15970 | ;; |
| 15971 | |
| 15972 | netbsd*) |
| 15973 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15974 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15975 | else |
| 15976 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15977 | fi |
| 15978 | hardcode_libdir_flag_spec='-R$libdir' |
| 15979 | hardcode_direct=yes |
| 15980 | hardcode_shlibpath_var=no |
| 15981 | ;; |
| 15982 | |
| 15983 | newsos6) |
| 15984 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15985 | hardcode_direct=yes |
| 15986 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15987 | hardcode_libdir_separator=: |
| 15988 | hardcode_shlibpath_var=no |
| 15989 | ;; |
| 15990 | |
| 15991 | openbsd*) |
| 15992 | hardcode_direct=yes |
| 15993 | hardcode_shlibpath_var=no |
| 15994 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15995 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15996 | 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] | 15997 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15998 | export_dynamic_flag_spec='${wl}-E' |
| 15999 | else |
| 16000 | case $host_os in |
| 16001 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 16002 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16003 | hardcode_libdir_flag_spec='-R$libdir' |
| 16004 | ;; |
| 16005 | *) |
| 16006 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16007 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 16008 | ;; |
| 16009 | esac |
| 16010 | fi |
| 16011 | ;; |
| 16012 | |
| 16013 | os2*) |
| 16014 | hardcode_libdir_flag_spec='-L$libdir' |
| 16015 | hardcode_minus_L=yes |
| 16016 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16017 | 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] | 16018 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16019 | ;; |
| 16020 | |
| 16021 | osf3*) |
| 16022 | if test "$GCC" = yes; then |
| 16023 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16024 | 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' |
| 16025 | else |
| 16026 | allow_undefined_flag=' -expect_unresolved \*' |
| 16027 | 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' |
| 16028 | fi |
| 16029 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16030 | hardcode_libdir_separator=: |
| 16031 | ;; |
| 16032 | |
| 16033 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16034 | if test "$GCC" = yes; then |
| 16035 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16036 | 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' |
| 16037 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16038 | else |
| 16039 | allow_undefined_flag=' -expect_unresolved \*' |
| 16040 | 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] | 16041 | 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] | 16042 | $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] | 16043 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16044 | # Both c and cxx compiler support -rpath directly |
| 16045 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 16046 | fi |
| 16047 | hardcode_libdir_separator=: |
| 16048 | ;; |
| 16049 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16050 | solaris*) |
| 16051 | no_undefined_flag=' -z text' |
| 16052 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16053 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16054 | 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] | 16055 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16056 | $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] | 16057 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16058 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16059 | 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] | 16060 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16061 | $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] | 16062 | fi |
| 16063 | hardcode_libdir_flag_spec='-R$libdir' |
| 16064 | hardcode_shlibpath_var=no |
| 16065 | case $host_os in |
| 16066 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16067 | *) |
| 16068 | # The compiler driver will combine linker options so we |
| 16069 | # cannot just pass the convience library names through |
| 16070 | # without $wl, iff we do not link with $LD. |
| 16071 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 16072 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16073 | case $wlarc in |
| 16074 | '') |
| 16075 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 16076 | *) |
| 16077 | 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' ;; |
| 16078 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16079 | esac |
| 16080 | link_all_deplibs=yes |
| 16081 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16082 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16083 | sunos4*) |
| 16084 | if test "x$host_vendor" = xsequent; then |
| 16085 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16086 | # files that make .init and .fini sections work. |
| 16087 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16088 | else |
| 16089 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16090 | fi |
| 16091 | hardcode_libdir_flag_spec='-L$libdir' |
| 16092 | hardcode_direct=yes |
| 16093 | hardcode_minus_L=yes |
| 16094 | hardcode_shlibpath_var=no |
| 16095 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16096 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16097 | sysv4) |
| 16098 | case $host_vendor in |
| 16099 | sni) |
| 16100 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16101 | hardcode_direct=yes # is this really true??? |
| 16102 | ;; |
| 16103 | siemens) |
| 16104 | ## LD is ld it makes a PLAMLIB |
| 16105 | ## CC just makes a GrossModule. |
| 16106 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16107 | reload_cmds='$CC -r -o $output$reload_objs' |
| 16108 | hardcode_direct=no |
| 16109 | ;; |
| 16110 | motorola) |
| 16111 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16112 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 16113 | ;; |
| 16114 | esac |
| 16115 | runpath_var='LD_RUN_PATH' |
| 16116 | hardcode_shlibpath_var=no |
| 16117 | ;; |
| 16118 | |
| 16119 | sysv4.3*) |
| 16120 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16121 | hardcode_shlibpath_var=no |
| 16122 | export_dynamic_flag_spec='-Bexport' |
| 16123 | ;; |
| 16124 | |
| 16125 | sysv4*MP*) |
| 16126 | if test -d /usr/nec; then |
| 16127 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16128 | hardcode_shlibpath_var=no |
| 16129 | runpath_var=LD_RUN_PATH |
| 16130 | hardcode_runpath_var=yes |
| 16131 | ld_shlibs=yes |
| 16132 | fi |
| 16133 | ;; |
| 16134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16135 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 16136 | no_undefined_flag='${wl}-z,text' |
| 16137 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16138 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16139 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16140 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16141 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16142 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16143 | 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] | 16144 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16145 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16146 | 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] | 16147 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16148 | ;; |
| 16149 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16150 | sysv5* | sco3.2v5* | sco5v6*) |
| 16151 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 16152 | # link with -lc, and that would cause any symbols used from libc to |
| 16153 | # always be unresolved, which means just about no library would |
| 16154 | # ever link correctly. If we're not using GNU ld we use -z text |
| 16155 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 16156 | # as -z defs. |
| 16157 | no_undefined_flag='${wl}-z,text' |
| 16158 | allow_undefined_flag='${wl}-z,nodefs' |
| 16159 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16160 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16161 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 16162 | hardcode_libdir_separator=':' |
| 16163 | link_all_deplibs=yes |
| 16164 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16165 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16166 | |
| 16167 | if test "$GCC" = yes; then |
| 16168 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16169 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16170 | else |
| 16171 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16172 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16173 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16174 | ;; |
| 16175 | |
| 16176 | uts4*) |
| 16177 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16178 | hardcode_libdir_flag_spec='-L$libdir' |
| 16179 | hardcode_shlibpath_var=no |
| 16180 | ;; |
| 16181 | |
| 16182 | *) |
| 16183 | ld_shlibs=no |
| 16184 | ;; |
| 16185 | esac |
| 16186 | fi |
| 16187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16188 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 16189 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16190 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16191 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16192 | # |
| 16193 | # Do we need to explicitly link libc? |
| 16194 | # |
| 16195 | case "x$archive_cmds_need_lc" in |
| 16196 | x|xyes) |
| 16197 | # Assume -lc should be added |
| 16198 | archive_cmds_need_lc=yes |
| 16199 | |
| 16200 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16201 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16202 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16203 | # FIXME: we may have to deal with multi-command sequences. |
| 16204 | ;; |
| 16205 | '$CC '*) |
| 16206 | # Test whether the compiler implicitly links with -lc since on some |
| 16207 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16208 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16209 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16210 | 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] | 16211 | $rm conftest* |
| 16212 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16213 | |
| 16214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16215 | (eval $ac_compile) 2>&5 |
| 16216 | ac_status=$? |
| 16217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16218 | (exit $ac_status); } 2>conftest.err; then |
| 16219 | soname=conftest |
| 16220 | lib=conftest |
| 16221 | libobjs=conftest.$ac_objext |
| 16222 | deplibs= |
| 16223 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16224 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16225 | compiler_flags=-v |
| 16226 | linker_flags=-v |
| 16227 | verstring= |
| 16228 | output_objdir=. |
| 16229 | libname=conftest |
| 16230 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 16231 | allow_undefined_flag= |
| 16232 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16233 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16234 | ac_status=$? |
| 16235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16236 | (exit $ac_status); } |
| 16237 | then |
| 16238 | archive_cmds_need_lc=no |
| 16239 | else |
| 16240 | archive_cmds_need_lc=yes |
| 16241 | fi |
| 16242 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 16243 | else |
| 16244 | cat conftest.err 1>&5 |
| 16245 | fi |
| 16246 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16247 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 16248 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16249 | ;; |
| 16250 | esac |
| 16251 | fi |
| 16252 | ;; |
| 16253 | esac |
| 16254 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16255 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16256 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16257 | library_names_spec= |
| 16258 | libname_spec='lib$name' |
| 16259 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16260 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16261 | postinstall_cmds= |
| 16262 | postuninstall_cmds= |
| 16263 | finish_cmds= |
| 16264 | finish_eval= |
| 16265 | shlibpath_var= |
| 16266 | shlibpath_overrides_runpath=unknown |
| 16267 | version_type=none |
| 16268 | dynamic_linker="$host_os ld.so" |
| 16269 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16270 | if test "$GCC" = yes; then |
| 16271 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16272 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16273 | # if the path contains ";" then we assume it to be the separator |
| 16274 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16275 | # assumed that no part of a normal pathname contains ";" but that should |
| 16276 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16277 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16278 | else |
| 16279 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16280 | fi |
| 16281 | else |
| 16282 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16283 | fi |
| 16284 | need_lib_prefix=unknown |
| 16285 | hardcode_into_libs=no |
| 16286 | |
| 16287 | # when you set need_version to no, make sure it does not cause -set_version |
| 16288 | # flags to be left without arguments |
| 16289 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16290 | |
| 16291 | case $host_os in |
| 16292 | aix3*) |
| 16293 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16294 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16295 | shlibpath_var=LIBPATH |
| 16296 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16297 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16298 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16299 | ;; |
| 16300 | |
| 16301 | aix4* | aix5*) |
| 16302 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16303 | need_lib_prefix=no |
| 16304 | need_version=no |
| 16305 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16306 | if test "$host_cpu" = ia64; then |
| 16307 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16308 | 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] | 16309 | shlibpath_var=LD_LIBRARY_PATH |
| 16310 | else |
| 16311 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16312 | # for dependence libraries. The import file would start with |
| 16313 | # the line `#! .'. This would cause the generated library to |
| 16314 | # depend on `.', always an invalid library. This was fixed in |
| 16315 | # development snapshots of GCC prior to 3.0. |
| 16316 | case $host_os in |
| 16317 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16318 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16319 | echo ' yes ' |
| 16320 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16321 | : |
| 16322 | else |
| 16323 | can_build_shared=no |
| 16324 | fi |
| 16325 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16326 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16327 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16328 | # soname into executable. Probably we can add versioning support to |
| 16329 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16330 | if test "$aix_use_runtimelinking" = yes; then |
| 16331 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16332 | # instead of lib<name>.a to let people know that these are not |
| 16333 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16334 | 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] | 16335 | else |
| 16336 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16337 | # and later when we are not doing run time linking. |
| 16338 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16339 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16340 | fi |
| 16341 | shlibpath_var=LIBPATH |
| 16342 | fi |
| 16343 | ;; |
| 16344 | |
| 16345 | amigaos*) |
| 16346 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16347 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16348 | 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] | 16349 | ;; |
| 16350 | |
| 16351 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16352 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16353 | dynamic_linker="$host_os ld.so" |
| 16354 | shlibpath_var=LIBRARY_PATH |
| 16355 | ;; |
| 16356 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16357 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16358 | version_type=linux |
| 16359 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16361 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16362 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16363 | shlibpath_var=LD_LIBRARY_PATH |
| 16364 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16365 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16366 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16367 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16368 | # libtool to hard-code these into programs |
| 16369 | ;; |
| 16370 | |
| 16371 | cygwin* | mingw* | pw32*) |
| 16372 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16373 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16374 | need_version=no |
| 16375 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16376 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16377 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16378 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16379 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16380 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16381 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16382 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16383 | dldir=$destdir/`dirname \$dlpath`~ |
| 16384 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16385 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16386 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16387 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16388 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16389 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16390 | shlibpath_overrides_runpath=yes |
| 16391 | |
| 16392 | case $host_os in |
| 16393 | cygwin*) |
| 16394 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16395 | 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] | 16396 | 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] | 16397 | ;; |
| 16398 | mingw*) |
| 16399 | # MinGW DLLs use traditional 'lib' prefix |
| 16400 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16401 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16402 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16403 | # It is most probably a Windows format PATH printed by |
| 16404 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16405 | # path with ; separators, and with drive letters. We can handle the |
| 16406 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16407 | # especially as we might pass files found there to a mingw objdump, |
| 16408 | # which wouldn't understand a cygwinified path. Ahh. |
| 16409 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16410 | else |
| 16411 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16412 | fi |
| 16413 | ;; |
| 16414 | pw32*) |
| 16415 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16416 | 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] | 16417 | ;; |
| 16418 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16419 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16420 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16421 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16422 | 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] | 16423 | ;; |
| 16424 | esac |
| 16425 | dynamic_linker='Win32 ld.exe' |
| 16426 | # FIXME: first we should search . and the directory the executable is in |
| 16427 | shlibpath_var=PATH |
| 16428 | ;; |
| 16429 | |
| 16430 | darwin* | rhapsody*) |
| 16431 | dynamic_linker="$host_os dyld" |
| 16432 | version_type=darwin |
| 16433 | need_lib_prefix=no |
| 16434 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16435 | 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] | 16436 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16437 | shlibpath_overrides_runpath=yes |
| 16438 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16439 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16440 | # 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] | 16441 | if test "$GCC" = yes; then |
| 16442 | 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"` |
| 16443 | else |
| 16444 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16445 | fi |
| 16446 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16447 | ;; |
| 16448 | |
| 16449 | dgux*) |
| 16450 | version_type=linux |
| 16451 | need_lib_prefix=no |
| 16452 | need_version=no |
| 16453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16454 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16455 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16456 | ;; |
| 16457 | |
| 16458 | freebsd1*) |
| 16459 | dynamic_linker=no |
| 16460 | ;; |
| 16461 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16462 | kfreebsd*-gnu) |
| 16463 | version_type=linux |
| 16464 | need_lib_prefix=no |
| 16465 | need_version=no |
| 16466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16467 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16468 | shlibpath_var=LD_LIBRARY_PATH |
| 16469 | shlibpath_overrides_runpath=no |
| 16470 | hardcode_into_libs=yes |
| 16471 | dynamic_linker='GNU ld.so' |
| 16472 | ;; |
| 16473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16474 | freebsd* | dragonfly*) |
| 16475 | # DragonFly does not have aout. When/if they implement a new |
| 16476 | # versioning mechanism, adjust this. |
| 16477 | if test -x /usr/bin/objformat; then |
| 16478 | objformat=`/usr/bin/objformat` |
| 16479 | else |
| 16480 | case $host_os in |
| 16481 | freebsd[123]*) objformat=aout ;; |
| 16482 | *) objformat=elf ;; |
| 16483 | esac |
| 16484 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16485 | version_type=freebsd-$objformat |
| 16486 | case $version_type in |
| 16487 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16489 | need_version=no |
| 16490 | need_lib_prefix=no |
| 16491 | ;; |
| 16492 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16493 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16494 | need_version=yes |
| 16495 | ;; |
| 16496 | esac |
| 16497 | shlibpath_var=LD_LIBRARY_PATH |
| 16498 | case $host_os in |
| 16499 | freebsd2*) |
| 16500 | shlibpath_overrides_runpath=yes |
| 16501 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16502 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16503 | shlibpath_overrides_runpath=yes |
| 16504 | hardcode_into_libs=yes |
| 16505 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16506 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16507 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16508 | shlibpath_overrides_runpath=no |
| 16509 | hardcode_into_libs=yes |
| 16510 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16511 | freebsd*) # from 4.6 on |
| 16512 | shlibpath_overrides_runpath=yes |
| 16513 | hardcode_into_libs=yes |
| 16514 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16515 | esac |
| 16516 | ;; |
| 16517 | |
| 16518 | gnu*) |
| 16519 | version_type=linux |
| 16520 | need_lib_prefix=no |
| 16521 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16523 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16524 | shlibpath_var=LD_LIBRARY_PATH |
| 16525 | hardcode_into_libs=yes |
| 16526 | ;; |
| 16527 | |
| 16528 | hpux9* | hpux10* | hpux11*) |
| 16529 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16530 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16531 | version_type=sunos |
| 16532 | need_lib_prefix=no |
| 16533 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16534 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16535 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16536 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16537 | hardcode_into_libs=yes |
| 16538 | dynamic_linker="$host_os dld.so" |
| 16539 | shlibpath_var=LD_LIBRARY_PATH |
| 16540 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16542 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16543 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16544 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16545 | else |
| 16546 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16547 | fi |
| 16548 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16549 | ;; |
| 16550 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16551 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16552 | hardcode_into_libs=yes |
| 16553 | dynamic_linker="$host_os dld.sl" |
| 16554 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16555 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16557 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16558 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16559 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16560 | ;; |
| 16561 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16562 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16563 | dynamic_linker="$host_os dld.sl" |
| 16564 | shlibpath_var=SHLIB_PATH |
| 16565 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16567 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16568 | ;; |
| 16569 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16570 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16571 | postinstall_cmds='chmod 555 $lib' |
| 16572 | ;; |
| 16573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16574 | interix3*) |
| 16575 | version_type=linux |
| 16576 | need_lib_prefix=no |
| 16577 | need_version=no |
| 16578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16579 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16580 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16581 | shlibpath_var=LD_LIBRARY_PATH |
| 16582 | shlibpath_overrides_runpath=no |
| 16583 | hardcode_into_libs=yes |
| 16584 | ;; |
| 16585 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16586 | irix5* | irix6* | nonstopux*) |
| 16587 | case $host_os in |
| 16588 | nonstopux*) version_type=nonstopux ;; |
| 16589 | *) |
| 16590 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16591 | version_type=linux |
| 16592 | else |
| 16593 | version_type=irix |
| 16594 | fi ;; |
| 16595 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16596 | need_lib_prefix=no |
| 16597 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16598 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16599 | 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] | 16600 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16601 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16602 | libsuff= shlibsuff= |
| 16603 | ;; |
| 16604 | *) |
| 16605 | 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] | 16606 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16607 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16608 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16609 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16610 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16611 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16612 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16613 | esac |
| 16614 | ;; |
| 16615 | esac |
| 16616 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16617 | shlibpath_overrides_runpath=no |
| 16618 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16619 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16620 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16621 | ;; |
| 16622 | |
| 16623 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16624 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16625 | dynamic_linker=no |
| 16626 | ;; |
| 16627 | |
| 16628 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16629 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16630 | version_type=linux |
| 16631 | need_lib_prefix=no |
| 16632 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16634 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16635 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16636 | shlibpath_var=LD_LIBRARY_PATH |
| 16637 | shlibpath_overrides_runpath=no |
| 16638 | # This implies no fast_install, which is unacceptable. |
| 16639 | # Some rework will be needed to allow for fast_install |
| 16640 | # before this can be enabled. |
| 16641 | hardcode_into_libs=yes |
| 16642 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16643 | # Append ld.so.conf contents to the search path |
| 16644 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16645 | 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] | 16646 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16647 | fi |
| 16648 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16649 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16650 | # powerpc, because MkLinux only supported shared libraries with the |
| 16651 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16652 | # most powerpc-linux boxes support dynamic linking these days and |
| 16653 | # people can always --disable-shared, the test was removed, and we |
| 16654 | # assume the GNU/Linux dynamic linker is in use. |
| 16655 | dynamic_linker='GNU/Linux ld.so' |
| 16656 | ;; |
| 16657 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16658 | knetbsd*-gnu) |
| 16659 | version_type=linux |
| 16660 | need_lib_prefix=no |
| 16661 | need_version=no |
| 16662 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16663 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16664 | shlibpath_var=LD_LIBRARY_PATH |
| 16665 | shlibpath_overrides_runpath=no |
| 16666 | hardcode_into_libs=yes |
| 16667 | dynamic_linker='GNU ld.so' |
| 16668 | ;; |
| 16669 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16670 | netbsd*) |
| 16671 | version_type=sunos |
| 16672 | need_lib_prefix=no |
| 16673 | need_version=no |
| 16674 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16676 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16677 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16678 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16679 | 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] | 16680 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16681 | dynamic_linker='NetBSD ld.elf_so' |
| 16682 | fi |
| 16683 | shlibpath_var=LD_LIBRARY_PATH |
| 16684 | shlibpath_overrides_runpath=yes |
| 16685 | hardcode_into_libs=yes |
| 16686 | ;; |
| 16687 | |
| 16688 | newsos6) |
| 16689 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16691 | shlibpath_var=LD_LIBRARY_PATH |
| 16692 | shlibpath_overrides_runpath=yes |
| 16693 | ;; |
| 16694 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16695 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16696 | version_type=linux |
| 16697 | need_lib_prefix=no |
| 16698 | need_version=no |
| 16699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16700 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16701 | shlibpath_var=LD_LIBRARY_PATH |
| 16702 | shlibpath_overrides_runpath=yes |
| 16703 | ;; |
| 16704 | |
| 16705 | openbsd*) |
| 16706 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16707 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16708 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16709 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16710 | case $host_os in |
| 16711 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16712 | *) need_version=no ;; |
| 16713 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16715 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16716 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16717 | 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] | 16718 | case $host_os in |
| 16719 | openbsd2.[89] | openbsd2.[89].*) |
| 16720 | shlibpath_overrides_runpath=no |
| 16721 | ;; |
| 16722 | *) |
| 16723 | shlibpath_overrides_runpath=yes |
| 16724 | ;; |
| 16725 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16726 | else |
| 16727 | shlibpath_overrides_runpath=yes |
| 16728 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16729 | ;; |
| 16730 | |
| 16731 | os2*) |
| 16732 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16733 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16734 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16735 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16736 | dynamic_linker='OS/2 ld.exe' |
| 16737 | shlibpath_var=LIBPATH |
| 16738 | ;; |
| 16739 | |
| 16740 | osf3* | osf4* | osf5*) |
| 16741 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16742 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16743 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16744 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16745 | 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] | 16746 | shlibpath_var=LD_LIBRARY_PATH |
| 16747 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16748 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16749 | ;; |
| 16750 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16751 | solaris*) |
| 16752 | version_type=linux |
| 16753 | need_lib_prefix=no |
| 16754 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16756 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16757 | shlibpath_var=LD_LIBRARY_PATH |
| 16758 | shlibpath_overrides_runpath=yes |
| 16759 | hardcode_into_libs=yes |
| 16760 | # ldd complains unless libraries are executable |
| 16761 | postinstall_cmds='chmod +x $lib' |
| 16762 | ;; |
| 16763 | |
| 16764 | sunos4*) |
| 16765 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16767 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16768 | shlibpath_var=LD_LIBRARY_PATH |
| 16769 | shlibpath_overrides_runpath=yes |
| 16770 | if test "$with_gnu_ld" = yes; then |
| 16771 | need_lib_prefix=no |
| 16772 | fi |
| 16773 | need_version=yes |
| 16774 | ;; |
| 16775 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16776 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16777 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16779 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16780 | shlibpath_var=LD_LIBRARY_PATH |
| 16781 | case $host_vendor in |
| 16782 | sni) |
| 16783 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16784 | need_lib_prefix=no |
| 16785 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16786 | runpath_var=LD_RUN_PATH |
| 16787 | ;; |
| 16788 | siemens) |
| 16789 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16790 | ;; |
| 16791 | motorola) |
| 16792 | need_lib_prefix=no |
| 16793 | need_version=no |
| 16794 | shlibpath_overrides_runpath=no |
| 16795 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16796 | ;; |
| 16797 | esac |
| 16798 | ;; |
| 16799 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16800 | sysv4*MP*) |
| 16801 | if test -d /usr/nec ;then |
| 16802 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16803 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16804 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16805 | shlibpath_var=LD_LIBRARY_PATH |
| 16806 | fi |
| 16807 | ;; |
| 16808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16809 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16810 | version_type=freebsd-elf |
| 16811 | need_lib_prefix=no |
| 16812 | need_version=no |
| 16813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16814 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16815 | shlibpath_var=LD_LIBRARY_PATH |
| 16816 | hardcode_into_libs=yes |
| 16817 | if test "$with_gnu_ld" = yes; then |
| 16818 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16819 | shlibpath_overrides_runpath=no |
| 16820 | else |
| 16821 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16822 | shlibpath_overrides_runpath=yes |
| 16823 | case $host_os in |
| 16824 | sco3.2v5*) |
| 16825 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16826 | ;; |
| 16827 | esac |
| 16828 | fi |
| 16829 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16830 | ;; |
| 16831 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16832 | uts4*) |
| 16833 | version_type=linux |
| 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' |
| 16836 | shlibpath_var=LD_LIBRARY_PATH |
| 16837 | ;; |
| 16838 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16839 | *) |
| 16840 | dynamic_linker=no |
| 16841 | ;; |
| 16842 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16843 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16844 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16845 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16847 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16848 | if test "$GCC" = yes; then |
| 16849 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16850 | fi |
| 16851 | |
| 16852 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16853 | 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] | 16854 | hardcode_action= |
| 16855 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16856 | test -n "$runpath_var" || \ |
| 16857 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16858 | |
| 16859 | # We can hardcode non-existant directories. |
| 16860 | if test "$hardcode_direct" != no && |
| 16861 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16862 | # have to relink, otherwise we might link with an installed library |
| 16863 | # when we should be linking with a yet-to-be-installed one |
| 16864 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16865 | test "$hardcode_minus_L" != no; then |
| 16866 | # Linking always hardcodes the temporary library directory. |
| 16867 | hardcode_action=relink |
| 16868 | else |
| 16869 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16870 | hardcode_action=immediate |
| 16871 | fi |
| 16872 | else |
| 16873 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16874 | # directories. |
| 16875 | hardcode_action=unsupported |
| 16876 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16877 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16878 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16879 | |
| 16880 | if test "$hardcode_action" = relink; then |
| 16881 | # Fast installation is not supported |
| 16882 | enable_fast_install=no |
| 16883 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16884 | test "$enable_shared" = no; then |
| 16885 | # Fast installation is not necessary |
| 16886 | enable_fast_install=needless |
| 16887 | fi |
| 16888 | |
| 16889 | striplib= |
| 16890 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16891 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16892 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16893 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16894 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16895 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16896 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16897 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16898 | else |
| 16899 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16900 | case $host_os in |
| 16901 | darwin*) |
| 16902 | if test -n "$STRIP" ; then |
| 16903 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16904 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16905 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16906 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16907 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16908 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16909 | fi |
| 16910 | ;; |
| 16911 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16913 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16914 | ;; |
| 16915 | esac |
| 16916 | fi |
| 16917 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16918 | if test "x$enable_dlopen" != xyes; then |
| 16919 | enable_dlopen=unknown |
| 16920 | enable_dlopen_self=unknown |
| 16921 | enable_dlopen_self_static=unknown |
| 16922 | else |
| 16923 | lt_cv_dlopen=no |
| 16924 | lt_cv_dlopen_libs= |
| 16925 | |
| 16926 | case $host_os in |
| 16927 | beos*) |
| 16928 | lt_cv_dlopen="load_add_on" |
| 16929 | lt_cv_dlopen_libs= |
| 16930 | lt_cv_dlopen_self=yes |
| 16931 | ;; |
| 16932 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16933 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16934 | lt_cv_dlopen="LoadLibrary" |
| 16935 | lt_cv_dlopen_libs= |
| 16936 | ;; |
| 16937 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16938 | cygwin*) |
| 16939 | lt_cv_dlopen="dlopen" |
| 16940 | lt_cv_dlopen_libs= |
| 16941 | ;; |
| 16942 | |
| 16943 | darwin*) |
| 16944 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16945 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16946 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16947 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16949 | else |
| 16950 | ac_check_lib_save_LIBS=$LIBS |
| 16951 | LIBS="-ldl $LIBS" |
| 16952 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16953 | /* confdefs.h. */ |
| 16954 | _ACEOF |
| 16955 | cat confdefs.h >>conftest.$ac_ext |
| 16956 | cat >>conftest.$ac_ext <<_ACEOF |
| 16957 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16959 | /* Override any GCC internal prototype to avoid an error. |
| 16960 | Use char because int might match the return type of a GCC |
| 16961 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16962 | #ifdef __cplusplus |
| 16963 | extern "C" |
| 16964 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16965 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16966 | int |
| 16967 | main () |
| 16968 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16969 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16970 | ; |
| 16971 | return 0; |
| 16972 | } |
| 16973 | _ACEOF |
| 16974 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16975 | if { (ac_try="$ac_link" |
| 16976 | case "(($ac_try" in |
| 16977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16978 | *) ac_try_echo=$ac_try;; |
| 16979 | esac |
| 16980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16981 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16982 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16984 | rm -f conftest.er1 |
| 16985 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 16987 | (exit $ac_status); } && |
| 16988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16989 | { (case "(($ac_try" in |
| 16990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16991 | *) ac_try_echo=$ac_try;; |
| 16992 | esac |
| 16993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16994 | (eval "$ac_try") 2>&5 |
| 16995 | ac_status=$? |
| 16996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16997 | (exit $ac_status); }; } && |
| 16998 | { ac_try='test -s conftest$ac_exeext' |
| 16999 | { (case "(($ac_try" in |
| 17000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17001 | *) ac_try_echo=$ac_try;; |
| 17002 | esac |
| 17003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17004 | (eval "$ac_try") 2>&5 |
| 17005 | ac_status=$? |
| 17006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17007 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17008 | ac_cv_lib_dl_dlopen=yes |
| 17009 | else |
| 17010 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17012 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17013 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17014 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17015 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17016 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17017 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17018 | LIBS=$ac_check_lib_save_LIBS |
| 17019 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17020 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17021 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17022 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17023 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17024 | else |
| 17025 | |
| 17026 | lt_cv_dlopen="dyld" |
| 17027 | lt_cv_dlopen_libs= |
| 17028 | lt_cv_dlopen_self=yes |
| 17029 | |
| 17030 | fi |
| 17031 | |
| 17032 | ;; |
| 17033 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17034 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17035 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17036 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17037 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17039 | else |
| 17040 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17041 | /* confdefs.h. */ |
| 17042 | _ACEOF |
| 17043 | cat confdefs.h >>conftest.$ac_ext |
| 17044 | cat >>conftest.$ac_ext <<_ACEOF |
| 17045 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17046 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17047 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17048 | #define shl_load innocuous_shl_load |
| 17049 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17050 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17051 | which can conflict with char shl_load (); below. |
| 17052 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17053 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17054 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17055 | #ifdef __STDC__ |
| 17056 | # include <limits.h> |
| 17057 | #else |
| 17058 | # include <assert.h> |
| 17059 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17060 | |
| 17061 | #undef shl_load |
| 17062 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17063 | /* Override any GCC internal prototype to avoid an error. |
| 17064 | Use char because int might match the return type of a GCC |
| 17065 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17066 | #ifdef __cplusplus |
| 17067 | extern "C" |
| 17068 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17069 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17070 | /* The GNU C library defines this for functions which it implements |
| 17071 | to always fail with ENOSYS. Some functions are actually named |
| 17072 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17073 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17074 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17075 | #endif |
| 17076 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17077 | int |
| 17078 | main () |
| 17079 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17080 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17081 | ; |
| 17082 | return 0; |
| 17083 | } |
| 17084 | _ACEOF |
| 17085 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17086 | if { (ac_try="$ac_link" |
| 17087 | case "(($ac_try" in |
| 17088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17089 | *) ac_try_echo=$ac_try;; |
| 17090 | esac |
| 17091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17092 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17093 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17095 | rm -f conftest.er1 |
| 17096 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17098 | (exit $ac_status); } && |
| 17099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17100 | { (case "(($ac_try" in |
| 17101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17102 | *) ac_try_echo=$ac_try;; |
| 17103 | esac |
| 17104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17105 | (eval "$ac_try") 2>&5 |
| 17106 | ac_status=$? |
| 17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17108 | (exit $ac_status); }; } && |
| 17109 | { ac_try='test -s conftest$ac_exeext' |
| 17110 | { (case "(($ac_try" in |
| 17111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17112 | *) ac_try_echo=$ac_try;; |
| 17113 | esac |
| 17114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17115 | (eval "$ac_try") 2>&5 |
| 17116 | ac_status=$? |
| 17117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17118 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17119 | ac_cv_func_shl_load=yes |
| 17120 | else |
| 17121 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17124 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17125 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17126 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17127 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17128 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17129 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17130 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17131 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17132 | if test $ac_cv_func_shl_load = yes; then |
| 17133 | lt_cv_dlopen="shl_load" |
| 17134 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17135 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17136 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17137 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17139 | else |
| 17140 | ac_check_lib_save_LIBS=$LIBS |
| 17141 | LIBS="-ldld $LIBS" |
| 17142 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17143 | /* confdefs.h. */ |
| 17144 | _ACEOF |
| 17145 | cat confdefs.h >>conftest.$ac_ext |
| 17146 | cat >>conftest.$ac_ext <<_ACEOF |
| 17147 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17148 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17149 | /* Override any GCC internal prototype to avoid an error. |
| 17150 | Use char because int might match the return type of a GCC |
| 17151 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17152 | #ifdef __cplusplus |
| 17153 | extern "C" |
| 17154 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17155 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17156 | int |
| 17157 | main () |
| 17158 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17159 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17160 | ; |
| 17161 | return 0; |
| 17162 | } |
| 17163 | _ACEOF |
| 17164 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17165 | if { (ac_try="$ac_link" |
| 17166 | case "(($ac_try" in |
| 17167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17168 | *) ac_try_echo=$ac_try;; |
| 17169 | esac |
| 17170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17171 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17172 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17174 | rm -f conftest.er1 |
| 17175 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17177 | (exit $ac_status); } && |
| 17178 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17179 | { (case "(($ac_try" in |
| 17180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17181 | *) ac_try_echo=$ac_try;; |
| 17182 | esac |
| 17183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17184 | (eval "$ac_try") 2>&5 |
| 17185 | ac_status=$? |
| 17186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17187 | (exit $ac_status); }; } && |
| 17188 | { ac_try='test -s conftest$ac_exeext' |
| 17189 | { (case "(($ac_try" in |
| 17190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17191 | *) ac_try_echo=$ac_try;; |
| 17192 | esac |
| 17193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17194 | (eval "$ac_try") 2>&5 |
| 17195 | ac_status=$? |
| 17196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17197 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17198 | ac_cv_lib_dld_shl_load=yes |
| 17199 | else |
| 17200 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17202 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17203 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17204 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17205 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17206 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17207 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17208 | LIBS=$ac_check_lib_save_LIBS |
| 17209 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17210 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17211 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17212 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17213 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17214 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17215 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17216 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17217 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17219 | else |
| 17220 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17221 | /* confdefs.h. */ |
| 17222 | _ACEOF |
| 17223 | cat confdefs.h >>conftest.$ac_ext |
| 17224 | cat >>conftest.$ac_ext <<_ACEOF |
| 17225 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17226 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17228 | #define dlopen innocuous_dlopen |
| 17229 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17230 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17231 | which can conflict with char dlopen (); below. |
| 17232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17233 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17234 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17235 | #ifdef __STDC__ |
| 17236 | # include <limits.h> |
| 17237 | #else |
| 17238 | # include <assert.h> |
| 17239 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17240 | |
| 17241 | #undef dlopen |
| 17242 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17243 | /* Override any GCC internal prototype to avoid an error. |
| 17244 | Use char because int might match the return type of a GCC |
| 17245 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17246 | #ifdef __cplusplus |
| 17247 | extern "C" |
| 17248 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17249 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17250 | /* The GNU C library defines this for functions which it implements |
| 17251 | to always fail with ENOSYS. Some functions are actually named |
| 17252 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17253 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17254 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17255 | #endif |
| 17256 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17257 | int |
| 17258 | main () |
| 17259 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17260 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17261 | ; |
| 17262 | return 0; |
| 17263 | } |
| 17264 | _ACEOF |
| 17265 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17266 | if { (ac_try="$ac_link" |
| 17267 | case "(($ac_try" in |
| 17268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17269 | *) ac_try_echo=$ac_try;; |
| 17270 | esac |
| 17271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17272 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17273 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17275 | rm -f conftest.er1 |
| 17276 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17278 | (exit $ac_status); } && |
| 17279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17280 | { (case "(($ac_try" in |
| 17281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17282 | *) ac_try_echo=$ac_try;; |
| 17283 | esac |
| 17284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17285 | (eval "$ac_try") 2>&5 |
| 17286 | ac_status=$? |
| 17287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17288 | (exit $ac_status); }; } && |
| 17289 | { ac_try='test -s conftest$ac_exeext' |
| 17290 | { (case "(($ac_try" in |
| 17291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17292 | *) ac_try_echo=$ac_try;; |
| 17293 | esac |
| 17294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17295 | (eval "$ac_try") 2>&5 |
| 17296 | ac_status=$? |
| 17297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17298 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17299 | ac_cv_func_dlopen=yes |
| 17300 | else |
| 17301 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17304 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17305 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17306 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17307 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17308 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17309 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17310 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17311 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17312 | if test $ac_cv_func_dlopen = yes; then |
| 17313 | lt_cv_dlopen="dlopen" |
| 17314 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17315 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17316 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17317 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17319 | else |
| 17320 | ac_check_lib_save_LIBS=$LIBS |
| 17321 | LIBS="-ldl $LIBS" |
| 17322 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17323 | /* confdefs.h. */ |
| 17324 | _ACEOF |
| 17325 | cat confdefs.h >>conftest.$ac_ext |
| 17326 | cat >>conftest.$ac_ext <<_ACEOF |
| 17327 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17329 | /* Override any GCC internal prototype to avoid an error. |
| 17330 | Use char because int might match the return type of a GCC |
| 17331 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17332 | #ifdef __cplusplus |
| 17333 | extern "C" |
| 17334 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17335 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17336 | int |
| 17337 | main () |
| 17338 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17339 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17340 | ; |
| 17341 | return 0; |
| 17342 | } |
| 17343 | _ACEOF |
| 17344 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17345 | if { (ac_try="$ac_link" |
| 17346 | case "(($ac_try" in |
| 17347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17348 | *) ac_try_echo=$ac_try;; |
| 17349 | esac |
| 17350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17351 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17352 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17354 | rm -f conftest.er1 |
| 17355 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17357 | (exit $ac_status); } && |
| 17358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17359 | { (case "(($ac_try" in |
| 17360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17361 | *) ac_try_echo=$ac_try;; |
| 17362 | esac |
| 17363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17364 | (eval "$ac_try") 2>&5 |
| 17365 | ac_status=$? |
| 17366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17367 | (exit $ac_status); }; } && |
| 17368 | { ac_try='test -s conftest$ac_exeext' |
| 17369 | { (case "(($ac_try" in |
| 17370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17371 | *) ac_try_echo=$ac_try;; |
| 17372 | esac |
| 17373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17374 | (eval "$ac_try") 2>&5 |
| 17375 | ac_status=$? |
| 17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17377 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17378 | ac_cv_lib_dl_dlopen=yes |
| 17379 | else |
| 17380 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17383 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17384 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17385 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17386 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17387 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17388 | LIBS=$ac_check_lib_save_LIBS |
| 17389 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17390 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17391 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17392 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17393 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17394 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17395 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17396 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17397 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17399 | else |
| 17400 | ac_check_lib_save_LIBS=$LIBS |
| 17401 | LIBS="-lsvld $LIBS" |
| 17402 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17403 | /* confdefs.h. */ |
| 17404 | _ACEOF |
| 17405 | cat confdefs.h >>conftest.$ac_ext |
| 17406 | cat >>conftest.$ac_ext <<_ACEOF |
| 17407 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17409 | /* Override any GCC internal prototype to avoid an error. |
| 17410 | Use char because int might match the return type of a GCC |
| 17411 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17412 | #ifdef __cplusplus |
| 17413 | extern "C" |
| 17414 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17415 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17416 | int |
| 17417 | main () |
| 17418 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17419 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17420 | ; |
| 17421 | return 0; |
| 17422 | } |
| 17423 | _ACEOF |
| 17424 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17425 | if { (ac_try="$ac_link" |
| 17426 | case "(($ac_try" in |
| 17427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17428 | *) ac_try_echo=$ac_try;; |
| 17429 | esac |
| 17430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17431 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17432 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17434 | rm -f conftest.er1 |
| 17435 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17437 | (exit $ac_status); } && |
| 17438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17439 | { (case "(($ac_try" in |
| 17440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17441 | *) ac_try_echo=$ac_try;; |
| 17442 | esac |
| 17443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17444 | (eval "$ac_try") 2>&5 |
| 17445 | ac_status=$? |
| 17446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17447 | (exit $ac_status); }; } && |
| 17448 | { ac_try='test -s conftest$ac_exeext' |
| 17449 | { (case "(($ac_try" in |
| 17450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17451 | *) ac_try_echo=$ac_try;; |
| 17452 | esac |
| 17453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17454 | (eval "$ac_try") 2>&5 |
| 17455 | ac_status=$? |
| 17456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17457 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17458 | ac_cv_lib_svld_dlopen=yes |
| 17459 | else |
| 17460 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17462 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17463 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17464 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17465 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17466 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17467 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17468 | LIBS=$ac_check_lib_save_LIBS |
| 17469 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17470 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17471 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17472 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17473 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17474 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17475 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17476 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17477 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17479 | else |
| 17480 | ac_check_lib_save_LIBS=$LIBS |
| 17481 | LIBS="-ldld $LIBS" |
| 17482 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17483 | /* confdefs.h. */ |
| 17484 | _ACEOF |
| 17485 | cat confdefs.h >>conftest.$ac_ext |
| 17486 | cat >>conftest.$ac_ext <<_ACEOF |
| 17487 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17489 | /* Override any GCC internal prototype to avoid an error. |
| 17490 | Use char because int might match the return type of a GCC |
| 17491 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17492 | #ifdef __cplusplus |
| 17493 | extern "C" |
| 17494 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17495 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17496 | int |
| 17497 | main () |
| 17498 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17499 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17500 | ; |
| 17501 | return 0; |
| 17502 | } |
| 17503 | _ACEOF |
| 17504 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17505 | if { (ac_try="$ac_link" |
| 17506 | case "(($ac_try" in |
| 17507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17508 | *) ac_try_echo=$ac_try;; |
| 17509 | esac |
| 17510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17511 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17512 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17514 | rm -f conftest.er1 |
| 17515 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17517 | (exit $ac_status); } && |
| 17518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17519 | { (case "(($ac_try" in |
| 17520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17521 | *) ac_try_echo=$ac_try;; |
| 17522 | esac |
| 17523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17524 | (eval "$ac_try") 2>&5 |
| 17525 | ac_status=$? |
| 17526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17527 | (exit $ac_status); }; } && |
| 17528 | { ac_try='test -s conftest$ac_exeext' |
| 17529 | { (case "(($ac_try" in |
| 17530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17531 | *) ac_try_echo=$ac_try;; |
| 17532 | esac |
| 17533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17534 | (eval "$ac_try") 2>&5 |
| 17535 | ac_status=$? |
| 17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17537 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17538 | ac_cv_lib_dld_dld_link=yes |
| 17539 | else |
| 17540 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17543 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17544 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17545 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17546 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17547 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17548 | LIBS=$ac_check_lib_save_LIBS |
| 17549 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17550 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17551 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17552 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17553 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17554 | fi |
| 17555 | |
| 17556 | |
| 17557 | fi |
| 17558 | |
| 17559 | |
| 17560 | fi |
| 17561 | |
| 17562 | |
| 17563 | fi |
| 17564 | |
| 17565 | |
| 17566 | fi |
| 17567 | |
| 17568 | |
| 17569 | fi |
| 17570 | |
| 17571 | ;; |
| 17572 | esac |
| 17573 | |
| 17574 | if test "x$lt_cv_dlopen" != xno; then |
| 17575 | enable_dlopen=yes |
| 17576 | else |
| 17577 | enable_dlopen=no |
| 17578 | fi |
| 17579 | |
| 17580 | case $lt_cv_dlopen in |
| 17581 | dlopen) |
| 17582 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17583 | 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] | 17584 | |
| 17585 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17586 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17587 | |
| 17588 | save_LIBS="$LIBS" |
| 17589 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17591 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17592 | 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] | 17593 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17595 | else |
| 17596 | if test "$cross_compiling" = yes; then : |
| 17597 | lt_cv_dlopen_self=cross |
| 17598 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17599 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17600 | lt_status=$lt_dlunknown |
| 17601 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 17602 | #line 17602 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17603 | #include "confdefs.h" |
| 17604 | |
| 17605 | #if HAVE_DLFCN_H |
| 17606 | #include <dlfcn.h> |
| 17607 | #endif |
| 17608 | |
| 17609 | #include <stdio.h> |
| 17610 | |
| 17611 | #ifdef RTLD_GLOBAL |
| 17612 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17613 | #else |
| 17614 | # ifdef DL_GLOBAL |
| 17615 | # define LT_DLGLOBAL DL_GLOBAL |
| 17616 | # else |
| 17617 | # define LT_DLGLOBAL 0 |
| 17618 | # endif |
| 17619 | #endif |
| 17620 | |
| 17621 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17622 | find out it does not work in some platform. */ |
| 17623 | #ifndef LT_DLLAZY_OR_NOW |
| 17624 | # ifdef RTLD_LAZY |
| 17625 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17626 | # else |
| 17627 | # ifdef DL_LAZY |
| 17628 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17629 | # else |
| 17630 | # ifdef RTLD_NOW |
| 17631 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17632 | # else |
| 17633 | # ifdef DL_NOW |
| 17634 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17635 | # else |
| 17636 | # define LT_DLLAZY_OR_NOW 0 |
| 17637 | # endif |
| 17638 | # endif |
| 17639 | # endif |
| 17640 | # endif |
| 17641 | #endif |
| 17642 | |
| 17643 | #ifdef __cplusplus |
| 17644 | extern "C" void exit (int); |
| 17645 | #endif |
| 17646 | |
| 17647 | void fnord() { int i=42;} |
| 17648 | int main () |
| 17649 | { |
| 17650 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17651 | int status = $lt_dlunknown; |
| 17652 | |
| 17653 | if (self) |
| 17654 | { |
| 17655 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17656 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17657 | /* dlclose (self); */ |
| 17658 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17659 | else |
| 17660 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17661 | |
| 17662 | exit (status); |
| 17663 | } |
| 17664 | EOF |
| 17665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17666 | (eval $ac_link) 2>&5 |
| 17667 | ac_status=$? |
| 17668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17669 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17670 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17671 | lt_status=$? |
| 17672 | case x$lt_status in |
| 17673 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17674 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17675 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17676 | esac |
| 17677 | else : |
| 17678 | # compilation failed |
| 17679 | lt_cv_dlopen_self=no |
| 17680 | fi |
| 17681 | fi |
| 17682 | rm -fr conftest* |
| 17683 | |
| 17684 | |
| 17685 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17686 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17687 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17688 | |
| 17689 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17690 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17691 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17692 | 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] | 17693 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17695 | else |
| 17696 | if test "$cross_compiling" = yes; then : |
| 17697 | lt_cv_dlopen_self_static=cross |
| 17698 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17699 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17700 | lt_status=$lt_dlunknown |
| 17701 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 17702 | #line 17702 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17703 | #include "confdefs.h" |
| 17704 | |
| 17705 | #if HAVE_DLFCN_H |
| 17706 | #include <dlfcn.h> |
| 17707 | #endif |
| 17708 | |
| 17709 | #include <stdio.h> |
| 17710 | |
| 17711 | #ifdef RTLD_GLOBAL |
| 17712 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17713 | #else |
| 17714 | # ifdef DL_GLOBAL |
| 17715 | # define LT_DLGLOBAL DL_GLOBAL |
| 17716 | # else |
| 17717 | # define LT_DLGLOBAL 0 |
| 17718 | # endif |
| 17719 | #endif |
| 17720 | |
| 17721 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17722 | find out it does not work in some platform. */ |
| 17723 | #ifndef LT_DLLAZY_OR_NOW |
| 17724 | # ifdef RTLD_LAZY |
| 17725 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17726 | # else |
| 17727 | # ifdef DL_LAZY |
| 17728 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17729 | # else |
| 17730 | # ifdef RTLD_NOW |
| 17731 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17732 | # else |
| 17733 | # ifdef DL_NOW |
| 17734 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17735 | # else |
| 17736 | # define LT_DLLAZY_OR_NOW 0 |
| 17737 | # endif |
| 17738 | # endif |
| 17739 | # endif |
| 17740 | # endif |
| 17741 | #endif |
| 17742 | |
| 17743 | #ifdef __cplusplus |
| 17744 | extern "C" void exit (int); |
| 17745 | #endif |
| 17746 | |
| 17747 | void fnord() { int i=42;} |
| 17748 | int main () |
| 17749 | { |
| 17750 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17751 | int status = $lt_dlunknown; |
| 17752 | |
| 17753 | if (self) |
| 17754 | { |
| 17755 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17756 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17757 | /* dlclose (self); */ |
| 17758 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17759 | else |
| 17760 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17761 | |
| 17762 | exit (status); |
| 17763 | } |
| 17764 | EOF |
| 17765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17766 | (eval $ac_link) 2>&5 |
| 17767 | ac_status=$? |
| 17768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17769 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17770 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17771 | lt_status=$? |
| 17772 | case x$lt_status in |
| 17773 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17774 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17775 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17776 | esac |
| 17777 | else : |
| 17778 | # compilation failed |
| 17779 | lt_cv_dlopen_self_static=no |
| 17780 | fi |
| 17781 | fi |
| 17782 | rm -fr conftest* |
| 17783 | |
| 17784 | |
| 17785 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17786 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17787 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17788 | fi |
| 17789 | |
| 17790 | CPPFLAGS="$save_CPPFLAGS" |
| 17791 | LDFLAGS="$save_LDFLAGS" |
| 17792 | LIBS="$save_LIBS" |
| 17793 | ;; |
| 17794 | esac |
| 17795 | |
| 17796 | case $lt_cv_dlopen_self in |
| 17797 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17798 | *) enable_dlopen_self=unknown ;; |
| 17799 | esac |
| 17800 | |
| 17801 | case $lt_cv_dlopen_self_static in |
| 17802 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17803 | *) enable_dlopen_self_static=unknown ;; |
| 17804 | esac |
| 17805 | fi |
| 17806 | |
| 17807 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17808 | # Report which library types will actually be built |
| 17809 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17810 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17811 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17812 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17814 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17815 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17816 | test "$can_build_shared" = "no" && enable_shared=no |
| 17817 | |
| 17818 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17819 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17820 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17821 | aix3*) |
| 17822 | test "$enable_shared" = yes && enable_static=no |
| 17823 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17824 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17825 | postinstall_cmds='$RANLIB $lib' |
| 17826 | fi |
| 17827 | ;; |
| 17828 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17829 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17830 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17831 | test "$enable_shared" = yes && enable_static=no |
| 17832 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17833 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17834 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17835 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17836 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17838 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17839 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17840 | # Make sure either enable_shared or enable_static is yes. |
| 17841 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17842 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17843 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17844 | |
| 17845 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17846 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17847 | # with your package, and you will get complaints that there are |
| 17848 | # no rules to generate ltmain.sh. |
| 17849 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17850 | # See if we are running on zsh, and set the options which allow our commands through |
| 17851 | # without removal of \ escapes. |
| 17852 | if test -n "${ZSH_VERSION+set}" ; then |
| 17853 | setopt NO_GLOB_SUBST |
| 17854 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17855 | # Now quote all the things that may contain metacharacters while being |
| 17856 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17857 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17858 | 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] | 17859 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17860 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17861 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17862 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17863 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17864 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17865 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17866 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17867 | compiler \ |
| 17868 | CC \ |
| 17869 | LD \ |
| 17870 | lt_prog_compiler_wl \ |
| 17871 | lt_prog_compiler_pic \ |
| 17872 | lt_prog_compiler_static \ |
| 17873 | lt_prog_compiler_no_builtin_flag \ |
| 17874 | export_dynamic_flag_spec \ |
| 17875 | thread_safe_flag_spec \ |
| 17876 | whole_archive_flag_spec \ |
| 17877 | enable_shared_with_static_runtimes \ |
| 17878 | old_archive_cmds \ |
| 17879 | old_archive_from_new_cmds \ |
| 17880 | predep_objects \ |
| 17881 | postdep_objects \ |
| 17882 | predeps \ |
| 17883 | postdeps \ |
| 17884 | compiler_lib_search_path \ |
| 17885 | archive_cmds \ |
| 17886 | archive_expsym_cmds \ |
| 17887 | postinstall_cmds \ |
| 17888 | postuninstall_cmds \ |
| 17889 | old_archive_from_expsyms_cmds \ |
| 17890 | allow_undefined_flag \ |
| 17891 | no_undefined_flag \ |
| 17892 | export_symbols_cmds \ |
| 17893 | hardcode_libdir_flag_spec \ |
| 17894 | hardcode_libdir_flag_spec_ld \ |
| 17895 | hardcode_libdir_separator \ |
| 17896 | hardcode_automatic \ |
| 17897 | module_cmds \ |
| 17898 | module_expsym_cmds \ |
| 17899 | lt_cv_prog_compiler_c_o \ |
| 17900 | exclude_expsyms \ |
| 17901 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17902 | |
| 17903 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17904 | old_archive_cmds | \ |
| 17905 | old_archive_from_new_cmds | \ |
| 17906 | archive_cmds | \ |
| 17907 | archive_expsym_cmds | \ |
| 17908 | module_cmds | \ |
| 17909 | module_expsym_cmds | \ |
| 17910 | old_archive_from_expsyms_cmds | \ |
| 17911 | export_symbols_cmds | \ |
| 17912 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17913 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17914 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17915 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17916 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17917 | 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] | 17918 | ;; |
| 17919 | *) |
| 17920 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17921 | ;; |
| 17922 | esac |
| 17923 | done |
| 17924 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17925 | case $lt_echo in |
| 17926 | *'\$0 --fallback-echo"') |
| 17927 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17928 | ;; |
| 17929 | esac |
| 17930 | |
| 17931 | cfgfile="${ofile}T" |
| 17932 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17933 | $rm -f "$cfgfile" |
| 17934 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17935 | echo "$as_me: creating $ofile" >&6;} |
| 17936 | |
| 17937 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17938 | #! $SHELL |
| 17939 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17940 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17941 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17942 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17943 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17944 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17945 | # Free Software Foundation, Inc. |
| 17946 | # |
| 17947 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17948 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17949 | # |
| 17950 | # This program is free software; you can redistribute it and/or modify |
| 17951 | # it under the terms of the GNU General Public License as published by |
| 17952 | # the Free Software Foundation; either version 2 of the License, or |
| 17953 | # (at your option) any later version. |
| 17954 | # |
| 17955 | # This program is distributed in the hope that it will be useful, but |
| 17956 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17957 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17958 | # General Public License for more details. |
| 17959 | # |
| 17960 | # You should have received a copy of the GNU General Public License |
| 17961 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17962 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17963 | # |
| 17964 | # As a special exception to the GNU General Public License, if you |
| 17965 | # distribute this file as part of a program that contains a |
| 17966 | # configuration script generated by Autoconf, you may include it under |
| 17967 | # the same distribution terms that you use for the rest of that program. |
| 17968 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17969 | # A sed program that does not truncate output. |
| 17970 | SED=$lt_SED |
| 17971 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17972 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17973 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17974 | |
| 17975 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17976 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17977 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17978 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17979 | # The names of the tagged configurations supported by this script. |
| 17980 | available_tags= |
| 17981 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17982 | # ### BEGIN LIBTOOL CONFIG |
| 17983 | |
| 17984 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17985 | |
| 17986 | # Shell to use when invoking shell scripts. |
| 17987 | SHELL=$lt_SHELL |
| 17988 | |
| 17989 | # Whether or not to build shared libraries. |
| 17990 | build_libtool_libs=$enable_shared |
| 17991 | |
| 17992 | # Whether or not to build static libraries. |
| 17993 | build_old_libs=$enable_static |
| 17994 | |
| 17995 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17996 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17997 | |
| 17998 | # Whether or not to disallow shared libs when runtime libs are static |
| 17999 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18000 | |
| 18001 | # Whether or not to optimize for fast installation. |
| 18002 | fast_install=$enable_fast_install |
| 18003 | |
| 18004 | # The host system. |
| 18005 | host_alias=$host_alias |
| 18006 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18007 | host_os=$host_os |
| 18008 | |
| 18009 | # The build system. |
| 18010 | build_alias=$build_alias |
| 18011 | build=$build |
| 18012 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18013 | |
| 18014 | # An echo program that does not interpret backslashes. |
| 18015 | echo=$lt_echo |
| 18016 | |
| 18017 | # The archiver. |
| 18018 | AR=$lt_AR |
| 18019 | AR_FLAGS=$lt_AR_FLAGS |
| 18020 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18021 | # A C compiler. |
| 18022 | LTCC=$lt_LTCC |
| 18023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18024 | # LTCC compiler flags. |
| 18025 | LTCFLAGS=$lt_LTCFLAGS |
| 18026 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18027 | # A language-specific compiler. |
| 18028 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18029 | |
| 18030 | # Is the compiler the GNU C compiler? |
| 18031 | with_gcc=$GCC |
| 18032 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18033 | # An ERE matcher. |
| 18034 | EGREP=$lt_EGREP |
| 18035 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18036 | # The linker used to build libraries. |
| 18037 | LD=$lt_LD |
| 18038 | |
| 18039 | # Whether we need hard or soft links. |
| 18040 | LN_S=$lt_LN_S |
| 18041 | |
| 18042 | # A BSD-compatible nm program. |
| 18043 | NM=$lt_NM |
| 18044 | |
| 18045 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18046 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18047 | |
| 18048 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18049 | MAGIC_CMD=$MAGIC_CMD |
| 18050 | |
| 18051 | # Used on cygwin: DLL creation program. |
| 18052 | DLLTOOL="$DLLTOOL" |
| 18053 | |
| 18054 | # Used on cygwin: object dumper. |
| 18055 | OBJDUMP="$OBJDUMP" |
| 18056 | |
| 18057 | # Used on cygwin: assembler. |
| 18058 | AS="$AS" |
| 18059 | |
| 18060 | # The name of the directory that contains temporary libtool files. |
| 18061 | objdir=$objdir |
| 18062 | |
| 18063 | # How to create reloadable object files. |
| 18064 | reload_flag=$lt_reload_flag |
| 18065 | reload_cmds=$lt_reload_cmds |
| 18066 | |
| 18067 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18068 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18069 | |
| 18070 | # Object file suffix (normally "o"). |
| 18071 | objext="$ac_objext" |
| 18072 | |
| 18073 | # Old archive suffix (normally "a"). |
| 18074 | libext="$libext" |
| 18075 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18076 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18077 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18078 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18079 | # Executable file suffix (normally ""). |
| 18080 | exeext="$exeext" |
| 18081 | |
| 18082 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18083 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18084 | pic_mode=$pic_mode |
| 18085 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18086 | # What is the maximum length of a command? |
| 18087 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18088 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18089 | # Does compiler simultaneously support -c and -o options? |
| 18090 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18091 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18092 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18093 | need_locks=$lt_need_locks |
| 18094 | |
| 18095 | # Do we need the lib prefix for modules? |
| 18096 | need_lib_prefix=$need_lib_prefix |
| 18097 | |
| 18098 | # Do we need a version for libraries? |
| 18099 | need_version=$need_version |
| 18100 | |
| 18101 | # Whether dlopen is supported. |
| 18102 | dlopen_support=$enable_dlopen |
| 18103 | |
| 18104 | # Whether dlopen of programs is supported. |
| 18105 | dlopen_self=$enable_dlopen_self |
| 18106 | |
| 18107 | # Whether dlopen of statically linked programs is supported. |
| 18108 | dlopen_self_static=$enable_dlopen_self_static |
| 18109 | |
| 18110 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18111 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18112 | |
| 18113 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18114 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18115 | |
| 18116 | # Compiler flag to allow reflexive dlopens. |
| 18117 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 18118 | |
| 18119 | # Compiler flag to generate shared objects directly from archives. |
| 18120 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 18121 | |
| 18122 | # Compiler flag to generate thread-safe objects. |
| 18123 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 18124 | |
| 18125 | # Library versioning type. |
| 18126 | version_type=$version_type |
| 18127 | |
| 18128 | # Format of library name prefix. |
| 18129 | libname_spec=$lt_libname_spec |
| 18130 | |
| 18131 | # List of archive names. First name is the real one, the rest are links. |
| 18132 | # The last name is the one that the linker finds with -lNAME. |
| 18133 | library_names_spec=$lt_library_names_spec |
| 18134 | |
| 18135 | # The coded name of the library, if different from the real name. |
| 18136 | soname_spec=$lt_soname_spec |
| 18137 | |
| 18138 | # Commands used to build and install an old-style archive. |
| 18139 | RANLIB=$lt_RANLIB |
| 18140 | old_archive_cmds=$lt_old_archive_cmds |
| 18141 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18142 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18143 | |
| 18144 | # Create an old-style archive from a shared archive. |
| 18145 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 18146 | |
| 18147 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18148 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 18149 | |
| 18150 | # Commands used to build and install a shared archive. |
| 18151 | archive_cmds=$lt_archive_cmds |
| 18152 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 18153 | postinstall_cmds=$lt_postinstall_cmds |
| 18154 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18155 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18156 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18157 | module_cmds=$lt_module_cmds |
| 18158 | module_expsym_cmds=$lt_module_expsym_cmds |
| 18159 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18160 | # Commands to strip libraries. |
| 18161 | old_striplib=$lt_old_striplib |
| 18162 | striplib=$lt_striplib |
| 18163 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18164 | # Dependencies to place before the objects being linked to create a |
| 18165 | # shared library. |
| 18166 | predep_objects=$lt_predep_objects |
| 18167 | |
| 18168 | # Dependencies to place after the objects being linked to create a |
| 18169 | # shared library. |
| 18170 | postdep_objects=$lt_postdep_objects |
| 18171 | |
| 18172 | # Dependencies to place before the objects being linked to create a |
| 18173 | # shared library. |
| 18174 | predeps=$lt_predeps |
| 18175 | |
| 18176 | # Dependencies to place after the objects being linked to create a |
| 18177 | # shared library. |
| 18178 | postdeps=$lt_postdeps |
| 18179 | |
| 18180 | # The library search path used internally by the compiler when linking |
| 18181 | # a shared library. |
| 18182 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 18183 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18184 | # Method to check whether dependent libraries are shared objects. |
| 18185 | deplibs_check_method=$lt_deplibs_check_method |
| 18186 | |
| 18187 | # Command to use when deplibs_check_method == file_magic. |
| 18188 | file_magic_cmd=$lt_file_magic_cmd |
| 18189 | |
| 18190 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18191 | allow_undefined_flag=$lt_allow_undefined_flag |
| 18192 | |
| 18193 | # Flag that forces no undefined symbols. |
| 18194 | no_undefined_flag=$lt_no_undefined_flag |
| 18195 | |
| 18196 | # Commands used to finish a libtool library installation in a directory. |
| 18197 | finish_cmds=$lt_finish_cmds |
| 18198 | |
| 18199 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18200 | finish_eval=$lt_finish_eval |
| 18201 | |
| 18202 | # 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] | 18203 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18204 | |
| 18205 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18206 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18207 | |
| 18208 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18209 | 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] | 18210 | |
| 18211 | # This is the shared library runtime path variable. |
| 18212 | runpath_var=$runpath_var |
| 18213 | |
| 18214 | # This is the shared library path variable. |
| 18215 | shlibpath_var=$shlibpath_var |
| 18216 | |
| 18217 | # Is shlibpath searched before the hard-coded library search path? |
| 18218 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18219 | |
| 18220 | # How to hardcode a shared library path into an executable. |
| 18221 | hardcode_action=$hardcode_action |
| 18222 | |
| 18223 | # Whether we should hardcode library paths into libraries. |
| 18224 | hardcode_into_libs=$hardcode_into_libs |
| 18225 | |
| 18226 | # Flag to hardcode \$libdir into a binary during linking. |
| 18227 | # This must work even if \$libdir does not exist. |
| 18228 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 18229 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18230 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18231 | # a binary during linking. This must work even if \$libdir does |
| 18232 | # not exist. |
| 18233 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 18234 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18235 | # Whether we need a single -rpath flag with a separated argument. |
| 18236 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 18237 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18238 | # 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] | 18239 | # resulting binary. |
| 18240 | hardcode_direct=$hardcode_direct |
| 18241 | |
| 18242 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18243 | # resulting binary. |
| 18244 | hardcode_minus_L=$hardcode_minus_L |
| 18245 | |
| 18246 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18247 | # the resulting binary. |
| 18248 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 18249 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18250 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18251 | # and all subsequent libraries and executables linked against it. |
| 18252 | hardcode_automatic=$hardcode_automatic |
| 18253 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18254 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18255 | # restored at relink time. |
| 18256 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18257 | |
| 18258 | # Whether libtool must link a program against all its dependency libraries. |
| 18259 | link_all_deplibs=$link_all_deplibs |
| 18260 | |
| 18261 | # Compile-time system search path for libraries |
| 18262 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18263 | |
| 18264 | # Run-time system search path for libraries |
| 18265 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18266 | |
| 18267 | # Fix the shell variable \$srcfile for the compiler. |
| 18268 | fix_srcfile_path="$fix_srcfile_path" |
| 18269 | |
| 18270 | # Set to yes if exported symbols are required. |
| 18271 | always_export_symbols=$always_export_symbols |
| 18272 | |
| 18273 | # The commands to list exported symbols. |
| 18274 | export_symbols_cmds=$lt_export_symbols_cmds |
| 18275 | |
| 18276 | # The commands to extract the exported symbol list from a shared archive. |
| 18277 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18278 | |
| 18279 | # Symbols that should not be listed in the preloaded symbols. |
| 18280 | exclude_expsyms=$lt_exclude_expsyms |
| 18281 | |
| 18282 | # Symbols that must always be exported. |
| 18283 | include_expsyms=$lt_include_expsyms |
| 18284 | |
| 18285 | # ### END LIBTOOL CONFIG |
| 18286 | |
| 18287 | __EOF__ |
| 18288 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18289 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18290 | case $host_os in |
| 18291 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18292 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18293 | |
| 18294 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 18295 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 18296 | # vanish in a puff of smoke. |
| 18297 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 18298 | COLLECT_NAMES= |
| 18299 | export COLLECT_NAMES |
| 18300 | fi |
| 18301 | EOF |
| 18302 | ;; |
| 18303 | esac |
| 18304 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18305 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 18306 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 18307 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 18308 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18309 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18310 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18311 | mv -f "$cfgfile" "$ofile" || \ |
| 18312 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18313 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18314 | |
| 18315 | else |
| 18316 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18317 | # `config.status --recheck' to rerun these tests and create the |
| 18318 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18319 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18320 | if test -f "$ltmain_in"; then |
| 18321 | test -f Makefile && make "$ltmain" |
| 18322 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18323 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18324 | |
| 18325 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18326 | ac_ext=c |
| 18327 | ac_cpp='$CPP $CPPFLAGS' |
| 18328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18331 | |
| 18332 | CC="$lt_save_CC" |
| 18333 | |
| 18334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18335 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18336 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18337 | withval=$with_tags; tagnames="$withval" |
| 18338 | fi |
| 18339 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18340 | |
| 18341 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 18342 | if test ! -f "${ofile}"; then |
| 18343 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 18344 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 18345 | fi |
| 18346 | |
| 18347 | if test -z "$LTCC"; then |
| 18348 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 18349 | if test -z "$LTCC"; then |
| 18350 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 18351 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 18352 | else |
| 18353 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 18354 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 18355 | fi |
| 18356 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18357 | if test -z "$LTCFLAGS"; then |
| 18358 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 18359 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18360 | |
| 18361 | # Extract list of available tagged configurations in $ofile. |
| 18362 | # Note that this assumes the entire list is on one line. |
| 18363 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 18364 | |
| 18365 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 18366 | for tagname in $tagnames; do |
| 18367 | IFS="$lt_save_ifs" |
| 18368 | # Check whether tagname contains only valid characters |
| 18369 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18370 | "") ;; |
| 18371 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18372 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18373 | { (exit 1); exit 1; }; } |
| 18374 | ;; |
| 18375 | esac |
| 18376 | |
| 18377 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18378 | then |
| 18379 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18380 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18381 | { (exit 1); exit 1; }; } |
| 18382 | fi |
| 18383 | |
| 18384 | # Update the list of available tags. |
| 18385 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18386 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18387 | |
| 18388 | case $tagname in |
| 18389 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18390 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18391 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18392 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18393 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18394 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18395 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18396 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18397 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18398 | |
| 18399 | |
| 18400 | |
| 18401 | |
| 18402 | archive_cmds_need_lc_CXX=no |
| 18403 | allow_undefined_flag_CXX= |
| 18404 | always_export_symbols_CXX=no |
| 18405 | archive_expsym_cmds_CXX= |
| 18406 | export_dynamic_flag_spec_CXX= |
| 18407 | hardcode_direct_CXX=no |
| 18408 | hardcode_libdir_flag_spec_CXX= |
| 18409 | hardcode_libdir_flag_spec_ld_CXX= |
| 18410 | hardcode_libdir_separator_CXX= |
| 18411 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18412 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18413 | hardcode_automatic_CXX=no |
| 18414 | module_cmds_CXX= |
| 18415 | module_expsym_cmds_CXX= |
| 18416 | link_all_deplibs_CXX=unknown |
| 18417 | old_archive_cmds_CXX=$old_archive_cmds |
| 18418 | no_undefined_flag_CXX= |
| 18419 | whole_archive_flag_spec_CXX= |
| 18420 | enable_shared_with_static_runtimes_CXX=no |
| 18421 | |
| 18422 | # Dependencies to place before and after the object being linked: |
| 18423 | predep_objects_CXX= |
| 18424 | postdep_objects_CXX= |
| 18425 | predeps_CXX= |
| 18426 | postdeps_CXX= |
| 18427 | compiler_lib_search_path_CXX= |
| 18428 | |
| 18429 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18430 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18431 | |
| 18432 | # Object file extension for compiled C++ test sources. |
| 18433 | objext=o |
| 18434 | objext_CXX=$objext |
| 18435 | |
| 18436 | # Code to be used in simple compile tests |
| 18437 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18438 | |
| 18439 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18440 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18441 | |
| 18442 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18443 | |
| 18444 | # If no C compiler was specified, use CC. |
| 18445 | LTCC=${LTCC-"$CC"} |
| 18446 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18447 | # If no C compiler flags were specified, use CFLAGS. |
| 18448 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18449 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18450 | # Allow CC to be a program name with arguments. |
| 18451 | compiler=$CC |
| 18452 | |
| 18453 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18454 | # save warnings/boilerplate of simple test code |
| 18455 | ac_outfile=conftest.$ac_objext |
| 18456 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18457 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18458 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18459 | $rm conftest* |
| 18460 | |
| 18461 | ac_outfile=conftest.$ac_objext |
| 18462 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18463 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18464 | _lt_linker_boilerplate=`cat conftest.err` |
| 18465 | $rm conftest* |
| 18466 | |
| 18467 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18468 | # Allow CC to be a program name with arguments. |
| 18469 | lt_save_CC=$CC |
| 18470 | lt_save_LD=$LD |
| 18471 | lt_save_GCC=$GCC |
| 18472 | GCC=$GXX |
| 18473 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18474 | lt_save_path_LD=$lt_cv_path_LD |
| 18475 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18476 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18477 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18478 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18479 | fi |
| 18480 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18481 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18482 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18483 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18484 | fi |
| 18485 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18486 | CC=${CXX-"c++"} |
| 18487 | compiler=$CC |
| 18488 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18489 | for cc_temp in $compiler""; do |
| 18490 | case $cc_temp in |
| 18491 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18492 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18493 | \-*) ;; |
| 18494 | *) break;; |
| 18495 | esac |
| 18496 | done |
| 18497 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18498 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18499 | |
| 18500 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18501 | # no_builtin_flag separately |
| 18502 | if test "$GXX" = yes; then |
| 18503 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18504 | else |
| 18505 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18506 | fi |
| 18507 | |
| 18508 | if test "$GXX" = yes; then |
| 18509 | # Set up default GNU C++ configuration |
| 18510 | |
| 18511 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18512 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18513 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18514 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18515 | else |
| 18516 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18517 | fi |
| 18518 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18519 | ac_prog=ld |
| 18520 | if test "$GCC" = yes; then |
| 18521 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18522 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18523 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18524 | case $host in |
| 18525 | *-*-mingw*) |
| 18526 | # gcc leaves a trailing carriage return which upsets mingw |
| 18527 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18528 | *) |
| 18529 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18530 | esac |
| 18531 | case $ac_prog in |
| 18532 | # Accept absolute paths. |
| 18533 | [\\/]* | ?:[\\/]*) |
| 18534 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18535 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18536 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18537 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18538 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18539 | done |
| 18540 | test -z "$LD" && LD="$ac_prog" |
| 18541 | ;; |
| 18542 | "") |
| 18543 | # If it fails, then pretend we aren't using GCC. |
| 18544 | ac_prog=ld |
| 18545 | ;; |
| 18546 | *) |
| 18547 | # If it is relative, then search for the first ld in PATH. |
| 18548 | with_gnu_ld=unknown |
| 18549 | ;; |
| 18550 | esac |
| 18551 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18552 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18553 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18554 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18555 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18556 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18557 | fi |
| 18558 | if test "${lt_cv_path_LD+set}" = set; then |
| 18559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18560 | else |
| 18561 | if test -z "$LD"; then |
| 18562 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18563 | for ac_dir in $PATH; do |
| 18564 | IFS="$lt_save_ifs" |
| 18565 | test -z "$ac_dir" && ac_dir=. |
| 18566 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18567 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18568 | # 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] | 18569 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18570 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18571 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18572 | *GNU* | *'with BFD'*) |
| 18573 | test "$with_gnu_ld" != no && break |
| 18574 | ;; |
| 18575 | *) |
| 18576 | test "$with_gnu_ld" != yes && break |
| 18577 | ;; |
| 18578 | esac |
| 18579 | fi |
| 18580 | done |
| 18581 | IFS="$lt_save_ifs" |
| 18582 | else |
| 18583 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18584 | fi |
| 18585 | fi |
| 18586 | |
| 18587 | LD="$lt_cv_path_LD" |
| 18588 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18589 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18590 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18591 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18592 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18593 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18594 | fi |
| 18595 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18596 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18597 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18598 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18599 | 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] | 18600 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18602 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18603 | # 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] | 18604 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18605 | *GNU* | *'with BFD'*) |
| 18606 | lt_cv_prog_gnu_ld=yes |
| 18607 | ;; |
| 18608 | *) |
| 18609 | lt_cv_prog_gnu_ld=no |
| 18610 | ;; |
| 18611 | esac |
| 18612 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18613 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18614 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18615 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18616 | |
| 18617 | |
| 18618 | |
| 18619 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18620 | # archiving commands below assume that GNU ld is being used. |
| 18621 | if test "$with_gnu_ld" = yes; then |
| 18622 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18623 | 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' |
| 18624 | |
| 18625 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18626 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18627 | |
| 18628 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18629 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18630 | # investigate it a little bit more. (MM) |
| 18631 | wlarc='${wl}' |
| 18632 | |
| 18633 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18634 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18635 | grep 'no-whole-archive' > /dev/null; then |
| 18636 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18637 | else |
| 18638 | whole_archive_flag_spec_CXX= |
| 18639 | fi |
| 18640 | else |
| 18641 | with_gnu_ld=no |
| 18642 | wlarc= |
| 18643 | |
| 18644 | # A generic and very simple default shared library creation |
| 18645 | # command for GNU C++ for the case where it uses the native |
| 18646 | # linker, instead of GNU ld. If possible, this setting should |
| 18647 | # overridden to take advantage of the native linker features on |
| 18648 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18649 | 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] | 18650 | fi |
| 18651 | |
| 18652 | # Commands to make compiler produce verbose output that lists |
| 18653 | # what "hidden" libraries, object files and flags are used when |
| 18654 | # linking a shared library. |
| 18655 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18656 | |
| 18657 | else |
| 18658 | GXX=no |
| 18659 | with_gnu_ld=no |
| 18660 | wlarc= |
| 18661 | fi |
| 18662 | |
| 18663 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18664 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18665 | 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] | 18666 | ld_shlibs_CXX=yes |
| 18667 | case $host_os in |
| 18668 | aix3*) |
| 18669 | # FIXME: insert proper C++ library support |
| 18670 | ld_shlibs_CXX=no |
| 18671 | ;; |
| 18672 | aix4* | aix5*) |
| 18673 | if test "$host_cpu" = ia64; then |
| 18674 | # On IA64, the linker does run time linking by default, so we don't |
| 18675 | # have to do anything special. |
| 18676 | aix_use_runtimelinking=no |
| 18677 | exp_sym_flag='-Bexport' |
| 18678 | no_entry_flag="" |
| 18679 | else |
| 18680 | aix_use_runtimelinking=no |
| 18681 | |
| 18682 | # Test if we are trying to use run time linking or normal |
| 18683 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18684 | # need to do runtime linking. |
| 18685 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18686 | for ld_flag in $LDFLAGS; do |
| 18687 | case $ld_flag in |
| 18688 | *-brtl*) |
| 18689 | aix_use_runtimelinking=yes |
| 18690 | break |
| 18691 | ;; |
| 18692 | esac |
| 18693 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18694 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18695 | esac |
| 18696 | |
| 18697 | exp_sym_flag='-bexport' |
| 18698 | no_entry_flag='-bnoentry' |
| 18699 | fi |
| 18700 | |
| 18701 | # When large executables or shared objects are built, AIX ld can |
| 18702 | # have problems creating the table of contents. If linking a library |
| 18703 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18704 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18705 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18706 | |
| 18707 | archive_cmds_CXX='' |
| 18708 | hardcode_direct_CXX=yes |
| 18709 | hardcode_libdir_separator_CXX=':' |
| 18710 | link_all_deplibs_CXX=yes |
| 18711 | |
| 18712 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18713 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18714 | # We only want to do this on AIX 4.2 and lower, the check |
| 18715 | # below for broken collect2 doesn't work under 4.3+ |
| 18716 | collect2name=`${CC} -print-prog-name=collect2` |
| 18717 | if test -f "$collect2name" && \ |
| 18718 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18719 | then |
| 18720 | # We have reworked collect2 |
| 18721 | hardcode_direct_CXX=yes |
| 18722 | else |
| 18723 | # We have old collect2 |
| 18724 | hardcode_direct_CXX=unsupported |
| 18725 | # It fails to find uninstalled libraries when the uninstalled |
| 18726 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18727 | # to unsupported forces relinking |
| 18728 | hardcode_minus_L_CXX=yes |
| 18729 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18730 | hardcode_libdir_separator_CXX= |
| 18731 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18732 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18733 | esac |
| 18734 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18735 | if test "$aix_use_runtimelinking" = yes; then |
| 18736 | shared_flag="$shared_flag "'${wl}-G' |
| 18737 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18738 | else |
| 18739 | # not using gcc |
| 18740 | if test "$host_cpu" = ia64; then |
| 18741 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18742 | # chokes on -Wl,-G. The following line is correct: |
| 18743 | shared_flag='-G' |
| 18744 | else |
| 18745 | if test "$aix_use_runtimelinking" = yes; then |
| 18746 | shared_flag='${wl}-G' |
| 18747 | else |
| 18748 | shared_flag='${wl}-bM:SRE' |
| 18749 | fi |
| 18750 | fi |
| 18751 | fi |
| 18752 | |
| 18753 | # It seems that -bexpall does not export symbols beginning with |
| 18754 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18755 | always_export_symbols_CXX=yes |
| 18756 | if test "$aix_use_runtimelinking" = yes; then |
| 18757 | # Warning - without using the other runtime loading flags (-brtl), |
| 18758 | # -berok will link without error, but may produce a broken library. |
| 18759 | allow_undefined_flag_CXX='-berok' |
| 18760 | # Determine the default libpath from the value encoded in an empty executable. |
| 18761 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18762 | /* confdefs.h. */ |
| 18763 | _ACEOF |
| 18764 | cat confdefs.h >>conftest.$ac_ext |
| 18765 | cat >>conftest.$ac_ext <<_ACEOF |
| 18766 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18767 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18768 | int |
| 18769 | main () |
| 18770 | { |
| 18771 | |
| 18772 | ; |
| 18773 | return 0; |
| 18774 | } |
| 18775 | _ACEOF |
| 18776 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18777 | if { (ac_try="$ac_link" |
| 18778 | case "(($ac_try" in |
| 18779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18780 | *) ac_try_echo=$ac_try;; |
| 18781 | esac |
| 18782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18783 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18784 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18786 | rm -f conftest.er1 |
| 18787 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18789 | (exit $ac_status); } && |
| 18790 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18791 | { (case "(($ac_try" in |
| 18792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18793 | *) ac_try_echo=$ac_try;; |
| 18794 | esac |
| 18795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18796 | (eval "$ac_try") 2>&5 |
| 18797 | ac_status=$? |
| 18798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18799 | (exit $ac_status); }; } && |
| 18800 | { ac_try='test -s conftest$ac_exeext' |
| 18801 | { (case "(($ac_try" in |
| 18802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18803 | *) ac_try_echo=$ac_try;; |
| 18804 | esac |
| 18805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18806 | (eval "$ac_try") 2>&5 |
| 18807 | ac_status=$? |
| 18808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18809 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18810 | |
| 18811 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18812 | }'` |
| 18813 | # Check for a 64-bit object if we didn't find anything. |
| 18814 | 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; } |
| 18815 | }'`; fi |
| 18816 | else |
| 18817 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18819 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18820 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18821 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18822 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18823 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18824 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18825 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18826 | |
| 18827 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18829 | 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] | 18830 | else |
| 18831 | if test "$host_cpu" = ia64; then |
| 18832 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18833 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18834 | 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] | 18835 | else |
| 18836 | # Determine the default libpath from the value encoded in an empty executable. |
| 18837 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18838 | /* confdefs.h. */ |
| 18839 | _ACEOF |
| 18840 | cat confdefs.h >>conftest.$ac_ext |
| 18841 | cat >>conftest.$ac_ext <<_ACEOF |
| 18842 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18843 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18844 | int |
| 18845 | main () |
| 18846 | { |
| 18847 | |
| 18848 | ; |
| 18849 | return 0; |
| 18850 | } |
| 18851 | _ACEOF |
| 18852 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18853 | if { (ac_try="$ac_link" |
| 18854 | case "(($ac_try" in |
| 18855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18856 | *) ac_try_echo=$ac_try;; |
| 18857 | esac |
| 18858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18859 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18860 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18862 | rm -f conftest.er1 |
| 18863 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18865 | (exit $ac_status); } && |
| 18866 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18867 | { (case "(($ac_try" in |
| 18868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18869 | *) ac_try_echo=$ac_try;; |
| 18870 | esac |
| 18871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18872 | (eval "$ac_try") 2>&5 |
| 18873 | ac_status=$? |
| 18874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18875 | (exit $ac_status); }; } && |
| 18876 | { ac_try='test -s conftest$ac_exeext' |
| 18877 | { (case "(($ac_try" in |
| 18878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18879 | *) ac_try_echo=$ac_try;; |
| 18880 | esac |
| 18881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18882 | (eval "$ac_try") 2>&5 |
| 18883 | ac_status=$? |
| 18884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18885 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18886 | |
| 18887 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18888 | }'` |
| 18889 | # Check for a 64-bit object if we didn't find anything. |
| 18890 | 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; } |
| 18891 | }'`; fi |
| 18892 | else |
| 18893 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18895 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18896 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18897 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18898 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18899 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18900 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18901 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18902 | |
| 18903 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18904 | # Warning - without using the other run time loading flags, |
| 18905 | # -berok will link without error, but may produce a broken library. |
| 18906 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18907 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18908 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18909 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18910 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18911 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18912 | 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] | 18913 | fi |
| 18914 | fi |
| 18915 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18916 | |
| 18917 | beos*) |
| 18918 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18919 | allow_undefined_flag_CXX=unsupported |
| 18920 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18921 | # support --undefined. This deserves some investigation. FIXME |
| 18922 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18923 | else |
| 18924 | ld_shlibs_CXX=no |
| 18925 | fi |
| 18926 | ;; |
| 18927 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18928 | chorus*) |
| 18929 | case $cc_basename in |
| 18930 | *) |
| 18931 | # FIXME: insert proper C++ library support |
| 18932 | ld_shlibs_CXX=no |
| 18933 | ;; |
| 18934 | esac |
| 18935 | ;; |
| 18936 | |
| 18937 | cygwin* | mingw* | pw32*) |
| 18938 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18939 | # as there is no search path for DLLs. |
| 18940 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18941 | allow_undefined_flag_CXX=unsupported |
| 18942 | always_export_symbols_CXX=no |
| 18943 | enable_shared_with_static_runtimes_CXX=yes |
| 18944 | |
| 18945 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18946 | 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] | 18947 | # If the export-symbols file already is a .def file (1st line |
| 18948 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18949 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18950 | cp $export_symbols $output_objdir/$soname.def; |
| 18951 | else |
| 18952 | echo EXPORTS > $output_objdir/$soname.def; |
| 18953 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18954 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18955 | $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] | 18956 | else |
| 18957 | ld_shlibs_CXX=no |
| 18958 | fi |
| 18959 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18960 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18961 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18962 | rhapsody* | darwin1.[012]) |
| 18963 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18964 | ;; |
| 18965 | *) # Darwin 1.3 on |
| 18966 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18967 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18968 | else |
| 18969 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18970 | 10.[012]) |
| 18971 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18972 | ;; |
| 18973 | 10.*) |
| 18974 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18975 | ;; |
| 18976 | esac |
| 18977 | fi |
| 18978 | ;; |
| 18979 | esac |
| 18980 | archive_cmds_need_lc_CXX=no |
| 18981 | hardcode_direct_CXX=no |
| 18982 | hardcode_automatic_CXX=yes |
| 18983 | hardcode_shlibpath_var_CXX=unsupported |
| 18984 | whole_archive_flag_spec_CXX='' |
| 18985 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18986 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18987 | if test "$GXX" = yes ; then |
| 18988 | lt_int_apple_cc_single_mod=no |
| 18989 | output_verbose_link_cmd='echo' |
| 18990 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18991 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18992 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18993 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18994 | 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] | 18995 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18996 | 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] | 18997 | fi |
| 18998 | 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] | 18999 | # 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] | 19000 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19001 | 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] | 19002 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19003 | 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] | 19004 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19005 | 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] | 19006 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19007 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19008 | xlc*) |
| 19009 | output_verbose_link_cmd='echo' |
| 19010 | 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' |
| 19011 | 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] | 19012 | # 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] | 19013 | 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}' |
| 19014 | 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] | 19015 | ;; |
| 19016 | *) |
| 19017 | ld_shlibs_CXX=no |
| 19018 | ;; |
| 19019 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19020 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19021 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19022 | |
| 19023 | dgux*) |
| 19024 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19025 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19026 | # FIXME: insert proper C++ library support |
| 19027 | ld_shlibs_CXX=no |
| 19028 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19029 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19030 | # Green Hills C++ Compiler |
| 19031 | # FIXME: insert proper C++ library support |
| 19032 | ld_shlibs_CXX=no |
| 19033 | ;; |
| 19034 | *) |
| 19035 | # FIXME: insert proper C++ library support |
| 19036 | ld_shlibs_CXX=no |
| 19037 | ;; |
| 19038 | esac |
| 19039 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19040 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19041 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 19042 | ld_shlibs_CXX=no |
| 19043 | ;; |
| 19044 | freebsd-elf*) |
| 19045 | archive_cmds_need_lc_CXX=no |
| 19046 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19047 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19048 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 19049 | # conventions |
| 19050 | ld_shlibs_CXX=yes |
| 19051 | ;; |
| 19052 | gnu*) |
| 19053 | ;; |
| 19054 | hpux9*) |
| 19055 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19056 | hardcode_libdir_separator_CXX=: |
| 19057 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19058 | hardcode_direct_CXX=yes |
| 19059 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19060 | # but as the default |
| 19061 | # location of the library. |
| 19062 | |
| 19063 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19064 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19065 | # FIXME: insert proper C++ library support |
| 19066 | ld_shlibs_CXX=no |
| 19067 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19068 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19069 | 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] | 19070 | # Commands to make compiler produce verbose output that lists |
| 19071 | # what "hidden" libraries, object files and flags are used when |
| 19072 | # linking a shared library. |
| 19073 | # |
| 19074 | # There doesn't appear to be a way to prevent this compiler from |
| 19075 | # explicitly linking system object files so we need to strip them |
| 19076 | # from the output so that they don't get included in the library |
| 19077 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19078 | 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] | 19079 | ;; |
| 19080 | *) |
| 19081 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19082 | 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] | 19083 | else |
| 19084 | # FIXME: insert proper C++ library support |
| 19085 | ld_shlibs_CXX=no |
| 19086 | fi |
| 19087 | ;; |
| 19088 | esac |
| 19089 | ;; |
| 19090 | hpux10*|hpux11*) |
| 19091 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19092 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19093 | hardcode_libdir_separator_CXX=: |
| 19094 | |
| 19095 | case $host_cpu in |
| 19096 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19097 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19098 | ;; |
| 19099 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19100 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19101 | ;; |
| 19102 | esac |
| 19103 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19104 | case $host_cpu in |
| 19105 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19106 | hardcode_direct_CXX=no |
| 19107 | hardcode_shlibpath_var_CXX=no |
| 19108 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19109 | *) |
| 19110 | hardcode_direct_CXX=yes |
| 19111 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19112 | # but as the default |
| 19113 | # location of the library. |
| 19114 | ;; |
| 19115 | esac |
| 19116 | |
| 19117 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19118 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19119 | # FIXME: insert proper C++ library support |
| 19120 | ld_shlibs_CXX=no |
| 19121 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19122 | aCC*) |
| 19123 | case $host_cpu in |
| 19124 | hppa*64*) |
| 19125 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19126 | ;; |
| 19127 | ia64*) |
| 19128 | 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] | 19129 | ;; |
| 19130 | *) |
| 19131 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19132 | ;; |
| 19133 | esac |
| 19134 | # Commands to make compiler produce verbose output that lists |
| 19135 | # what "hidden" libraries, object files and flags are used when |
| 19136 | # linking a shared library. |
| 19137 | # |
| 19138 | # There doesn't appear to be a way to prevent this compiler from |
| 19139 | # explicitly linking system object files so we need to strip them |
| 19140 | # from the output so that they don't get included in the library |
| 19141 | # dependencies. |
| 19142 | 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' |
| 19143 | ;; |
| 19144 | *) |
| 19145 | if test "$GXX" = yes; then |
| 19146 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19147 | case $host_cpu in |
| 19148 | hppa*64*) |
| 19149 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19150 | ;; |
| 19151 | ia64*) |
| 19152 | 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] | 19153 | ;; |
| 19154 | *) |
| 19155 | 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' |
| 19156 | ;; |
| 19157 | esac |
| 19158 | fi |
| 19159 | else |
| 19160 | # FIXME: insert proper C++ library support |
| 19161 | ld_shlibs_CXX=no |
| 19162 | fi |
| 19163 | ;; |
| 19164 | esac |
| 19165 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19166 | interix3*) |
| 19167 | hardcode_direct_CXX=no |
| 19168 | hardcode_shlibpath_var_CXX=no |
| 19169 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19170 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19171 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 19172 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 19173 | # default) and relocated if they conflict, which is a slow very memory |
| 19174 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 19175 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 19176 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 19177 | 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' |
| 19178 | 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' |
| 19179 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19180 | irix5* | irix6*) |
| 19181 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19182 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19183 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19184 | 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] | 19185 | |
| 19186 | # Archives containing C++ object files must be created using |
| 19187 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 19188 | # necessary to make sure instantiated templates are included |
| 19189 | # in the archive. |
| 19190 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 19191 | ;; |
| 19192 | *) |
| 19193 | if test "$GXX" = yes; then |
| 19194 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19195 | 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] | 19196 | else |
| 19197 | 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' |
| 19198 | fi |
| 19199 | fi |
| 19200 | link_all_deplibs_CXX=yes |
| 19201 | ;; |
| 19202 | esac |
| 19203 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19204 | hardcode_libdir_separator_CXX=: |
| 19205 | ;; |
| 19206 | linux*) |
| 19207 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19208 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19209 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19210 | |
| 19211 | # KCC will only create a shared library if the output file |
| 19212 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19213 | # to its proper name (with version) after linking. |
| 19214 | 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' |
| 19215 | 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' |
| 19216 | # Commands to make compiler produce verbose output that lists |
| 19217 | # what "hidden" libraries, object files and flags are used when |
| 19218 | # linking a shared library. |
| 19219 | # |
| 19220 | # There doesn't appear to be a way to prevent this compiler from |
| 19221 | # explicitly linking system object files so we need to strip them |
| 19222 | # from the output so that they don't get included in the library |
| 19223 | # dependencies. |
| 19224 | 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' |
| 19225 | |
| 19226 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 19227 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19228 | |
| 19229 | # Archives containing C++ object files must be created using |
| 19230 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19231 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19232 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19233 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19234 | # Intel C++ |
| 19235 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19236 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 19237 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 19238 | # earlier do not add the objects themselves. |
| 19239 | case `$CC -V 2>&1` in |
| 19240 | *"Version 7."*) |
| 19241 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19242 | 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' |
| 19243 | ;; |
| 19244 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19245 | tmp_idyn= |
| 19246 | case $host_cpu in |
| 19247 | ia64*) tmp_idyn=' -i_dynamic';; |
| 19248 | esac |
| 19249 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19250 | 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] | 19251 | ;; |
| 19252 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19253 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19254 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19255 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19256 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 19257 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19258 | pgCC*) |
| 19259 | # Portland Group C++ compiler |
| 19260 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 19261 | 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' |
| 19262 | |
| 19263 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 19264 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19265 | 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' |
| 19266 | ;; |
| 19267 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19268 | # Compaq C++ |
| 19269 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19270 | 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' |
| 19271 | |
| 19272 | runpath_var=LD_RUN_PATH |
| 19273 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19274 | hardcode_libdir_separator_CXX=: |
| 19275 | |
| 19276 | # Commands to make compiler produce verbose output that lists |
| 19277 | # what "hidden" libraries, object files and flags are used when |
| 19278 | # linking a shared library. |
| 19279 | # |
| 19280 | # There doesn't appear to be a way to prevent this compiler from |
| 19281 | # explicitly linking system object files so we need to strip them |
| 19282 | # from the output so that they don't get included in the library |
| 19283 | # dependencies. |
| 19284 | 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' |
| 19285 | ;; |
| 19286 | esac |
| 19287 | ;; |
| 19288 | lynxos*) |
| 19289 | # FIXME: insert proper C++ library support |
| 19290 | ld_shlibs_CXX=no |
| 19291 | ;; |
| 19292 | m88k*) |
| 19293 | # FIXME: insert proper C++ library support |
| 19294 | ld_shlibs_CXX=no |
| 19295 | ;; |
| 19296 | mvs*) |
| 19297 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19298 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19299 | # FIXME: insert proper C++ library support |
| 19300 | ld_shlibs_CXX=no |
| 19301 | ;; |
| 19302 | *) |
| 19303 | # FIXME: insert proper C++ library support |
| 19304 | ld_shlibs_CXX=no |
| 19305 | ;; |
| 19306 | esac |
| 19307 | ;; |
| 19308 | netbsd*) |
| 19309 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19310 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 19311 | wlarc= |
| 19312 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19313 | hardcode_direct_CXX=yes |
| 19314 | hardcode_shlibpath_var_CXX=no |
| 19315 | fi |
| 19316 | # Workaround some broken pre-1.5 toolchains |
| 19317 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 19318 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19319 | openbsd2*) |
| 19320 | # C++ shared libraries are fairly broken |
| 19321 | ld_shlibs_CXX=no |
| 19322 | ;; |
| 19323 | openbsd*) |
| 19324 | hardcode_direct_CXX=yes |
| 19325 | hardcode_shlibpath_var_CXX=no |
| 19326 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 19327 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19328 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19329 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 19330 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19331 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19332 | fi |
| 19333 | output_verbose_link_cmd='echo' |
| 19334 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19335 | osf3*) |
| 19336 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19337 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19338 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19339 | |
| 19340 | # KCC will only create a shared library if the output file |
| 19341 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19342 | # to its proper name (with version) after linking. |
| 19343 | 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' |
| 19344 | |
| 19345 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19346 | hardcode_libdir_separator_CXX=: |
| 19347 | |
| 19348 | # Archives containing C++ object files must be created using |
| 19349 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19350 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19351 | |
| 19352 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19353 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19354 | # Rational C++ 2.4.1 |
| 19355 | # FIXME: insert proper C++ library support |
| 19356 | ld_shlibs_CXX=no |
| 19357 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19358 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19359 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19360 | 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] | 19361 | |
| 19362 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19363 | hardcode_libdir_separator_CXX=: |
| 19364 | |
| 19365 | # Commands to make compiler produce verbose output that lists |
| 19366 | # what "hidden" libraries, object files and flags are used when |
| 19367 | # linking a shared library. |
| 19368 | # |
| 19369 | # There doesn't appear to be a way to prevent this compiler from |
| 19370 | # explicitly linking system object files so we need to strip them |
| 19371 | # from the output so that they don't get included in the library |
| 19372 | # dependencies. |
| 19373 | 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' |
| 19374 | ;; |
| 19375 | *) |
| 19376 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19377 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19378 | 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] | 19379 | |
| 19380 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19381 | hardcode_libdir_separator_CXX=: |
| 19382 | |
| 19383 | # Commands to make compiler produce verbose output that lists |
| 19384 | # what "hidden" libraries, object files and flags are used when |
| 19385 | # linking a shared library. |
| 19386 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19387 | |
| 19388 | else |
| 19389 | # FIXME: insert proper C++ library support |
| 19390 | ld_shlibs_CXX=no |
| 19391 | fi |
| 19392 | ;; |
| 19393 | esac |
| 19394 | ;; |
| 19395 | osf4* | osf5*) |
| 19396 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19397 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19398 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19399 | |
| 19400 | # KCC will only create a shared library if the output file |
| 19401 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19402 | # to its proper name (with version) after linking. |
| 19403 | 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' |
| 19404 | |
| 19405 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19406 | hardcode_libdir_separator_CXX=: |
| 19407 | |
| 19408 | # Archives containing C++ object files must be created using |
| 19409 | # the KAI C++ compiler. |
| 19410 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19411 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19412 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19413 | # Rational C++ 2.4.1 |
| 19414 | # FIXME: insert proper C++ library support |
| 19415 | ld_shlibs_CXX=no |
| 19416 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19417 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19418 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19419 | 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] | 19420 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19421 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19422 | $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] | 19423 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19424 | |
| 19425 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19426 | hardcode_libdir_separator_CXX=: |
| 19427 | |
| 19428 | # Commands to make compiler produce verbose output that lists |
| 19429 | # what "hidden" libraries, object files and flags are used when |
| 19430 | # linking a shared library. |
| 19431 | # |
| 19432 | # There doesn't appear to be a way to prevent this compiler from |
| 19433 | # explicitly linking system object files so we need to strip them |
| 19434 | # from the output so that they don't get included in the library |
| 19435 | # dependencies. |
| 19436 | 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' |
| 19437 | ;; |
| 19438 | *) |
| 19439 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19440 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19441 | 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] | 19442 | |
| 19443 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19444 | hardcode_libdir_separator_CXX=: |
| 19445 | |
| 19446 | # Commands to make compiler produce verbose output that lists |
| 19447 | # what "hidden" libraries, object files and flags are used when |
| 19448 | # linking a shared library. |
| 19449 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19450 | |
| 19451 | else |
| 19452 | # FIXME: insert proper C++ library support |
| 19453 | ld_shlibs_CXX=no |
| 19454 | fi |
| 19455 | ;; |
| 19456 | esac |
| 19457 | ;; |
| 19458 | psos*) |
| 19459 | # FIXME: insert proper C++ library support |
| 19460 | ld_shlibs_CXX=no |
| 19461 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19462 | sunos4*) |
| 19463 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19464 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19465 | # Sun C++ 4.x |
| 19466 | # FIXME: insert proper C++ library support |
| 19467 | ld_shlibs_CXX=no |
| 19468 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19469 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19470 | # Lucid |
| 19471 | # FIXME: insert proper C++ library support |
| 19472 | ld_shlibs_CXX=no |
| 19473 | ;; |
| 19474 | *) |
| 19475 | # FIXME: insert proper C++ library support |
| 19476 | ld_shlibs_CXX=no |
| 19477 | ;; |
| 19478 | esac |
| 19479 | ;; |
| 19480 | solaris*) |
| 19481 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19482 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19483 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19484 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19485 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19486 | 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] | 19487 | 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] | 19488 | $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] | 19489 | |
| 19490 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19491 | hardcode_shlibpath_var_CXX=no |
| 19492 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19493 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19494 | *) |
| 19495 | # The C++ compiler is used as linker so we must use $wl |
| 19496 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19497 | # linker. We must also pass each convience library through |
| 19498 | # to the system linker between allextract/defaultextract. |
| 19499 | # The C++ compiler will combine linker options so we |
| 19500 | # cannot just pass the convience library names through |
| 19501 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19502 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19503 | 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] | 19504 | ;; |
| 19505 | esac |
| 19506 | link_all_deplibs_CXX=yes |
| 19507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19508 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19509 | |
| 19510 | # Archives containing C++ object files must be created using |
| 19511 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19512 | # necessary to make sure instantiated templates are included |
| 19513 | # in the archive. |
| 19514 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19515 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19516 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19517 | # Green Hills C++ Compiler |
| 19518 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19519 | |
| 19520 | # The C++ compiler must be used to create the archive. |
| 19521 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19522 | ;; |
| 19523 | *) |
| 19524 | # GNU C++ compiler with Solaris linker |
| 19525 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19526 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19527 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19528 | 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] | 19529 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19530 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19531 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19532 | # Commands to make compiler produce verbose output that lists |
| 19533 | # what "hidden" libraries, object files and flags are used when |
| 19534 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19535 | 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] | 19536 | else |
| 19537 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19538 | # platform. |
| 19539 | 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] | 19540 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19541 | $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] | 19542 | |
| 19543 | # Commands to make compiler produce verbose output that lists |
| 19544 | # what "hidden" libraries, object files and flags are used when |
| 19545 | # linking a shared library. |
| 19546 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19547 | fi |
| 19548 | |
| 19549 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19550 | fi |
| 19551 | ;; |
| 19552 | esac |
| 19553 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19554 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19555 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19556 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19557 | hardcode_shlibpath_var_CXX=no |
| 19558 | runpath_var='LD_RUN_PATH' |
| 19559 | |
| 19560 | case $cc_basename in |
| 19561 | CC*) |
| 19562 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19563 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19564 | ;; |
| 19565 | *) |
| 19566 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19567 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19568 | ;; |
| 19569 | esac |
| 19570 | ;; |
| 19571 | sysv5* | sco3.2v5* | sco5v6*) |
| 19572 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19573 | # link with -lc, and that would cause any symbols used from libc to |
| 19574 | # always be unresolved, which means just about no library would |
| 19575 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19576 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19577 | # as -z defs. |
| 19578 | # For security reasons, it is highly recommended that you always |
| 19579 | # use absolute paths for naming shared libraries, and exclude the |
| 19580 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19581 | # requires that you compile everything twice, which is a pain. |
| 19582 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19583 | # non-empty value in the environment. Most likely only useful for |
| 19584 | # creating official distributions of packages. |
| 19585 | # This is a hack until libtool officially supports absolute path |
| 19586 | # names for shared libraries. |
| 19587 | no_undefined_flag_CXX='${wl}-z,text' |
| 19588 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19589 | archive_cmds_need_lc_CXX=no |
| 19590 | hardcode_shlibpath_var_CXX=no |
| 19591 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19592 | hardcode_libdir_separator_CXX=':' |
| 19593 | link_all_deplibs_CXX=yes |
| 19594 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19595 | runpath_var='LD_RUN_PATH' |
| 19596 | |
| 19597 | case $cc_basename in |
| 19598 | CC*) |
| 19599 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19600 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19601 | ;; |
| 19602 | *) |
| 19603 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19604 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19605 | ;; |
| 19606 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19607 | ;; |
| 19608 | tandem*) |
| 19609 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19610 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19611 | # NonStop-UX NCC 3.20 |
| 19612 | # FIXME: insert proper C++ library support |
| 19613 | ld_shlibs_CXX=no |
| 19614 | ;; |
| 19615 | *) |
| 19616 | # FIXME: insert proper C++ library support |
| 19617 | ld_shlibs_CXX=no |
| 19618 | ;; |
| 19619 | esac |
| 19620 | ;; |
| 19621 | vxworks*) |
| 19622 | # FIXME: insert proper C++ library support |
| 19623 | ld_shlibs_CXX=no |
| 19624 | ;; |
| 19625 | *) |
| 19626 | # FIXME: insert proper C++ library support |
| 19627 | ld_shlibs_CXX=no |
| 19628 | ;; |
| 19629 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19630 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19631 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19632 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19633 | |
| 19634 | GCC_CXX="$GXX" |
| 19635 | LD_CXX="$LD" |
| 19636 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19637 | |
| 19638 | cat > conftest.$ac_ext <<EOF |
| 19639 | class Foo |
| 19640 | { |
| 19641 | public: |
| 19642 | Foo (void) { a = 0; } |
| 19643 | private: |
| 19644 | int a; |
| 19645 | }; |
| 19646 | EOF |
| 19647 | |
| 19648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19649 | (eval $ac_compile) 2>&5 |
| 19650 | ac_status=$? |
| 19651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19652 | (exit $ac_status); }; then |
| 19653 | # Parse the compiler output and extract the necessary |
| 19654 | # objects, libraries and library flags. |
| 19655 | |
| 19656 | # Sentinel used to keep track of whether or not we are before |
| 19657 | # the conftest object file. |
| 19658 | pre_test_object_deps_done=no |
| 19659 | |
| 19660 | # The `*' in the case matches for architectures that use `case' in |
| 19661 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19662 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19663 | 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] | 19664 | |
| 19665 | for p in `eval $output_verbose_link_cmd`; do |
| 19666 | case $p in |
| 19667 | |
| 19668 | -L* | -R* | -l*) |
| 19669 | # Some compilers place space between "-{L,R}" and the path. |
| 19670 | # Remove the space. |
| 19671 | if test $p = "-L" \ |
| 19672 | || test $p = "-R"; then |
| 19673 | prev=$p |
| 19674 | continue |
| 19675 | else |
| 19676 | prev= |
| 19677 | fi |
| 19678 | |
| 19679 | if test "$pre_test_object_deps_done" = no; then |
| 19680 | case $p in |
| 19681 | -L* | -R*) |
| 19682 | # Internal compiler library paths should come after those |
| 19683 | # provided the user. The postdeps already come after the |
| 19684 | # user supplied libs so there is no need to process them. |
| 19685 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19686 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19687 | else |
| 19688 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19689 | fi |
| 19690 | ;; |
| 19691 | # The "-l" case would never come before the object being |
| 19692 | # linked, so don't bother handling this case. |
| 19693 | esac |
| 19694 | else |
| 19695 | if test -z "$postdeps_CXX"; then |
| 19696 | postdeps_CXX="${prev}${p}" |
| 19697 | else |
| 19698 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19699 | fi |
| 19700 | fi |
| 19701 | ;; |
| 19702 | |
| 19703 | *.$objext) |
| 19704 | # This assumes that the test object file only shows up |
| 19705 | # once in the compiler output. |
| 19706 | if test "$p" = "conftest.$objext"; then |
| 19707 | pre_test_object_deps_done=yes |
| 19708 | continue |
| 19709 | fi |
| 19710 | |
| 19711 | if test "$pre_test_object_deps_done" = no; then |
| 19712 | if test -z "$predep_objects_CXX"; then |
| 19713 | predep_objects_CXX="$p" |
| 19714 | else |
| 19715 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19716 | fi |
| 19717 | else |
| 19718 | if test -z "$postdep_objects_CXX"; then |
| 19719 | postdep_objects_CXX="$p" |
| 19720 | else |
| 19721 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19722 | fi |
| 19723 | fi |
| 19724 | ;; |
| 19725 | |
| 19726 | *) ;; # Ignore the rest. |
| 19727 | |
| 19728 | esac |
| 19729 | done |
| 19730 | |
| 19731 | # Clean up. |
| 19732 | rm -f a.out a.exe |
| 19733 | else |
| 19734 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19735 | fi |
| 19736 | |
| 19737 | $rm -f confest.$objext |
| 19738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19739 | # PORTME: override above test on systems where it is broken |
| 19740 | case $host_os in |
| 19741 | interix3*) |
| 19742 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19743 | # hack all around it, let's just trust "g++" to DTRT. |
| 19744 | predep_objects_CXX= |
| 19745 | postdep_objects_CXX= |
| 19746 | postdeps_CXX= |
| 19747 | ;; |
| 19748 | |
| 19749 | solaris*) |
| 19750 | case $cc_basename in |
| 19751 | CC*) |
| 19752 | # Adding this requires a known-good setup of shared libraries for |
| 19753 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19754 | # archive will be linked into the output, leading to subtle bugs. |
| 19755 | postdeps_CXX='-lCstd -lCrun' |
| 19756 | ;; |
| 19757 | esac |
| 19758 | ;; |
| 19759 | esac |
| 19760 | |
| 19761 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19762 | case " $postdeps_CXX " in |
| 19763 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19764 | esac |
| 19765 | |
| 19766 | lt_prog_compiler_wl_CXX= |
| 19767 | lt_prog_compiler_pic_CXX= |
| 19768 | lt_prog_compiler_static_CXX= |
| 19769 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19770 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19771 | 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] | 19772 | |
| 19773 | # C++ specific cases for pic, static, wl, etc. |
| 19774 | if test "$GXX" = yes; then |
| 19775 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19776 | lt_prog_compiler_static_CXX='-static' |
| 19777 | |
| 19778 | case $host_os in |
| 19779 | aix*) |
| 19780 | # All AIX code is PIC. |
| 19781 | if test "$host_cpu" = ia64; then |
| 19782 | # AIX 5 now supports IA64 processor |
| 19783 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19784 | fi |
| 19785 | ;; |
| 19786 | amigaos*) |
| 19787 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19788 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19789 | # like `-m68040'. |
| 19790 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19791 | ;; |
| 19792 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19793 | # PIC is the default for these OSes. |
| 19794 | ;; |
| 19795 | mingw* | os2* | pw32*) |
| 19796 | # This hack is so that the source file can tell whether it is being |
| 19797 | # built for inclusion in a dll (and should export symbols for example). |
| 19798 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19799 | ;; |
| 19800 | darwin* | rhapsody*) |
| 19801 | # PIC is the default on this platform |
| 19802 | # Common symbols not allowed in MH_DYLIB files |
| 19803 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19804 | ;; |
| 19805 | *djgpp*) |
| 19806 | # DJGPP does not support shared libraries at all |
| 19807 | lt_prog_compiler_pic_CXX= |
| 19808 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19809 | interix3*) |
| 19810 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19811 | # Instead, we relocate shared libraries at runtime. |
| 19812 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19813 | sysv4*MP*) |
| 19814 | if test -d /usr/nec; then |
| 19815 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19816 | fi |
| 19817 | ;; |
| 19818 | hpux*) |
| 19819 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19820 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19821 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19822 | hppa*64*|ia64*) |
| 19823 | ;; |
| 19824 | *) |
| 19825 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19826 | ;; |
| 19827 | esac |
| 19828 | ;; |
| 19829 | *) |
| 19830 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19831 | ;; |
| 19832 | esac |
| 19833 | else |
| 19834 | case $host_os in |
| 19835 | aix4* | aix5*) |
| 19836 | # All AIX code is PIC. |
| 19837 | if test "$host_cpu" = ia64; then |
| 19838 | # AIX 5 now supports IA64 processor |
| 19839 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19840 | else |
| 19841 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19842 | fi |
| 19843 | ;; |
| 19844 | chorus*) |
| 19845 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19846 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19847 | # Green Hills C++ Compiler |
| 19848 | # _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" |
| 19849 | ;; |
| 19850 | esac |
| 19851 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19852 | darwin*) |
| 19853 | # PIC is the default on this platform |
| 19854 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19855 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19856 | xlc*) |
| 19857 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19858 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19859 | ;; |
| 19860 | esac |
| 19861 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19862 | dgux*) |
| 19863 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19864 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19865 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19866 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19867 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19868 | # Green Hills C++ Compiler |
| 19869 | lt_prog_compiler_pic_CXX='-pic' |
| 19870 | ;; |
| 19871 | *) |
| 19872 | ;; |
| 19873 | esac |
| 19874 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19875 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19876 | # FreeBSD uses GNU C++ |
| 19877 | ;; |
| 19878 | hpux9* | hpux10* | hpux11*) |
| 19879 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19880 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19881 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19882 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19883 | if test "$host_cpu" != ia64; then |
| 19884 | lt_prog_compiler_pic_CXX='+Z' |
| 19885 | fi |
| 19886 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19887 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19888 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19889 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19890 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19891 | hppa*64*|ia64*) |
| 19892 | # +Z the default |
| 19893 | ;; |
| 19894 | *) |
| 19895 | lt_prog_compiler_pic_CXX='+Z' |
| 19896 | ;; |
| 19897 | esac |
| 19898 | ;; |
| 19899 | *) |
| 19900 | ;; |
| 19901 | esac |
| 19902 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19903 | interix*) |
| 19904 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19905 | # Anyone wants to do a port? |
| 19906 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19907 | irix5* | irix6* | nonstopux*) |
| 19908 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19909 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19910 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19911 | lt_prog_compiler_static_CXX='-non_shared' |
| 19912 | # CC pic flag -KPIC is the default. |
| 19913 | ;; |
| 19914 | *) |
| 19915 | ;; |
| 19916 | esac |
| 19917 | ;; |
| 19918 | linux*) |
| 19919 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19920 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19921 | # KAI C++ Compiler |
| 19922 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19923 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19924 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19925 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19926 | # Intel C++ |
| 19927 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19928 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19929 | lt_prog_compiler_static_CXX='-static' |
| 19930 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19931 | pgCC*) |
| 19932 | # Portland Group C++ compiler. |
| 19933 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19934 | lt_prog_compiler_pic_CXX='-fpic' |
| 19935 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19936 | ;; |
| 19937 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19938 | # Compaq C++ |
| 19939 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19940 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19941 | lt_prog_compiler_pic_CXX= |
| 19942 | lt_prog_compiler_static_CXX='-non_shared' |
| 19943 | ;; |
| 19944 | *) |
| 19945 | ;; |
| 19946 | esac |
| 19947 | ;; |
| 19948 | lynxos*) |
| 19949 | ;; |
| 19950 | m88k*) |
| 19951 | ;; |
| 19952 | mvs*) |
| 19953 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19954 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19955 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19956 | ;; |
| 19957 | *) |
| 19958 | ;; |
| 19959 | esac |
| 19960 | ;; |
| 19961 | netbsd*) |
| 19962 | ;; |
| 19963 | osf3* | osf4* | osf5*) |
| 19964 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19965 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19966 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19967 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19968 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19969 | # Rational C++ 2.4.1 |
| 19970 | lt_prog_compiler_pic_CXX='-pic' |
| 19971 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19972 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19973 | # Digital/Compaq C++ |
| 19974 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19975 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19976 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19977 | lt_prog_compiler_pic_CXX= |
| 19978 | lt_prog_compiler_static_CXX='-non_shared' |
| 19979 | ;; |
| 19980 | *) |
| 19981 | ;; |
| 19982 | esac |
| 19983 | ;; |
| 19984 | psos*) |
| 19985 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19986 | solaris*) |
| 19987 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19988 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19989 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19990 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19991 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19992 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19993 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19994 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19995 | # Green Hills C++ Compiler |
| 19996 | lt_prog_compiler_pic_CXX='-PIC' |
| 19997 | ;; |
| 19998 | *) |
| 19999 | ;; |
| 20000 | esac |
| 20001 | ;; |
| 20002 | sunos4*) |
| 20003 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20004 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20005 | # Sun C++ 4.x |
| 20006 | lt_prog_compiler_pic_CXX='-pic' |
| 20007 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20008 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20009 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20010 | # Lucid |
| 20011 | lt_prog_compiler_pic_CXX='-pic' |
| 20012 | ;; |
| 20013 | *) |
| 20014 | ;; |
| 20015 | esac |
| 20016 | ;; |
| 20017 | tandem*) |
| 20018 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20019 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20020 | # NonStop-UX NCC 3.20 |
| 20021 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20022 | ;; |
| 20023 | *) |
| 20024 | ;; |
| 20025 | esac |
| 20026 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20027 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20028 | case $cc_basename in |
| 20029 | CC*) |
| 20030 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20031 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20032 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20033 | ;; |
| 20034 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20035 | ;; |
| 20036 | vxworks*) |
| 20037 | ;; |
| 20038 | *) |
| 20039 | lt_prog_compiler_can_build_shared_CXX=no |
| 20040 | ;; |
| 20041 | esac |
| 20042 | fi |
| 20043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20044 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 20045 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20046 | |
| 20047 | # |
| 20048 | # Check to make sure the PIC flag actually works. |
| 20049 | # |
| 20050 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20052 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 20053 | 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] | 20054 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 20055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20056 | else |
| 20057 | lt_prog_compiler_pic_works_CXX=no |
| 20058 | ac_outfile=conftest.$ac_objext |
| 20059 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20060 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 20061 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20062 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20063 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20064 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20065 | # The option is referenced via a variable to avoid confusing sed. |
| 20066 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20067 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20068 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20069 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20070 | (eval echo "\"\$as_me:20070: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20071 | (eval "$lt_compile" 2>conftest.err) |
| 20072 | ac_status=$? |
| 20073 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20074 | echo "$as_me:20074: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20075 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 20076 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20077 | # So say no if there are warnings other than the usual output. |
| 20078 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 20079 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20080 | 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] | 20081 | lt_prog_compiler_pic_works_CXX=yes |
| 20082 | fi |
| 20083 | fi |
| 20084 | $rm conftest* |
| 20085 | |
| 20086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20087 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 20088 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20089 | |
| 20090 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 20091 | case $lt_prog_compiler_pic_CXX in |
| 20092 | "" | " "*) ;; |
| 20093 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 20094 | esac |
| 20095 | else |
| 20096 | lt_prog_compiler_pic_CXX= |
| 20097 | lt_prog_compiler_can_build_shared_CXX=no |
| 20098 | fi |
| 20099 | |
| 20100 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20101 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20102 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 20103 | *djgpp*) |
| 20104 | lt_prog_compiler_pic_CXX= |
| 20105 | ;; |
| 20106 | *) |
| 20107 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 20108 | ;; |
| 20109 | esac |
| 20110 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20111 | # |
| 20112 | # Check to make sure the static flag actually works. |
| 20113 | # |
| 20114 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 20115 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 20116 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 20117 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 20118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20119 | else |
| 20120 | lt_prog_compiler_static_works_CXX=no |
| 20121 | save_LDFLAGS="$LDFLAGS" |
| 20122 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 20123 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 20124 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 20125 | # The linker can only warn and ignore the option if not recognized |
| 20126 | # So say no if there are warnings |
| 20127 | if test -s conftest.err; then |
| 20128 | # Append any errors to the config.log. |
| 20129 | cat conftest.err 1>&5 |
| 20130 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 20131 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20132 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 20133 | lt_prog_compiler_static_works_CXX=yes |
| 20134 | fi |
| 20135 | else |
| 20136 | lt_prog_compiler_static_works_CXX=yes |
| 20137 | fi |
| 20138 | fi |
| 20139 | $rm conftest* |
| 20140 | LDFLAGS="$save_LDFLAGS" |
| 20141 | |
| 20142 | fi |
| 20143 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 20144 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 20145 | |
| 20146 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 20147 | : |
| 20148 | else |
| 20149 | lt_prog_compiler_static_CXX= |
| 20150 | fi |
| 20151 | |
| 20152 | |
| 20153 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 20154 | 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] | 20155 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 20156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20157 | else |
| 20158 | lt_cv_prog_compiler_c_o_CXX=no |
| 20159 | $rm -r conftest 2>/dev/null |
| 20160 | mkdir conftest |
| 20161 | cd conftest |
| 20162 | mkdir out |
| 20163 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20164 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20165 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 20166 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20167 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20168 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20169 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20170 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20171 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20172 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20173 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20174 | (eval echo "\"\$as_me:20174: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20175 | (eval "$lt_compile" 2>out/conftest.err) |
| 20176 | ac_status=$? |
| 20177 | cat out/conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20178 | echo "$as_me:20178: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20179 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 20180 | then |
| 20181 | # The compiler can only warn and ignore the option if not recognized |
| 20182 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20183 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 20184 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 20185 | 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] | 20186 | lt_cv_prog_compiler_c_o_CXX=yes |
| 20187 | fi |
| 20188 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20189 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20190 | $rm conftest* |
| 20191 | # SGI C++ compiler will create directory out/ii_files/ for |
| 20192 | # template instantiation |
| 20193 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 20194 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20195 | cd .. |
| 20196 | rmdir conftest |
| 20197 | $rm conftest* |
| 20198 | |
| 20199 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20200 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 20201 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20202 | |
| 20203 | |
| 20204 | hard_links="nottested" |
| 20205 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 20206 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20207 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 20208 | 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] | 20209 | hard_links=yes |
| 20210 | $rm conftest* |
| 20211 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 20212 | touch conftest.a |
| 20213 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 20214 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20215 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 20216 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20217 | if test "$hard_links" = no; then |
| 20218 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 20219 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 20220 | need_locks=warn |
| 20221 | fi |
| 20222 | else |
| 20223 | need_locks=no |
| 20224 | fi |
| 20225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20226 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 20227 | 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] | 20228 | |
| 20229 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20230 | case $host_os in |
| 20231 | aix4* | aix5*) |
| 20232 | # If we're using GNU nm, then we don't want the "-C" option. |
| 20233 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 20234 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 20235 | 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' |
| 20236 | else |
| 20237 | 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' |
| 20238 | fi |
| 20239 | ;; |
| 20240 | pw32*) |
| 20241 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 20242 | ;; |
| 20243 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20244 | 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] | 20245 | ;; |
| 20246 | *) |
| 20247 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20248 | ;; |
| 20249 | esac |
| 20250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20251 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 20252 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20253 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 20254 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20255 | # |
| 20256 | # Do we need to explicitly link libc? |
| 20257 | # |
| 20258 | case "x$archive_cmds_need_lc_CXX" in |
| 20259 | x|xyes) |
| 20260 | # Assume -lc should be added |
| 20261 | archive_cmds_need_lc_CXX=yes |
| 20262 | |
| 20263 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 20264 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20265 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20266 | # FIXME: we may have to deal with multi-command sequences. |
| 20267 | ;; |
| 20268 | '$CC '*) |
| 20269 | # Test whether the compiler implicitly links with -lc since on some |
| 20270 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 20271 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20272 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 20273 | 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] | 20274 | $rm conftest* |
| 20275 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20276 | |
| 20277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20278 | (eval $ac_compile) 2>&5 |
| 20279 | ac_status=$? |
| 20280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20281 | (exit $ac_status); } 2>conftest.err; then |
| 20282 | soname=conftest |
| 20283 | lib=conftest |
| 20284 | libobjs=conftest.$ac_objext |
| 20285 | deplibs= |
| 20286 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20287 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20288 | compiler_flags=-v |
| 20289 | linker_flags=-v |
| 20290 | verstring= |
| 20291 | output_objdir=. |
| 20292 | libname=conftest |
| 20293 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 20294 | allow_undefined_flag_CXX= |
| 20295 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20296 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20297 | ac_status=$? |
| 20298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20299 | (exit $ac_status); } |
| 20300 | then |
| 20301 | archive_cmds_need_lc_CXX=no |
| 20302 | else |
| 20303 | archive_cmds_need_lc_CXX=yes |
| 20304 | fi |
| 20305 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 20306 | else |
| 20307 | cat conftest.err 1>&5 |
| 20308 | fi |
| 20309 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20310 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 20311 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20312 | ;; |
| 20313 | esac |
| 20314 | fi |
| 20315 | ;; |
| 20316 | esac |
| 20317 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20318 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20319 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20320 | library_names_spec= |
| 20321 | libname_spec='lib$name' |
| 20322 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20323 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20324 | postinstall_cmds= |
| 20325 | postuninstall_cmds= |
| 20326 | finish_cmds= |
| 20327 | finish_eval= |
| 20328 | shlibpath_var= |
| 20329 | shlibpath_overrides_runpath=unknown |
| 20330 | version_type=none |
| 20331 | dynamic_linker="$host_os ld.so" |
| 20332 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20333 | if test "$GCC" = yes; then |
| 20334 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20335 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20336 | # if the path contains ";" then we assume it to be the separator |
| 20337 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20338 | # assumed that no part of a normal pathname contains ";" but that should |
| 20339 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20340 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20341 | else |
| 20342 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20343 | fi |
| 20344 | else |
| 20345 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20346 | fi |
| 20347 | need_lib_prefix=unknown |
| 20348 | hardcode_into_libs=no |
| 20349 | |
| 20350 | # when you set need_version to no, make sure it does not cause -set_version |
| 20351 | # flags to be left without arguments |
| 20352 | need_version=unknown |
| 20353 | |
| 20354 | case $host_os in |
| 20355 | aix3*) |
| 20356 | version_type=linux |
| 20357 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20358 | shlibpath_var=LIBPATH |
| 20359 | |
| 20360 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20361 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20362 | ;; |
| 20363 | |
| 20364 | aix4* | aix5*) |
| 20365 | version_type=linux |
| 20366 | need_lib_prefix=no |
| 20367 | need_version=no |
| 20368 | hardcode_into_libs=yes |
| 20369 | if test "$host_cpu" = ia64; then |
| 20370 | # AIX 5 supports IA64 |
| 20371 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20372 | shlibpath_var=LD_LIBRARY_PATH |
| 20373 | else |
| 20374 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20375 | # for dependence libraries. The import file would start with |
| 20376 | # the line `#! .'. This would cause the generated library to |
| 20377 | # depend on `.', always an invalid library. This was fixed in |
| 20378 | # development snapshots of GCC prior to 3.0. |
| 20379 | case $host_os in |
| 20380 | aix4 | aix4.[01] | aix4.[01].*) |
| 20381 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20382 | echo ' yes ' |
| 20383 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20384 | : |
| 20385 | else |
| 20386 | can_build_shared=no |
| 20387 | fi |
| 20388 | ;; |
| 20389 | esac |
| 20390 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20391 | # soname into executable. Probably we can add versioning support to |
| 20392 | # collect2, so additional links can be useful in future. |
| 20393 | if test "$aix_use_runtimelinking" = yes; then |
| 20394 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20395 | # instead of lib<name>.a to let people know that these are not |
| 20396 | # typical AIX shared libraries. |
| 20397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20398 | else |
| 20399 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20400 | # and later when we are not doing run time linking. |
| 20401 | library_names_spec='${libname}${release}.a $libname.a' |
| 20402 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20403 | fi |
| 20404 | shlibpath_var=LIBPATH |
| 20405 | fi |
| 20406 | ;; |
| 20407 | |
| 20408 | amigaos*) |
| 20409 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20410 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20411 | 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] | 20412 | ;; |
| 20413 | |
| 20414 | beos*) |
| 20415 | library_names_spec='${libname}${shared_ext}' |
| 20416 | dynamic_linker="$host_os ld.so" |
| 20417 | shlibpath_var=LIBRARY_PATH |
| 20418 | ;; |
| 20419 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20420 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20421 | version_type=linux |
| 20422 | need_version=no |
| 20423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20424 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20425 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20426 | shlibpath_var=LD_LIBRARY_PATH |
| 20427 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20428 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20429 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20430 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20431 | # libtool to hard-code these into programs |
| 20432 | ;; |
| 20433 | |
| 20434 | cygwin* | mingw* | pw32*) |
| 20435 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20436 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20437 | need_version=no |
| 20438 | need_lib_prefix=no |
| 20439 | |
| 20440 | case $GCC,$host_os in |
| 20441 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20442 | library_names_spec='$libname.dll.a' |
| 20443 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20444 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20445 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20446 | dldir=$destdir/`dirname \$dlpath`~ |
| 20447 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20448 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20449 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20450 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20451 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20452 | $rm \$dlpath' |
| 20453 | shlibpath_overrides_runpath=yes |
| 20454 | |
| 20455 | case $host_os in |
| 20456 | cygwin*) |
| 20457 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20458 | 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] | 20459 | 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] | 20460 | ;; |
| 20461 | mingw*) |
| 20462 | # MinGW DLLs use traditional 'lib' prefix |
| 20463 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20464 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20465 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20466 | # It is most probably a Windows format PATH printed by |
| 20467 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20468 | # path with ; separators, and with drive letters. We can handle the |
| 20469 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20470 | # especially as we might pass files found there to a mingw objdump, |
| 20471 | # which wouldn't understand a cygwinified path. Ahh. |
| 20472 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20473 | else |
| 20474 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20475 | fi |
| 20476 | ;; |
| 20477 | pw32*) |
| 20478 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20479 | 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] | 20480 | ;; |
| 20481 | esac |
| 20482 | ;; |
| 20483 | |
| 20484 | *) |
| 20485 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20486 | ;; |
| 20487 | esac |
| 20488 | dynamic_linker='Win32 ld.exe' |
| 20489 | # FIXME: first we should search . and the directory the executable is in |
| 20490 | shlibpath_var=PATH |
| 20491 | ;; |
| 20492 | |
| 20493 | darwin* | rhapsody*) |
| 20494 | dynamic_linker="$host_os dyld" |
| 20495 | version_type=darwin |
| 20496 | need_lib_prefix=no |
| 20497 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20498 | 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] | 20499 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20500 | shlibpath_overrides_runpath=yes |
| 20501 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20502 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20503 | # 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] | 20504 | if test "$GCC" = yes; then |
| 20505 | 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"` |
| 20506 | else |
| 20507 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20508 | fi |
| 20509 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20510 | ;; |
| 20511 | |
| 20512 | dgux*) |
| 20513 | version_type=linux |
| 20514 | need_lib_prefix=no |
| 20515 | need_version=no |
| 20516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20517 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20518 | shlibpath_var=LD_LIBRARY_PATH |
| 20519 | ;; |
| 20520 | |
| 20521 | freebsd1*) |
| 20522 | dynamic_linker=no |
| 20523 | ;; |
| 20524 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20525 | kfreebsd*-gnu) |
| 20526 | version_type=linux |
| 20527 | need_lib_prefix=no |
| 20528 | need_version=no |
| 20529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20530 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20531 | shlibpath_var=LD_LIBRARY_PATH |
| 20532 | shlibpath_overrides_runpath=no |
| 20533 | hardcode_into_libs=yes |
| 20534 | dynamic_linker='GNU ld.so' |
| 20535 | ;; |
| 20536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20537 | freebsd* | dragonfly*) |
| 20538 | # DragonFly does not have aout. When/if they implement a new |
| 20539 | # versioning mechanism, adjust this. |
| 20540 | if test -x /usr/bin/objformat; then |
| 20541 | objformat=`/usr/bin/objformat` |
| 20542 | else |
| 20543 | case $host_os in |
| 20544 | freebsd[123]*) objformat=aout ;; |
| 20545 | *) objformat=elf ;; |
| 20546 | esac |
| 20547 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20548 | version_type=freebsd-$objformat |
| 20549 | case $version_type in |
| 20550 | freebsd-elf*) |
| 20551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20552 | need_version=no |
| 20553 | need_lib_prefix=no |
| 20554 | ;; |
| 20555 | freebsd-*) |
| 20556 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20557 | need_version=yes |
| 20558 | ;; |
| 20559 | esac |
| 20560 | shlibpath_var=LD_LIBRARY_PATH |
| 20561 | case $host_os in |
| 20562 | freebsd2*) |
| 20563 | shlibpath_overrides_runpath=yes |
| 20564 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20565 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20566 | shlibpath_overrides_runpath=yes |
| 20567 | hardcode_into_libs=yes |
| 20568 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20569 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20570 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20571 | shlibpath_overrides_runpath=no |
| 20572 | hardcode_into_libs=yes |
| 20573 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20574 | freebsd*) # from 4.6 on |
| 20575 | shlibpath_overrides_runpath=yes |
| 20576 | hardcode_into_libs=yes |
| 20577 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20578 | esac |
| 20579 | ;; |
| 20580 | |
| 20581 | gnu*) |
| 20582 | version_type=linux |
| 20583 | need_lib_prefix=no |
| 20584 | need_version=no |
| 20585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20586 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20587 | shlibpath_var=LD_LIBRARY_PATH |
| 20588 | hardcode_into_libs=yes |
| 20589 | ;; |
| 20590 | |
| 20591 | hpux9* | hpux10* | hpux11*) |
| 20592 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20593 | # link against other versions. |
| 20594 | version_type=sunos |
| 20595 | need_lib_prefix=no |
| 20596 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20597 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20598 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20599 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20600 | hardcode_into_libs=yes |
| 20601 | dynamic_linker="$host_os dld.so" |
| 20602 | shlibpath_var=LD_LIBRARY_PATH |
| 20603 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20605 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20606 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20607 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20608 | else |
| 20609 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20610 | fi |
| 20611 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20612 | ;; |
| 20613 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20614 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20615 | hardcode_into_libs=yes |
| 20616 | dynamic_linker="$host_os dld.sl" |
| 20617 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20618 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20620 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20621 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20622 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20623 | ;; |
| 20624 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20625 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20626 | dynamic_linker="$host_os dld.sl" |
| 20627 | shlibpath_var=SHLIB_PATH |
| 20628 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20630 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20631 | ;; |
| 20632 | esac |
| 20633 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20634 | postinstall_cmds='chmod 555 $lib' |
| 20635 | ;; |
| 20636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20637 | interix3*) |
| 20638 | version_type=linux |
| 20639 | need_lib_prefix=no |
| 20640 | need_version=no |
| 20641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20642 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20643 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20644 | shlibpath_var=LD_LIBRARY_PATH |
| 20645 | shlibpath_overrides_runpath=no |
| 20646 | hardcode_into_libs=yes |
| 20647 | ;; |
| 20648 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20649 | irix5* | irix6* | nonstopux*) |
| 20650 | case $host_os in |
| 20651 | nonstopux*) version_type=nonstopux ;; |
| 20652 | *) |
| 20653 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20654 | version_type=linux |
| 20655 | else |
| 20656 | version_type=irix |
| 20657 | fi ;; |
| 20658 | esac |
| 20659 | need_lib_prefix=no |
| 20660 | need_version=no |
| 20661 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20662 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20663 | case $host_os in |
| 20664 | irix5* | nonstopux*) |
| 20665 | libsuff= shlibsuff= |
| 20666 | ;; |
| 20667 | *) |
| 20668 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20669 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20670 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20671 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20672 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20673 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20674 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20675 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20676 | esac |
| 20677 | ;; |
| 20678 | esac |
| 20679 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20680 | shlibpath_overrides_runpath=no |
| 20681 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20682 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20683 | hardcode_into_libs=yes |
| 20684 | ;; |
| 20685 | |
| 20686 | # No shared lib support for Linux oldld, aout, or coff. |
| 20687 | linux*oldld* | linux*aout* | linux*coff*) |
| 20688 | dynamic_linker=no |
| 20689 | ;; |
| 20690 | |
| 20691 | # This must be Linux ELF. |
| 20692 | linux*) |
| 20693 | version_type=linux |
| 20694 | need_lib_prefix=no |
| 20695 | need_version=no |
| 20696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20697 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20698 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20699 | shlibpath_var=LD_LIBRARY_PATH |
| 20700 | shlibpath_overrides_runpath=no |
| 20701 | # This implies no fast_install, which is unacceptable. |
| 20702 | # Some rework will be needed to allow for fast_install |
| 20703 | # before this can be enabled. |
| 20704 | hardcode_into_libs=yes |
| 20705 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20706 | # Append ld.so.conf contents to the search path |
| 20707 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20708 | 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] | 20709 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20710 | fi |
| 20711 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20712 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20713 | # powerpc, because MkLinux only supported shared libraries with the |
| 20714 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20715 | # most powerpc-linux boxes support dynamic linking these days and |
| 20716 | # people can always --disable-shared, the test was removed, and we |
| 20717 | # assume the GNU/Linux dynamic linker is in use. |
| 20718 | dynamic_linker='GNU/Linux ld.so' |
| 20719 | ;; |
| 20720 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20721 | knetbsd*-gnu) |
| 20722 | version_type=linux |
| 20723 | need_lib_prefix=no |
| 20724 | need_version=no |
| 20725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20727 | shlibpath_var=LD_LIBRARY_PATH |
| 20728 | shlibpath_overrides_runpath=no |
| 20729 | hardcode_into_libs=yes |
| 20730 | dynamic_linker='GNU ld.so' |
| 20731 | ;; |
| 20732 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20733 | netbsd*) |
| 20734 | version_type=sunos |
| 20735 | need_lib_prefix=no |
| 20736 | need_version=no |
| 20737 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20739 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20740 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20741 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20742 | 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] | 20743 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20744 | dynamic_linker='NetBSD ld.elf_so' |
| 20745 | fi |
| 20746 | shlibpath_var=LD_LIBRARY_PATH |
| 20747 | shlibpath_overrides_runpath=yes |
| 20748 | hardcode_into_libs=yes |
| 20749 | ;; |
| 20750 | |
| 20751 | newsos6) |
| 20752 | version_type=linux |
| 20753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20754 | shlibpath_var=LD_LIBRARY_PATH |
| 20755 | shlibpath_overrides_runpath=yes |
| 20756 | ;; |
| 20757 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20758 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20759 | version_type=linux |
| 20760 | need_lib_prefix=no |
| 20761 | need_version=no |
| 20762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20763 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20764 | shlibpath_var=LD_LIBRARY_PATH |
| 20765 | shlibpath_overrides_runpath=yes |
| 20766 | ;; |
| 20767 | |
| 20768 | openbsd*) |
| 20769 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20770 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20771 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20772 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20773 | case $host_os in |
| 20774 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20775 | *) need_version=no ;; |
| 20776 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20778 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20779 | shlibpath_var=LD_LIBRARY_PATH |
| 20780 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20781 | case $host_os in |
| 20782 | openbsd2.[89] | openbsd2.[89].*) |
| 20783 | shlibpath_overrides_runpath=no |
| 20784 | ;; |
| 20785 | *) |
| 20786 | shlibpath_overrides_runpath=yes |
| 20787 | ;; |
| 20788 | esac |
| 20789 | else |
| 20790 | shlibpath_overrides_runpath=yes |
| 20791 | fi |
| 20792 | ;; |
| 20793 | |
| 20794 | os2*) |
| 20795 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20796 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20797 | need_lib_prefix=no |
| 20798 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20799 | dynamic_linker='OS/2 ld.exe' |
| 20800 | shlibpath_var=LIBPATH |
| 20801 | ;; |
| 20802 | |
| 20803 | osf3* | osf4* | osf5*) |
| 20804 | version_type=osf |
| 20805 | need_lib_prefix=no |
| 20806 | need_version=no |
| 20807 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20809 | shlibpath_var=LD_LIBRARY_PATH |
| 20810 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20811 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20812 | ;; |
| 20813 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20814 | solaris*) |
| 20815 | version_type=linux |
| 20816 | need_lib_prefix=no |
| 20817 | need_version=no |
| 20818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20819 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20820 | shlibpath_var=LD_LIBRARY_PATH |
| 20821 | shlibpath_overrides_runpath=yes |
| 20822 | hardcode_into_libs=yes |
| 20823 | # ldd complains unless libraries are executable |
| 20824 | postinstall_cmds='chmod +x $lib' |
| 20825 | ;; |
| 20826 | |
| 20827 | sunos4*) |
| 20828 | version_type=sunos |
| 20829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20830 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20831 | shlibpath_var=LD_LIBRARY_PATH |
| 20832 | shlibpath_overrides_runpath=yes |
| 20833 | if test "$with_gnu_ld" = yes; then |
| 20834 | need_lib_prefix=no |
| 20835 | fi |
| 20836 | need_version=yes |
| 20837 | ;; |
| 20838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20839 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20840 | version_type=linux |
| 20841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20842 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20843 | shlibpath_var=LD_LIBRARY_PATH |
| 20844 | case $host_vendor in |
| 20845 | sni) |
| 20846 | shlibpath_overrides_runpath=no |
| 20847 | need_lib_prefix=no |
| 20848 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20849 | runpath_var=LD_RUN_PATH |
| 20850 | ;; |
| 20851 | siemens) |
| 20852 | need_lib_prefix=no |
| 20853 | ;; |
| 20854 | motorola) |
| 20855 | need_lib_prefix=no |
| 20856 | need_version=no |
| 20857 | shlibpath_overrides_runpath=no |
| 20858 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20859 | ;; |
| 20860 | esac |
| 20861 | ;; |
| 20862 | |
| 20863 | sysv4*MP*) |
| 20864 | if test -d /usr/nec ;then |
| 20865 | version_type=linux |
| 20866 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20867 | soname_spec='$libname${shared_ext}.$major' |
| 20868 | shlibpath_var=LD_LIBRARY_PATH |
| 20869 | fi |
| 20870 | ;; |
| 20871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20872 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20873 | version_type=freebsd-elf |
| 20874 | need_lib_prefix=no |
| 20875 | need_version=no |
| 20876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20877 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20878 | shlibpath_var=LD_LIBRARY_PATH |
| 20879 | hardcode_into_libs=yes |
| 20880 | if test "$with_gnu_ld" = yes; then |
| 20881 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20882 | shlibpath_overrides_runpath=no |
| 20883 | else |
| 20884 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20885 | shlibpath_overrides_runpath=yes |
| 20886 | case $host_os in |
| 20887 | sco3.2v5*) |
| 20888 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20889 | ;; |
| 20890 | esac |
| 20891 | fi |
| 20892 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20893 | ;; |
| 20894 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20895 | uts4*) |
| 20896 | version_type=linux |
| 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 | shlibpath_var=LD_LIBRARY_PATH |
| 20900 | ;; |
| 20901 | |
| 20902 | *) |
| 20903 | dynamic_linker=no |
| 20904 | ;; |
| 20905 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20906 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20907 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20908 | test "$dynamic_linker" = no && can_build_shared=no |
| 20909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20910 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20911 | if test "$GCC" = yes; then |
| 20912 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20913 | fi |
| 20914 | |
| 20915 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20916 | 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] | 20917 | hardcode_action_CXX= |
| 20918 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20919 | test -n "$runpath_var_CXX" || \ |
| 20920 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20921 | |
| 20922 | # We can hardcode non-existant directories. |
| 20923 | if test "$hardcode_direct_CXX" != no && |
| 20924 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20925 | # have to relink, otherwise we might link with an installed library |
| 20926 | # when we should be linking with a yet-to-be-installed one |
| 20927 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20928 | test "$hardcode_minus_L_CXX" != no; then |
| 20929 | # Linking always hardcodes the temporary library directory. |
| 20930 | hardcode_action_CXX=relink |
| 20931 | else |
| 20932 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20933 | hardcode_action_CXX=immediate |
| 20934 | fi |
| 20935 | else |
| 20936 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20937 | # directories. |
| 20938 | hardcode_action_CXX=unsupported |
| 20939 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20940 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20941 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20942 | |
| 20943 | if test "$hardcode_action_CXX" = relink; then |
| 20944 | # Fast installation is not supported |
| 20945 | enable_fast_install=no |
| 20946 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20947 | test "$enable_shared" = no; then |
| 20948 | # Fast installation is not necessary |
| 20949 | enable_fast_install=needless |
| 20950 | fi |
| 20951 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20952 | |
| 20953 | # The else clause should only fire when bootstrapping the |
| 20954 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20955 | # with your package, and you will get complaints that there are |
| 20956 | # no rules to generate ltmain.sh. |
| 20957 | if test -f "$ltmain"; then |
| 20958 | # See if we are running on zsh, and set the options which allow our commands through |
| 20959 | # without removal of \ escapes. |
| 20960 | if test -n "${ZSH_VERSION+set}" ; then |
| 20961 | setopt NO_GLOB_SUBST |
| 20962 | fi |
| 20963 | # Now quote all the things that may contain metacharacters while being |
| 20964 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20965 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20966 | 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] | 20967 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20968 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20969 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20970 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20971 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20972 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20973 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20974 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20975 | compiler_CXX \ |
| 20976 | CC_CXX \ |
| 20977 | LD_CXX \ |
| 20978 | lt_prog_compiler_wl_CXX \ |
| 20979 | lt_prog_compiler_pic_CXX \ |
| 20980 | lt_prog_compiler_static_CXX \ |
| 20981 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20982 | export_dynamic_flag_spec_CXX \ |
| 20983 | thread_safe_flag_spec_CXX \ |
| 20984 | whole_archive_flag_spec_CXX \ |
| 20985 | enable_shared_with_static_runtimes_CXX \ |
| 20986 | old_archive_cmds_CXX \ |
| 20987 | old_archive_from_new_cmds_CXX \ |
| 20988 | predep_objects_CXX \ |
| 20989 | postdep_objects_CXX \ |
| 20990 | predeps_CXX \ |
| 20991 | postdeps_CXX \ |
| 20992 | compiler_lib_search_path_CXX \ |
| 20993 | archive_cmds_CXX \ |
| 20994 | archive_expsym_cmds_CXX \ |
| 20995 | postinstall_cmds_CXX \ |
| 20996 | postuninstall_cmds_CXX \ |
| 20997 | old_archive_from_expsyms_cmds_CXX \ |
| 20998 | allow_undefined_flag_CXX \ |
| 20999 | no_undefined_flag_CXX \ |
| 21000 | export_symbols_cmds_CXX \ |
| 21001 | hardcode_libdir_flag_spec_CXX \ |
| 21002 | hardcode_libdir_flag_spec_ld_CXX \ |
| 21003 | hardcode_libdir_separator_CXX \ |
| 21004 | hardcode_automatic_CXX \ |
| 21005 | module_cmds_CXX \ |
| 21006 | module_expsym_cmds_CXX \ |
| 21007 | lt_cv_prog_compiler_c_o_CXX \ |
| 21008 | exclude_expsyms_CXX \ |
| 21009 | include_expsyms_CXX; do |
| 21010 | |
| 21011 | case $var in |
| 21012 | old_archive_cmds_CXX | \ |
| 21013 | old_archive_from_new_cmds_CXX | \ |
| 21014 | archive_cmds_CXX | \ |
| 21015 | archive_expsym_cmds_CXX | \ |
| 21016 | module_cmds_CXX | \ |
| 21017 | module_expsym_cmds_CXX | \ |
| 21018 | old_archive_from_expsyms_cmds_CXX | \ |
| 21019 | export_symbols_cmds_CXX | \ |
| 21020 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 21021 | postinstall_cmds | postuninstall_cmds | \ |
| 21022 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 21023 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 21024 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21025 | 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] | 21026 | ;; |
| 21027 | *) |
| 21028 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 21029 | ;; |
| 21030 | esac |
| 21031 | done |
| 21032 | |
| 21033 | case $lt_echo in |
| 21034 | *'\$0 --fallback-echo"') |
| 21035 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 21036 | ;; |
| 21037 | esac |
| 21038 | |
| 21039 | cfgfile="$ofile" |
| 21040 | |
| 21041 | cat <<__EOF__ >> "$cfgfile" |
| 21042 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 21043 | |
| 21044 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 21045 | |
| 21046 | # Shell to use when invoking shell scripts. |
| 21047 | SHELL=$lt_SHELL |
| 21048 | |
| 21049 | # Whether or not to build shared libraries. |
| 21050 | build_libtool_libs=$enable_shared |
| 21051 | |
| 21052 | # Whether or not to build static libraries. |
| 21053 | build_old_libs=$enable_static |
| 21054 | |
| 21055 | # Whether or not to add -lc for building shared libraries. |
| 21056 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 21057 | |
| 21058 | # Whether or not to disallow shared libs when runtime libs are static |
| 21059 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 21060 | |
| 21061 | # Whether or not to optimize for fast installation. |
| 21062 | fast_install=$enable_fast_install |
| 21063 | |
| 21064 | # The host system. |
| 21065 | host_alias=$host_alias |
| 21066 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21067 | host_os=$host_os |
| 21068 | |
| 21069 | # The build system. |
| 21070 | build_alias=$build_alias |
| 21071 | build=$build |
| 21072 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21073 | |
| 21074 | # An echo program that does not interpret backslashes. |
| 21075 | echo=$lt_echo |
| 21076 | |
| 21077 | # The archiver. |
| 21078 | AR=$lt_AR |
| 21079 | AR_FLAGS=$lt_AR_FLAGS |
| 21080 | |
| 21081 | # A C compiler. |
| 21082 | LTCC=$lt_LTCC |
| 21083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21084 | # LTCC compiler flags. |
| 21085 | LTCFLAGS=$lt_LTCFLAGS |
| 21086 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21087 | # A language-specific compiler. |
| 21088 | CC=$lt_compiler_CXX |
| 21089 | |
| 21090 | # Is the compiler the GNU C compiler? |
| 21091 | with_gcc=$GCC_CXX |
| 21092 | |
| 21093 | # An ERE matcher. |
| 21094 | EGREP=$lt_EGREP |
| 21095 | |
| 21096 | # The linker used to build libraries. |
| 21097 | LD=$lt_LD_CXX |
| 21098 | |
| 21099 | # Whether we need hard or soft links. |
| 21100 | LN_S=$lt_LN_S |
| 21101 | |
| 21102 | # A BSD-compatible nm program. |
| 21103 | NM=$lt_NM |
| 21104 | |
| 21105 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21106 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21107 | |
| 21108 | # Used to examine libraries when file_magic_cmd begins "file" |
| 21109 | MAGIC_CMD=$MAGIC_CMD |
| 21110 | |
| 21111 | # Used on cygwin: DLL creation program. |
| 21112 | DLLTOOL="$DLLTOOL" |
| 21113 | |
| 21114 | # Used on cygwin: object dumper. |
| 21115 | OBJDUMP="$OBJDUMP" |
| 21116 | |
| 21117 | # Used on cygwin: assembler. |
| 21118 | AS="$AS" |
| 21119 | |
| 21120 | # The name of the directory that contains temporary libtool files. |
| 21121 | objdir=$objdir |
| 21122 | |
| 21123 | # How to create reloadable object files. |
| 21124 | reload_flag=$lt_reload_flag |
| 21125 | reload_cmds=$lt_reload_cmds |
| 21126 | |
| 21127 | # How to pass a linker flag through the compiler. |
| 21128 | wl=$lt_lt_prog_compiler_wl_CXX |
| 21129 | |
| 21130 | # Object file suffix (normally "o"). |
| 21131 | objext="$ac_objext" |
| 21132 | |
| 21133 | # Old archive suffix (normally "a"). |
| 21134 | libext="$libext" |
| 21135 | |
| 21136 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21137 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21138 | |
| 21139 | # Executable file suffix (normally ""). |
| 21140 | exeext="$exeext" |
| 21141 | |
| 21142 | # Additional compiler flags for building library objects. |
| 21143 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 21144 | pic_mode=$pic_mode |
| 21145 | |
| 21146 | # What is the maximum length of a command? |
| 21147 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 21148 | |
| 21149 | # Does compiler simultaneously support -c and -o options? |
| 21150 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 21151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21152 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21153 | need_locks=$lt_need_locks |
| 21154 | |
| 21155 | # Do we need the lib prefix for modules? |
| 21156 | need_lib_prefix=$need_lib_prefix |
| 21157 | |
| 21158 | # Do we need a version for libraries? |
| 21159 | need_version=$need_version |
| 21160 | |
| 21161 | # Whether dlopen is supported. |
| 21162 | dlopen_support=$enable_dlopen |
| 21163 | |
| 21164 | # Whether dlopen of programs is supported. |
| 21165 | dlopen_self=$enable_dlopen_self |
| 21166 | |
| 21167 | # Whether dlopen of statically linked programs is supported. |
| 21168 | dlopen_self_static=$enable_dlopen_self_static |
| 21169 | |
| 21170 | # Compiler flag to prevent dynamic linking. |
| 21171 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 21172 | |
| 21173 | # Compiler flag to turn off builtin functions. |
| 21174 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 21175 | |
| 21176 | # Compiler flag to allow reflexive dlopens. |
| 21177 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 21178 | |
| 21179 | # Compiler flag to generate shared objects directly from archives. |
| 21180 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 21181 | |
| 21182 | # Compiler flag to generate thread-safe objects. |
| 21183 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 21184 | |
| 21185 | # Library versioning type. |
| 21186 | version_type=$version_type |
| 21187 | |
| 21188 | # Format of library name prefix. |
| 21189 | libname_spec=$lt_libname_spec |
| 21190 | |
| 21191 | # List of archive names. First name is the real one, the rest are links. |
| 21192 | # The last name is the one that the linker finds with -lNAME. |
| 21193 | library_names_spec=$lt_library_names_spec |
| 21194 | |
| 21195 | # The coded name of the library, if different from the real name. |
| 21196 | soname_spec=$lt_soname_spec |
| 21197 | |
| 21198 | # Commands used to build and install an old-style archive. |
| 21199 | RANLIB=$lt_RANLIB |
| 21200 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 21201 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21202 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21203 | |
| 21204 | # Create an old-style archive from a shared archive. |
| 21205 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 21206 | |
| 21207 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21208 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 21209 | |
| 21210 | # Commands used to build and install a shared archive. |
| 21211 | archive_cmds=$lt_archive_cmds_CXX |
| 21212 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 21213 | postinstall_cmds=$lt_postinstall_cmds |
| 21214 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21215 | |
| 21216 | # Commands used to build a loadable module (assumed same as above if empty) |
| 21217 | module_cmds=$lt_module_cmds_CXX |
| 21218 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 21219 | |
| 21220 | # Commands to strip libraries. |
| 21221 | old_striplib=$lt_old_striplib |
| 21222 | striplib=$lt_striplib |
| 21223 | |
| 21224 | # Dependencies to place before the objects being linked to create a |
| 21225 | # shared library. |
| 21226 | predep_objects=$lt_predep_objects_CXX |
| 21227 | |
| 21228 | # Dependencies to place after the objects being linked to create a |
| 21229 | # shared library. |
| 21230 | postdep_objects=$lt_postdep_objects_CXX |
| 21231 | |
| 21232 | # Dependencies to place before the objects being linked to create a |
| 21233 | # shared library. |
| 21234 | predeps=$lt_predeps_CXX |
| 21235 | |
| 21236 | # Dependencies to place after the objects being linked to create a |
| 21237 | # shared library. |
| 21238 | postdeps=$lt_postdeps_CXX |
| 21239 | |
| 21240 | # The library search path used internally by the compiler when linking |
| 21241 | # a shared library. |
| 21242 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 21243 | |
| 21244 | # Method to check whether dependent libraries are shared objects. |
| 21245 | deplibs_check_method=$lt_deplibs_check_method |
| 21246 | |
| 21247 | # Command to use when deplibs_check_method == file_magic. |
| 21248 | file_magic_cmd=$lt_file_magic_cmd |
| 21249 | |
| 21250 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21251 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 21252 | |
| 21253 | # Flag that forces no undefined symbols. |
| 21254 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 21255 | |
| 21256 | # Commands used to finish a libtool library installation in a directory. |
| 21257 | finish_cmds=$lt_finish_cmds |
| 21258 | |
| 21259 | # Same as above, but a single script fragment to be evaled but not shown. |
| 21260 | finish_eval=$lt_finish_eval |
| 21261 | |
| 21262 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 21263 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21264 | |
| 21265 | # Transform the output of nm in a proper C declaration |
| 21266 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21267 | |
| 21268 | # Transform the output of nm in a C name address pair |
| 21269 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21270 | |
| 21271 | # This is the shared library runtime path variable. |
| 21272 | runpath_var=$runpath_var |
| 21273 | |
| 21274 | # This is the shared library path variable. |
| 21275 | shlibpath_var=$shlibpath_var |
| 21276 | |
| 21277 | # Is shlibpath searched before the hard-coded library search path? |
| 21278 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21279 | |
| 21280 | # How to hardcode a shared library path into an executable. |
| 21281 | hardcode_action=$hardcode_action_CXX |
| 21282 | |
| 21283 | # Whether we should hardcode library paths into libraries. |
| 21284 | hardcode_into_libs=$hardcode_into_libs |
| 21285 | |
| 21286 | # Flag to hardcode \$libdir into a binary during linking. |
| 21287 | # This must work even if \$libdir does not exist. |
| 21288 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21289 | |
| 21290 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21291 | # a binary during linking. This must work even if \$libdir does |
| 21292 | # not exist. |
| 21293 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 21294 | |
| 21295 | # Whether we need a single -rpath flag with a separated argument. |
| 21296 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21297 | |
| 21298 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21299 | # resulting binary. |
| 21300 | hardcode_direct=$hardcode_direct_CXX |
| 21301 | |
| 21302 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21303 | # resulting binary. |
| 21304 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21305 | |
| 21306 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21307 | # the resulting binary. |
| 21308 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21309 | |
| 21310 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21311 | # and all subsequent libraries and executables linked against it. |
| 21312 | hardcode_automatic=$hardcode_automatic_CXX |
| 21313 | |
| 21314 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21315 | # restored at relink time. |
| 21316 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21317 | |
| 21318 | # Whether libtool must link a program against all its dependency libraries. |
| 21319 | link_all_deplibs=$link_all_deplibs_CXX |
| 21320 | |
| 21321 | # Compile-time system search path for libraries |
| 21322 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21323 | |
| 21324 | # Run-time system search path for libraries |
| 21325 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21326 | |
| 21327 | # Fix the shell variable \$srcfile for the compiler. |
| 21328 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 21329 | |
| 21330 | # Set to yes if exported symbols are required. |
| 21331 | always_export_symbols=$always_export_symbols_CXX |
| 21332 | |
| 21333 | # The commands to list exported symbols. |
| 21334 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21335 | |
| 21336 | # The commands to extract the exported symbol list from a shared archive. |
| 21337 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21338 | |
| 21339 | # Symbols that should not be listed in the preloaded symbols. |
| 21340 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21341 | |
| 21342 | # Symbols that must always be exported. |
| 21343 | include_expsyms=$lt_include_expsyms_CXX |
| 21344 | |
| 21345 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21346 | |
| 21347 | __EOF__ |
| 21348 | |
| 21349 | |
| 21350 | else |
| 21351 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21352 | # `config.status --recheck' to rerun these tests and create the |
| 21353 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21354 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21355 | if test -f "$ltmain_in"; then |
| 21356 | test -f Makefile && make "$ltmain" |
| 21357 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21358 | fi |
| 21359 | |
| 21360 | |
| 21361 | ac_ext=c |
| 21362 | ac_cpp='$CPP $CPPFLAGS' |
| 21363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21366 | |
| 21367 | CC=$lt_save_CC |
| 21368 | LDCXX=$LD |
| 21369 | LD=$lt_save_LD |
| 21370 | GCC=$lt_save_GCC |
| 21371 | with_gnu_ldcxx=$with_gnu_ld |
| 21372 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21373 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21374 | lt_cv_path_LD=$lt_save_path_LD |
| 21375 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21376 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21377 | |
| 21378 | else |
| 21379 | tagname="" |
| 21380 | fi |
| 21381 | ;; |
| 21382 | |
| 21383 | F77) |
| 21384 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21385 | |
| 21386 | ac_ext=f |
| 21387 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21388 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21389 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21390 | |
| 21391 | |
| 21392 | archive_cmds_need_lc_F77=no |
| 21393 | allow_undefined_flag_F77= |
| 21394 | always_export_symbols_F77=no |
| 21395 | archive_expsym_cmds_F77= |
| 21396 | export_dynamic_flag_spec_F77= |
| 21397 | hardcode_direct_F77=no |
| 21398 | hardcode_libdir_flag_spec_F77= |
| 21399 | hardcode_libdir_flag_spec_ld_F77= |
| 21400 | hardcode_libdir_separator_F77= |
| 21401 | hardcode_minus_L_F77=no |
| 21402 | hardcode_automatic_F77=no |
| 21403 | module_cmds_F77= |
| 21404 | module_expsym_cmds_F77= |
| 21405 | link_all_deplibs_F77=unknown |
| 21406 | old_archive_cmds_F77=$old_archive_cmds |
| 21407 | no_undefined_flag_F77= |
| 21408 | whole_archive_flag_spec_F77= |
| 21409 | enable_shared_with_static_runtimes_F77=no |
| 21410 | |
| 21411 | # Source file extension for f77 test sources. |
| 21412 | ac_ext=f |
| 21413 | |
| 21414 | # Object file extension for compiled f77 test sources. |
| 21415 | objext=o |
| 21416 | objext_F77=$objext |
| 21417 | |
| 21418 | # Code to be used in simple compile tests |
| 21419 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21420 | |
| 21421 | # Code to be used in simple link tests |
| 21422 | lt_simple_link_test_code=" program t\n end\n" |
| 21423 | |
| 21424 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21425 | |
| 21426 | # If no C compiler was specified, use CC. |
| 21427 | LTCC=${LTCC-"$CC"} |
| 21428 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21429 | # If no C compiler flags were specified, use CFLAGS. |
| 21430 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21431 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21432 | # Allow CC to be a program name with arguments. |
| 21433 | compiler=$CC |
| 21434 | |
| 21435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21436 | # save warnings/boilerplate of simple test code |
| 21437 | ac_outfile=conftest.$ac_objext |
| 21438 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21439 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21440 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21441 | $rm conftest* |
| 21442 | |
| 21443 | ac_outfile=conftest.$ac_objext |
| 21444 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21445 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21446 | _lt_linker_boilerplate=`cat conftest.err` |
| 21447 | $rm conftest* |
| 21448 | |
| 21449 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21450 | # Allow CC to be a program name with arguments. |
| 21451 | lt_save_CC="$CC" |
| 21452 | CC=${F77-"f77"} |
| 21453 | compiler=$CC |
| 21454 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21455 | for cc_temp in $compiler""; do |
| 21456 | case $cc_temp in |
| 21457 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21458 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21459 | \-*) ;; |
| 21460 | *) break;; |
| 21461 | esac |
| 21462 | done |
| 21463 | 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] | 21464 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21466 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21467 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21468 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21469 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21470 | |
| 21471 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21472 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21473 | test "$can_build_shared" = "no" && enable_shared=no |
| 21474 | |
| 21475 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21476 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21477 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21478 | aix3*) |
| 21479 | test "$enable_shared" = yes && enable_static=no |
| 21480 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21481 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21482 | postinstall_cmds='$RANLIB $lib' |
| 21483 | fi |
| 21484 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21485 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21486 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21487 | test "$enable_shared" = yes && enable_static=no |
| 21488 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21489 | ;; |
| 21490 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21491 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21492 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21493 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21494 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21495 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21496 | # Make sure either enable_shared or enable_static is yes. |
| 21497 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21498 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21499 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21500 | |
| 21501 | GCC_F77="$G77" |
| 21502 | LD_F77="$LD" |
| 21503 | |
| 21504 | lt_prog_compiler_wl_F77= |
| 21505 | lt_prog_compiler_pic_F77= |
| 21506 | lt_prog_compiler_static_F77= |
| 21507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21508 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21509 | 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] | 21510 | |
| 21511 | if test "$GCC" = yes; then |
| 21512 | lt_prog_compiler_wl_F77='-Wl,' |
| 21513 | lt_prog_compiler_static_F77='-static' |
| 21514 | |
| 21515 | case $host_os in |
| 21516 | aix*) |
| 21517 | # All AIX code is PIC. |
| 21518 | if test "$host_cpu" = ia64; then |
| 21519 | # AIX 5 now supports IA64 processor |
| 21520 | lt_prog_compiler_static_F77='-Bstatic' |
| 21521 | fi |
| 21522 | ;; |
| 21523 | |
| 21524 | amigaos*) |
| 21525 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21526 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21527 | # like `-m68040'. |
| 21528 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21529 | ;; |
| 21530 | |
| 21531 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21532 | # PIC is the default for these OSes. |
| 21533 | ;; |
| 21534 | |
| 21535 | mingw* | pw32* | os2*) |
| 21536 | # This hack is so that the source file can tell whether it is being |
| 21537 | # built for inclusion in a dll (and should export symbols for example). |
| 21538 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21539 | ;; |
| 21540 | |
| 21541 | darwin* | rhapsody*) |
| 21542 | # PIC is the default on this platform |
| 21543 | # Common symbols not allowed in MH_DYLIB files |
| 21544 | lt_prog_compiler_pic_F77='-fno-common' |
| 21545 | ;; |
| 21546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21547 | interix3*) |
| 21548 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21549 | # Instead, we relocate shared libraries at runtime. |
| 21550 | ;; |
| 21551 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21552 | msdosdjgpp*) |
| 21553 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21554 | # on systems that don't support them. |
| 21555 | lt_prog_compiler_can_build_shared_F77=no |
| 21556 | enable_shared=no |
| 21557 | ;; |
| 21558 | |
| 21559 | sysv4*MP*) |
| 21560 | if test -d /usr/nec; then |
| 21561 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21562 | fi |
| 21563 | ;; |
| 21564 | |
| 21565 | hpux*) |
| 21566 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21567 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21568 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21569 | hppa*64*|ia64*) |
| 21570 | # +Z the default |
| 21571 | ;; |
| 21572 | *) |
| 21573 | lt_prog_compiler_pic_F77='-fPIC' |
| 21574 | ;; |
| 21575 | esac |
| 21576 | ;; |
| 21577 | |
| 21578 | *) |
| 21579 | lt_prog_compiler_pic_F77='-fPIC' |
| 21580 | ;; |
| 21581 | esac |
| 21582 | else |
| 21583 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21584 | case $host_os in |
| 21585 | aix*) |
| 21586 | lt_prog_compiler_wl_F77='-Wl,' |
| 21587 | if test "$host_cpu" = ia64; then |
| 21588 | # AIX 5 now supports IA64 processor |
| 21589 | lt_prog_compiler_static_F77='-Bstatic' |
| 21590 | else |
| 21591 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21592 | fi |
| 21593 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21594 | darwin*) |
| 21595 | # PIC is the default on this platform |
| 21596 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21597 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21598 | xlc*) |
| 21599 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21600 | lt_prog_compiler_wl_F77='-Wl,' |
| 21601 | ;; |
| 21602 | esac |
| 21603 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21604 | |
| 21605 | mingw* | pw32* | os2*) |
| 21606 | # This hack is so that the source file can tell whether it is being |
| 21607 | # built for inclusion in a dll (and should export symbols for example). |
| 21608 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21609 | ;; |
| 21610 | |
| 21611 | hpux9* | hpux10* | hpux11*) |
| 21612 | lt_prog_compiler_wl_F77='-Wl,' |
| 21613 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21614 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21615 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21616 | hppa*64*|ia64*) |
| 21617 | # +Z the default |
| 21618 | ;; |
| 21619 | *) |
| 21620 | lt_prog_compiler_pic_F77='+Z' |
| 21621 | ;; |
| 21622 | esac |
| 21623 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21624 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21625 | ;; |
| 21626 | |
| 21627 | irix5* | irix6* | nonstopux*) |
| 21628 | lt_prog_compiler_wl_F77='-Wl,' |
| 21629 | # PIC (with -KPIC) is the default. |
| 21630 | lt_prog_compiler_static_F77='-non_shared' |
| 21631 | ;; |
| 21632 | |
| 21633 | newsos6) |
| 21634 | lt_prog_compiler_pic_F77='-KPIC' |
| 21635 | lt_prog_compiler_static_F77='-Bstatic' |
| 21636 | ;; |
| 21637 | |
| 21638 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21639 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21640 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21641 | lt_prog_compiler_wl_F77='-Wl,' |
| 21642 | lt_prog_compiler_pic_F77='-KPIC' |
| 21643 | lt_prog_compiler_static_F77='-static' |
| 21644 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21645 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21646 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21647 | # which looks to be a dead project) |
| 21648 | lt_prog_compiler_wl_F77='-Wl,' |
| 21649 | lt_prog_compiler_pic_F77='-fpic' |
| 21650 | lt_prog_compiler_static_F77='-Bstatic' |
| 21651 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21652 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21653 | lt_prog_compiler_wl_F77='-Wl,' |
| 21654 | # All Alpha code is PIC. |
| 21655 | lt_prog_compiler_static_F77='-non_shared' |
| 21656 | ;; |
| 21657 | esac |
| 21658 | ;; |
| 21659 | |
| 21660 | osf3* | osf4* | osf5*) |
| 21661 | lt_prog_compiler_wl_F77='-Wl,' |
| 21662 | # All OSF/1 code is PIC. |
| 21663 | lt_prog_compiler_static_F77='-non_shared' |
| 21664 | ;; |
| 21665 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21666 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21667 | lt_prog_compiler_pic_F77='-KPIC' |
| 21668 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21669 | case $cc_basename in |
| 21670 | f77* | f90* | f95*) |
| 21671 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21672 | *) |
| 21673 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21674 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21675 | ;; |
| 21676 | |
| 21677 | sunos4*) |
| 21678 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21679 | lt_prog_compiler_pic_F77='-PIC' |
| 21680 | lt_prog_compiler_static_F77='-Bstatic' |
| 21681 | ;; |
| 21682 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21683 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21684 | lt_prog_compiler_wl_F77='-Wl,' |
| 21685 | lt_prog_compiler_pic_F77='-KPIC' |
| 21686 | lt_prog_compiler_static_F77='-Bstatic' |
| 21687 | ;; |
| 21688 | |
| 21689 | sysv4*MP*) |
| 21690 | if test -d /usr/nec ;then |
| 21691 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21692 | lt_prog_compiler_static_F77='-Bstatic' |
| 21693 | fi |
| 21694 | ;; |
| 21695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21696 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21697 | lt_prog_compiler_wl_F77='-Wl,' |
| 21698 | lt_prog_compiler_pic_F77='-KPIC' |
| 21699 | lt_prog_compiler_static_F77='-Bstatic' |
| 21700 | ;; |
| 21701 | |
| 21702 | unicos*) |
| 21703 | lt_prog_compiler_wl_F77='-Wl,' |
| 21704 | lt_prog_compiler_can_build_shared_F77=no |
| 21705 | ;; |
| 21706 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21707 | uts4*) |
| 21708 | lt_prog_compiler_pic_F77='-pic' |
| 21709 | lt_prog_compiler_static_F77='-Bstatic' |
| 21710 | ;; |
| 21711 | |
| 21712 | *) |
| 21713 | lt_prog_compiler_can_build_shared_F77=no |
| 21714 | ;; |
| 21715 | esac |
| 21716 | fi |
| 21717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21718 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21719 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21720 | |
| 21721 | # |
| 21722 | # Check to make sure the PIC flag actually works. |
| 21723 | # |
| 21724 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21725 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21726 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21727 | 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] | 21728 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21730 | else |
| 21731 | lt_prog_compiler_pic_works_F77=no |
| 21732 | ac_outfile=conftest.$ac_objext |
| 21733 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21734 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21735 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21736 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21737 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21738 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21739 | # The option is referenced via a variable to avoid confusing sed. |
| 21740 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21741 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21742 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21743 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21744 | (eval echo "\"\$as_me:21744: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21745 | (eval "$lt_compile" 2>conftest.err) |
| 21746 | ac_status=$? |
| 21747 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21748 | echo "$as_me:21748: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21749 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21750 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21751 | # So say no if there are warnings other than the usual output. |
| 21752 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21753 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21754 | 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] | 21755 | lt_prog_compiler_pic_works_F77=yes |
| 21756 | fi |
| 21757 | fi |
| 21758 | $rm conftest* |
| 21759 | |
| 21760 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21761 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21762 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21763 | |
| 21764 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21765 | case $lt_prog_compiler_pic_F77 in |
| 21766 | "" | " "*) ;; |
| 21767 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21768 | esac |
| 21769 | else |
| 21770 | lt_prog_compiler_pic_F77= |
| 21771 | lt_prog_compiler_can_build_shared_F77=no |
| 21772 | fi |
| 21773 | |
| 21774 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21775 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21776 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21777 | *djgpp*) |
| 21778 | lt_prog_compiler_pic_F77= |
| 21779 | ;; |
| 21780 | *) |
| 21781 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21782 | ;; |
| 21783 | esac |
| 21784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21785 | # |
| 21786 | # Check to make sure the static flag actually works. |
| 21787 | # |
| 21788 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21789 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21790 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21791 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21793 | else |
| 21794 | lt_prog_compiler_static_works_F77=no |
| 21795 | save_LDFLAGS="$LDFLAGS" |
| 21796 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21797 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21798 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21799 | # The linker can only warn and ignore the option if not recognized |
| 21800 | # So say no if there are warnings |
| 21801 | if test -s conftest.err; then |
| 21802 | # Append any errors to the config.log. |
| 21803 | cat conftest.err 1>&5 |
| 21804 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21805 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21806 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21807 | lt_prog_compiler_static_works_F77=yes |
| 21808 | fi |
| 21809 | else |
| 21810 | lt_prog_compiler_static_works_F77=yes |
| 21811 | fi |
| 21812 | fi |
| 21813 | $rm conftest* |
| 21814 | LDFLAGS="$save_LDFLAGS" |
| 21815 | |
| 21816 | fi |
| 21817 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21818 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21819 | |
| 21820 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21821 | : |
| 21822 | else |
| 21823 | lt_prog_compiler_static_F77= |
| 21824 | fi |
| 21825 | |
| 21826 | |
| 21827 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21828 | 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] | 21829 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21831 | else |
| 21832 | lt_cv_prog_compiler_c_o_F77=no |
| 21833 | $rm -r conftest 2>/dev/null |
| 21834 | mkdir conftest |
| 21835 | cd conftest |
| 21836 | mkdir out |
| 21837 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21838 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21839 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21840 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21841 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21842 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21843 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21844 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21845 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21846 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21847 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21848 | (eval echo "\"\$as_me:21848: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21849 | (eval "$lt_compile" 2>out/conftest.err) |
| 21850 | ac_status=$? |
| 21851 | cat out/conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21852 | echo "$as_me:21852: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21853 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21854 | then |
| 21855 | # The compiler can only warn and ignore the option if not recognized |
| 21856 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21857 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21858 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21859 | 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] | 21860 | lt_cv_prog_compiler_c_o_F77=yes |
| 21861 | fi |
| 21862 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21863 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21864 | $rm conftest* |
| 21865 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21866 | # template instantiation |
| 21867 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21868 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21869 | cd .. |
| 21870 | rmdir conftest |
| 21871 | $rm conftest* |
| 21872 | |
| 21873 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21874 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21875 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21876 | |
| 21877 | |
| 21878 | hard_links="nottested" |
| 21879 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21880 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21881 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21882 | 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] | 21883 | hard_links=yes |
| 21884 | $rm conftest* |
| 21885 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21886 | touch conftest.a |
| 21887 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21888 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21889 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21890 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21891 | if test "$hard_links" = no; then |
| 21892 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21893 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21894 | need_locks=warn |
| 21895 | fi |
| 21896 | else |
| 21897 | need_locks=no |
| 21898 | fi |
| 21899 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21900 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21901 | 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] | 21902 | |
| 21903 | runpath_var= |
| 21904 | allow_undefined_flag_F77= |
| 21905 | enable_shared_with_static_runtimes_F77=no |
| 21906 | archive_cmds_F77= |
| 21907 | archive_expsym_cmds_F77= |
| 21908 | old_archive_From_new_cmds_F77= |
| 21909 | old_archive_from_expsyms_cmds_F77= |
| 21910 | export_dynamic_flag_spec_F77= |
| 21911 | whole_archive_flag_spec_F77= |
| 21912 | thread_safe_flag_spec_F77= |
| 21913 | hardcode_libdir_flag_spec_F77= |
| 21914 | hardcode_libdir_flag_spec_ld_F77= |
| 21915 | hardcode_libdir_separator_F77= |
| 21916 | hardcode_direct_F77=no |
| 21917 | hardcode_minus_L_F77=no |
| 21918 | hardcode_shlibpath_var_F77=unsupported |
| 21919 | link_all_deplibs_F77=unknown |
| 21920 | hardcode_automatic_F77=no |
| 21921 | module_cmds_F77= |
| 21922 | module_expsym_cmds_F77= |
| 21923 | always_export_symbols_F77=no |
| 21924 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21925 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21926 | # included in the symbol list |
| 21927 | include_expsyms_F77= |
| 21928 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21929 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21930 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21931 | # as well as any symbol that contains `d'. |
| 21932 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21933 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21934 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21935 | # the symbol is explicitly referenced. Since portable code cannot |
| 21936 | # rely on this symbol name, it's probably fine to never include it in |
| 21937 | # preloaded symbol tables. |
| 21938 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21939 | # Just being paranoid about ensuring that cc_basename is set. |
| 21940 | for cc_temp in $compiler""; do |
| 21941 | case $cc_temp in |
| 21942 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21943 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21944 | \-*) ;; |
| 21945 | *) break;; |
| 21946 | esac |
| 21947 | done |
| 21948 | 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] | 21949 | |
| 21950 | case $host_os in |
| 21951 | cygwin* | mingw* | pw32*) |
| 21952 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21953 | # When not using gcc, we currently assume that we are using |
| 21954 | # Microsoft Visual C++. |
| 21955 | if test "$GCC" != yes; then |
| 21956 | with_gnu_ld=no |
| 21957 | fi |
| 21958 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21959 | interix*) |
| 21960 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21961 | with_gnu_ld=yes |
| 21962 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21963 | openbsd*) |
| 21964 | with_gnu_ld=no |
| 21965 | ;; |
| 21966 | esac |
| 21967 | |
| 21968 | ld_shlibs_F77=yes |
| 21969 | if test "$with_gnu_ld" = yes; then |
| 21970 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21971 | wlarc='${wl}' |
| 21972 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21973 | # Set some defaults for GNU ld with shared library support. These |
| 21974 | # are reset later if shared libraries are not supported. Putting them |
| 21975 | # here allows them to be overridden if necessary. |
| 21976 | runpath_var=LD_RUN_PATH |
| 21977 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21978 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21979 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21980 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21981 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21982 | else |
| 21983 | whole_archive_flag_spec_F77= |
| 21984 | fi |
| 21985 | supports_anon_versioning=no |
| 21986 | case `$LD -v 2>/dev/null` in |
| 21987 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21988 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21989 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21990 | *\ 2.11.*) ;; # other 2.11 versions |
| 21991 | *) supports_anon_versioning=yes ;; |
| 21992 | esac |
| 21993 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21994 | # See if GNU ld supports shared libraries. |
| 21995 | case $host_os in |
| 21996 | aix3* | aix4* | aix5*) |
| 21997 | # On AIX/PPC, the GNU linker is very broken |
| 21998 | if test "$host_cpu" != ia64; then |
| 21999 | ld_shlibs_F77=no |
| 22000 | cat <<EOF 1>&2 |
| 22001 | |
| 22002 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 22003 | *** to be unable to reliably create shared libraries on AIX. |
| 22004 | *** Therefore, libtool is disabling shared libraries support. If you |
| 22005 | *** really care for shared libraries, you may want to modify your PATH |
| 22006 | *** so that a non-GNU linker is found, and then restart. |
| 22007 | |
| 22008 | EOF |
| 22009 | fi |
| 22010 | ;; |
| 22011 | |
| 22012 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22013 | 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] | 22014 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22015 | hardcode_minus_L_F77=yes |
| 22016 | |
| 22017 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 22018 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 22019 | # to version 4, is to share data among multiple programs linked |
| 22020 | # with the same dynamic library. Since this doesn't match the |
| 22021 | # behavior of shared libraries on other platforms, we can't use |
| 22022 | # them. |
| 22023 | ld_shlibs_F77=no |
| 22024 | ;; |
| 22025 | |
| 22026 | beos*) |
| 22027 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22028 | allow_undefined_flag_F77=unsupported |
| 22029 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 22030 | # support --undefined. This deserves some investigation. FIXME |
| 22031 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22032 | else |
| 22033 | ld_shlibs_F77=no |
| 22034 | fi |
| 22035 | ;; |
| 22036 | |
| 22037 | cygwin* | mingw* | pw32*) |
| 22038 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 22039 | # as there is no search path for DLLs. |
| 22040 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22041 | allow_undefined_flag_F77=unsupported |
| 22042 | always_export_symbols_F77=no |
| 22043 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22044 | 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] | 22045 | |
| 22046 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22047 | 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] | 22048 | # If the export-symbols file already is a .def file (1st line |
| 22049 | # is EXPORTS), use it as is; otherwise, prepend... |
| 22050 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 22051 | cp $export_symbols $output_objdir/$soname.def; |
| 22052 | else |
| 22053 | echo EXPORTS > $output_objdir/$soname.def; |
| 22054 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22055 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22056 | $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] | 22057 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22058 | ld_shlibs_F77=no |
| 22059 | fi |
| 22060 | ;; |
| 22061 | |
| 22062 | interix3*) |
| 22063 | hardcode_direct_F77=no |
| 22064 | hardcode_shlibpath_var_F77=no |
| 22065 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22066 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22067 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 22068 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 22069 | # default) and relocated if they conflict, which is a slow very memory |
| 22070 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 22071 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 22072 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 22073 | 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' |
| 22074 | 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' |
| 22075 | ;; |
| 22076 | |
| 22077 | linux*) |
| 22078 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22079 | tmp_addflag= |
| 22080 | case $cc_basename,$host_cpu in |
| 22081 | pgcc*) # Portland Group C compiler |
| 22082 | 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' |
| 22083 | tmp_addflag=' $pic_flag' |
| 22084 | ;; |
| 22085 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 22086 | 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' |
| 22087 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 22088 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 22089 | tmp_addflag=' -i_dynamic' ;; |
| 22090 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 22091 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 22092 | ifc* | ifort*) # Intel Fortran compiler |
| 22093 | tmp_addflag=' -nofor_main' ;; |
| 22094 | esac |
| 22095 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22096 | |
| 22097 | if test $supports_anon_versioning = yes; then |
| 22098 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 22099 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 22100 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 22101 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 22102 | fi |
| 22103 | else |
| 22104 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22105 | fi |
| 22106 | ;; |
| 22107 | |
| 22108 | netbsd*) |
| 22109 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22110 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 22111 | wlarc= |
| 22112 | else |
| 22113 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22114 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22115 | fi |
| 22116 | ;; |
| 22117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22118 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22119 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 22120 | ld_shlibs_F77=no |
| 22121 | cat <<EOF 1>&2 |
| 22122 | |
| 22123 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 22124 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 22125 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22126 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 22127 | *** your PATH or compiler configuration so that the native linker is |
| 22128 | *** used, and then restart. |
| 22129 | |
| 22130 | EOF |
| 22131 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22132 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22133 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22134 | else |
| 22135 | ld_shlibs_F77=no |
| 22136 | fi |
| 22137 | ;; |
| 22138 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22139 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 22140 | case `$LD -v 2>&1` in |
| 22141 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 22142 | ld_shlibs_F77=no |
| 22143 | cat <<_LT_EOF 1>&2 |
| 22144 | |
| 22145 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 22146 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 22147 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22148 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 22149 | *** your PATH or compiler configuration so that the native linker is |
| 22150 | *** used, and then restart. |
| 22151 | |
| 22152 | _LT_EOF |
| 22153 | ;; |
| 22154 | *) |
| 22155 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22156 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 22157 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 22158 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 22159 | else |
| 22160 | ld_shlibs_F77=no |
| 22161 | fi |
| 22162 | ;; |
| 22163 | esac |
| 22164 | ;; |
| 22165 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22166 | sunos4*) |
| 22167 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22168 | wlarc= |
| 22169 | hardcode_direct_F77=yes |
| 22170 | hardcode_shlibpath_var_F77=no |
| 22171 | ;; |
| 22172 | |
| 22173 | *) |
| 22174 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22175 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22176 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22177 | else |
| 22178 | ld_shlibs_F77=no |
| 22179 | fi |
| 22180 | ;; |
| 22181 | esac |
| 22182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22183 | if test "$ld_shlibs_F77" = no; then |
| 22184 | runpath_var= |
| 22185 | hardcode_libdir_flag_spec_F77= |
| 22186 | export_dynamic_flag_spec_F77= |
| 22187 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22188 | fi |
| 22189 | else |
| 22190 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 22191 | case $host_os in |
| 22192 | aix3*) |
| 22193 | allow_undefined_flag_F77=unsupported |
| 22194 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22195 | 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] | 22196 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 22197 | # are no directories specified by -L. |
| 22198 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22199 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22200 | # Neither direct hardcoding nor static linking is supported with a |
| 22201 | # broken collect2. |
| 22202 | hardcode_direct_F77=unsupported |
| 22203 | fi |
| 22204 | ;; |
| 22205 | |
| 22206 | aix4* | aix5*) |
| 22207 | if test "$host_cpu" = ia64; then |
| 22208 | # On IA64, the linker does run time linking by default, so we don't |
| 22209 | # have to do anything special. |
| 22210 | aix_use_runtimelinking=no |
| 22211 | exp_sym_flag='-Bexport' |
| 22212 | no_entry_flag="" |
| 22213 | else |
| 22214 | # If we're using GNU nm, then we don't want the "-C" option. |
| 22215 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 22216 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 22217 | 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' |
| 22218 | else |
| 22219 | 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' |
| 22220 | fi |
| 22221 | aix_use_runtimelinking=no |
| 22222 | |
| 22223 | # Test if we are trying to use run time linking or normal |
| 22224 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 22225 | # need to do runtime linking. |
| 22226 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 22227 | for ld_flag in $LDFLAGS; do |
| 22228 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 22229 | aix_use_runtimelinking=yes |
| 22230 | break |
| 22231 | fi |
| 22232 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22233 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22234 | esac |
| 22235 | |
| 22236 | exp_sym_flag='-bexport' |
| 22237 | no_entry_flag='-bnoentry' |
| 22238 | fi |
| 22239 | |
| 22240 | # When large executables or shared objects are built, AIX ld can |
| 22241 | # have problems creating the table of contents. If linking a library |
| 22242 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 22243 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 22244 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 22245 | |
| 22246 | archive_cmds_F77='' |
| 22247 | hardcode_direct_F77=yes |
| 22248 | hardcode_libdir_separator_F77=':' |
| 22249 | link_all_deplibs_F77=yes |
| 22250 | |
| 22251 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22252 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22253 | # We only want to do this on AIX 4.2 and lower, the check |
| 22254 | # below for broken collect2 doesn't work under 4.3+ |
| 22255 | collect2name=`${CC} -print-prog-name=collect2` |
| 22256 | if test -f "$collect2name" && \ |
| 22257 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 22258 | then |
| 22259 | # We have reworked collect2 |
| 22260 | hardcode_direct_F77=yes |
| 22261 | else |
| 22262 | # We have old collect2 |
| 22263 | hardcode_direct_F77=unsupported |
| 22264 | # It fails to find uninstalled libraries when the uninstalled |
| 22265 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 22266 | # to unsupported forces relinking |
| 22267 | hardcode_minus_L_F77=yes |
| 22268 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22269 | hardcode_libdir_separator_F77= |
| 22270 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22271 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22272 | esac |
| 22273 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22274 | if test "$aix_use_runtimelinking" = yes; then |
| 22275 | shared_flag="$shared_flag "'${wl}-G' |
| 22276 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22277 | else |
| 22278 | # not using gcc |
| 22279 | if test "$host_cpu" = ia64; then |
| 22280 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22281 | # chokes on -Wl,-G. The following line is correct: |
| 22282 | shared_flag='-G' |
| 22283 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22284 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22285 | shared_flag='${wl}-G' |
| 22286 | else |
| 22287 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22288 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22289 | fi |
| 22290 | fi |
| 22291 | |
| 22292 | # It seems that -bexpall does not export symbols beginning with |
| 22293 | # underscore (_), so it is better to generate a list of symbols to export. |
| 22294 | always_export_symbols_F77=yes |
| 22295 | if test "$aix_use_runtimelinking" = yes; then |
| 22296 | # Warning - without using the other runtime loading flags (-brtl), |
| 22297 | # -berok will link without error, but may produce a broken library. |
| 22298 | allow_undefined_flag_F77='-berok' |
| 22299 | # Determine the default libpath from the value encoded in an empty executable. |
| 22300 | cat >conftest.$ac_ext <<_ACEOF |
| 22301 | program main |
| 22302 | |
| 22303 | end |
| 22304 | _ACEOF |
| 22305 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22306 | if { (ac_try="$ac_link" |
| 22307 | case "(($ac_try" in |
| 22308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22309 | *) ac_try_echo=$ac_try;; |
| 22310 | esac |
| 22311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22312 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22313 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22315 | rm -f conftest.er1 |
| 22316 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22318 | (exit $ac_status); } && |
| 22319 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22320 | { (case "(($ac_try" in |
| 22321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22322 | *) ac_try_echo=$ac_try;; |
| 22323 | esac |
| 22324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22325 | (eval "$ac_try") 2>&5 |
| 22326 | ac_status=$? |
| 22327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22328 | (exit $ac_status); }; } && |
| 22329 | { ac_try='test -s conftest$ac_exeext' |
| 22330 | { (case "(($ac_try" in |
| 22331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22332 | *) ac_try_echo=$ac_try;; |
| 22333 | esac |
| 22334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22335 | (eval "$ac_try") 2>&5 |
| 22336 | ac_status=$? |
| 22337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22338 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22339 | |
| 22340 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22341 | }'` |
| 22342 | # Check for a 64-bit object if we didn't find anything. |
| 22343 | 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; } |
| 22344 | }'`; fi |
| 22345 | else |
| 22346 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22349 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22350 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22351 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22352 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22353 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22354 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22355 | |
| 22356 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22357 | 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] | 22358 | else |
| 22359 | if test "$host_cpu" = ia64; then |
| 22360 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 22361 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22362 | 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] | 22363 | else |
| 22364 | # Determine the default libpath from the value encoded in an empty executable. |
| 22365 | cat >conftest.$ac_ext <<_ACEOF |
| 22366 | program main |
| 22367 | |
| 22368 | end |
| 22369 | _ACEOF |
| 22370 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22371 | if { (ac_try="$ac_link" |
| 22372 | case "(($ac_try" in |
| 22373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22374 | *) ac_try_echo=$ac_try;; |
| 22375 | esac |
| 22376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22377 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22378 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22380 | rm -f conftest.er1 |
| 22381 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22383 | (exit $ac_status); } && |
| 22384 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22385 | { (case "(($ac_try" in |
| 22386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22387 | *) ac_try_echo=$ac_try;; |
| 22388 | esac |
| 22389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22390 | (eval "$ac_try") 2>&5 |
| 22391 | ac_status=$? |
| 22392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22393 | (exit $ac_status); }; } && |
| 22394 | { ac_try='test -s conftest$ac_exeext' |
| 22395 | { (case "(($ac_try" in |
| 22396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22397 | *) ac_try_echo=$ac_try;; |
| 22398 | esac |
| 22399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22400 | (eval "$ac_try") 2>&5 |
| 22401 | ac_status=$? |
| 22402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22403 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22404 | |
| 22405 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22406 | }'` |
| 22407 | # Check for a 64-bit object if we didn't find anything. |
| 22408 | 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; } |
| 22409 | }'`; fi |
| 22410 | else |
| 22411 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22413 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22414 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22415 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22416 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22417 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22418 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22419 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22420 | |
| 22421 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22422 | # Warning - without using the other run time loading flags, |
| 22423 | # -berok will link without error, but may produce a broken library. |
| 22424 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22425 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22426 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22427 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22428 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22429 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22430 | 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] | 22431 | fi |
| 22432 | fi |
| 22433 | ;; |
| 22434 | |
| 22435 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22436 | 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] | 22437 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22438 | hardcode_minus_L_F77=yes |
| 22439 | # see comment about different semantics on the GNU ld section |
| 22440 | ld_shlibs_F77=no |
| 22441 | ;; |
| 22442 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22443 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22444 | export_dynamic_flag_spec_F77=-rdynamic |
| 22445 | ;; |
| 22446 | |
| 22447 | cygwin* | mingw* | pw32*) |
| 22448 | # When not using gcc, we currently assume that we are using |
| 22449 | # Microsoft Visual C++. |
| 22450 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22451 | # no search path for DLLs. |
| 22452 | hardcode_libdir_flag_spec_F77=' ' |
| 22453 | allow_undefined_flag_F77=unsupported |
| 22454 | # Tell ltmain to make .lib files, not .a files. |
| 22455 | libext=lib |
| 22456 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22457 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22458 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22459 | 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] | 22460 | # The linker will automatically build a .lib file if we build a DLL. |
| 22461 | old_archive_From_new_cmds_F77='true' |
| 22462 | # FIXME: Should let the user specify the lib program. |
| 22463 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22464 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22465 | enable_shared_with_static_runtimes_F77=yes |
| 22466 | ;; |
| 22467 | |
| 22468 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22469 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22470 | rhapsody* | darwin1.[012]) |
| 22471 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22472 | ;; |
| 22473 | *) # Darwin 1.3 on |
| 22474 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22475 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22476 | else |
| 22477 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22478 | 10.[012]) |
| 22479 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22480 | ;; |
| 22481 | 10.*) |
| 22482 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22483 | ;; |
| 22484 | esac |
| 22485 | fi |
| 22486 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22487 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22488 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22489 | hardcode_direct_F77=no |
| 22490 | hardcode_automatic_F77=yes |
| 22491 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22492 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22493 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22494 | if test "$GCC" = yes ; then |
| 22495 | output_verbose_link_cmd='echo' |
| 22496 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22497 | 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] | 22498 | # 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] | 22499 | 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}' |
| 22500 | 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] | 22501 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22502 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22503 | xlc*) |
| 22504 | output_verbose_link_cmd='echo' |
| 22505 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22506 | 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] | 22507 | # 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] | 22508 | 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}' |
| 22509 | 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] | 22510 | ;; |
| 22511 | *) |
| 22512 | ld_shlibs_F77=no |
| 22513 | ;; |
| 22514 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22515 | fi |
| 22516 | ;; |
| 22517 | |
| 22518 | dgux*) |
| 22519 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22520 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22521 | hardcode_shlibpath_var_F77=no |
| 22522 | ;; |
| 22523 | |
| 22524 | freebsd1*) |
| 22525 | ld_shlibs_F77=no |
| 22526 | ;; |
| 22527 | |
| 22528 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22529 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22530 | # does not break anything, and helps significantly (at the cost of a little |
| 22531 | # extra space). |
| 22532 | freebsd2.2*) |
| 22533 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22534 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22535 | hardcode_direct_F77=yes |
| 22536 | hardcode_shlibpath_var_F77=no |
| 22537 | ;; |
| 22538 | |
| 22539 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22540 | freebsd2*) |
| 22541 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22542 | hardcode_direct_F77=yes |
| 22543 | hardcode_minus_L_F77=yes |
| 22544 | hardcode_shlibpath_var_F77=no |
| 22545 | ;; |
| 22546 | |
| 22547 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22548 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22549 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22550 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22551 | hardcode_direct_F77=yes |
| 22552 | hardcode_shlibpath_var_F77=no |
| 22553 | ;; |
| 22554 | |
| 22555 | hpux9*) |
| 22556 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22557 | 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] | 22558 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22559 | 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] | 22560 | fi |
| 22561 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22562 | hardcode_libdir_separator_F77=: |
| 22563 | hardcode_direct_F77=yes |
| 22564 | |
| 22565 | # hardcode_minus_L: Not really in the search PATH, |
| 22566 | # but as the default location of the library. |
| 22567 | hardcode_minus_L_F77=yes |
| 22568 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22569 | ;; |
| 22570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22571 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22572 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22573 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22574 | else |
| 22575 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22576 | fi |
| 22577 | if test "$with_gnu_ld" = no; then |
| 22578 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22579 | hardcode_libdir_separator_F77=: |
| 22580 | |
| 22581 | hardcode_direct_F77=yes |
| 22582 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22583 | |
| 22584 | # hardcode_minus_L: Not really in the search PATH, |
| 22585 | # but as the default location of the library. |
| 22586 | hardcode_minus_L_F77=yes |
| 22587 | fi |
| 22588 | ;; |
| 22589 | |
| 22590 | hpux11*) |
| 22591 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22592 | case $host_cpu in |
| 22593 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22594 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22595 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22596 | ia64*) |
| 22597 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22598 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22599 | *) |
| 22600 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22601 | ;; |
| 22602 | esac |
| 22603 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22604 | case $host_cpu in |
| 22605 | hppa*64*) |
| 22606 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22607 | ;; |
| 22608 | ia64*) |
| 22609 | 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] | 22610 | ;; |
| 22611 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22612 | 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] | 22613 | ;; |
| 22614 | esac |
| 22615 | fi |
| 22616 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22617 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22618 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22620 | case $host_cpu in |
| 22621 | hppa*64*|ia64*) |
| 22622 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22623 | hardcode_direct_F77=no |
| 22624 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22625 | ;; |
| 22626 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22627 | hardcode_direct_F77=yes |
| 22628 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22629 | |
| 22630 | # hardcode_minus_L: Not really in the search PATH, |
| 22631 | # but as the default location of the library. |
| 22632 | hardcode_minus_L_F77=yes |
| 22633 | ;; |
| 22634 | esac |
| 22635 | fi |
| 22636 | ;; |
| 22637 | |
| 22638 | irix5* | irix6* | nonstopux*) |
| 22639 | if test "$GCC" = yes; then |
| 22640 | 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' |
| 22641 | else |
| 22642 | 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' |
| 22643 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22644 | fi |
| 22645 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22646 | hardcode_libdir_separator_F77=: |
| 22647 | link_all_deplibs_F77=yes |
| 22648 | ;; |
| 22649 | |
| 22650 | netbsd*) |
| 22651 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22652 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22653 | else |
| 22654 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22655 | fi |
| 22656 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22657 | hardcode_direct_F77=yes |
| 22658 | hardcode_shlibpath_var_F77=no |
| 22659 | ;; |
| 22660 | |
| 22661 | newsos6) |
| 22662 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22663 | hardcode_direct_F77=yes |
| 22664 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22665 | hardcode_libdir_separator_F77=: |
| 22666 | hardcode_shlibpath_var_F77=no |
| 22667 | ;; |
| 22668 | |
| 22669 | openbsd*) |
| 22670 | hardcode_direct_F77=yes |
| 22671 | hardcode_shlibpath_var_F77=no |
| 22672 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22673 | 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] | 22674 | 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] | 22675 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22676 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22677 | else |
| 22678 | case $host_os in |
| 22679 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22680 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22681 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22682 | ;; |
| 22683 | *) |
| 22684 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22685 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22686 | ;; |
| 22687 | esac |
| 22688 | fi |
| 22689 | ;; |
| 22690 | |
| 22691 | os2*) |
| 22692 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22693 | hardcode_minus_L_F77=yes |
| 22694 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22695 | 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] | 22696 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22697 | ;; |
| 22698 | |
| 22699 | osf3*) |
| 22700 | if test "$GCC" = yes; then |
| 22701 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22702 | 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' |
| 22703 | else |
| 22704 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22705 | 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' |
| 22706 | fi |
| 22707 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22708 | hardcode_libdir_separator_F77=: |
| 22709 | ;; |
| 22710 | |
| 22711 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22712 | if test "$GCC" = yes; then |
| 22713 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22714 | 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' |
| 22715 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22716 | else |
| 22717 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22718 | 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] | 22719 | 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] | 22720 | $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] | 22721 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22722 | # Both c and cxx compiler support -rpath directly |
| 22723 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22724 | fi |
| 22725 | hardcode_libdir_separator_F77=: |
| 22726 | ;; |
| 22727 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22728 | solaris*) |
| 22729 | no_undefined_flag_F77=' -z text' |
| 22730 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22731 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22732 | 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] | 22733 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22734 | $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] | 22735 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22736 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22737 | 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] | 22738 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22739 | $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] | 22740 | fi |
| 22741 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22742 | hardcode_shlibpath_var_F77=no |
| 22743 | case $host_os in |
| 22744 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22745 | *) |
| 22746 | # The compiler driver will combine linker options so we |
| 22747 | # cannot just pass the convience library names through |
| 22748 | # without $wl, iff we do not link with $LD. |
| 22749 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22750 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22751 | case $wlarc in |
| 22752 | '') |
| 22753 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22754 | *) |
| 22755 | 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' ;; |
| 22756 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22757 | esac |
| 22758 | link_all_deplibs_F77=yes |
| 22759 | ;; |
| 22760 | |
| 22761 | sunos4*) |
| 22762 | if test "x$host_vendor" = xsequent; then |
| 22763 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22764 | # files that make .init and .fini sections work. |
| 22765 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22766 | else |
| 22767 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22768 | fi |
| 22769 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22770 | hardcode_direct_F77=yes |
| 22771 | hardcode_minus_L_F77=yes |
| 22772 | hardcode_shlibpath_var_F77=no |
| 22773 | ;; |
| 22774 | |
| 22775 | sysv4) |
| 22776 | case $host_vendor in |
| 22777 | sni) |
| 22778 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22779 | hardcode_direct_F77=yes # is this really true??? |
| 22780 | ;; |
| 22781 | siemens) |
| 22782 | ## LD is ld it makes a PLAMLIB |
| 22783 | ## CC just makes a GrossModule. |
| 22784 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22785 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22786 | hardcode_direct_F77=no |
| 22787 | ;; |
| 22788 | motorola) |
| 22789 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22790 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22791 | ;; |
| 22792 | esac |
| 22793 | runpath_var='LD_RUN_PATH' |
| 22794 | hardcode_shlibpath_var_F77=no |
| 22795 | ;; |
| 22796 | |
| 22797 | sysv4.3*) |
| 22798 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22799 | hardcode_shlibpath_var_F77=no |
| 22800 | export_dynamic_flag_spec_F77='-Bexport' |
| 22801 | ;; |
| 22802 | |
| 22803 | sysv4*MP*) |
| 22804 | if test -d /usr/nec; then |
| 22805 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22806 | hardcode_shlibpath_var_F77=no |
| 22807 | runpath_var=LD_RUN_PATH |
| 22808 | hardcode_runpath_var=yes |
| 22809 | ld_shlibs_F77=yes |
| 22810 | fi |
| 22811 | ;; |
| 22812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22813 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22814 | no_undefined_flag_F77='${wl}-z,text' |
| 22815 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22816 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22817 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22818 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22819 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22820 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22821 | 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] | 22822 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22823 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22824 | 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] | 22825 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22826 | ;; |
| 22827 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22828 | sysv5* | sco3.2v5* | sco5v6*) |
| 22829 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22830 | # link with -lc, and that would cause any symbols used from libc to |
| 22831 | # always be unresolved, which means just about no library would |
| 22832 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22833 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22834 | # as -z defs. |
| 22835 | no_undefined_flag_F77='${wl}-z,text' |
| 22836 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22837 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22838 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22839 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22840 | hardcode_libdir_separator_F77=':' |
| 22841 | link_all_deplibs_F77=yes |
| 22842 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22843 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22844 | |
| 22845 | if test "$GCC" = yes; then |
| 22846 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22847 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22848 | else |
| 22849 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22850 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22851 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22852 | ;; |
| 22853 | |
| 22854 | uts4*) |
| 22855 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22856 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22857 | hardcode_shlibpath_var_F77=no |
| 22858 | ;; |
| 22859 | |
| 22860 | *) |
| 22861 | ld_shlibs_F77=no |
| 22862 | ;; |
| 22863 | esac |
| 22864 | fi |
| 22865 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22866 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22867 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22868 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22869 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22870 | # |
| 22871 | # Do we need to explicitly link libc? |
| 22872 | # |
| 22873 | case "x$archive_cmds_need_lc_F77" in |
| 22874 | x|xyes) |
| 22875 | # Assume -lc should be added |
| 22876 | archive_cmds_need_lc_F77=yes |
| 22877 | |
| 22878 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22879 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22880 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22881 | # FIXME: we may have to deal with multi-command sequences. |
| 22882 | ;; |
| 22883 | '$CC '*) |
| 22884 | # Test whether the compiler implicitly links with -lc since on some |
| 22885 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22886 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22887 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22888 | 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] | 22889 | $rm conftest* |
| 22890 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22891 | |
| 22892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22893 | (eval $ac_compile) 2>&5 |
| 22894 | ac_status=$? |
| 22895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22896 | (exit $ac_status); } 2>conftest.err; then |
| 22897 | soname=conftest |
| 22898 | lib=conftest |
| 22899 | libobjs=conftest.$ac_objext |
| 22900 | deplibs= |
| 22901 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22902 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22903 | compiler_flags=-v |
| 22904 | linker_flags=-v |
| 22905 | verstring= |
| 22906 | output_objdir=. |
| 22907 | libname=conftest |
| 22908 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22909 | allow_undefined_flag_F77= |
| 22910 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22911 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22912 | ac_status=$? |
| 22913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22914 | (exit $ac_status); } |
| 22915 | then |
| 22916 | archive_cmds_need_lc_F77=no |
| 22917 | else |
| 22918 | archive_cmds_need_lc_F77=yes |
| 22919 | fi |
| 22920 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22921 | else |
| 22922 | cat conftest.err 1>&5 |
| 22923 | fi |
| 22924 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22925 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22926 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22927 | ;; |
| 22928 | esac |
| 22929 | fi |
| 22930 | ;; |
| 22931 | esac |
| 22932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22933 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22934 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22935 | library_names_spec= |
| 22936 | libname_spec='lib$name' |
| 22937 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22938 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22939 | postinstall_cmds= |
| 22940 | postuninstall_cmds= |
| 22941 | finish_cmds= |
| 22942 | finish_eval= |
| 22943 | shlibpath_var= |
| 22944 | shlibpath_overrides_runpath=unknown |
| 22945 | version_type=none |
| 22946 | dynamic_linker="$host_os ld.so" |
| 22947 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22948 | if test "$GCC" = yes; then |
| 22949 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22950 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22951 | # if the path contains ";" then we assume it to be the separator |
| 22952 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22953 | # assumed that no part of a normal pathname contains ";" but that should |
| 22954 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22955 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22956 | else |
| 22957 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22958 | fi |
| 22959 | else |
| 22960 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22961 | fi |
| 22962 | need_lib_prefix=unknown |
| 22963 | hardcode_into_libs=no |
| 22964 | |
| 22965 | # when you set need_version to no, make sure it does not cause -set_version |
| 22966 | # flags to be left without arguments |
| 22967 | need_version=unknown |
| 22968 | |
| 22969 | case $host_os in |
| 22970 | aix3*) |
| 22971 | version_type=linux |
| 22972 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22973 | shlibpath_var=LIBPATH |
| 22974 | |
| 22975 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22976 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22977 | ;; |
| 22978 | |
| 22979 | aix4* | aix5*) |
| 22980 | version_type=linux |
| 22981 | need_lib_prefix=no |
| 22982 | need_version=no |
| 22983 | hardcode_into_libs=yes |
| 22984 | if test "$host_cpu" = ia64; then |
| 22985 | # AIX 5 supports IA64 |
| 22986 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22987 | shlibpath_var=LD_LIBRARY_PATH |
| 22988 | else |
| 22989 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22990 | # for dependence libraries. The import file would start with |
| 22991 | # the line `#! .'. This would cause the generated library to |
| 22992 | # depend on `.', always an invalid library. This was fixed in |
| 22993 | # development snapshots of GCC prior to 3.0. |
| 22994 | case $host_os in |
| 22995 | aix4 | aix4.[01] | aix4.[01].*) |
| 22996 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22997 | echo ' yes ' |
| 22998 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22999 | : |
| 23000 | else |
| 23001 | can_build_shared=no |
| 23002 | fi |
| 23003 | ;; |
| 23004 | esac |
| 23005 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 23006 | # soname into executable. Probably we can add versioning support to |
| 23007 | # collect2, so additional links can be useful in future. |
| 23008 | if test "$aix_use_runtimelinking" = yes; then |
| 23009 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 23010 | # instead of lib<name>.a to let people know that these are not |
| 23011 | # typical AIX shared libraries. |
| 23012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23013 | else |
| 23014 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 23015 | # and later when we are not doing run time linking. |
| 23016 | library_names_spec='${libname}${release}.a $libname.a' |
| 23017 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23018 | fi |
| 23019 | shlibpath_var=LIBPATH |
| 23020 | fi |
| 23021 | ;; |
| 23022 | |
| 23023 | amigaos*) |
| 23024 | library_names_spec='$libname.ixlibrary $libname.a' |
| 23025 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23026 | 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] | 23027 | ;; |
| 23028 | |
| 23029 | beos*) |
| 23030 | library_names_spec='${libname}${shared_ext}' |
| 23031 | dynamic_linker="$host_os ld.so" |
| 23032 | shlibpath_var=LIBRARY_PATH |
| 23033 | ;; |
| 23034 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23035 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23036 | version_type=linux |
| 23037 | need_version=no |
| 23038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23039 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23040 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 23041 | shlibpath_var=LD_LIBRARY_PATH |
| 23042 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 23043 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 23044 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 23045 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 23046 | # libtool to hard-code these into programs |
| 23047 | ;; |
| 23048 | |
| 23049 | cygwin* | mingw* | pw32*) |
| 23050 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23051 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23052 | need_version=no |
| 23053 | need_lib_prefix=no |
| 23054 | |
| 23055 | case $GCC,$host_os in |
| 23056 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 23057 | library_names_spec='$libname.dll.a' |
| 23058 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23059 | postinstall_cmds='base_file=`basename \${file}`~ |
| 23060 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 23061 | dldir=$destdir/`dirname \$dlpath`~ |
| 23062 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23063 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 23064 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23065 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 23066 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23067 | $rm \$dlpath' |
| 23068 | shlibpath_overrides_runpath=yes |
| 23069 | |
| 23070 | case $host_os in |
| 23071 | cygwin*) |
| 23072 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 23073 | 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] | 23074 | 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] | 23075 | ;; |
| 23076 | mingw*) |
| 23077 | # MinGW DLLs use traditional 'lib' prefix |
| 23078 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 23079 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 23080 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 23081 | # It is most probably a Windows format PATH printed by |
| 23082 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 23083 | # path with ; separators, and with drive letters. We can handle the |
| 23084 | # drive letters (cygwin fileutils understands them), so leave them, |
| 23085 | # especially as we might pass files found there to a mingw objdump, |
| 23086 | # which wouldn't understand a cygwinified path. Ahh. |
| 23087 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 23088 | else |
| 23089 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 23090 | fi |
| 23091 | ;; |
| 23092 | pw32*) |
| 23093 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23094 | 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] | 23095 | ;; |
| 23096 | esac |
| 23097 | ;; |
| 23098 | |
| 23099 | *) |
| 23100 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 23101 | ;; |
| 23102 | esac |
| 23103 | dynamic_linker='Win32 ld.exe' |
| 23104 | # FIXME: first we should search . and the directory the executable is in |
| 23105 | shlibpath_var=PATH |
| 23106 | ;; |
| 23107 | |
| 23108 | darwin* | rhapsody*) |
| 23109 | dynamic_linker="$host_os dyld" |
| 23110 | version_type=darwin |
| 23111 | need_lib_prefix=no |
| 23112 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23113 | 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] | 23114 | soname_spec='${libname}${release}${major}$shared_ext' |
| 23115 | shlibpath_overrides_runpath=yes |
| 23116 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 23117 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23118 | # 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] | 23119 | if test "$GCC" = yes; then |
| 23120 | 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"` |
| 23121 | else |
| 23122 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23123 | fi |
| 23124 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 23125 | ;; |
| 23126 | |
| 23127 | dgux*) |
| 23128 | version_type=linux |
| 23129 | need_lib_prefix=no |
| 23130 | need_version=no |
| 23131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 23132 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23133 | shlibpath_var=LD_LIBRARY_PATH |
| 23134 | ;; |
| 23135 | |
| 23136 | freebsd1*) |
| 23137 | dynamic_linker=no |
| 23138 | ;; |
| 23139 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23140 | kfreebsd*-gnu) |
| 23141 | version_type=linux |
| 23142 | need_lib_prefix=no |
| 23143 | need_version=no |
| 23144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23145 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23146 | shlibpath_var=LD_LIBRARY_PATH |
| 23147 | shlibpath_overrides_runpath=no |
| 23148 | hardcode_into_libs=yes |
| 23149 | dynamic_linker='GNU ld.so' |
| 23150 | ;; |
| 23151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23152 | freebsd* | dragonfly*) |
| 23153 | # DragonFly does not have aout. When/if they implement a new |
| 23154 | # versioning mechanism, adjust this. |
| 23155 | if test -x /usr/bin/objformat; then |
| 23156 | objformat=`/usr/bin/objformat` |
| 23157 | else |
| 23158 | case $host_os in |
| 23159 | freebsd[123]*) objformat=aout ;; |
| 23160 | *) objformat=elf ;; |
| 23161 | esac |
| 23162 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23163 | version_type=freebsd-$objformat |
| 23164 | case $version_type in |
| 23165 | freebsd-elf*) |
| 23166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23167 | need_version=no |
| 23168 | need_lib_prefix=no |
| 23169 | ;; |
| 23170 | freebsd-*) |
| 23171 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 23172 | need_version=yes |
| 23173 | ;; |
| 23174 | esac |
| 23175 | shlibpath_var=LD_LIBRARY_PATH |
| 23176 | case $host_os in |
| 23177 | freebsd2*) |
| 23178 | shlibpath_overrides_runpath=yes |
| 23179 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23180 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23181 | shlibpath_overrides_runpath=yes |
| 23182 | hardcode_into_libs=yes |
| 23183 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23184 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 23185 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23186 | shlibpath_overrides_runpath=no |
| 23187 | hardcode_into_libs=yes |
| 23188 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23189 | freebsd*) # from 4.6 on |
| 23190 | shlibpath_overrides_runpath=yes |
| 23191 | hardcode_into_libs=yes |
| 23192 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23193 | esac |
| 23194 | ;; |
| 23195 | |
| 23196 | gnu*) |
| 23197 | version_type=linux |
| 23198 | need_lib_prefix=no |
| 23199 | need_version=no |
| 23200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 23201 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23202 | shlibpath_var=LD_LIBRARY_PATH |
| 23203 | hardcode_into_libs=yes |
| 23204 | ;; |
| 23205 | |
| 23206 | hpux9* | hpux10* | hpux11*) |
| 23207 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 23208 | # link against other versions. |
| 23209 | version_type=sunos |
| 23210 | need_lib_prefix=no |
| 23211 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23212 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23213 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23214 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23215 | hardcode_into_libs=yes |
| 23216 | dynamic_linker="$host_os dld.so" |
| 23217 | shlibpath_var=LD_LIBRARY_PATH |
| 23218 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23220 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23221 | if test "X$HPUX_IA64_MODE" = X32; then |
| 23222 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 23223 | else |
| 23224 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 23225 | fi |
| 23226 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23227 | ;; |
| 23228 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23229 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23230 | hardcode_into_libs=yes |
| 23231 | dynamic_linker="$host_os dld.sl" |
| 23232 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 23233 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23235 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23236 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 23237 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23238 | ;; |
| 23239 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23240 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23241 | dynamic_linker="$host_os dld.sl" |
| 23242 | shlibpath_var=SHLIB_PATH |
| 23243 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 23244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23245 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23246 | ;; |
| 23247 | esac |
| 23248 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 23249 | postinstall_cmds='chmod 555 $lib' |
| 23250 | ;; |
| 23251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23252 | interix3*) |
| 23253 | version_type=linux |
| 23254 | need_lib_prefix=no |
| 23255 | need_version=no |
| 23256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23257 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23258 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 23259 | shlibpath_var=LD_LIBRARY_PATH |
| 23260 | shlibpath_overrides_runpath=no |
| 23261 | hardcode_into_libs=yes |
| 23262 | ;; |
| 23263 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23264 | irix5* | irix6* | nonstopux*) |
| 23265 | case $host_os in |
| 23266 | nonstopux*) version_type=nonstopux ;; |
| 23267 | *) |
| 23268 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 23269 | version_type=linux |
| 23270 | else |
| 23271 | version_type=irix |
| 23272 | fi ;; |
| 23273 | esac |
| 23274 | need_lib_prefix=no |
| 23275 | need_version=no |
| 23276 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23278 | case $host_os in |
| 23279 | irix5* | nonstopux*) |
| 23280 | libsuff= shlibsuff= |
| 23281 | ;; |
| 23282 | *) |
| 23283 | case $LD in # libtool.m4 will add one of these switches to LD |
| 23284 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 23285 | libsuff= shlibsuff= libmagic=32-bit;; |
| 23286 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 23287 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 23288 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 23289 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 23290 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 23291 | esac |
| 23292 | ;; |
| 23293 | esac |
| 23294 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 23295 | shlibpath_overrides_runpath=no |
| 23296 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 23297 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 23298 | hardcode_into_libs=yes |
| 23299 | ;; |
| 23300 | |
| 23301 | # No shared lib support for Linux oldld, aout, or coff. |
| 23302 | linux*oldld* | linux*aout* | linux*coff*) |
| 23303 | dynamic_linker=no |
| 23304 | ;; |
| 23305 | |
| 23306 | # This must be Linux ELF. |
| 23307 | linux*) |
| 23308 | version_type=linux |
| 23309 | need_lib_prefix=no |
| 23310 | need_version=no |
| 23311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23312 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23313 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 23314 | shlibpath_var=LD_LIBRARY_PATH |
| 23315 | shlibpath_overrides_runpath=no |
| 23316 | # This implies no fast_install, which is unacceptable. |
| 23317 | # Some rework will be needed to allow for fast_install |
| 23318 | # before this can be enabled. |
| 23319 | hardcode_into_libs=yes |
| 23320 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23321 | # Append ld.so.conf contents to the search path |
| 23322 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23323 | 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] | 23324 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 23325 | fi |
| 23326 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23327 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 23328 | # powerpc, because MkLinux only supported shared libraries with the |
| 23329 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 23330 | # most powerpc-linux boxes support dynamic linking these days and |
| 23331 | # people can always --disable-shared, the test was removed, and we |
| 23332 | # assume the GNU/Linux dynamic linker is in use. |
| 23333 | dynamic_linker='GNU/Linux ld.so' |
| 23334 | ;; |
| 23335 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23336 | knetbsd*-gnu) |
| 23337 | version_type=linux |
| 23338 | need_lib_prefix=no |
| 23339 | need_version=no |
| 23340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23341 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23342 | shlibpath_var=LD_LIBRARY_PATH |
| 23343 | shlibpath_overrides_runpath=no |
| 23344 | hardcode_into_libs=yes |
| 23345 | dynamic_linker='GNU ld.so' |
| 23346 | ;; |
| 23347 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23348 | netbsd*) |
| 23349 | version_type=sunos |
| 23350 | need_lib_prefix=no |
| 23351 | need_version=no |
| 23352 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23354 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23355 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23356 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23357 | 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] | 23358 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23359 | dynamic_linker='NetBSD ld.elf_so' |
| 23360 | fi |
| 23361 | shlibpath_var=LD_LIBRARY_PATH |
| 23362 | shlibpath_overrides_runpath=yes |
| 23363 | hardcode_into_libs=yes |
| 23364 | ;; |
| 23365 | |
| 23366 | newsos6) |
| 23367 | version_type=linux |
| 23368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23369 | shlibpath_var=LD_LIBRARY_PATH |
| 23370 | shlibpath_overrides_runpath=yes |
| 23371 | ;; |
| 23372 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23373 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23374 | version_type=linux |
| 23375 | need_lib_prefix=no |
| 23376 | need_version=no |
| 23377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23378 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23379 | shlibpath_var=LD_LIBRARY_PATH |
| 23380 | shlibpath_overrides_runpath=yes |
| 23381 | ;; |
| 23382 | |
| 23383 | openbsd*) |
| 23384 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23385 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23386 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23387 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23388 | case $host_os in |
| 23389 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23390 | *) need_version=no ;; |
| 23391 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23393 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23394 | shlibpath_var=LD_LIBRARY_PATH |
| 23395 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23396 | case $host_os in |
| 23397 | openbsd2.[89] | openbsd2.[89].*) |
| 23398 | shlibpath_overrides_runpath=no |
| 23399 | ;; |
| 23400 | *) |
| 23401 | shlibpath_overrides_runpath=yes |
| 23402 | ;; |
| 23403 | esac |
| 23404 | else |
| 23405 | shlibpath_overrides_runpath=yes |
| 23406 | fi |
| 23407 | ;; |
| 23408 | |
| 23409 | os2*) |
| 23410 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23411 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23412 | need_lib_prefix=no |
| 23413 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23414 | dynamic_linker='OS/2 ld.exe' |
| 23415 | shlibpath_var=LIBPATH |
| 23416 | ;; |
| 23417 | |
| 23418 | osf3* | osf4* | osf5*) |
| 23419 | version_type=osf |
| 23420 | need_lib_prefix=no |
| 23421 | need_version=no |
| 23422 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23424 | shlibpath_var=LD_LIBRARY_PATH |
| 23425 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23426 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23427 | ;; |
| 23428 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23429 | solaris*) |
| 23430 | version_type=linux |
| 23431 | need_lib_prefix=no |
| 23432 | need_version=no |
| 23433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23434 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23435 | shlibpath_var=LD_LIBRARY_PATH |
| 23436 | shlibpath_overrides_runpath=yes |
| 23437 | hardcode_into_libs=yes |
| 23438 | # ldd complains unless libraries are executable |
| 23439 | postinstall_cmds='chmod +x $lib' |
| 23440 | ;; |
| 23441 | |
| 23442 | sunos4*) |
| 23443 | version_type=sunos |
| 23444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23445 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23446 | shlibpath_var=LD_LIBRARY_PATH |
| 23447 | shlibpath_overrides_runpath=yes |
| 23448 | if test "$with_gnu_ld" = yes; then |
| 23449 | need_lib_prefix=no |
| 23450 | fi |
| 23451 | need_version=yes |
| 23452 | ;; |
| 23453 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23454 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23455 | version_type=linux |
| 23456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23457 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23458 | shlibpath_var=LD_LIBRARY_PATH |
| 23459 | case $host_vendor in |
| 23460 | sni) |
| 23461 | shlibpath_overrides_runpath=no |
| 23462 | need_lib_prefix=no |
| 23463 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23464 | runpath_var=LD_RUN_PATH |
| 23465 | ;; |
| 23466 | siemens) |
| 23467 | need_lib_prefix=no |
| 23468 | ;; |
| 23469 | motorola) |
| 23470 | need_lib_prefix=no |
| 23471 | need_version=no |
| 23472 | shlibpath_overrides_runpath=no |
| 23473 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23474 | ;; |
| 23475 | esac |
| 23476 | ;; |
| 23477 | |
| 23478 | sysv4*MP*) |
| 23479 | if test -d /usr/nec ;then |
| 23480 | version_type=linux |
| 23481 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23482 | soname_spec='$libname${shared_ext}.$major' |
| 23483 | shlibpath_var=LD_LIBRARY_PATH |
| 23484 | fi |
| 23485 | ;; |
| 23486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23487 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23488 | version_type=freebsd-elf |
| 23489 | need_lib_prefix=no |
| 23490 | need_version=no |
| 23491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23492 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23493 | shlibpath_var=LD_LIBRARY_PATH |
| 23494 | hardcode_into_libs=yes |
| 23495 | if test "$with_gnu_ld" = yes; then |
| 23496 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23497 | shlibpath_overrides_runpath=no |
| 23498 | else |
| 23499 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23500 | shlibpath_overrides_runpath=yes |
| 23501 | case $host_os in |
| 23502 | sco3.2v5*) |
| 23503 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23504 | ;; |
| 23505 | esac |
| 23506 | fi |
| 23507 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23508 | ;; |
| 23509 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23510 | uts4*) |
| 23511 | version_type=linux |
| 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 | shlibpath_var=LD_LIBRARY_PATH |
| 23515 | ;; |
| 23516 | |
| 23517 | *) |
| 23518 | dynamic_linker=no |
| 23519 | ;; |
| 23520 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23521 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23522 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23523 | test "$dynamic_linker" = no && can_build_shared=no |
| 23524 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23525 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23526 | if test "$GCC" = yes; then |
| 23527 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23528 | fi |
| 23529 | |
| 23530 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23531 | 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] | 23532 | hardcode_action_F77= |
| 23533 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23534 | test -n "$runpath_var_F77" || \ |
| 23535 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23536 | |
| 23537 | # We can hardcode non-existant directories. |
| 23538 | if test "$hardcode_direct_F77" != no && |
| 23539 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23540 | # have to relink, otherwise we might link with an installed library |
| 23541 | # when we should be linking with a yet-to-be-installed one |
| 23542 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23543 | test "$hardcode_minus_L_F77" != no; then |
| 23544 | # Linking always hardcodes the temporary library directory. |
| 23545 | hardcode_action_F77=relink |
| 23546 | else |
| 23547 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23548 | hardcode_action_F77=immediate |
| 23549 | fi |
| 23550 | else |
| 23551 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23552 | # directories. |
| 23553 | hardcode_action_F77=unsupported |
| 23554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23555 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23556 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23557 | |
| 23558 | if test "$hardcode_action_F77" = relink; then |
| 23559 | # Fast installation is not supported |
| 23560 | enable_fast_install=no |
| 23561 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23562 | test "$enable_shared" = no; then |
| 23563 | # Fast installation is not necessary |
| 23564 | enable_fast_install=needless |
| 23565 | fi |
| 23566 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23567 | |
| 23568 | # The else clause should only fire when bootstrapping the |
| 23569 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23570 | # with your package, and you will get complaints that there are |
| 23571 | # no rules to generate ltmain.sh. |
| 23572 | if test -f "$ltmain"; then |
| 23573 | # See if we are running on zsh, and set the options which allow our commands through |
| 23574 | # without removal of \ escapes. |
| 23575 | if test -n "${ZSH_VERSION+set}" ; then |
| 23576 | setopt NO_GLOB_SUBST |
| 23577 | fi |
| 23578 | # Now quote all the things that may contain metacharacters while being |
| 23579 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23580 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23581 | 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] | 23582 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23583 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23584 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23585 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23586 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23587 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23588 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23589 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23590 | compiler_F77 \ |
| 23591 | CC_F77 \ |
| 23592 | LD_F77 \ |
| 23593 | lt_prog_compiler_wl_F77 \ |
| 23594 | lt_prog_compiler_pic_F77 \ |
| 23595 | lt_prog_compiler_static_F77 \ |
| 23596 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23597 | export_dynamic_flag_spec_F77 \ |
| 23598 | thread_safe_flag_spec_F77 \ |
| 23599 | whole_archive_flag_spec_F77 \ |
| 23600 | enable_shared_with_static_runtimes_F77 \ |
| 23601 | old_archive_cmds_F77 \ |
| 23602 | old_archive_from_new_cmds_F77 \ |
| 23603 | predep_objects_F77 \ |
| 23604 | postdep_objects_F77 \ |
| 23605 | predeps_F77 \ |
| 23606 | postdeps_F77 \ |
| 23607 | compiler_lib_search_path_F77 \ |
| 23608 | archive_cmds_F77 \ |
| 23609 | archive_expsym_cmds_F77 \ |
| 23610 | postinstall_cmds_F77 \ |
| 23611 | postuninstall_cmds_F77 \ |
| 23612 | old_archive_from_expsyms_cmds_F77 \ |
| 23613 | allow_undefined_flag_F77 \ |
| 23614 | no_undefined_flag_F77 \ |
| 23615 | export_symbols_cmds_F77 \ |
| 23616 | hardcode_libdir_flag_spec_F77 \ |
| 23617 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23618 | hardcode_libdir_separator_F77 \ |
| 23619 | hardcode_automatic_F77 \ |
| 23620 | module_cmds_F77 \ |
| 23621 | module_expsym_cmds_F77 \ |
| 23622 | lt_cv_prog_compiler_c_o_F77 \ |
| 23623 | exclude_expsyms_F77 \ |
| 23624 | include_expsyms_F77; do |
| 23625 | |
| 23626 | case $var in |
| 23627 | old_archive_cmds_F77 | \ |
| 23628 | old_archive_from_new_cmds_F77 | \ |
| 23629 | archive_cmds_F77 | \ |
| 23630 | archive_expsym_cmds_F77 | \ |
| 23631 | module_cmds_F77 | \ |
| 23632 | module_expsym_cmds_F77 | \ |
| 23633 | old_archive_from_expsyms_cmds_F77 | \ |
| 23634 | export_symbols_cmds_F77 | \ |
| 23635 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23636 | postinstall_cmds | postuninstall_cmds | \ |
| 23637 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23638 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23639 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23640 | 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] | 23641 | ;; |
| 23642 | *) |
| 23643 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23644 | ;; |
| 23645 | esac |
| 23646 | done |
| 23647 | |
| 23648 | case $lt_echo in |
| 23649 | *'\$0 --fallback-echo"') |
| 23650 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23651 | ;; |
| 23652 | esac |
| 23653 | |
| 23654 | cfgfile="$ofile" |
| 23655 | |
| 23656 | cat <<__EOF__ >> "$cfgfile" |
| 23657 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23658 | |
| 23659 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23660 | |
| 23661 | # Shell to use when invoking shell scripts. |
| 23662 | SHELL=$lt_SHELL |
| 23663 | |
| 23664 | # Whether or not to build shared libraries. |
| 23665 | build_libtool_libs=$enable_shared |
| 23666 | |
| 23667 | # Whether or not to build static libraries. |
| 23668 | build_old_libs=$enable_static |
| 23669 | |
| 23670 | # Whether or not to add -lc for building shared libraries. |
| 23671 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23672 | |
| 23673 | # Whether or not to disallow shared libs when runtime libs are static |
| 23674 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23675 | |
| 23676 | # Whether or not to optimize for fast installation. |
| 23677 | fast_install=$enable_fast_install |
| 23678 | |
| 23679 | # The host system. |
| 23680 | host_alias=$host_alias |
| 23681 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23682 | host_os=$host_os |
| 23683 | |
| 23684 | # The build system. |
| 23685 | build_alias=$build_alias |
| 23686 | build=$build |
| 23687 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23688 | |
| 23689 | # An echo program that does not interpret backslashes. |
| 23690 | echo=$lt_echo |
| 23691 | |
| 23692 | # The archiver. |
| 23693 | AR=$lt_AR |
| 23694 | AR_FLAGS=$lt_AR_FLAGS |
| 23695 | |
| 23696 | # A C compiler. |
| 23697 | LTCC=$lt_LTCC |
| 23698 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23699 | # LTCC compiler flags. |
| 23700 | LTCFLAGS=$lt_LTCFLAGS |
| 23701 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23702 | # A language-specific compiler. |
| 23703 | CC=$lt_compiler_F77 |
| 23704 | |
| 23705 | # Is the compiler the GNU C compiler? |
| 23706 | with_gcc=$GCC_F77 |
| 23707 | |
| 23708 | # An ERE matcher. |
| 23709 | EGREP=$lt_EGREP |
| 23710 | |
| 23711 | # The linker used to build libraries. |
| 23712 | LD=$lt_LD_F77 |
| 23713 | |
| 23714 | # Whether we need hard or soft links. |
| 23715 | LN_S=$lt_LN_S |
| 23716 | |
| 23717 | # A BSD-compatible nm program. |
| 23718 | NM=$lt_NM |
| 23719 | |
| 23720 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23721 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23722 | |
| 23723 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23724 | MAGIC_CMD=$MAGIC_CMD |
| 23725 | |
| 23726 | # Used on cygwin: DLL creation program. |
| 23727 | DLLTOOL="$DLLTOOL" |
| 23728 | |
| 23729 | # Used on cygwin: object dumper. |
| 23730 | OBJDUMP="$OBJDUMP" |
| 23731 | |
| 23732 | # Used on cygwin: assembler. |
| 23733 | AS="$AS" |
| 23734 | |
| 23735 | # The name of the directory that contains temporary libtool files. |
| 23736 | objdir=$objdir |
| 23737 | |
| 23738 | # How to create reloadable object files. |
| 23739 | reload_flag=$lt_reload_flag |
| 23740 | reload_cmds=$lt_reload_cmds |
| 23741 | |
| 23742 | # How to pass a linker flag through the compiler. |
| 23743 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23744 | |
| 23745 | # Object file suffix (normally "o"). |
| 23746 | objext="$ac_objext" |
| 23747 | |
| 23748 | # Old archive suffix (normally "a"). |
| 23749 | libext="$libext" |
| 23750 | |
| 23751 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23752 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23753 | |
| 23754 | # Executable file suffix (normally ""). |
| 23755 | exeext="$exeext" |
| 23756 | |
| 23757 | # Additional compiler flags for building library objects. |
| 23758 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23759 | pic_mode=$pic_mode |
| 23760 | |
| 23761 | # What is the maximum length of a command? |
| 23762 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23763 | |
| 23764 | # Does compiler simultaneously support -c and -o options? |
| 23765 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23767 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23768 | need_locks=$lt_need_locks |
| 23769 | |
| 23770 | # Do we need the lib prefix for modules? |
| 23771 | need_lib_prefix=$need_lib_prefix |
| 23772 | |
| 23773 | # Do we need a version for libraries? |
| 23774 | need_version=$need_version |
| 23775 | |
| 23776 | # Whether dlopen is supported. |
| 23777 | dlopen_support=$enable_dlopen |
| 23778 | |
| 23779 | # Whether dlopen of programs is supported. |
| 23780 | dlopen_self=$enable_dlopen_self |
| 23781 | |
| 23782 | # Whether dlopen of statically linked programs is supported. |
| 23783 | dlopen_self_static=$enable_dlopen_self_static |
| 23784 | |
| 23785 | # Compiler flag to prevent dynamic linking. |
| 23786 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23787 | |
| 23788 | # Compiler flag to turn off builtin functions. |
| 23789 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23790 | |
| 23791 | # Compiler flag to allow reflexive dlopens. |
| 23792 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23793 | |
| 23794 | # Compiler flag to generate shared objects directly from archives. |
| 23795 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23796 | |
| 23797 | # Compiler flag to generate thread-safe objects. |
| 23798 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23799 | |
| 23800 | # Library versioning type. |
| 23801 | version_type=$version_type |
| 23802 | |
| 23803 | # Format of library name prefix. |
| 23804 | libname_spec=$lt_libname_spec |
| 23805 | |
| 23806 | # List of archive names. First name is the real one, the rest are links. |
| 23807 | # The last name is the one that the linker finds with -lNAME. |
| 23808 | library_names_spec=$lt_library_names_spec |
| 23809 | |
| 23810 | # The coded name of the library, if different from the real name. |
| 23811 | soname_spec=$lt_soname_spec |
| 23812 | |
| 23813 | # Commands used to build and install an old-style archive. |
| 23814 | RANLIB=$lt_RANLIB |
| 23815 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23816 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23817 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23818 | |
| 23819 | # Create an old-style archive from a shared archive. |
| 23820 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23821 | |
| 23822 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23823 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23824 | |
| 23825 | # Commands used to build and install a shared archive. |
| 23826 | archive_cmds=$lt_archive_cmds_F77 |
| 23827 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23828 | postinstall_cmds=$lt_postinstall_cmds |
| 23829 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23830 | |
| 23831 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23832 | module_cmds=$lt_module_cmds_F77 |
| 23833 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23834 | |
| 23835 | # Commands to strip libraries. |
| 23836 | old_striplib=$lt_old_striplib |
| 23837 | striplib=$lt_striplib |
| 23838 | |
| 23839 | # Dependencies to place before the objects being linked to create a |
| 23840 | # shared library. |
| 23841 | predep_objects=$lt_predep_objects_F77 |
| 23842 | |
| 23843 | # Dependencies to place after the objects being linked to create a |
| 23844 | # shared library. |
| 23845 | postdep_objects=$lt_postdep_objects_F77 |
| 23846 | |
| 23847 | # Dependencies to place before the objects being linked to create a |
| 23848 | # shared library. |
| 23849 | predeps=$lt_predeps_F77 |
| 23850 | |
| 23851 | # Dependencies to place after the objects being linked to create a |
| 23852 | # shared library. |
| 23853 | postdeps=$lt_postdeps_F77 |
| 23854 | |
| 23855 | # The library search path used internally by the compiler when linking |
| 23856 | # a shared library. |
| 23857 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23858 | |
| 23859 | # Method to check whether dependent libraries are shared objects. |
| 23860 | deplibs_check_method=$lt_deplibs_check_method |
| 23861 | |
| 23862 | # Command to use when deplibs_check_method == file_magic. |
| 23863 | file_magic_cmd=$lt_file_magic_cmd |
| 23864 | |
| 23865 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23866 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23867 | |
| 23868 | # Flag that forces no undefined symbols. |
| 23869 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23870 | |
| 23871 | # Commands used to finish a libtool library installation in a directory. |
| 23872 | finish_cmds=$lt_finish_cmds |
| 23873 | |
| 23874 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23875 | finish_eval=$lt_finish_eval |
| 23876 | |
| 23877 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23878 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23879 | |
| 23880 | # Transform the output of nm in a proper C declaration |
| 23881 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23882 | |
| 23883 | # Transform the output of nm in a C name address pair |
| 23884 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23885 | |
| 23886 | # This is the shared library runtime path variable. |
| 23887 | runpath_var=$runpath_var |
| 23888 | |
| 23889 | # This is the shared library path variable. |
| 23890 | shlibpath_var=$shlibpath_var |
| 23891 | |
| 23892 | # Is shlibpath searched before the hard-coded library search path? |
| 23893 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23894 | |
| 23895 | # How to hardcode a shared library path into an executable. |
| 23896 | hardcode_action=$hardcode_action_F77 |
| 23897 | |
| 23898 | # Whether we should hardcode library paths into libraries. |
| 23899 | hardcode_into_libs=$hardcode_into_libs |
| 23900 | |
| 23901 | # Flag to hardcode \$libdir into a binary during linking. |
| 23902 | # This must work even if \$libdir does not exist. |
| 23903 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23904 | |
| 23905 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23906 | # a binary during linking. This must work even if \$libdir does |
| 23907 | # not exist. |
| 23908 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23909 | |
| 23910 | # Whether we need a single -rpath flag with a separated argument. |
| 23911 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23912 | |
| 23913 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23914 | # resulting binary. |
| 23915 | hardcode_direct=$hardcode_direct_F77 |
| 23916 | |
| 23917 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23918 | # resulting binary. |
| 23919 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23920 | |
| 23921 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23922 | # the resulting binary. |
| 23923 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23924 | |
| 23925 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23926 | # and all subsequent libraries and executables linked against it. |
| 23927 | hardcode_automatic=$hardcode_automatic_F77 |
| 23928 | |
| 23929 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23930 | # restored at relink time. |
| 23931 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23932 | |
| 23933 | # Whether libtool must link a program against all its dependency libraries. |
| 23934 | link_all_deplibs=$link_all_deplibs_F77 |
| 23935 | |
| 23936 | # Compile-time system search path for libraries |
| 23937 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23938 | |
| 23939 | # Run-time system search path for libraries |
| 23940 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23941 | |
| 23942 | # Fix the shell variable \$srcfile for the compiler. |
| 23943 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23944 | |
| 23945 | # Set to yes if exported symbols are required. |
| 23946 | always_export_symbols=$always_export_symbols_F77 |
| 23947 | |
| 23948 | # The commands to list exported symbols. |
| 23949 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23950 | |
| 23951 | # The commands to extract the exported symbol list from a shared archive. |
| 23952 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23953 | |
| 23954 | # Symbols that should not be listed in the preloaded symbols. |
| 23955 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23956 | |
| 23957 | # Symbols that must always be exported. |
| 23958 | include_expsyms=$lt_include_expsyms_F77 |
| 23959 | |
| 23960 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23961 | |
| 23962 | __EOF__ |
| 23963 | |
| 23964 | |
| 23965 | else |
| 23966 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23967 | # `config.status --recheck' to rerun these tests and create the |
| 23968 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23969 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23970 | if test -f "$ltmain_in"; then |
| 23971 | test -f Makefile && make "$ltmain" |
| 23972 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23973 | fi |
| 23974 | |
| 23975 | |
| 23976 | ac_ext=c |
| 23977 | ac_cpp='$CPP $CPPFLAGS' |
| 23978 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23981 | |
| 23982 | CC="$lt_save_CC" |
| 23983 | |
| 23984 | else |
| 23985 | tagname="" |
| 23986 | fi |
| 23987 | ;; |
| 23988 | |
| 23989 | GCJ) |
| 23990 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23991 | ac_ext=c |
| 23992 | ac_cpp='$CPP $CPPFLAGS' |
| 23993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23996 | |
| 23997 | |
| 23998 | # Source file extension for Java test sources. |
| 23999 | ac_ext=java |
| 24000 | |
| 24001 | # Object file extension for compiled Java test sources. |
| 24002 | objext=o |
| 24003 | objext_GCJ=$objext |
| 24004 | |
| 24005 | # Code to be used in simple compile tests |
| 24006 | lt_simple_compile_test_code="class foo {}\n" |
| 24007 | |
| 24008 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24009 | 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] | 24010 | |
| 24011 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24012 | |
| 24013 | # If no C compiler was specified, use CC. |
| 24014 | LTCC=${LTCC-"$CC"} |
| 24015 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24016 | # If no C compiler flags were specified, use CFLAGS. |
| 24017 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 24018 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24019 | # Allow CC to be a program name with arguments. |
| 24020 | compiler=$CC |
| 24021 | |
| 24022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24023 | # save warnings/boilerplate of simple test code |
| 24024 | ac_outfile=conftest.$ac_objext |
| 24025 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 24026 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24027 | _lt_compiler_boilerplate=`cat conftest.err` |
| 24028 | $rm conftest* |
| 24029 | |
| 24030 | ac_outfile=conftest.$ac_objext |
| 24031 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 24032 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24033 | _lt_linker_boilerplate=`cat conftest.err` |
| 24034 | $rm conftest* |
| 24035 | |
| 24036 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24037 | # Allow CC to be a program name with arguments. |
| 24038 | lt_save_CC="$CC" |
| 24039 | CC=${GCJ-"gcj"} |
| 24040 | compiler=$CC |
| 24041 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24042 | for cc_temp in $compiler""; do |
| 24043 | case $cc_temp in |
| 24044 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24045 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24046 | \-*) ;; |
| 24047 | *) break;; |
| 24048 | esac |
| 24049 | done |
| 24050 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 24051 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24052 | |
| 24053 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 24054 | archive_cmds_need_lc_GCJ=no |
| 24055 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24056 | old_archive_cmds_GCJ=$old_archive_cmds |
| 24057 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24058 | |
| 24059 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 24060 | |
| 24061 | if test "$GCC" = yes; then |
| 24062 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 24063 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24064 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24065 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 24066 | 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] | 24067 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 24068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24069 | else |
| 24070 | lt_cv_prog_compiler_rtti_exceptions=no |
| 24071 | ac_outfile=conftest.$ac_objext |
| 24072 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24073 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 24074 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24075 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24076 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24077 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24078 | # The option is referenced via a variable to avoid confusing sed. |
| 24079 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24080 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24081 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24082 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24083 | (eval echo "\"\$as_me:24083: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24084 | (eval "$lt_compile" 2>conftest.err) |
| 24085 | ac_status=$? |
| 24086 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24087 | echo "$as_me:24087: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24088 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24089 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24090 | # So say no if there are warnings other than the usual output. |
| 24091 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24092 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24093 | 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] | 24094 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 24095 | fi |
| 24096 | fi |
| 24097 | $rm conftest* |
| 24098 | |
| 24099 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24100 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 24101 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24102 | |
| 24103 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 24104 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 24105 | else |
| 24106 | : |
| 24107 | fi |
| 24108 | |
| 24109 | fi |
| 24110 | |
| 24111 | lt_prog_compiler_wl_GCJ= |
| 24112 | lt_prog_compiler_pic_GCJ= |
| 24113 | lt_prog_compiler_static_GCJ= |
| 24114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24115 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 24116 | 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] | 24117 | |
| 24118 | if test "$GCC" = yes; then |
| 24119 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24120 | lt_prog_compiler_static_GCJ='-static' |
| 24121 | |
| 24122 | case $host_os in |
| 24123 | aix*) |
| 24124 | # All AIX code is PIC. |
| 24125 | if test "$host_cpu" = ia64; then |
| 24126 | # AIX 5 now supports IA64 processor |
| 24127 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24128 | fi |
| 24129 | ;; |
| 24130 | |
| 24131 | amigaos*) |
| 24132 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 24133 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 24134 | # like `-m68040'. |
| 24135 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 24136 | ;; |
| 24137 | |
| 24138 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 24139 | # PIC is the default for these OSes. |
| 24140 | ;; |
| 24141 | |
| 24142 | mingw* | pw32* | os2*) |
| 24143 | # This hack is so that the source file can tell whether it is being |
| 24144 | # built for inclusion in a dll (and should export symbols for example). |
| 24145 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24146 | ;; |
| 24147 | |
| 24148 | darwin* | rhapsody*) |
| 24149 | # PIC is the default on this platform |
| 24150 | # Common symbols not allowed in MH_DYLIB files |
| 24151 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 24152 | ;; |
| 24153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24154 | interix3*) |
| 24155 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 24156 | # Instead, we relocate shared libraries at runtime. |
| 24157 | ;; |
| 24158 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24159 | msdosdjgpp*) |
| 24160 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 24161 | # on systems that don't support them. |
| 24162 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24163 | enable_shared=no |
| 24164 | ;; |
| 24165 | |
| 24166 | sysv4*MP*) |
| 24167 | if test -d /usr/nec; then |
| 24168 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 24169 | fi |
| 24170 | ;; |
| 24171 | |
| 24172 | hpux*) |
| 24173 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24174 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24175 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24176 | hppa*64*|ia64*) |
| 24177 | # +Z the default |
| 24178 | ;; |
| 24179 | *) |
| 24180 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24181 | ;; |
| 24182 | esac |
| 24183 | ;; |
| 24184 | |
| 24185 | *) |
| 24186 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24187 | ;; |
| 24188 | esac |
| 24189 | else |
| 24190 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 24191 | case $host_os in |
| 24192 | aix*) |
| 24193 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24194 | if test "$host_cpu" = ia64; then |
| 24195 | # AIX 5 now supports IA64 processor |
| 24196 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24197 | else |
| 24198 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 24199 | fi |
| 24200 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24201 | darwin*) |
| 24202 | # PIC is the default on this platform |
| 24203 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24204 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24205 | xlc*) |
| 24206 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 24207 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24208 | ;; |
| 24209 | esac |
| 24210 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24211 | |
| 24212 | mingw* | pw32* | os2*) |
| 24213 | # This hack is so that the source file can tell whether it is being |
| 24214 | # built for inclusion in a dll (and should export symbols for example). |
| 24215 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24216 | ;; |
| 24217 | |
| 24218 | hpux9* | hpux10* | hpux11*) |
| 24219 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24220 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24221 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24222 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24223 | hppa*64*|ia64*) |
| 24224 | # +Z the default |
| 24225 | ;; |
| 24226 | *) |
| 24227 | lt_prog_compiler_pic_GCJ='+Z' |
| 24228 | ;; |
| 24229 | esac |
| 24230 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 24231 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 24232 | ;; |
| 24233 | |
| 24234 | irix5* | irix6* | nonstopux*) |
| 24235 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24236 | # PIC (with -KPIC) is the default. |
| 24237 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24238 | ;; |
| 24239 | |
| 24240 | newsos6) |
| 24241 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24242 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24243 | ;; |
| 24244 | |
| 24245 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24246 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24247 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24248 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24249 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24250 | lt_prog_compiler_static_GCJ='-static' |
| 24251 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24252 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 24253 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 24254 | # which looks to be a dead project) |
| 24255 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24256 | lt_prog_compiler_pic_GCJ='-fpic' |
| 24257 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24258 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24259 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24260 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24261 | # All Alpha code is PIC. |
| 24262 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24263 | ;; |
| 24264 | esac |
| 24265 | ;; |
| 24266 | |
| 24267 | osf3* | osf4* | osf5*) |
| 24268 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24269 | # All OSF/1 code is PIC. |
| 24270 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24271 | ;; |
| 24272 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24273 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24274 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24275 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24276 | case $cc_basename in |
| 24277 | f77* | f90* | f95*) |
| 24278 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 24279 | *) |
| 24280 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 24281 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24282 | ;; |
| 24283 | |
| 24284 | sunos4*) |
| 24285 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 24286 | lt_prog_compiler_pic_GCJ='-PIC' |
| 24287 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24288 | ;; |
| 24289 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24290 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24291 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24292 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24293 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24294 | ;; |
| 24295 | |
| 24296 | sysv4*MP*) |
| 24297 | if test -d /usr/nec ;then |
| 24298 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 24299 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24300 | fi |
| 24301 | ;; |
| 24302 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24303 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 24304 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24305 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24306 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24307 | ;; |
| 24308 | |
| 24309 | unicos*) |
| 24310 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24311 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24312 | ;; |
| 24313 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24314 | uts4*) |
| 24315 | lt_prog_compiler_pic_GCJ='-pic' |
| 24316 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24317 | ;; |
| 24318 | |
| 24319 | *) |
| 24320 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24321 | ;; |
| 24322 | esac |
| 24323 | fi |
| 24324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24325 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 24326 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24327 | |
| 24328 | # |
| 24329 | # Check to make sure the PIC flag actually works. |
| 24330 | # |
| 24331 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24333 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 24334 | 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] | 24335 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 24336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24337 | else |
| 24338 | lt_prog_compiler_pic_works_GCJ=no |
| 24339 | ac_outfile=conftest.$ac_objext |
| 24340 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24341 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 24342 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24343 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24344 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24345 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24346 | # The option is referenced via a variable to avoid confusing sed. |
| 24347 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24348 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24349 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24350 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24351 | (eval echo "\"\$as_me:24351: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24352 | (eval "$lt_compile" 2>conftest.err) |
| 24353 | ac_status=$? |
| 24354 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24355 | echo "$as_me:24355: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24356 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24357 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24358 | # So say no if there are warnings other than the usual output. |
| 24359 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24360 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24361 | 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] | 24362 | lt_prog_compiler_pic_works_GCJ=yes |
| 24363 | fi |
| 24364 | fi |
| 24365 | $rm conftest* |
| 24366 | |
| 24367 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24368 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24369 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24370 | |
| 24371 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24372 | case $lt_prog_compiler_pic_GCJ in |
| 24373 | "" | " "*) ;; |
| 24374 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24375 | esac |
| 24376 | else |
| 24377 | lt_prog_compiler_pic_GCJ= |
| 24378 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24379 | fi |
| 24380 | |
| 24381 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24382 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24383 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24384 | *djgpp*) |
| 24385 | lt_prog_compiler_pic_GCJ= |
| 24386 | ;; |
| 24387 | *) |
| 24388 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24389 | ;; |
| 24390 | esac |
| 24391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24392 | # |
| 24393 | # Check to make sure the static flag actually works. |
| 24394 | # |
| 24395 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24396 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24397 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24398 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24400 | else |
| 24401 | lt_prog_compiler_static_works_GCJ=no |
| 24402 | save_LDFLAGS="$LDFLAGS" |
| 24403 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24404 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24405 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24406 | # The linker can only warn and ignore the option if not recognized |
| 24407 | # So say no if there are warnings |
| 24408 | if test -s conftest.err; then |
| 24409 | # Append any errors to the config.log. |
| 24410 | cat conftest.err 1>&5 |
| 24411 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24412 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24413 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24414 | lt_prog_compiler_static_works_GCJ=yes |
| 24415 | fi |
| 24416 | else |
| 24417 | lt_prog_compiler_static_works_GCJ=yes |
| 24418 | fi |
| 24419 | fi |
| 24420 | $rm conftest* |
| 24421 | LDFLAGS="$save_LDFLAGS" |
| 24422 | |
| 24423 | fi |
| 24424 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24425 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24426 | |
| 24427 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24428 | : |
| 24429 | else |
| 24430 | lt_prog_compiler_static_GCJ= |
| 24431 | fi |
| 24432 | |
| 24433 | |
| 24434 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24435 | 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] | 24436 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24438 | else |
| 24439 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24440 | $rm -r conftest 2>/dev/null |
| 24441 | mkdir conftest |
| 24442 | cd conftest |
| 24443 | mkdir out |
| 24444 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24445 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24446 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24447 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24448 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24449 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24450 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24451 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24452 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24453 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24454 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24455 | (eval echo "\"\$as_me:24455: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24456 | (eval "$lt_compile" 2>out/conftest.err) |
| 24457 | ac_status=$? |
| 24458 | cat out/conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24459 | echo "$as_me:24459: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24460 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24461 | then |
| 24462 | # The compiler can only warn and ignore the option if not recognized |
| 24463 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24464 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24465 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24466 | 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] | 24467 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24468 | fi |
| 24469 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24470 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24471 | $rm conftest* |
| 24472 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24473 | # template instantiation |
| 24474 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24475 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24476 | cd .. |
| 24477 | rmdir conftest |
| 24478 | $rm conftest* |
| 24479 | |
| 24480 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24481 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24482 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24483 | |
| 24484 | |
| 24485 | hard_links="nottested" |
| 24486 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24487 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24488 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24489 | 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] | 24490 | hard_links=yes |
| 24491 | $rm conftest* |
| 24492 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24493 | touch conftest.a |
| 24494 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24495 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24496 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24497 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24498 | if test "$hard_links" = no; then |
| 24499 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24500 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24501 | need_locks=warn |
| 24502 | fi |
| 24503 | else |
| 24504 | need_locks=no |
| 24505 | fi |
| 24506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24507 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24508 | 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] | 24509 | |
| 24510 | runpath_var= |
| 24511 | allow_undefined_flag_GCJ= |
| 24512 | enable_shared_with_static_runtimes_GCJ=no |
| 24513 | archive_cmds_GCJ= |
| 24514 | archive_expsym_cmds_GCJ= |
| 24515 | old_archive_From_new_cmds_GCJ= |
| 24516 | old_archive_from_expsyms_cmds_GCJ= |
| 24517 | export_dynamic_flag_spec_GCJ= |
| 24518 | whole_archive_flag_spec_GCJ= |
| 24519 | thread_safe_flag_spec_GCJ= |
| 24520 | hardcode_libdir_flag_spec_GCJ= |
| 24521 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24522 | hardcode_libdir_separator_GCJ= |
| 24523 | hardcode_direct_GCJ=no |
| 24524 | hardcode_minus_L_GCJ=no |
| 24525 | hardcode_shlibpath_var_GCJ=unsupported |
| 24526 | link_all_deplibs_GCJ=unknown |
| 24527 | hardcode_automatic_GCJ=no |
| 24528 | module_cmds_GCJ= |
| 24529 | module_expsym_cmds_GCJ= |
| 24530 | always_export_symbols_GCJ=no |
| 24531 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24532 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24533 | # included in the symbol list |
| 24534 | include_expsyms_GCJ= |
| 24535 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24536 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24537 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24538 | # as well as any symbol that contains `d'. |
| 24539 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24540 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24541 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24542 | # the symbol is explicitly referenced. Since portable code cannot |
| 24543 | # rely on this symbol name, it's probably fine to never include it in |
| 24544 | # preloaded symbol tables. |
| 24545 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24546 | # Just being paranoid about ensuring that cc_basename is set. |
| 24547 | for cc_temp in $compiler""; do |
| 24548 | case $cc_temp in |
| 24549 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24550 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24551 | \-*) ;; |
| 24552 | *) break;; |
| 24553 | esac |
| 24554 | done |
| 24555 | 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] | 24556 | |
| 24557 | case $host_os in |
| 24558 | cygwin* | mingw* | pw32*) |
| 24559 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24560 | # When not using gcc, we currently assume that we are using |
| 24561 | # Microsoft Visual C++. |
| 24562 | if test "$GCC" != yes; then |
| 24563 | with_gnu_ld=no |
| 24564 | fi |
| 24565 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24566 | interix*) |
| 24567 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24568 | with_gnu_ld=yes |
| 24569 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24570 | openbsd*) |
| 24571 | with_gnu_ld=no |
| 24572 | ;; |
| 24573 | esac |
| 24574 | |
| 24575 | ld_shlibs_GCJ=yes |
| 24576 | if test "$with_gnu_ld" = yes; then |
| 24577 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24578 | wlarc='${wl}' |
| 24579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24580 | # Set some defaults for GNU ld with shared library support. These |
| 24581 | # are reset later if shared libraries are not supported. Putting them |
| 24582 | # here allows them to be overridden if necessary. |
| 24583 | runpath_var=LD_RUN_PATH |
| 24584 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24585 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24586 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24587 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24588 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24589 | else |
| 24590 | whole_archive_flag_spec_GCJ= |
| 24591 | fi |
| 24592 | supports_anon_versioning=no |
| 24593 | case `$LD -v 2>/dev/null` in |
| 24594 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24595 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24596 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24597 | *\ 2.11.*) ;; # other 2.11 versions |
| 24598 | *) supports_anon_versioning=yes ;; |
| 24599 | esac |
| 24600 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24601 | # See if GNU ld supports shared libraries. |
| 24602 | case $host_os in |
| 24603 | aix3* | aix4* | aix5*) |
| 24604 | # On AIX/PPC, the GNU linker is very broken |
| 24605 | if test "$host_cpu" != ia64; then |
| 24606 | ld_shlibs_GCJ=no |
| 24607 | cat <<EOF 1>&2 |
| 24608 | |
| 24609 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24610 | *** to be unable to reliably create shared libraries on AIX. |
| 24611 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24612 | *** really care for shared libraries, you may want to modify your PATH |
| 24613 | *** so that a non-GNU linker is found, and then restart. |
| 24614 | |
| 24615 | EOF |
| 24616 | fi |
| 24617 | ;; |
| 24618 | |
| 24619 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24620 | 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] | 24621 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24622 | hardcode_minus_L_GCJ=yes |
| 24623 | |
| 24624 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24625 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24626 | # to version 4, is to share data among multiple programs linked |
| 24627 | # with the same dynamic library. Since this doesn't match the |
| 24628 | # behavior of shared libraries on other platforms, we can't use |
| 24629 | # them. |
| 24630 | ld_shlibs_GCJ=no |
| 24631 | ;; |
| 24632 | |
| 24633 | beos*) |
| 24634 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24635 | allow_undefined_flag_GCJ=unsupported |
| 24636 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24637 | # support --undefined. This deserves some investigation. FIXME |
| 24638 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24639 | else |
| 24640 | ld_shlibs_GCJ=no |
| 24641 | fi |
| 24642 | ;; |
| 24643 | |
| 24644 | cygwin* | mingw* | pw32*) |
| 24645 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24646 | # as there is no search path for DLLs. |
| 24647 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24648 | allow_undefined_flag_GCJ=unsupported |
| 24649 | always_export_symbols_GCJ=no |
| 24650 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24651 | 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] | 24652 | |
| 24653 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24654 | 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] | 24655 | # If the export-symbols file already is a .def file (1st line |
| 24656 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24657 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24658 | cp $export_symbols $output_objdir/$soname.def; |
| 24659 | else |
| 24660 | echo EXPORTS > $output_objdir/$soname.def; |
| 24661 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24662 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24663 | $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] | 24664 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24665 | ld_shlibs_GCJ=no |
| 24666 | fi |
| 24667 | ;; |
| 24668 | |
| 24669 | interix3*) |
| 24670 | hardcode_direct_GCJ=no |
| 24671 | hardcode_shlibpath_var_GCJ=no |
| 24672 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24673 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24674 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24675 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24676 | # default) and relocated if they conflict, which is a slow very memory |
| 24677 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24678 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24679 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24680 | 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' |
| 24681 | 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' |
| 24682 | ;; |
| 24683 | |
| 24684 | linux*) |
| 24685 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24686 | tmp_addflag= |
| 24687 | case $cc_basename,$host_cpu in |
| 24688 | pgcc*) # Portland Group C compiler |
| 24689 | 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' |
| 24690 | tmp_addflag=' $pic_flag' |
| 24691 | ;; |
| 24692 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24693 | 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' |
| 24694 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24695 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24696 | tmp_addflag=' -i_dynamic' ;; |
| 24697 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24698 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24699 | ifc* | ifort*) # Intel Fortran compiler |
| 24700 | tmp_addflag=' -nofor_main' ;; |
| 24701 | esac |
| 24702 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24703 | |
| 24704 | if test $supports_anon_versioning = yes; then |
| 24705 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24706 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24707 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24708 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24709 | fi |
| 24710 | else |
| 24711 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24712 | fi |
| 24713 | ;; |
| 24714 | |
| 24715 | netbsd*) |
| 24716 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24717 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24718 | wlarc= |
| 24719 | else |
| 24720 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24721 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24722 | fi |
| 24723 | ;; |
| 24724 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24725 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24726 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24727 | ld_shlibs_GCJ=no |
| 24728 | cat <<EOF 1>&2 |
| 24729 | |
| 24730 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24731 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24732 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24733 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24734 | *** your PATH or compiler configuration so that the native linker is |
| 24735 | *** used, and then restart. |
| 24736 | |
| 24737 | EOF |
| 24738 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24739 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24740 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24741 | else |
| 24742 | ld_shlibs_GCJ=no |
| 24743 | fi |
| 24744 | ;; |
| 24745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24746 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24747 | case `$LD -v 2>&1` in |
| 24748 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24749 | ld_shlibs_GCJ=no |
| 24750 | cat <<_LT_EOF 1>&2 |
| 24751 | |
| 24752 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24753 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24754 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24755 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24756 | *** your PATH or compiler configuration so that the native linker is |
| 24757 | *** used, and then restart. |
| 24758 | |
| 24759 | _LT_EOF |
| 24760 | ;; |
| 24761 | *) |
| 24762 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24763 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24764 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24765 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24766 | else |
| 24767 | ld_shlibs_GCJ=no |
| 24768 | fi |
| 24769 | ;; |
| 24770 | esac |
| 24771 | ;; |
| 24772 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24773 | sunos4*) |
| 24774 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24775 | wlarc= |
| 24776 | hardcode_direct_GCJ=yes |
| 24777 | hardcode_shlibpath_var_GCJ=no |
| 24778 | ;; |
| 24779 | |
| 24780 | *) |
| 24781 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24782 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24783 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24784 | else |
| 24785 | ld_shlibs_GCJ=no |
| 24786 | fi |
| 24787 | ;; |
| 24788 | esac |
| 24789 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24790 | if test "$ld_shlibs_GCJ" = no; then |
| 24791 | runpath_var= |
| 24792 | hardcode_libdir_flag_spec_GCJ= |
| 24793 | export_dynamic_flag_spec_GCJ= |
| 24794 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24795 | fi |
| 24796 | else |
| 24797 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24798 | case $host_os in |
| 24799 | aix3*) |
| 24800 | allow_undefined_flag_GCJ=unsupported |
| 24801 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24802 | 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] | 24803 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24804 | # are no directories specified by -L. |
| 24805 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24806 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24807 | # Neither direct hardcoding nor static linking is supported with a |
| 24808 | # broken collect2. |
| 24809 | hardcode_direct_GCJ=unsupported |
| 24810 | fi |
| 24811 | ;; |
| 24812 | |
| 24813 | aix4* | aix5*) |
| 24814 | if test "$host_cpu" = ia64; then |
| 24815 | # On IA64, the linker does run time linking by default, so we don't |
| 24816 | # have to do anything special. |
| 24817 | aix_use_runtimelinking=no |
| 24818 | exp_sym_flag='-Bexport' |
| 24819 | no_entry_flag="" |
| 24820 | else |
| 24821 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24822 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24823 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24824 | 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' |
| 24825 | else |
| 24826 | 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' |
| 24827 | fi |
| 24828 | aix_use_runtimelinking=no |
| 24829 | |
| 24830 | # Test if we are trying to use run time linking or normal |
| 24831 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24832 | # need to do runtime linking. |
| 24833 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24834 | for ld_flag in $LDFLAGS; do |
| 24835 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24836 | aix_use_runtimelinking=yes |
| 24837 | break |
| 24838 | fi |
| 24839 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24840 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24841 | esac |
| 24842 | |
| 24843 | exp_sym_flag='-bexport' |
| 24844 | no_entry_flag='-bnoentry' |
| 24845 | fi |
| 24846 | |
| 24847 | # When large executables or shared objects are built, AIX ld can |
| 24848 | # have problems creating the table of contents. If linking a library |
| 24849 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24850 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24851 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24852 | |
| 24853 | archive_cmds_GCJ='' |
| 24854 | hardcode_direct_GCJ=yes |
| 24855 | hardcode_libdir_separator_GCJ=':' |
| 24856 | link_all_deplibs_GCJ=yes |
| 24857 | |
| 24858 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24859 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24860 | # We only want to do this on AIX 4.2 and lower, the check |
| 24861 | # below for broken collect2 doesn't work under 4.3+ |
| 24862 | collect2name=`${CC} -print-prog-name=collect2` |
| 24863 | if test -f "$collect2name" && \ |
| 24864 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24865 | then |
| 24866 | # We have reworked collect2 |
| 24867 | hardcode_direct_GCJ=yes |
| 24868 | else |
| 24869 | # We have old collect2 |
| 24870 | hardcode_direct_GCJ=unsupported |
| 24871 | # It fails to find uninstalled libraries when the uninstalled |
| 24872 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24873 | # to unsupported forces relinking |
| 24874 | hardcode_minus_L_GCJ=yes |
| 24875 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24876 | hardcode_libdir_separator_GCJ= |
| 24877 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24878 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24879 | esac |
| 24880 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24881 | if test "$aix_use_runtimelinking" = yes; then |
| 24882 | shared_flag="$shared_flag "'${wl}-G' |
| 24883 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24884 | else |
| 24885 | # not using gcc |
| 24886 | if test "$host_cpu" = ia64; then |
| 24887 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24888 | # chokes on -Wl,-G. The following line is correct: |
| 24889 | shared_flag='-G' |
| 24890 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24891 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24892 | shared_flag='${wl}-G' |
| 24893 | else |
| 24894 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24895 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24896 | fi |
| 24897 | fi |
| 24898 | |
| 24899 | # It seems that -bexpall does not export symbols beginning with |
| 24900 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24901 | always_export_symbols_GCJ=yes |
| 24902 | if test "$aix_use_runtimelinking" = yes; then |
| 24903 | # Warning - without using the other runtime loading flags (-brtl), |
| 24904 | # -berok will link without error, but may produce a broken library. |
| 24905 | allow_undefined_flag_GCJ='-berok' |
| 24906 | # Determine the default libpath from the value encoded in an empty executable. |
| 24907 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24908 | /* confdefs.h. */ |
| 24909 | _ACEOF |
| 24910 | cat confdefs.h >>conftest.$ac_ext |
| 24911 | cat >>conftest.$ac_ext <<_ACEOF |
| 24912 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24913 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24914 | int |
| 24915 | main () |
| 24916 | { |
| 24917 | |
| 24918 | ; |
| 24919 | return 0; |
| 24920 | } |
| 24921 | _ACEOF |
| 24922 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24923 | if { (ac_try="$ac_link" |
| 24924 | case "(($ac_try" in |
| 24925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24926 | *) ac_try_echo=$ac_try;; |
| 24927 | esac |
| 24928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24929 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24930 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24932 | rm -f conftest.er1 |
| 24933 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 24935 | (exit $ac_status); } && |
| 24936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24937 | { (case "(($ac_try" in |
| 24938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24939 | *) ac_try_echo=$ac_try;; |
| 24940 | esac |
| 24941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24942 | (eval "$ac_try") 2>&5 |
| 24943 | ac_status=$? |
| 24944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24945 | (exit $ac_status); }; } && |
| 24946 | { ac_try='test -s conftest$ac_exeext' |
| 24947 | { (case "(($ac_try" in |
| 24948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24949 | *) ac_try_echo=$ac_try;; |
| 24950 | esac |
| 24951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24952 | (eval "$ac_try") 2>&5 |
| 24953 | ac_status=$? |
| 24954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24955 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24956 | |
| 24957 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24958 | }'` |
| 24959 | # Check for a 64-bit object if we didn't find anything. |
| 24960 | 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; } |
| 24961 | }'`; fi |
| 24962 | else |
| 24963 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24966 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24967 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24968 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 24969 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24970 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24971 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24972 | |
| 24973 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24974 | 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] | 24975 | else |
| 24976 | if test "$host_cpu" = ia64; then |
| 24977 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24978 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24979 | 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] | 24980 | else |
| 24981 | # Determine the default libpath from the value encoded in an empty executable. |
| 24982 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24983 | /* confdefs.h. */ |
| 24984 | _ACEOF |
| 24985 | cat confdefs.h >>conftest.$ac_ext |
| 24986 | cat >>conftest.$ac_ext <<_ACEOF |
| 24987 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24988 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24989 | int |
| 24990 | main () |
| 24991 | { |
| 24992 | |
| 24993 | ; |
| 24994 | return 0; |
| 24995 | } |
| 24996 | _ACEOF |
| 24997 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24998 | if { (ac_try="$ac_link" |
| 24999 | case "(($ac_try" in |
| 25000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25001 | *) ac_try_echo=$ac_try;; |
| 25002 | esac |
| 25003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25004 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25005 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25007 | rm -f conftest.er1 |
| 25008 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25010 | (exit $ac_status); } && |
| 25011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 25012 | { (case "(($ac_try" in |
| 25013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25014 | *) ac_try_echo=$ac_try;; |
| 25015 | esac |
| 25016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25017 | (eval "$ac_try") 2>&5 |
| 25018 | ac_status=$? |
| 25019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25020 | (exit $ac_status); }; } && |
| 25021 | { ac_try='test -s conftest$ac_exeext' |
| 25022 | { (case "(($ac_try" in |
| 25023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25024 | *) ac_try_echo=$ac_try;; |
| 25025 | esac |
| 25026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25027 | (eval "$ac_try") 2>&5 |
| 25028 | ac_status=$? |
| 25029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25030 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25031 | |
| 25032 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 25033 | }'` |
| 25034 | # Check for a 64-bit object if we didn't find anything. |
| 25035 | 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; } |
| 25036 | }'`; fi |
| 25037 | else |
| 25038 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25040 | |
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 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25043 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25044 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25045 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25046 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 25047 | |
| 25048 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 25049 | # Warning - without using the other run time loading flags, |
| 25050 | # -berok will link without error, but may produce a broken library. |
| 25051 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 25052 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25053 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25054 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25055 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25056 | # This is similar to how AIX traditionally builds its shared libraries. |
| 25057 | 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] | 25058 | fi |
| 25059 | fi |
| 25060 | ;; |
| 25061 | |
| 25062 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25063 | 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] | 25064 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25065 | hardcode_minus_L_GCJ=yes |
| 25066 | # see comment about different semantics on the GNU ld section |
| 25067 | ld_shlibs_GCJ=no |
| 25068 | ;; |
| 25069 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25070 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25071 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 25072 | ;; |
| 25073 | |
| 25074 | cygwin* | mingw* | pw32*) |
| 25075 | # When not using gcc, we currently assume that we are using |
| 25076 | # Microsoft Visual C++. |
| 25077 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 25078 | # no search path for DLLs. |
| 25079 | hardcode_libdir_flag_spec_GCJ=' ' |
| 25080 | allow_undefined_flag_GCJ=unsupported |
| 25081 | # Tell ltmain to make .lib files, not .a files. |
| 25082 | libext=lib |
| 25083 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25084 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25085 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25086 | 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] | 25087 | # The linker will automatically build a .lib file if we build a DLL. |
| 25088 | old_archive_From_new_cmds_GCJ='true' |
| 25089 | # FIXME: Should let the user specify the lib program. |
| 25090 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25091 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25092 | enable_shared_with_static_runtimes_GCJ=yes |
| 25093 | ;; |
| 25094 | |
| 25095 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25096 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25097 | rhapsody* | darwin1.[012]) |
| 25098 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 25099 | ;; |
| 25100 | *) # Darwin 1.3 on |
| 25101 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 25102 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25103 | else |
| 25104 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 25105 | 10.[012]) |
| 25106 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25107 | ;; |
| 25108 | 10.*) |
| 25109 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 25110 | ;; |
| 25111 | esac |
| 25112 | fi |
| 25113 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25114 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25115 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25116 | hardcode_direct_GCJ=no |
| 25117 | hardcode_automatic_GCJ=yes |
| 25118 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25119 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25120 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25121 | if test "$GCC" = yes ; then |
| 25122 | output_verbose_link_cmd='echo' |
| 25123 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 25124 | 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] | 25125 | # 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] | 25126 | 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}' |
| 25127 | 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] | 25128 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25129 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25130 | xlc*) |
| 25131 | output_verbose_link_cmd='echo' |
| 25132 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 25133 | 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] | 25134 | # 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] | 25135 | 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}' |
| 25136 | 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] | 25137 | ;; |
| 25138 | *) |
| 25139 | ld_shlibs_GCJ=no |
| 25140 | ;; |
| 25141 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25142 | fi |
| 25143 | ;; |
| 25144 | |
| 25145 | dgux*) |
| 25146 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25147 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25148 | hardcode_shlibpath_var_GCJ=no |
| 25149 | ;; |
| 25150 | |
| 25151 | freebsd1*) |
| 25152 | ld_shlibs_GCJ=no |
| 25153 | ;; |
| 25154 | |
| 25155 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 25156 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 25157 | # does not break anything, and helps significantly (at the cost of a little |
| 25158 | # extra space). |
| 25159 | freebsd2.2*) |
| 25160 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 25161 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25162 | hardcode_direct_GCJ=yes |
| 25163 | hardcode_shlibpath_var_GCJ=no |
| 25164 | ;; |
| 25165 | |
| 25166 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 25167 | freebsd2*) |
| 25168 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25169 | hardcode_direct_GCJ=yes |
| 25170 | hardcode_minus_L_GCJ=yes |
| 25171 | hardcode_shlibpath_var_GCJ=no |
| 25172 | ;; |
| 25173 | |
| 25174 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25175 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25176 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 25177 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25178 | hardcode_direct_GCJ=yes |
| 25179 | hardcode_shlibpath_var_GCJ=no |
| 25180 | ;; |
| 25181 | |
| 25182 | hpux9*) |
| 25183 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25184 | 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] | 25185 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25186 | 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] | 25187 | fi |
| 25188 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25189 | hardcode_libdir_separator_GCJ=: |
| 25190 | hardcode_direct_GCJ=yes |
| 25191 | |
| 25192 | # hardcode_minus_L: Not really in the search PATH, |
| 25193 | # but as the default location of the library. |
| 25194 | hardcode_minus_L_GCJ=yes |
| 25195 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25196 | ;; |
| 25197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25198 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25199 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25200 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25201 | else |
| 25202 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 25203 | fi |
| 25204 | if test "$with_gnu_ld" = no; then |
| 25205 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25206 | hardcode_libdir_separator_GCJ=: |
| 25207 | |
| 25208 | hardcode_direct_GCJ=yes |
| 25209 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25210 | |
| 25211 | # hardcode_minus_L: Not really in the search PATH, |
| 25212 | # but as the default location of the library. |
| 25213 | hardcode_minus_L_GCJ=yes |
| 25214 | fi |
| 25215 | ;; |
| 25216 | |
| 25217 | hpux11*) |
| 25218 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 25219 | case $host_cpu in |
| 25220 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25221 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25222 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25223 | ia64*) |
| 25224 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 25225 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25226 | *) |
| 25227 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25228 | ;; |
| 25229 | esac |
| 25230 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25231 | case $host_cpu in |
| 25232 | hppa*64*) |
| 25233 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25234 | ;; |
| 25235 | ia64*) |
| 25236 | 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] | 25237 | ;; |
| 25238 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25239 | 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] | 25240 | ;; |
| 25241 | esac |
| 25242 | fi |
| 25243 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25244 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25245 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25247 | case $host_cpu in |
| 25248 | hppa*64*|ia64*) |
| 25249 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 25250 | hardcode_direct_GCJ=no |
| 25251 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25252 | ;; |
| 25253 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25254 | hardcode_direct_GCJ=yes |
| 25255 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25256 | |
| 25257 | # hardcode_minus_L: Not really in the search PATH, |
| 25258 | # but as the default location of the library. |
| 25259 | hardcode_minus_L_GCJ=yes |
| 25260 | ;; |
| 25261 | esac |
| 25262 | fi |
| 25263 | ;; |
| 25264 | |
| 25265 | irix5* | irix6* | nonstopux*) |
| 25266 | if test "$GCC" = yes; then |
| 25267 | 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' |
| 25268 | else |
| 25269 | 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' |
| 25270 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 25271 | fi |
| 25272 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25273 | hardcode_libdir_separator_GCJ=: |
| 25274 | link_all_deplibs_GCJ=yes |
| 25275 | ;; |
| 25276 | |
| 25277 | netbsd*) |
| 25278 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25279 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 25280 | else |
| 25281 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 25282 | fi |
| 25283 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25284 | hardcode_direct_GCJ=yes |
| 25285 | hardcode_shlibpath_var_GCJ=no |
| 25286 | ;; |
| 25287 | |
| 25288 | newsos6) |
| 25289 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25290 | hardcode_direct_GCJ=yes |
| 25291 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25292 | hardcode_libdir_separator_GCJ=: |
| 25293 | hardcode_shlibpath_var_GCJ=no |
| 25294 | ;; |
| 25295 | |
| 25296 | openbsd*) |
| 25297 | hardcode_direct_GCJ=yes |
| 25298 | hardcode_shlibpath_var_GCJ=no |
| 25299 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25300 | 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] | 25301 | 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] | 25302 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25303 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25304 | else |
| 25305 | case $host_os in |
| 25306 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 25307 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25308 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25309 | ;; |
| 25310 | *) |
| 25311 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25312 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25313 | ;; |
| 25314 | esac |
| 25315 | fi |
| 25316 | ;; |
| 25317 | |
| 25318 | os2*) |
| 25319 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25320 | hardcode_minus_L_GCJ=yes |
| 25321 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25322 | 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] | 25323 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 25324 | ;; |
| 25325 | |
| 25326 | osf3*) |
| 25327 | if test "$GCC" = yes; then |
| 25328 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25329 | 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' |
| 25330 | else |
| 25331 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25332 | 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' |
| 25333 | fi |
| 25334 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25335 | hardcode_libdir_separator_GCJ=: |
| 25336 | ;; |
| 25337 | |
| 25338 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25339 | if test "$GCC" = yes; then |
| 25340 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25341 | 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' |
| 25342 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25343 | else |
| 25344 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25345 | 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] | 25346 | 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] | 25347 | $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] | 25348 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25349 | # Both c and cxx compiler support -rpath directly |
| 25350 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 25351 | fi |
| 25352 | hardcode_libdir_separator_GCJ=: |
| 25353 | ;; |
| 25354 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25355 | solaris*) |
| 25356 | no_undefined_flag_GCJ=' -z text' |
| 25357 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25358 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25359 | 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] | 25360 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25361 | $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] | 25362 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25363 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25364 | 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] | 25365 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25366 | $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] | 25367 | fi |
| 25368 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25369 | hardcode_shlibpath_var_GCJ=no |
| 25370 | case $host_os in |
| 25371 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25372 | *) |
| 25373 | # The compiler driver will combine linker options so we |
| 25374 | # cannot just pass the convience library names through |
| 25375 | # without $wl, iff we do not link with $LD. |
| 25376 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25377 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25378 | case $wlarc in |
| 25379 | '') |
| 25380 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25381 | *) |
| 25382 | 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' ;; |
| 25383 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25384 | esac |
| 25385 | link_all_deplibs_GCJ=yes |
| 25386 | ;; |
| 25387 | |
| 25388 | sunos4*) |
| 25389 | if test "x$host_vendor" = xsequent; then |
| 25390 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25391 | # files that make .init and .fini sections work. |
| 25392 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25393 | else |
| 25394 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25395 | fi |
| 25396 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25397 | hardcode_direct_GCJ=yes |
| 25398 | hardcode_minus_L_GCJ=yes |
| 25399 | hardcode_shlibpath_var_GCJ=no |
| 25400 | ;; |
| 25401 | |
| 25402 | sysv4) |
| 25403 | case $host_vendor in |
| 25404 | sni) |
| 25405 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25406 | hardcode_direct_GCJ=yes # is this really true??? |
| 25407 | ;; |
| 25408 | siemens) |
| 25409 | ## LD is ld it makes a PLAMLIB |
| 25410 | ## CC just makes a GrossModule. |
| 25411 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25412 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25413 | hardcode_direct_GCJ=no |
| 25414 | ;; |
| 25415 | motorola) |
| 25416 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25417 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25418 | ;; |
| 25419 | esac |
| 25420 | runpath_var='LD_RUN_PATH' |
| 25421 | hardcode_shlibpath_var_GCJ=no |
| 25422 | ;; |
| 25423 | |
| 25424 | sysv4.3*) |
| 25425 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25426 | hardcode_shlibpath_var_GCJ=no |
| 25427 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25428 | ;; |
| 25429 | |
| 25430 | sysv4*MP*) |
| 25431 | if test -d /usr/nec; then |
| 25432 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25433 | hardcode_shlibpath_var_GCJ=no |
| 25434 | runpath_var=LD_RUN_PATH |
| 25435 | hardcode_runpath_var=yes |
| 25436 | ld_shlibs_GCJ=yes |
| 25437 | fi |
| 25438 | ;; |
| 25439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25440 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25441 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25442 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25443 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25444 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25445 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25446 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25447 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25448 | 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] | 25449 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25450 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25451 | 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] | 25452 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25453 | ;; |
| 25454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25455 | sysv5* | sco3.2v5* | sco5v6*) |
| 25456 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25457 | # link with -lc, and that would cause any symbols used from libc to |
| 25458 | # always be unresolved, which means just about no library would |
| 25459 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25460 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25461 | # as -z defs. |
| 25462 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25463 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25464 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25465 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25466 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25467 | hardcode_libdir_separator_GCJ=':' |
| 25468 | link_all_deplibs_GCJ=yes |
| 25469 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25470 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25471 | |
| 25472 | if test "$GCC" = yes; then |
| 25473 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25474 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25475 | else |
| 25476 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25477 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25478 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25479 | ;; |
| 25480 | |
| 25481 | uts4*) |
| 25482 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25483 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25484 | hardcode_shlibpath_var_GCJ=no |
| 25485 | ;; |
| 25486 | |
| 25487 | *) |
| 25488 | ld_shlibs_GCJ=no |
| 25489 | ;; |
| 25490 | esac |
| 25491 | fi |
| 25492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25493 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25494 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25495 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25496 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25497 | # |
| 25498 | # Do we need to explicitly link libc? |
| 25499 | # |
| 25500 | case "x$archive_cmds_need_lc_GCJ" in |
| 25501 | x|xyes) |
| 25502 | # Assume -lc should be added |
| 25503 | archive_cmds_need_lc_GCJ=yes |
| 25504 | |
| 25505 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25506 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25507 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25508 | # FIXME: we may have to deal with multi-command sequences. |
| 25509 | ;; |
| 25510 | '$CC '*) |
| 25511 | # Test whether the compiler implicitly links with -lc since on some |
| 25512 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25513 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25514 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25515 | 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] | 25516 | $rm conftest* |
| 25517 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25518 | |
| 25519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25520 | (eval $ac_compile) 2>&5 |
| 25521 | ac_status=$? |
| 25522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25523 | (exit $ac_status); } 2>conftest.err; then |
| 25524 | soname=conftest |
| 25525 | lib=conftest |
| 25526 | libobjs=conftest.$ac_objext |
| 25527 | deplibs= |
| 25528 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25529 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25530 | compiler_flags=-v |
| 25531 | linker_flags=-v |
| 25532 | verstring= |
| 25533 | output_objdir=. |
| 25534 | libname=conftest |
| 25535 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25536 | allow_undefined_flag_GCJ= |
| 25537 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25538 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25539 | ac_status=$? |
| 25540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25541 | (exit $ac_status); } |
| 25542 | then |
| 25543 | archive_cmds_need_lc_GCJ=no |
| 25544 | else |
| 25545 | archive_cmds_need_lc_GCJ=yes |
| 25546 | fi |
| 25547 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25548 | else |
| 25549 | cat conftest.err 1>&5 |
| 25550 | fi |
| 25551 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25552 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25553 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25554 | ;; |
| 25555 | esac |
| 25556 | fi |
| 25557 | ;; |
| 25558 | esac |
| 25559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25560 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25561 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25562 | library_names_spec= |
| 25563 | libname_spec='lib$name' |
| 25564 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25565 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25566 | postinstall_cmds= |
| 25567 | postuninstall_cmds= |
| 25568 | finish_cmds= |
| 25569 | finish_eval= |
| 25570 | shlibpath_var= |
| 25571 | shlibpath_overrides_runpath=unknown |
| 25572 | version_type=none |
| 25573 | dynamic_linker="$host_os ld.so" |
| 25574 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25575 | if test "$GCC" = yes; then |
| 25576 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25577 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25578 | # if the path contains ";" then we assume it to be the separator |
| 25579 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25580 | # assumed that no part of a normal pathname contains ";" but that should |
| 25581 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25582 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25583 | else |
| 25584 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25585 | fi |
| 25586 | else |
| 25587 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25588 | fi |
| 25589 | need_lib_prefix=unknown |
| 25590 | hardcode_into_libs=no |
| 25591 | |
| 25592 | # when you set need_version to no, make sure it does not cause -set_version |
| 25593 | # flags to be left without arguments |
| 25594 | need_version=unknown |
| 25595 | |
| 25596 | case $host_os in |
| 25597 | aix3*) |
| 25598 | version_type=linux |
| 25599 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25600 | shlibpath_var=LIBPATH |
| 25601 | |
| 25602 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25603 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25604 | ;; |
| 25605 | |
| 25606 | aix4* | aix5*) |
| 25607 | version_type=linux |
| 25608 | need_lib_prefix=no |
| 25609 | need_version=no |
| 25610 | hardcode_into_libs=yes |
| 25611 | if test "$host_cpu" = ia64; then |
| 25612 | # AIX 5 supports IA64 |
| 25613 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25614 | shlibpath_var=LD_LIBRARY_PATH |
| 25615 | else |
| 25616 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25617 | # for dependence libraries. The import file would start with |
| 25618 | # the line `#! .'. This would cause the generated library to |
| 25619 | # depend on `.', always an invalid library. This was fixed in |
| 25620 | # development snapshots of GCC prior to 3.0. |
| 25621 | case $host_os in |
| 25622 | aix4 | aix4.[01] | aix4.[01].*) |
| 25623 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25624 | echo ' yes ' |
| 25625 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25626 | : |
| 25627 | else |
| 25628 | can_build_shared=no |
| 25629 | fi |
| 25630 | ;; |
| 25631 | esac |
| 25632 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25633 | # soname into executable. Probably we can add versioning support to |
| 25634 | # collect2, so additional links can be useful in future. |
| 25635 | if test "$aix_use_runtimelinking" = yes; then |
| 25636 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25637 | # instead of lib<name>.a to let people know that these are not |
| 25638 | # typical AIX shared libraries. |
| 25639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25640 | else |
| 25641 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25642 | # and later when we are not doing run time linking. |
| 25643 | library_names_spec='${libname}${release}.a $libname.a' |
| 25644 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25645 | fi |
| 25646 | shlibpath_var=LIBPATH |
| 25647 | fi |
| 25648 | ;; |
| 25649 | |
| 25650 | amigaos*) |
| 25651 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25652 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25653 | 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] | 25654 | ;; |
| 25655 | |
| 25656 | beos*) |
| 25657 | library_names_spec='${libname}${shared_ext}' |
| 25658 | dynamic_linker="$host_os ld.so" |
| 25659 | shlibpath_var=LIBRARY_PATH |
| 25660 | ;; |
| 25661 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25662 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25663 | version_type=linux |
| 25664 | need_version=no |
| 25665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25666 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25667 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25668 | shlibpath_var=LD_LIBRARY_PATH |
| 25669 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25670 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25671 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25672 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25673 | # libtool to hard-code these into programs |
| 25674 | ;; |
| 25675 | |
| 25676 | cygwin* | mingw* | pw32*) |
| 25677 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25678 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25679 | need_version=no |
| 25680 | need_lib_prefix=no |
| 25681 | |
| 25682 | case $GCC,$host_os in |
| 25683 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25684 | library_names_spec='$libname.dll.a' |
| 25685 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25686 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25687 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25688 | dldir=$destdir/`dirname \$dlpath`~ |
| 25689 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25690 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25691 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25692 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25693 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25694 | $rm \$dlpath' |
| 25695 | shlibpath_overrides_runpath=yes |
| 25696 | |
| 25697 | case $host_os in |
| 25698 | cygwin*) |
| 25699 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25700 | 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] | 25701 | 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] | 25702 | ;; |
| 25703 | mingw*) |
| 25704 | # MinGW DLLs use traditional 'lib' prefix |
| 25705 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25706 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25707 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25708 | # It is most probably a Windows format PATH printed by |
| 25709 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25710 | # path with ; separators, and with drive letters. We can handle the |
| 25711 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25712 | # especially as we might pass files found there to a mingw objdump, |
| 25713 | # which wouldn't understand a cygwinified path. Ahh. |
| 25714 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25715 | else |
| 25716 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25717 | fi |
| 25718 | ;; |
| 25719 | pw32*) |
| 25720 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25721 | 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] | 25722 | ;; |
| 25723 | esac |
| 25724 | ;; |
| 25725 | |
| 25726 | *) |
| 25727 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25728 | ;; |
| 25729 | esac |
| 25730 | dynamic_linker='Win32 ld.exe' |
| 25731 | # FIXME: first we should search . and the directory the executable is in |
| 25732 | shlibpath_var=PATH |
| 25733 | ;; |
| 25734 | |
| 25735 | darwin* | rhapsody*) |
| 25736 | dynamic_linker="$host_os dyld" |
| 25737 | version_type=darwin |
| 25738 | need_lib_prefix=no |
| 25739 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25740 | 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] | 25741 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25742 | shlibpath_overrides_runpath=yes |
| 25743 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25744 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25745 | # 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] | 25746 | if test "$GCC" = yes; then |
| 25747 | 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"` |
| 25748 | else |
| 25749 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25750 | fi |
| 25751 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25752 | ;; |
| 25753 | |
| 25754 | dgux*) |
| 25755 | version_type=linux |
| 25756 | need_lib_prefix=no |
| 25757 | need_version=no |
| 25758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25759 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25760 | shlibpath_var=LD_LIBRARY_PATH |
| 25761 | ;; |
| 25762 | |
| 25763 | freebsd1*) |
| 25764 | dynamic_linker=no |
| 25765 | ;; |
| 25766 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25767 | kfreebsd*-gnu) |
| 25768 | version_type=linux |
| 25769 | need_lib_prefix=no |
| 25770 | need_version=no |
| 25771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25772 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25773 | shlibpath_var=LD_LIBRARY_PATH |
| 25774 | shlibpath_overrides_runpath=no |
| 25775 | hardcode_into_libs=yes |
| 25776 | dynamic_linker='GNU ld.so' |
| 25777 | ;; |
| 25778 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25779 | freebsd* | dragonfly*) |
| 25780 | # DragonFly does not have aout. When/if they implement a new |
| 25781 | # versioning mechanism, adjust this. |
| 25782 | if test -x /usr/bin/objformat; then |
| 25783 | objformat=`/usr/bin/objformat` |
| 25784 | else |
| 25785 | case $host_os in |
| 25786 | freebsd[123]*) objformat=aout ;; |
| 25787 | *) objformat=elf ;; |
| 25788 | esac |
| 25789 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25790 | version_type=freebsd-$objformat |
| 25791 | case $version_type in |
| 25792 | freebsd-elf*) |
| 25793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25794 | need_version=no |
| 25795 | need_lib_prefix=no |
| 25796 | ;; |
| 25797 | freebsd-*) |
| 25798 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25799 | need_version=yes |
| 25800 | ;; |
| 25801 | esac |
| 25802 | shlibpath_var=LD_LIBRARY_PATH |
| 25803 | case $host_os in |
| 25804 | freebsd2*) |
| 25805 | shlibpath_overrides_runpath=yes |
| 25806 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25807 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25808 | shlibpath_overrides_runpath=yes |
| 25809 | hardcode_into_libs=yes |
| 25810 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25811 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25812 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25813 | shlibpath_overrides_runpath=no |
| 25814 | hardcode_into_libs=yes |
| 25815 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25816 | freebsd*) # from 4.6 on |
| 25817 | shlibpath_overrides_runpath=yes |
| 25818 | hardcode_into_libs=yes |
| 25819 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25820 | esac |
| 25821 | ;; |
| 25822 | |
| 25823 | gnu*) |
| 25824 | version_type=linux |
| 25825 | need_lib_prefix=no |
| 25826 | need_version=no |
| 25827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25828 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25829 | shlibpath_var=LD_LIBRARY_PATH |
| 25830 | hardcode_into_libs=yes |
| 25831 | ;; |
| 25832 | |
| 25833 | hpux9* | hpux10* | hpux11*) |
| 25834 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25835 | # link against other versions. |
| 25836 | version_type=sunos |
| 25837 | need_lib_prefix=no |
| 25838 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25839 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25840 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25841 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25842 | hardcode_into_libs=yes |
| 25843 | dynamic_linker="$host_os dld.so" |
| 25844 | shlibpath_var=LD_LIBRARY_PATH |
| 25845 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25847 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25848 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25849 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25850 | else |
| 25851 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25852 | fi |
| 25853 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25854 | ;; |
| 25855 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25856 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25857 | hardcode_into_libs=yes |
| 25858 | dynamic_linker="$host_os dld.sl" |
| 25859 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25860 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25863 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25864 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25865 | ;; |
| 25866 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25867 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25868 | dynamic_linker="$host_os dld.sl" |
| 25869 | shlibpath_var=SHLIB_PATH |
| 25870 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25872 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25873 | ;; |
| 25874 | esac |
| 25875 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25876 | postinstall_cmds='chmod 555 $lib' |
| 25877 | ;; |
| 25878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25879 | interix3*) |
| 25880 | version_type=linux |
| 25881 | need_lib_prefix=no |
| 25882 | need_version=no |
| 25883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25884 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25885 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25886 | shlibpath_var=LD_LIBRARY_PATH |
| 25887 | shlibpath_overrides_runpath=no |
| 25888 | hardcode_into_libs=yes |
| 25889 | ;; |
| 25890 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25891 | irix5* | irix6* | nonstopux*) |
| 25892 | case $host_os in |
| 25893 | nonstopux*) version_type=nonstopux ;; |
| 25894 | *) |
| 25895 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25896 | version_type=linux |
| 25897 | else |
| 25898 | version_type=irix |
| 25899 | fi ;; |
| 25900 | esac |
| 25901 | need_lib_prefix=no |
| 25902 | need_version=no |
| 25903 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25905 | case $host_os in |
| 25906 | irix5* | nonstopux*) |
| 25907 | libsuff= shlibsuff= |
| 25908 | ;; |
| 25909 | *) |
| 25910 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25911 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25912 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25913 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25914 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25915 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25916 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25917 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25918 | esac |
| 25919 | ;; |
| 25920 | esac |
| 25921 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25922 | shlibpath_overrides_runpath=no |
| 25923 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25924 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25925 | hardcode_into_libs=yes |
| 25926 | ;; |
| 25927 | |
| 25928 | # No shared lib support for Linux oldld, aout, or coff. |
| 25929 | linux*oldld* | linux*aout* | linux*coff*) |
| 25930 | dynamic_linker=no |
| 25931 | ;; |
| 25932 | |
| 25933 | # This must be Linux ELF. |
| 25934 | linux*) |
| 25935 | version_type=linux |
| 25936 | need_lib_prefix=no |
| 25937 | need_version=no |
| 25938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25939 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25940 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25941 | shlibpath_var=LD_LIBRARY_PATH |
| 25942 | shlibpath_overrides_runpath=no |
| 25943 | # This implies no fast_install, which is unacceptable. |
| 25944 | # Some rework will be needed to allow for fast_install |
| 25945 | # before this can be enabled. |
| 25946 | hardcode_into_libs=yes |
| 25947 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25948 | # Append ld.so.conf contents to the search path |
| 25949 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25950 | 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] | 25951 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25952 | fi |
| 25953 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25954 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25955 | # powerpc, because MkLinux only supported shared libraries with the |
| 25956 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25957 | # most powerpc-linux boxes support dynamic linking these days and |
| 25958 | # people can always --disable-shared, the test was removed, and we |
| 25959 | # assume the GNU/Linux dynamic linker is in use. |
| 25960 | dynamic_linker='GNU/Linux ld.so' |
| 25961 | ;; |
| 25962 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25963 | knetbsd*-gnu) |
| 25964 | version_type=linux |
| 25965 | need_lib_prefix=no |
| 25966 | need_version=no |
| 25967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25968 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25969 | shlibpath_var=LD_LIBRARY_PATH |
| 25970 | shlibpath_overrides_runpath=no |
| 25971 | hardcode_into_libs=yes |
| 25972 | dynamic_linker='GNU ld.so' |
| 25973 | ;; |
| 25974 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25975 | netbsd*) |
| 25976 | version_type=sunos |
| 25977 | need_lib_prefix=no |
| 25978 | need_version=no |
| 25979 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25981 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25982 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25983 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25984 | 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] | 25985 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25986 | dynamic_linker='NetBSD ld.elf_so' |
| 25987 | fi |
| 25988 | shlibpath_var=LD_LIBRARY_PATH |
| 25989 | shlibpath_overrides_runpath=yes |
| 25990 | hardcode_into_libs=yes |
| 25991 | ;; |
| 25992 | |
| 25993 | newsos6) |
| 25994 | version_type=linux |
| 25995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25996 | shlibpath_var=LD_LIBRARY_PATH |
| 25997 | shlibpath_overrides_runpath=yes |
| 25998 | ;; |
| 25999 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26000 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26001 | version_type=linux |
| 26002 | need_lib_prefix=no |
| 26003 | need_version=no |
| 26004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26005 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26006 | shlibpath_var=LD_LIBRARY_PATH |
| 26007 | shlibpath_overrides_runpath=yes |
| 26008 | ;; |
| 26009 | |
| 26010 | openbsd*) |
| 26011 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26012 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26013 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26014 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 26015 | case $host_os in |
| 26016 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 26017 | *) need_version=no ;; |
| 26018 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26020 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 26021 | shlibpath_var=LD_LIBRARY_PATH |
| 26022 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 26023 | case $host_os in |
| 26024 | openbsd2.[89] | openbsd2.[89].*) |
| 26025 | shlibpath_overrides_runpath=no |
| 26026 | ;; |
| 26027 | *) |
| 26028 | shlibpath_overrides_runpath=yes |
| 26029 | ;; |
| 26030 | esac |
| 26031 | else |
| 26032 | shlibpath_overrides_runpath=yes |
| 26033 | fi |
| 26034 | ;; |
| 26035 | |
| 26036 | os2*) |
| 26037 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26038 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26039 | need_lib_prefix=no |
| 26040 | library_names_spec='$libname${shared_ext} $libname.a' |
| 26041 | dynamic_linker='OS/2 ld.exe' |
| 26042 | shlibpath_var=LIBPATH |
| 26043 | ;; |
| 26044 | |
| 26045 | osf3* | osf4* | osf5*) |
| 26046 | version_type=osf |
| 26047 | need_lib_prefix=no |
| 26048 | need_version=no |
| 26049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26051 | shlibpath_var=LD_LIBRARY_PATH |
| 26052 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 26053 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 26054 | ;; |
| 26055 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26056 | solaris*) |
| 26057 | version_type=linux |
| 26058 | need_lib_prefix=no |
| 26059 | need_version=no |
| 26060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26061 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26062 | shlibpath_var=LD_LIBRARY_PATH |
| 26063 | shlibpath_overrides_runpath=yes |
| 26064 | hardcode_into_libs=yes |
| 26065 | # ldd complains unless libraries are executable |
| 26066 | postinstall_cmds='chmod +x $lib' |
| 26067 | ;; |
| 26068 | |
| 26069 | sunos4*) |
| 26070 | version_type=sunos |
| 26071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26072 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 26073 | shlibpath_var=LD_LIBRARY_PATH |
| 26074 | shlibpath_overrides_runpath=yes |
| 26075 | if test "$with_gnu_ld" = yes; then |
| 26076 | need_lib_prefix=no |
| 26077 | fi |
| 26078 | need_version=yes |
| 26079 | ;; |
| 26080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26081 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26082 | version_type=linux |
| 26083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26084 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26085 | shlibpath_var=LD_LIBRARY_PATH |
| 26086 | case $host_vendor in |
| 26087 | sni) |
| 26088 | shlibpath_overrides_runpath=no |
| 26089 | need_lib_prefix=no |
| 26090 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 26091 | runpath_var=LD_RUN_PATH |
| 26092 | ;; |
| 26093 | siemens) |
| 26094 | need_lib_prefix=no |
| 26095 | ;; |
| 26096 | motorola) |
| 26097 | need_lib_prefix=no |
| 26098 | need_version=no |
| 26099 | shlibpath_overrides_runpath=no |
| 26100 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 26101 | ;; |
| 26102 | esac |
| 26103 | ;; |
| 26104 | |
| 26105 | sysv4*MP*) |
| 26106 | if test -d /usr/nec ;then |
| 26107 | version_type=linux |
| 26108 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 26109 | soname_spec='$libname${shared_ext}.$major' |
| 26110 | shlibpath_var=LD_LIBRARY_PATH |
| 26111 | fi |
| 26112 | ;; |
| 26113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26114 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 26115 | version_type=freebsd-elf |
| 26116 | need_lib_prefix=no |
| 26117 | need_version=no |
| 26118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 26119 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26120 | shlibpath_var=LD_LIBRARY_PATH |
| 26121 | hardcode_into_libs=yes |
| 26122 | if test "$with_gnu_ld" = yes; then |
| 26123 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 26124 | shlibpath_overrides_runpath=no |
| 26125 | else |
| 26126 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 26127 | shlibpath_overrides_runpath=yes |
| 26128 | case $host_os in |
| 26129 | sco3.2v5*) |
| 26130 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 26131 | ;; |
| 26132 | esac |
| 26133 | fi |
| 26134 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 26135 | ;; |
| 26136 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26137 | uts4*) |
| 26138 | version_type=linux |
| 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 | shlibpath_var=LD_LIBRARY_PATH |
| 26142 | ;; |
| 26143 | |
| 26144 | *) |
| 26145 | dynamic_linker=no |
| 26146 | ;; |
| 26147 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26148 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 26149 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26150 | test "$dynamic_linker" = no && can_build_shared=no |
| 26151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26152 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 26153 | if test "$GCC" = yes; then |
| 26154 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 26155 | fi |
| 26156 | |
| 26157 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 26158 | 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] | 26159 | hardcode_action_GCJ= |
| 26160 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 26161 | test -n "$runpath_var_GCJ" || \ |
| 26162 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 26163 | |
| 26164 | # We can hardcode non-existant directories. |
| 26165 | if test "$hardcode_direct_GCJ" != no && |
| 26166 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 26167 | # have to relink, otherwise we might link with an installed library |
| 26168 | # when we should be linking with a yet-to-be-installed one |
| 26169 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 26170 | test "$hardcode_minus_L_GCJ" != no; then |
| 26171 | # Linking always hardcodes the temporary library directory. |
| 26172 | hardcode_action_GCJ=relink |
| 26173 | else |
| 26174 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 26175 | hardcode_action_GCJ=immediate |
| 26176 | fi |
| 26177 | else |
| 26178 | # We cannot hardcode anything, or else we can only hardcode existing |
| 26179 | # directories. |
| 26180 | hardcode_action_GCJ=unsupported |
| 26181 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26182 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 26183 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26184 | |
| 26185 | if test "$hardcode_action_GCJ" = relink; then |
| 26186 | # Fast installation is not supported |
| 26187 | enable_fast_install=no |
| 26188 | elif test "$shlibpath_overrides_runpath" = yes || |
| 26189 | test "$enable_shared" = no; then |
| 26190 | # Fast installation is not necessary |
| 26191 | enable_fast_install=needless |
| 26192 | fi |
| 26193 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26194 | |
| 26195 | # The else clause should only fire when bootstrapping the |
| 26196 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26197 | # with your package, and you will get complaints that there are |
| 26198 | # no rules to generate ltmain.sh. |
| 26199 | if test -f "$ltmain"; then |
| 26200 | # See if we are running on zsh, and set the options which allow our commands through |
| 26201 | # without removal of \ escapes. |
| 26202 | if test -n "${ZSH_VERSION+set}" ; then |
| 26203 | setopt NO_GLOB_SUBST |
| 26204 | fi |
| 26205 | # Now quote all the things that may contain metacharacters while being |
| 26206 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26207 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26208 | 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] | 26209 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26210 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26211 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26212 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26213 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26214 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26215 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26216 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26217 | compiler_GCJ \ |
| 26218 | CC_GCJ \ |
| 26219 | LD_GCJ \ |
| 26220 | lt_prog_compiler_wl_GCJ \ |
| 26221 | lt_prog_compiler_pic_GCJ \ |
| 26222 | lt_prog_compiler_static_GCJ \ |
| 26223 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 26224 | export_dynamic_flag_spec_GCJ \ |
| 26225 | thread_safe_flag_spec_GCJ \ |
| 26226 | whole_archive_flag_spec_GCJ \ |
| 26227 | enable_shared_with_static_runtimes_GCJ \ |
| 26228 | old_archive_cmds_GCJ \ |
| 26229 | old_archive_from_new_cmds_GCJ \ |
| 26230 | predep_objects_GCJ \ |
| 26231 | postdep_objects_GCJ \ |
| 26232 | predeps_GCJ \ |
| 26233 | postdeps_GCJ \ |
| 26234 | compiler_lib_search_path_GCJ \ |
| 26235 | archive_cmds_GCJ \ |
| 26236 | archive_expsym_cmds_GCJ \ |
| 26237 | postinstall_cmds_GCJ \ |
| 26238 | postuninstall_cmds_GCJ \ |
| 26239 | old_archive_from_expsyms_cmds_GCJ \ |
| 26240 | allow_undefined_flag_GCJ \ |
| 26241 | no_undefined_flag_GCJ \ |
| 26242 | export_symbols_cmds_GCJ \ |
| 26243 | hardcode_libdir_flag_spec_GCJ \ |
| 26244 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 26245 | hardcode_libdir_separator_GCJ \ |
| 26246 | hardcode_automatic_GCJ \ |
| 26247 | module_cmds_GCJ \ |
| 26248 | module_expsym_cmds_GCJ \ |
| 26249 | lt_cv_prog_compiler_c_o_GCJ \ |
| 26250 | exclude_expsyms_GCJ \ |
| 26251 | include_expsyms_GCJ; do |
| 26252 | |
| 26253 | case $var in |
| 26254 | old_archive_cmds_GCJ | \ |
| 26255 | old_archive_from_new_cmds_GCJ | \ |
| 26256 | archive_cmds_GCJ | \ |
| 26257 | archive_expsym_cmds_GCJ | \ |
| 26258 | module_cmds_GCJ | \ |
| 26259 | module_expsym_cmds_GCJ | \ |
| 26260 | old_archive_from_expsyms_cmds_GCJ | \ |
| 26261 | export_symbols_cmds_GCJ | \ |
| 26262 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26263 | postinstall_cmds | postuninstall_cmds | \ |
| 26264 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26265 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26266 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26267 | 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] | 26268 | ;; |
| 26269 | *) |
| 26270 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26271 | ;; |
| 26272 | esac |
| 26273 | done |
| 26274 | |
| 26275 | case $lt_echo in |
| 26276 | *'\$0 --fallback-echo"') |
| 26277 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26278 | ;; |
| 26279 | esac |
| 26280 | |
| 26281 | cfgfile="$ofile" |
| 26282 | |
| 26283 | cat <<__EOF__ >> "$cfgfile" |
| 26284 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26285 | |
| 26286 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26287 | |
| 26288 | # Shell to use when invoking shell scripts. |
| 26289 | SHELL=$lt_SHELL |
| 26290 | |
| 26291 | # Whether or not to build shared libraries. |
| 26292 | build_libtool_libs=$enable_shared |
| 26293 | |
| 26294 | # Whether or not to build static libraries. |
| 26295 | build_old_libs=$enable_static |
| 26296 | |
| 26297 | # Whether or not to add -lc for building shared libraries. |
| 26298 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 26299 | |
| 26300 | # Whether or not to disallow shared libs when runtime libs are static |
| 26301 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 26302 | |
| 26303 | # Whether or not to optimize for fast installation. |
| 26304 | fast_install=$enable_fast_install |
| 26305 | |
| 26306 | # The host system. |
| 26307 | host_alias=$host_alias |
| 26308 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26309 | host_os=$host_os |
| 26310 | |
| 26311 | # The build system. |
| 26312 | build_alias=$build_alias |
| 26313 | build=$build |
| 26314 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26315 | |
| 26316 | # An echo program that does not interpret backslashes. |
| 26317 | echo=$lt_echo |
| 26318 | |
| 26319 | # The archiver. |
| 26320 | AR=$lt_AR |
| 26321 | AR_FLAGS=$lt_AR_FLAGS |
| 26322 | |
| 26323 | # A C compiler. |
| 26324 | LTCC=$lt_LTCC |
| 26325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26326 | # LTCC compiler flags. |
| 26327 | LTCFLAGS=$lt_LTCFLAGS |
| 26328 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26329 | # A language-specific compiler. |
| 26330 | CC=$lt_compiler_GCJ |
| 26331 | |
| 26332 | # Is the compiler the GNU C compiler? |
| 26333 | with_gcc=$GCC_GCJ |
| 26334 | |
| 26335 | # An ERE matcher. |
| 26336 | EGREP=$lt_EGREP |
| 26337 | |
| 26338 | # The linker used to build libraries. |
| 26339 | LD=$lt_LD_GCJ |
| 26340 | |
| 26341 | # Whether we need hard or soft links. |
| 26342 | LN_S=$lt_LN_S |
| 26343 | |
| 26344 | # A BSD-compatible nm program. |
| 26345 | NM=$lt_NM |
| 26346 | |
| 26347 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26348 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26349 | |
| 26350 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26351 | MAGIC_CMD=$MAGIC_CMD |
| 26352 | |
| 26353 | # Used on cygwin: DLL creation program. |
| 26354 | DLLTOOL="$DLLTOOL" |
| 26355 | |
| 26356 | # Used on cygwin: object dumper. |
| 26357 | OBJDUMP="$OBJDUMP" |
| 26358 | |
| 26359 | # Used on cygwin: assembler. |
| 26360 | AS="$AS" |
| 26361 | |
| 26362 | # The name of the directory that contains temporary libtool files. |
| 26363 | objdir=$objdir |
| 26364 | |
| 26365 | # How to create reloadable object files. |
| 26366 | reload_flag=$lt_reload_flag |
| 26367 | reload_cmds=$lt_reload_cmds |
| 26368 | |
| 26369 | # How to pass a linker flag through the compiler. |
| 26370 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26371 | |
| 26372 | # Object file suffix (normally "o"). |
| 26373 | objext="$ac_objext" |
| 26374 | |
| 26375 | # Old archive suffix (normally "a"). |
| 26376 | libext="$libext" |
| 26377 | |
| 26378 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26379 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26380 | |
| 26381 | # Executable file suffix (normally ""). |
| 26382 | exeext="$exeext" |
| 26383 | |
| 26384 | # Additional compiler flags for building library objects. |
| 26385 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26386 | pic_mode=$pic_mode |
| 26387 | |
| 26388 | # What is the maximum length of a command? |
| 26389 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26390 | |
| 26391 | # Does compiler simultaneously support -c and -o options? |
| 26392 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26394 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26395 | need_locks=$lt_need_locks |
| 26396 | |
| 26397 | # Do we need the lib prefix for modules? |
| 26398 | need_lib_prefix=$need_lib_prefix |
| 26399 | |
| 26400 | # Do we need a version for libraries? |
| 26401 | need_version=$need_version |
| 26402 | |
| 26403 | # Whether dlopen is supported. |
| 26404 | dlopen_support=$enable_dlopen |
| 26405 | |
| 26406 | # Whether dlopen of programs is supported. |
| 26407 | dlopen_self=$enable_dlopen_self |
| 26408 | |
| 26409 | # Whether dlopen of statically linked programs is supported. |
| 26410 | dlopen_self_static=$enable_dlopen_self_static |
| 26411 | |
| 26412 | # Compiler flag to prevent dynamic linking. |
| 26413 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26414 | |
| 26415 | # Compiler flag to turn off builtin functions. |
| 26416 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26417 | |
| 26418 | # Compiler flag to allow reflexive dlopens. |
| 26419 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26420 | |
| 26421 | # Compiler flag to generate shared objects directly from archives. |
| 26422 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26423 | |
| 26424 | # Compiler flag to generate thread-safe objects. |
| 26425 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26426 | |
| 26427 | # Library versioning type. |
| 26428 | version_type=$version_type |
| 26429 | |
| 26430 | # Format of library name prefix. |
| 26431 | libname_spec=$lt_libname_spec |
| 26432 | |
| 26433 | # List of archive names. First name is the real one, the rest are links. |
| 26434 | # The last name is the one that the linker finds with -lNAME. |
| 26435 | library_names_spec=$lt_library_names_spec |
| 26436 | |
| 26437 | # The coded name of the library, if different from the real name. |
| 26438 | soname_spec=$lt_soname_spec |
| 26439 | |
| 26440 | # Commands used to build and install an old-style archive. |
| 26441 | RANLIB=$lt_RANLIB |
| 26442 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26443 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26444 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26445 | |
| 26446 | # Create an old-style archive from a shared archive. |
| 26447 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26448 | |
| 26449 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26450 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26451 | |
| 26452 | # Commands used to build and install a shared archive. |
| 26453 | archive_cmds=$lt_archive_cmds_GCJ |
| 26454 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26455 | postinstall_cmds=$lt_postinstall_cmds |
| 26456 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26457 | |
| 26458 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26459 | module_cmds=$lt_module_cmds_GCJ |
| 26460 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26461 | |
| 26462 | # Commands to strip libraries. |
| 26463 | old_striplib=$lt_old_striplib |
| 26464 | striplib=$lt_striplib |
| 26465 | |
| 26466 | # Dependencies to place before the objects being linked to create a |
| 26467 | # shared library. |
| 26468 | predep_objects=$lt_predep_objects_GCJ |
| 26469 | |
| 26470 | # Dependencies to place after the objects being linked to create a |
| 26471 | # shared library. |
| 26472 | postdep_objects=$lt_postdep_objects_GCJ |
| 26473 | |
| 26474 | # Dependencies to place before the objects being linked to create a |
| 26475 | # shared library. |
| 26476 | predeps=$lt_predeps_GCJ |
| 26477 | |
| 26478 | # Dependencies to place after the objects being linked to create a |
| 26479 | # shared library. |
| 26480 | postdeps=$lt_postdeps_GCJ |
| 26481 | |
| 26482 | # The library search path used internally by the compiler when linking |
| 26483 | # a shared library. |
| 26484 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26485 | |
| 26486 | # Method to check whether dependent libraries are shared objects. |
| 26487 | deplibs_check_method=$lt_deplibs_check_method |
| 26488 | |
| 26489 | # Command to use when deplibs_check_method == file_magic. |
| 26490 | file_magic_cmd=$lt_file_magic_cmd |
| 26491 | |
| 26492 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26493 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26494 | |
| 26495 | # Flag that forces no undefined symbols. |
| 26496 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26497 | |
| 26498 | # Commands used to finish a libtool library installation in a directory. |
| 26499 | finish_cmds=$lt_finish_cmds |
| 26500 | |
| 26501 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26502 | finish_eval=$lt_finish_eval |
| 26503 | |
| 26504 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26505 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26506 | |
| 26507 | # Transform the output of nm in a proper C declaration |
| 26508 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26509 | |
| 26510 | # Transform the output of nm in a C name address pair |
| 26511 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26512 | |
| 26513 | # This is the shared library runtime path variable. |
| 26514 | runpath_var=$runpath_var |
| 26515 | |
| 26516 | # This is the shared library path variable. |
| 26517 | shlibpath_var=$shlibpath_var |
| 26518 | |
| 26519 | # Is shlibpath searched before the hard-coded library search path? |
| 26520 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26521 | |
| 26522 | # How to hardcode a shared library path into an executable. |
| 26523 | hardcode_action=$hardcode_action_GCJ |
| 26524 | |
| 26525 | # Whether we should hardcode library paths into libraries. |
| 26526 | hardcode_into_libs=$hardcode_into_libs |
| 26527 | |
| 26528 | # Flag to hardcode \$libdir into a binary during linking. |
| 26529 | # This must work even if \$libdir does not exist. |
| 26530 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26531 | |
| 26532 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26533 | # a binary during linking. This must work even if \$libdir does |
| 26534 | # not exist. |
| 26535 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26536 | |
| 26537 | # Whether we need a single -rpath flag with a separated argument. |
| 26538 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26539 | |
| 26540 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26541 | # resulting binary. |
| 26542 | hardcode_direct=$hardcode_direct_GCJ |
| 26543 | |
| 26544 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26545 | # resulting binary. |
| 26546 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26547 | |
| 26548 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26549 | # the resulting binary. |
| 26550 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26551 | |
| 26552 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26553 | # and all subsequent libraries and executables linked against it. |
| 26554 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26555 | |
| 26556 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26557 | # restored at relink time. |
| 26558 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26559 | |
| 26560 | # Whether libtool must link a program against all its dependency libraries. |
| 26561 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26562 | |
| 26563 | # Compile-time system search path for libraries |
| 26564 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26565 | |
| 26566 | # Run-time system search path for libraries |
| 26567 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26568 | |
| 26569 | # Fix the shell variable \$srcfile for the compiler. |
| 26570 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26571 | |
| 26572 | # Set to yes if exported symbols are required. |
| 26573 | always_export_symbols=$always_export_symbols_GCJ |
| 26574 | |
| 26575 | # The commands to list exported symbols. |
| 26576 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26577 | |
| 26578 | # The commands to extract the exported symbol list from a shared archive. |
| 26579 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26580 | |
| 26581 | # Symbols that should not be listed in the preloaded symbols. |
| 26582 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26583 | |
| 26584 | # Symbols that must always be exported. |
| 26585 | include_expsyms=$lt_include_expsyms_GCJ |
| 26586 | |
| 26587 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26588 | |
| 26589 | __EOF__ |
| 26590 | |
| 26591 | |
| 26592 | else |
| 26593 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26594 | # `config.status --recheck' to rerun these tests and create the |
| 26595 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26596 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26597 | if test -f "$ltmain_in"; then |
| 26598 | test -f Makefile && make "$ltmain" |
| 26599 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26600 | fi |
| 26601 | |
| 26602 | |
| 26603 | ac_ext=c |
| 26604 | ac_cpp='$CPP $CPPFLAGS' |
| 26605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26608 | |
| 26609 | CC="$lt_save_CC" |
| 26610 | |
| 26611 | else |
| 26612 | tagname="" |
| 26613 | fi |
| 26614 | ;; |
| 26615 | |
| 26616 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26617 | ac_ext=c |
| 26618 | ac_cpp='$CPP $CPPFLAGS' |
| 26619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26622 | |
| 26623 | |
| 26624 | # Source file extension for RC test sources. |
| 26625 | ac_ext=rc |
| 26626 | |
| 26627 | # Object file extension for compiled RC test sources. |
| 26628 | objext=o |
| 26629 | objext_RC=$objext |
| 26630 | |
| 26631 | # Code to be used in simple compile tests |
| 26632 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26633 | |
| 26634 | # Code to be used in simple link tests |
| 26635 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26636 | |
| 26637 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26638 | |
| 26639 | # If no C compiler was specified, use CC. |
| 26640 | LTCC=${LTCC-"$CC"} |
| 26641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26642 | # If no C compiler flags were specified, use CFLAGS. |
| 26643 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26644 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26645 | # Allow CC to be a program name with arguments. |
| 26646 | compiler=$CC |
| 26647 | |
| 26648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26649 | # save warnings/boilerplate of simple test code |
| 26650 | ac_outfile=conftest.$ac_objext |
| 26651 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26652 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26653 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26654 | $rm conftest* |
| 26655 | |
| 26656 | ac_outfile=conftest.$ac_objext |
| 26657 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26658 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26659 | _lt_linker_boilerplate=`cat conftest.err` |
| 26660 | $rm conftest* |
| 26661 | |
| 26662 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26663 | # Allow CC to be a program name with arguments. |
| 26664 | lt_save_CC="$CC" |
| 26665 | CC=${RC-"windres"} |
| 26666 | compiler=$CC |
| 26667 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26668 | for cc_temp in $compiler""; do |
| 26669 | case $cc_temp in |
| 26670 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26671 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26672 | \-*) ;; |
| 26673 | *) break;; |
| 26674 | esac |
| 26675 | done |
| 26676 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26677 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26678 | lt_cv_prog_compiler_c_o_RC=yes |
| 26679 | |
| 26680 | # The else clause should only fire when bootstrapping the |
| 26681 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26682 | # with your package, and you will get complaints that there are |
| 26683 | # no rules to generate ltmain.sh. |
| 26684 | if test -f "$ltmain"; then |
| 26685 | # See if we are running on zsh, and set the options which allow our commands through |
| 26686 | # without removal of \ escapes. |
| 26687 | if test -n "${ZSH_VERSION+set}" ; then |
| 26688 | setopt NO_GLOB_SUBST |
| 26689 | fi |
| 26690 | # Now quote all the things that may contain metacharacters while being |
| 26691 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26692 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26693 | 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] | 26694 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26695 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26696 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26697 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26698 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26699 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26700 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26701 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26702 | compiler_RC \ |
| 26703 | CC_RC \ |
| 26704 | LD_RC \ |
| 26705 | lt_prog_compiler_wl_RC \ |
| 26706 | lt_prog_compiler_pic_RC \ |
| 26707 | lt_prog_compiler_static_RC \ |
| 26708 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26709 | export_dynamic_flag_spec_RC \ |
| 26710 | thread_safe_flag_spec_RC \ |
| 26711 | whole_archive_flag_spec_RC \ |
| 26712 | enable_shared_with_static_runtimes_RC \ |
| 26713 | old_archive_cmds_RC \ |
| 26714 | old_archive_from_new_cmds_RC \ |
| 26715 | predep_objects_RC \ |
| 26716 | postdep_objects_RC \ |
| 26717 | predeps_RC \ |
| 26718 | postdeps_RC \ |
| 26719 | compiler_lib_search_path_RC \ |
| 26720 | archive_cmds_RC \ |
| 26721 | archive_expsym_cmds_RC \ |
| 26722 | postinstall_cmds_RC \ |
| 26723 | postuninstall_cmds_RC \ |
| 26724 | old_archive_from_expsyms_cmds_RC \ |
| 26725 | allow_undefined_flag_RC \ |
| 26726 | no_undefined_flag_RC \ |
| 26727 | export_symbols_cmds_RC \ |
| 26728 | hardcode_libdir_flag_spec_RC \ |
| 26729 | hardcode_libdir_flag_spec_ld_RC \ |
| 26730 | hardcode_libdir_separator_RC \ |
| 26731 | hardcode_automatic_RC \ |
| 26732 | module_cmds_RC \ |
| 26733 | module_expsym_cmds_RC \ |
| 26734 | lt_cv_prog_compiler_c_o_RC \ |
| 26735 | exclude_expsyms_RC \ |
| 26736 | include_expsyms_RC; do |
| 26737 | |
| 26738 | case $var in |
| 26739 | old_archive_cmds_RC | \ |
| 26740 | old_archive_from_new_cmds_RC | \ |
| 26741 | archive_cmds_RC | \ |
| 26742 | archive_expsym_cmds_RC | \ |
| 26743 | module_cmds_RC | \ |
| 26744 | module_expsym_cmds_RC | \ |
| 26745 | old_archive_from_expsyms_cmds_RC | \ |
| 26746 | export_symbols_cmds_RC | \ |
| 26747 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26748 | postinstall_cmds | postuninstall_cmds | \ |
| 26749 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26750 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26751 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26752 | 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] | 26753 | ;; |
| 26754 | *) |
| 26755 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26756 | ;; |
| 26757 | esac |
| 26758 | done |
| 26759 | |
| 26760 | case $lt_echo in |
| 26761 | *'\$0 --fallback-echo"') |
| 26762 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26763 | ;; |
| 26764 | esac |
| 26765 | |
| 26766 | cfgfile="$ofile" |
| 26767 | |
| 26768 | cat <<__EOF__ >> "$cfgfile" |
| 26769 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26770 | |
| 26771 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26772 | |
| 26773 | # Shell to use when invoking shell scripts. |
| 26774 | SHELL=$lt_SHELL |
| 26775 | |
| 26776 | # Whether or not to build shared libraries. |
| 26777 | build_libtool_libs=$enable_shared |
| 26778 | |
| 26779 | # Whether or not to build static libraries. |
| 26780 | build_old_libs=$enable_static |
| 26781 | |
| 26782 | # Whether or not to add -lc for building shared libraries. |
| 26783 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26784 | |
| 26785 | # Whether or not to disallow shared libs when runtime libs are static |
| 26786 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26787 | |
| 26788 | # Whether or not to optimize for fast installation. |
| 26789 | fast_install=$enable_fast_install |
| 26790 | |
| 26791 | # The host system. |
| 26792 | host_alias=$host_alias |
| 26793 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26794 | host_os=$host_os |
| 26795 | |
| 26796 | # The build system. |
| 26797 | build_alias=$build_alias |
| 26798 | build=$build |
| 26799 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26800 | |
| 26801 | # An echo program that does not interpret backslashes. |
| 26802 | echo=$lt_echo |
| 26803 | |
| 26804 | # The archiver. |
| 26805 | AR=$lt_AR |
| 26806 | AR_FLAGS=$lt_AR_FLAGS |
| 26807 | |
| 26808 | # A C compiler. |
| 26809 | LTCC=$lt_LTCC |
| 26810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26811 | # LTCC compiler flags. |
| 26812 | LTCFLAGS=$lt_LTCFLAGS |
| 26813 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26814 | # A language-specific compiler. |
| 26815 | CC=$lt_compiler_RC |
| 26816 | |
| 26817 | # Is the compiler the GNU C compiler? |
| 26818 | with_gcc=$GCC_RC |
| 26819 | |
| 26820 | # An ERE matcher. |
| 26821 | EGREP=$lt_EGREP |
| 26822 | |
| 26823 | # The linker used to build libraries. |
| 26824 | LD=$lt_LD_RC |
| 26825 | |
| 26826 | # Whether we need hard or soft links. |
| 26827 | LN_S=$lt_LN_S |
| 26828 | |
| 26829 | # A BSD-compatible nm program. |
| 26830 | NM=$lt_NM |
| 26831 | |
| 26832 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26833 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26834 | |
| 26835 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26836 | MAGIC_CMD=$MAGIC_CMD |
| 26837 | |
| 26838 | # Used on cygwin: DLL creation program. |
| 26839 | DLLTOOL="$DLLTOOL" |
| 26840 | |
| 26841 | # Used on cygwin: object dumper. |
| 26842 | OBJDUMP="$OBJDUMP" |
| 26843 | |
| 26844 | # Used on cygwin: assembler. |
| 26845 | AS="$AS" |
| 26846 | |
| 26847 | # The name of the directory that contains temporary libtool files. |
| 26848 | objdir=$objdir |
| 26849 | |
| 26850 | # How to create reloadable object files. |
| 26851 | reload_flag=$lt_reload_flag |
| 26852 | reload_cmds=$lt_reload_cmds |
| 26853 | |
| 26854 | # How to pass a linker flag through the compiler. |
| 26855 | wl=$lt_lt_prog_compiler_wl_RC |
| 26856 | |
| 26857 | # Object file suffix (normally "o"). |
| 26858 | objext="$ac_objext" |
| 26859 | |
| 26860 | # Old archive suffix (normally "a"). |
| 26861 | libext="$libext" |
| 26862 | |
| 26863 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26864 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26865 | |
| 26866 | # Executable file suffix (normally ""). |
| 26867 | exeext="$exeext" |
| 26868 | |
| 26869 | # Additional compiler flags for building library objects. |
| 26870 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26871 | pic_mode=$pic_mode |
| 26872 | |
| 26873 | # What is the maximum length of a command? |
| 26874 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26875 | |
| 26876 | # Does compiler simultaneously support -c and -o options? |
| 26877 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26879 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26880 | need_locks=$lt_need_locks |
| 26881 | |
| 26882 | # Do we need the lib prefix for modules? |
| 26883 | need_lib_prefix=$need_lib_prefix |
| 26884 | |
| 26885 | # Do we need a version for libraries? |
| 26886 | need_version=$need_version |
| 26887 | |
| 26888 | # Whether dlopen is supported. |
| 26889 | dlopen_support=$enable_dlopen |
| 26890 | |
| 26891 | # Whether dlopen of programs is supported. |
| 26892 | dlopen_self=$enable_dlopen_self |
| 26893 | |
| 26894 | # Whether dlopen of statically linked programs is supported. |
| 26895 | dlopen_self_static=$enable_dlopen_self_static |
| 26896 | |
| 26897 | # Compiler flag to prevent dynamic linking. |
| 26898 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26899 | |
| 26900 | # Compiler flag to turn off builtin functions. |
| 26901 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26902 | |
| 26903 | # Compiler flag to allow reflexive dlopens. |
| 26904 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26905 | |
| 26906 | # Compiler flag to generate shared objects directly from archives. |
| 26907 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26908 | |
| 26909 | # Compiler flag to generate thread-safe objects. |
| 26910 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26911 | |
| 26912 | # Library versioning type. |
| 26913 | version_type=$version_type |
| 26914 | |
| 26915 | # Format of library name prefix. |
| 26916 | libname_spec=$lt_libname_spec |
| 26917 | |
| 26918 | # List of archive names. First name is the real one, the rest are links. |
| 26919 | # The last name is the one that the linker finds with -lNAME. |
| 26920 | library_names_spec=$lt_library_names_spec |
| 26921 | |
| 26922 | # The coded name of the library, if different from the real name. |
| 26923 | soname_spec=$lt_soname_spec |
| 26924 | |
| 26925 | # Commands used to build and install an old-style archive. |
| 26926 | RANLIB=$lt_RANLIB |
| 26927 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26928 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26929 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26930 | |
| 26931 | # Create an old-style archive from a shared archive. |
| 26932 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26933 | |
| 26934 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26935 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26936 | |
| 26937 | # Commands used to build and install a shared archive. |
| 26938 | archive_cmds=$lt_archive_cmds_RC |
| 26939 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26940 | postinstall_cmds=$lt_postinstall_cmds |
| 26941 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26942 | |
| 26943 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26944 | module_cmds=$lt_module_cmds_RC |
| 26945 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26946 | |
| 26947 | # Commands to strip libraries. |
| 26948 | old_striplib=$lt_old_striplib |
| 26949 | striplib=$lt_striplib |
| 26950 | |
| 26951 | # Dependencies to place before the objects being linked to create a |
| 26952 | # shared library. |
| 26953 | predep_objects=$lt_predep_objects_RC |
| 26954 | |
| 26955 | # Dependencies to place after the objects being linked to create a |
| 26956 | # shared library. |
| 26957 | postdep_objects=$lt_postdep_objects_RC |
| 26958 | |
| 26959 | # Dependencies to place before the objects being linked to create a |
| 26960 | # shared library. |
| 26961 | predeps=$lt_predeps_RC |
| 26962 | |
| 26963 | # Dependencies to place after the objects being linked to create a |
| 26964 | # shared library. |
| 26965 | postdeps=$lt_postdeps_RC |
| 26966 | |
| 26967 | # The library search path used internally by the compiler when linking |
| 26968 | # a shared library. |
| 26969 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26970 | |
| 26971 | # Method to check whether dependent libraries are shared objects. |
| 26972 | deplibs_check_method=$lt_deplibs_check_method |
| 26973 | |
| 26974 | # Command to use when deplibs_check_method == file_magic. |
| 26975 | file_magic_cmd=$lt_file_magic_cmd |
| 26976 | |
| 26977 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26978 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26979 | |
| 26980 | # Flag that forces no undefined symbols. |
| 26981 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26982 | |
| 26983 | # Commands used to finish a libtool library installation in a directory. |
| 26984 | finish_cmds=$lt_finish_cmds |
| 26985 | |
| 26986 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26987 | finish_eval=$lt_finish_eval |
| 26988 | |
| 26989 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26990 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26991 | |
| 26992 | # Transform the output of nm in a proper C declaration |
| 26993 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26994 | |
| 26995 | # Transform the output of nm in a C name address pair |
| 26996 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26997 | |
| 26998 | # This is the shared library runtime path variable. |
| 26999 | runpath_var=$runpath_var |
| 27000 | |
| 27001 | # This is the shared library path variable. |
| 27002 | shlibpath_var=$shlibpath_var |
| 27003 | |
| 27004 | # Is shlibpath searched before the hard-coded library search path? |
| 27005 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 27006 | |
| 27007 | # How to hardcode a shared library path into an executable. |
| 27008 | hardcode_action=$hardcode_action_RC |
| 27009 | |
| 27010 | # Whether we should hardcode library paths into libraries. |
| 27011 | hardcode_into_libs=$hardcode_into_libs |
| 27012 | |
| 27013 | # Flag to hardcode \$libdir into a binary during linking. |
| 27014 | # This must work even if \$libdir does not exist. |
| 27015 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 27016 | |
| 27017 | # If ld is used when linking, flag to hardcode \$libdir into |
| 27018 | # a binary during linking. This must work even if \$libdir does |
| 27019 | # not exist. |
| 27020 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 27021 | |
| 27022 | # Whether we need a single -rpath flag with a separated argument. |
| 27023 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 27024 | |
| 27025 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 27026 | # resulting binary. |
| 27027 | hardcode_direct=$hardcode_direct_RC |
| 27028 | |
| 27029 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 27030 | # resulting binary. |
| 27031 | hardcode_minus_L=$hardcode_minus_L_RC |
| 27032 | |
| 27033 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 27034 | # the resulting binary. |
| 27035 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 27036 | |
| 27037 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 27038 | # and all subsequent libraries and executables linked against it. |
| 27039 | hardcode_automatic=$hardcode_automatic_RC |
| 27040 | |
| 27041 | # Variables whose values should be saved in libtool wrapper scripts and |
| 27042 | # restored at relink time. |
| 27043 | variables_saved_for_relink="$variables_saved_for_relink" |
| 27044 | |
| 27045 | # Whether libtool must link a program against all its dependency libraries. |
| 27046 | link_all_deplibs=$link_all_deplibs_RC |
| 27047 | |
| 27048 | # Compile-time system search path for libraries |
| 27049 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 27050 | |
| 27051 | # Run-time system search path for libraries |
| 27052 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 27053 | |
| 27054 | # Fix the shell variable \$srcfile for the compiler. |
| 27055 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 27056 | |
| 27057 | # Set to yes if exported symbols are required. |
| 27058 | always_export_symbols=$always_export_symbols_RC |
| 27059 | |
| 27060 | # The commands to list exported symbols. |
| 27061 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 27062 | |
| 27063 | # The commands to extract the exported symbol list from a shared archive. |
| 27064 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 27065 | |
| 27066 | # Symbols that should not be listed in the preloaded symbols. |
| 27067 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 27068 | |
| 27069 | # Symbols that must always be exported. |
| 27070 | include_expsyms=$lt_include_expsyms_RC |
| 27071 | |
| 27072 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 27073 | |
| 27074 | __EOF__ |
| 27075 | |
| 27076 | |
| 27077 | else |
| 27078 | # If there is no Makefile yet, we rely on a make rule to execute |
| 27079 | # `config.status --recheck' to rerun these tests and create the |
| 27080 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27081 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 27082 | if test -f "$ltmain_in"; then |
| 27083 | test -f Makefile && make "$ltmain" |
| 27084 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27085 | fi |
| 27086 | |
| 27087 | |
| 27088 | ac_ext=c |
| 27089 | ac_cpp='$CPP $CPPFLAGS' |
| 27090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27093 | |
| 27094 | CC="$lt_save_CC" |
| 27095 | |
| 27096 | ;; |
| 27097 | |
| 27098 | *) |
| 27099 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 27100 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 27101 | { (exit 1); exit 1; }; } |
| 27102 | ;; |
| 27103 | esac |
| 27104 | |
| 27105 | # Append the new tag name to the list of available tags. |
| 27106 | if test -n "$tagname" ; then |
| 27107 | available_tags="$available_tags $tagname" |
| 27108 | fi |
| 27109 | fi |
| 27110 | done |
| 27111 | IFS="$lt_save_ifs" |
| 27112 | |
| 27113 | # Now substitute the updated list of available tags. |
| 27114 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 27115 | mv "${ofile}T" "$ofile" |
| 27116 | chmod +x "$ofile" |
| 27117 | else |
| 27118 | rm -f "${ofile}T" |
| 27119 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 27120 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 27121 | { (exit 1); exit 1; }; } |
| 27122 | fi |
| 27123 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27124 | |
| 27125 | |
| 27126 | |
| 27127 | # This can be used to rebuild libtool when needed |
| 27128 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 27129 | |
| 27130 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27131 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27132 | |
| 27133 | # Prevent multiple expansion |
| 27134 | |
| 27135 | |
| 27136 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27137 | |
| 27138 | |
| 27139 | |
| 27140 | |
| 27141 | |
| 27142 | |
| 27143 | |
| 27144 | |
| 27145 | |
| 27146 | |
| 27147 | |
| 27148 | |
| 27149 | |
| 27150 | |
| 27151 | |
| 27152 | |
| 27153 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27154 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 27155 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 27156 | |
| 27157 | cat >>confdefs.h <<\_ACEOF |
| 27158 | #define CAN_DLOPEN_SELF 1 |
| 27159 | _ACEOF |
| 27160 | |
| 27161 | fi |
| 27162 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 27163 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27164 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27165 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 27166 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27167 | LLVMGCCCOMMAND="$LLVMGCC" |
| 27168 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27169 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27170 | |
| 27171 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27172 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27173 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 27174 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27175 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27177 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 27178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27179 | else |
| 27180 | case $LLVMGCC in |
| 27181 | [\\/]* | ?:[\\/]*) |
| 27182 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 27183 | ;; |
| 27184 | *) |
| 27185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27186 | for as_dir in $PATH |
| 27187 | do |
| 27188 | IFS=$as_save_IFS |
| 27189 | test -z "$as_dir" && as_dir=. |
| 27190 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27191 | 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] | 27192 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 27193 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27194 | break 2 |
| 27195 | fi |
| 27196 | done |
| 27197 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27198 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27199 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27200 | ;; |
| 27201 | esac |
| 27202 | fi |
| 27203 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27204 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27205 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 27206 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27207 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27208 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27209 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27210 | fi |
| 27211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27212 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27213 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 27214 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27215 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27217 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 27218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27219 | else |
| 27220 | case $LLVMGXX in |
| 27221 | [\\/]* | ?:[\\/]*) |
| 27222 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 27223 | ;; |
| 27224 | *) |
| 27225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27226 | for as_dir in $PATH |
| 27227 | do |
| 27228 | IFS=$as_save_IFS |
| 27229 | test -z "$as_dir" && as_dir=. |
| 27230 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27231 | 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] | 27232 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 27233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27234 | break 2 |
| 27235 | fi |
| 27236 | done |
| 27237 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27238 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27239 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27240 | ;; |
| 27241 | esac |
| 27242 | fi |
| 27243 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27244 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27245 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 27246 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27247 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27248 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27249 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27250 | fi |
| 27251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27252 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27253 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27254 | if test -z "$LLVMGCC"; then |
| 27255 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27256 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27257 | fi |
| 27258 | if test -z "$LLVMGXX"; then |
| 27259 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27260 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27261 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27262 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27263 | LLVMGCC=$LLVMGCC |
| 27264 | |
| 27265 | LLVMGXX=$LLVMGXX |
| 27266 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27267 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27268 | |
| 27269 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27270 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27271 | fi |
| 27272 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27274 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 27275 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27276 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27277 | ICC=no |
| 27278 | IXX=no |
| 27279 | case $CC in |
| 27280 | icc*|icpc*) |
| 27281 | ICC=yes |
| 27282 | IXX=yes |
| 27283 | ;; |
| 27284 | *) |
| 27285 | ;; |
| 27286 | esac |
| 27287 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 27288 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 27289 | then |
| 27290 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 27291 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 27292 | { (exit 1); exit 1; }; } |
| 27293 | fi |
| 27294 | |
| 27295 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 27296 | then |
| 27297 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 27298 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 27299 | { (exit 1); exit 1; }; } |
| 27300 | fi |
| 27301 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27302 | if test "$GCC" = "yes" |
| 27303 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27304 | cat >conftest.$ac_ext <<_ACEOF |
| 27305 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 27306 | #error Unsupported GCC version |
| 27307 | #endif |
| 27308 | |
| 27309 | _ACEOF |
| 27310 | rm -f conftest.$ac_objext |
| 27311 | if { (ac_try="$ac_compile" |
| 27312 | case "(($ac_try" in |
| 27313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27314 | *) ac_try_echo=$ac_try;; |
| 27315 | esac |
| 27316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27317 | (eval "$ac_compile") 2>conftest.er1 |
| 27318 | ac_status=$? |
| 27319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27320 | rm -f conftest.er1 |
| 27321 | cat conftest.err >&5 |
| 27322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27323 | (exit $ac_status); } && |
| 27324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27325 | { (case "(($ac_try" in |
| 27326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27327 | *) ac_try_echo=$ac_try;; |
| 27328 | esac |
| 27329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27330 | (eval "$ac_try") 2>&5 |
| 27331 | ac_status=$? |
| 27332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27333 | (exit $ac_status); }; } && |
| 27334 | { ac_try='test -s conftest.$ac_objext' |
| 27335 | { (case "(($ac_try" in |
| 27336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27337 | *) ac_try_echo=$ac_try;; |
| 27338 | esac |
| 27339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27340 | (eval "$ac_try") 2>&5 |
| 27341 | ac_status=$? |
| 27342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27343 | (exit $ac_status); }; }; then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27344 | : |
| 27345 | else |
| 27346 | echo "$as_me: failed program was:" >&5 |
| 27347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27348 | |
| 27349 | { { 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] | 27350 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 27351 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27352 | fi |
| 27353 | |
| 27354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27355 | fi |
| 27356 | |
| 27357 | if test -z "$llvm_cv_gnu_make_command" |
| 27358 | then |
| 27359 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 27360 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 27361 | { (exit 1); exit 1; }; } |
| 27362 | fi |
| 27363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27364 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 27365 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27366 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 27367 | |
| 27368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27369 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27370 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27371 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27373 | else |
| 27374 | ac_check_lib_save_LIBS=$LIBS |
| 27375 | LIBS="-lm $LIBS" |
| 27376 | cat >conftest.$ac_ext <<_ACEOF |
| 27377 | /* confdefs.h. */ |
| 27378 | _ACEOF |
| 27379 | cat confdefs.h >>conftest.$ac_ext |
| 27380 | cat >>conftest.$ac_ext <<_ACEOF |
| 27381 | /* end confdefs.h. */ |
| 27382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27383 | /* Override any GCC internal prototype to avoid an error. |
| 27384 | Use char because int might match the return type of a GCC |
| 27385 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27386 | #ifdef __cplusplus |
| 27387 | extern "C" |
| 27388 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27389 | char sin (); |
| 27390 | int |
| 27391 | main () |
| 27392 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27393 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27394 | ; |
| 27395 | return 0; |
| 27396 | } |
| 27397 | _ACEOF |
| 27398 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27399 | if { (ac_try="$ac_link" |
| 27400 | case "(($ac_try" in |
| 27401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27402 | *) ac_try_echo=$ac_try;; |
| 27403 | esac |
| 27404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27405 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27406 | ac_status=$? |
| 27407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27408 | rm -f conftest.er1 |
| 27409 | cat conftest.err >&5 |
| 27410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27411 | (exit $ac_status); } && |
| 27412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27413 | { (case "(($ac_try" in |
| 27414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27415 | *) ac_try_echo=$ac_try;; |
| 27416 | esac |
| 27417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27418 | (eval "$ac_try") 2>&5 |
| 27419 | ac_status=$? |
| 27420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27421 | (exit $ac_status); }; } && |
| 27422 | { ac_try='test -s conftest$ac_exeext' |
| 27423 | { (case "(($ac_try" in |
| 27424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27425 | *) ac_try_echo=$ac_try;; |
| 27426 | esac |
| 27427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27428 | (eval "$ac_try") 2>&5 |
| 27429 | ac_status=$? |
| 27430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27431 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27432 | ac_cv_lib_m_sin=yes |
| 27433 | else |
| 27434 | echo "$as_me: failed program was:" >&5 |
| 27435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27436 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27437 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27438 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27439 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27440 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27441 | conftest$ac_exeext conftest.$ac_ext |
| 27442 | LIBS=$ac_check_lib_save_LIBS |
| 27443 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27444 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27445 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27446 | if test $ac_cv_lib_m_sin = yes; then |
| 27447 | cat >>confdefs.h <<_ACEOF |
| 27448 | #define HAVE_LIBM 1 |
| 27449 | _ACEOF |
| 27450 | |
| 27451 | LIBS="-lm $LIBS" |
| 27452 | |
| 27453 | fi |
| 27454 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27455 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27457 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27458 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27459 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27461 | else |
| 27462 | ac_check_lib_save_LIBS=$LIBS |
| 27463 | LIBS="-limagehlp $LIBS" |
| 27464 | cat >conftest.$ac_ext <<_ACEOF |
| 27465 | /* confdefs.h. */ |
| 27466 | _ACEOF |
| 27467 | cat confdefs.h >>conftest.$ac_ext |
| 27468 | cat >>conftest.$ac_ext <<_ACEOF |
| 27469 | /* end confdefs.h. */ |
| 27470 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27471 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27472 | int |
| 27473 | main () |
| 27474 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27475 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27476 | ; |
| 27477 | return 0; |
| 27478 | } |
| 27479 | _ACEOF |
| 27480 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27481 | if { (ac_try="$ac_link" |
| 27482 | case "(($ac_try" in |
| 27483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27484 | *) ac_try_echo=$ac_try;; |
| 27485 | esac |
| 27486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27487 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27488 | ac_status=$? |
| 27489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27490 | rm -f conftest.er1 |
| 27491 | cat conftest.err >&5 |
| 27492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27493 | (exit $ac_status); } && |
| 27494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27495 | { (case "(($ac_try" in |
| 27496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27497 | *) ac_try_echo=$ac_try;; |
| 27498 | esac |
| 27499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27500 | (eval "$ac_try") 2>&5 |
| 27501 | ac_status=$? |
| 27502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27503 | (exit $ac_status); }; } && |
| 27504 | { ac_try='test -s conftest$ac_exeext' |
| 27505 | { (case "(($ac_try" in |
| 27506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27507 | *) ac_try_echo=$ac_try;; |
| 27508 | esac |
| 27509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27510 | (eval "$ac_try") 2>&5 |
| 27511 | ac_status=$? |
| 27512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27513 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27514 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27515 | else |
| 27516 | echo "$as_me: failed program was:" >&5 |
| 27517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27519 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27520 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27521 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27522 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27523 | conftest$ac_exeext conftest.$ac_ext |
| 27524 | LIBS=$ac_check_lib_save_LIBS |
| 27525 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27526 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27527 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27528 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27529 | cat >>confdefs.h <<_ACEOF |
| 27530 | #define HAVE_LIBIMAGEHLP 1 |
| 27531 | _ACEOF |
| 27532 | |
| 27533 | LIBS="-limagehlp $LIBS" |
| 27534 | |
| 27535 | fi |
| 27536 | |
| 27537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27538 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27539 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27540 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27542 | else |
| 27543 | ac_check_lib_save_LIBS=$LIBS |
| 27544 | LIBS="-lpsapi $LIBS" |
| 27545 | cat >conftest.$ac_ext <<_ACEOF |
| 27546 | /* confdefs.h. */ |
| 27547 | _ACEOF |
| 27548 | cat confdefs.h >>conftest.$ac_ext |
| 27549 | cat >>conftest.$ac_ext <<_ACEOF |
| 27550 | /* end confdefs.h. */ |
| 27551 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27552 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27553 | int |
| 27554 | main () |
| 27555 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27556 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27557 | ; |
| 27558 | return 0; |
| 27559 | } |
| 27560 | _ACEOF |
| 27561 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27562 | if { (ac_try="$ac_link" |
| 27563 | case "(($ac_try" in |
| 27564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27565 | *) ac_try_echo=$ac_try;; |
| 27566 | esac |
| 27567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27568 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27569 | ac_status=$? |
| 27570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27571 | rm -f conftest.er1 |
| 27572 | cat conftest.err >&5 |
| 27573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27574 | (exit $ac_status); } && |
| 27575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27576 | { (case "(($ac_try" in |
| 27577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27578 | *) ac_try_echo=$ac_try;; |
| 27579 | esac |
| 27580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27581 | (eval "$ac_try") 2>&5 |
| 27582 | ac_status=$? |
| 27583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27584 | (exit $ac_status); }; } && |
| 27585 | { ac_try='test -s conftest$ac_exeext' |
| 27586 | { (case "(($ac_try" in |
| 27587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27588 | *) ac_try_echo=$ac_try;; |
| 27589 | esac |
| 27590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27591 | (eval "$ac_try") 2>&5 |
| 27592 | ac_status=$? |
| 27593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27594 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27595 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27596 | else |
| 27597 | echo "$as_me: failed program was:" >&5 |
| 27598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27600 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27601 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27602 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27603 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27604 | conftest$ac_exeext conftest.$ac_ext |
| 27605 | LIBS=$ac_check_lib_save_LIBS |
| 27606 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27607 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27608 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27609 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27610 | cat >>confdefs.h <<_ACEOF |
| 27611 | #define HAVE_LIBPSAPI 1 |
| 27612 | _ACEOF |
| 27613 | |
| 27614 | LIBS="-lpsapi $LIBS" |
| 27615 | |
| 27616 | fi |
| 27617 | |
| 27618 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27620 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27621 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27622 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27624 | else |
| 27625 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27626 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27627 | /* confdefs.h. */ |
| 27628 | _ACEOF |
| 27629 | cat confdefs.h >>conftest.$ac_ext |
| 27630 | cat >>conftest.$ac_ext <<_ACEOF |
| 27631 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27633 | /* Override any GCC internal prototype to avoid an error. |
| 27634 | Use char because int might match the return type of a GCC |
| 27635 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27636 | #ifdef __cplusplus |
| 27637 | extern "C" |
| 27638 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27639 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27640 | int |
| 27641 | main () |
| 27642 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27643 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27644 | ; |
| 27645 | return 0; |
| 27646 | } |
| 27647 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27648 | for ac_lib in '' dl; do |
| 27649 | if test -z "$ac_lib"; then |
| 27650 | ac_res="none required" |
| 27651 | else |
| 27652 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27653 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27654 | fi |
| 27655 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27656 | if { (ac_try="$ac_link" |
| 27657 | case "(($ac_try" in |
| 27658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27659 | *) ac_try_echo=$ac_try;; |
| 27660 | esac |
| 27661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27662 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27663 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27665 | rm -f conftest.er1 |
| 27666 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27668 | (exit $ac_status); } && |
| 27669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27670 | { (case "(($ac_try" in |
| 27671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27672 | *) ac_try_echo=$ac_try;; |
| 27673 | esac |
| 27674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27675 | (eval "$ac_try") 2>&5 |
| 27676 | ac_status=$? |
| 27677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27678 | (exit $ac_status); }; } && |
| 27679 | { ac_try='test -s conftest$ac_exeext' |
| 27680 | { (case "(($ac_try" in |
| 27681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27682 | *) ac_try_echo=$ac_try;; |
| 27683 | esac |
| 27684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27685 | (eval "$ac_try") 2>&5 |
| 27686 | ac_status=$? |
| 27687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27688 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27689 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27690 | else |
| 27691 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27694 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27696 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27697 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27698 | conftest$ac_exeext |
| 27699 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27700 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27701 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27702 | done |
| 27703 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27704 | : |
| 27705 | else |
| 27706 | ac_cv_search_dlopen=no |
| 27707 | fi |
| 27708 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27709 | LIBS=$ac_func_search_save_LIBS |
| 27710 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27711 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27712 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27713 | ac_res=$ac_cv_search_dlopen |
| 27714 | if test "$ac_res" != no; then |
| 27715 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27716 | |
| 27717 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27718 | #define HAVE_DLOPEN 1 |
| 27719 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27720 | |
| 27721 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27722 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27723 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27724 | fi |
| 27725 | |
| 27726 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27727 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
| 27728 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27729 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 27730 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27732 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27733 | ac_func_search_save_LIBS=$LIBS |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27734 | cat >conftest.$ac_ext <<_ACEOF |
| 27735 | /* confdefs.h. */ |
| 27736 | _ACEOF |
| 27737 | cat confdefs.h >>conftest.$ac_ext |
| 27738 | cat >>conftest.$ac_ext <<_ACEOF |
| 27739 | /* end confdefs.h. */ |
| 27740 | |
| 27741 | /* Override any GCC internal prototype to avoid an error. |
| 27742 | Use char because int might match the return type of a GCC |
| 27743 | builtin and then its argument prototype would still apply. */ |
| 27744 | #ifdef __cplusplus |
| 27745 | extern "C" |
| 27746 | #endif |
| 27747 | char ffi_call (); |
| 27748 | int |
| 27749 | main () |
| 27750 | { |
| 27751 | return ffi_call (); |
| 27752 | ; |
| 27753 | return 0; |
| 27754 | } |
| 27755 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27756 | for ac_lib in '' ffi; do |
| 27757 | if test -z "$ac_lib"; then |
| 27758 | ac_res="none required" |
| 27759 | else |
| 27760 | ac_res=-l$ac_lib |
| 27761 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 27762 | fi |
| 27763 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27764 | if { (ac_try="$ac_link" |
| 27765 | case "(($ac_try" in |
| 27766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27767 | *) ac_try_echo=$ac_try;; |
| 27768 | esac |
| 27769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27770 | (eval "$ac_link") 2>conftest.er1 |
| 27771 | ac_status=$? |
| 27772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27773 | rm -f conftest.er1 |
| 27774 | cat conftest.err >&5 |
| 27775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27776 | (exit $ac_status); } && |
| 27777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27778 | { (case "(($ac_try" in |
| 27779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27780 | *) ac_try_echo=$ac_try;; |
| 27781 | esac |
| 27782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27783 | (eval "$ac_try") 2>&5 |
| 27784 | ac_status=$? |
| 27785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27786 | (exit $ac_status); }; } && |
| 27787 | { ac_try='test -s conftest$ac_exeext' |
| 27788 | { (case "(($ac_try" in |
| 27789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27790 | *) ac_try_echo=$ac_try;; |
| 27791 | esac |
| 27792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27793 | (eval "$ac_try") 2>&5 |
| 27794 | ac_status=$? |
| 27795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27796 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27797 | ac_cv_search_ffi_call=$ac_res |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27798 | else |
| 27799 | echo "$as_me: failed program was:" >&5 |
| 27800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27801 | |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27802 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27803 | fi |
| 27804 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27805 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27806 | conftest$ac_exeext |
| 27807 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 27808 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27809 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27810 | done |
| 27811 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 27812 | : |
| 27813 | else |
| 27814 | ac_cv_search_ffi_call=no |
| 27815 | fi |
| 27816 | rm conftest.$ac_ext |
| 27817 | LIBS=$ac_func_search_save_LIBS |
| 27818 | fi |
| 27819 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 27820 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
| 27821 | ac_res=$ac_cv_search_ffi_call |
| 27822 | if test "$ac_res" != no; then |
| 27823 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 27824 | |
| 27825 | cat >>confdefs.h <<\_ACEOF |
| 27826 | #define HAVE_FFI_CALL 1 |
| 27827 | _ACEOF |
| 27828 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27829 | else |
| 27830 | { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5 |
| 27831 | echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;} |
| 27832 | fi |
| 27833 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27834 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27836 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27837 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27838 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27840 | else |
| 27841 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27842 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27843 | /* confdefs.h. */ |
| 27844 | _ACEOF |
| 27845 | cat confdefs.h >>conftest.$ac_ext |
| 27846 | cat >>conftest.$ac_ext <<_ACEOF |
| 27847 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27849 | /* Override any GCC internal prototype to avoid an error. |
| 27850 | Use char because int might match the return type of a GCC |
| 27851 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27852 | #ifdef __cplusplus |
| 27853 | extern "C" |
| 27854 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27855 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27856 | int |
| 27857 | main () |
| 27858 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27859 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27860 | ; |
| 27861 | return 0; |
| 27862 | } |
| 27863 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27864 | for ac_lib in '' malloc; do |
| 27865 | if test -z "$ac_lib"; then |
| 27866 | ac_res="none required" |
| 27867 | else |
| 27868 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27869 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27870 | fi |
| 27871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27872 | if { (ac_try="$ac_link" |
| 27873 | case "(($ac_try" in |
| 27874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27875 | *) ac_try_echo=$ac_try;; |
| 27876 | esac |
| 27877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27878 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27879 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27881 | rm -f conftest.er1 |
| 27882 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27884 | (exit $ac_status); } && |
| 27885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27886 | { (case "(($ac_try" in |
| 27887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27888 | *) ac_try_echo=$ac_try;; |
| 27889 | esac |
| 27890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27891 | (eval "$ac_try") 2>&5 |
| 27892 | ac_status=$? |
| 27893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27894 | (exit $ac_status); }; } && |
| 27895 | { ac_try='test -s conftest$ac_exeext' |
| 27896 | { (case "(($ac_try" in |
| 27897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27898 | *) ac_try_echo=$ac_try;; |
| 27899 | esac |
| 27900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27901 | (eval "$ac_try") 2>&5 |
| 27902 | ac_status=$? |
| 27903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27904 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27905 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27906 | else |
| 27907 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27910 | |
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 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27913 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27914 | conftest$ac_exeext |
| 27915 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27916 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27917 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27918 | done |
| 27919 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27920 | : |
| 27921 | else |
| 27922 | ac_cv_search_mallinfo=no |
| 27923 | fi |
| 27924 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27925 | LIBS=$ac_func_search_save_LIBS |
| 27926 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27927 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27928 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27929 | ac_res=$ac_cv_search_mallinfo |
| 27930 | if test "$ac_res" != no; then |
| 27931 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27932 | |
| 27933 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27934 | #define HAVE_MALLINFO 1 |
| 27935 | _ACEOF |
| 27936 | |
| 27937 | fi |
| 27938 | |
| 27939 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27940 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27942 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27943 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27944 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27946 | else |
| 27947 | ac_check_lib_save_LIBS=$LIBS |
| 27948 | LIBS="-lpthread $LIBS" |
| 27949 | cat >conftest.$ac_ext <<_ACEOF |
| 27950 | /* confdefs.h. */ |
| 27951 | _ACEOF |
| 27952 | cat confdefs.h >>conftest.$ac_ext |
| 27953 | cat >>conftest.$ac_ext <<_ACEOF |
| 27954 | /* end confdefs.h. */ |
| 27955 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27956 | /* Override any GCC internal prototype to avoid an error. |
| 27957 | Use char because int might match the return type of a GCC |
| 27958 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27959 | #ifdef __cplusplus |
| 27960 | extern "C" |
| 27961 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27962 | char pthread_mutex_init (); |
| 27963 | int |
| 27964 | main () |
| 27965 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27966 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27967 | ; |
| 27968 | return 0; |
| 27969 | } |
| 27970 | _ACEOF |
| 27971 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27972 | if { (ac_try="$ac_link" |
| 27973 | case "(($ac_try" in |
| 27974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27975 | *) ac_try_echo=$ac_try;; |
| 27976 | esac |
| 27977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27978 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27979 | ac_status=$? |
| 27980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27981 | rm -f conftest.er1 |
| 27982 | cat conftest.err >&5 |
| 27983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27984 | (exit $ac_status); } && |
| 27985 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27986 | { (case "(($ac_try" in |
| 27987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27988 | *) ac_try_echo=$ac_try;; |
| 27989 | esac |
| 27990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27991 | (eval "$ac_try") 2>&5 |
| 27992 | ac_status=$? |
| 27993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27994 | (exit $ac_status); }; } && |
| 27995 | { ac_try='test -s conftest$ac_exeext' |
| 27996 | { (case "(($ac_try" in |
| 27997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27998 | *) ac_try_echo=$ac_try;; |
| 27999 | esac |
| 28000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28001 | (eval "$ac_try") 2>&5 |
| 28002 | ac_status=$? |
| 28003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28004 | (exit $ac_status); }; }; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28005 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 28006 | else |
| 28007 | echo "$as_me: failed program was:" >&5 |
| 28008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28009 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28010 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28011 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28012 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28013 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28014 | conftest$ac_exeext conftest.$ac_ext |
| 28015 | LIBS=$ac_check_lib_save_LIBS |
| 28016 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28017 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 28018 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28019 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 28020 | cat >>confdefs.h <<_ACEOF |
| 28021 | #define HAVE_LIBPTHREAD 1 |
| 28022 | _ACEOF |
| 28023 | |
| 28024 | LIBS="-lpthread $LIBS" |
| 28025 | |
| 28026 | fi |
| 28027 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28028 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 28029 | 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] | 28030 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28032 | else |
| 28033 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28034 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28035 | /* confdefs.h. */ |
| 28036 | _ACEOF |
| 28037 | cat confdefs.h >>conftest.$ac_ext |
| 28038 | cat >>conftest.$ac_ext <<_ACEOF |
| 28039 | /* end confdefs.h. */ |
| 28040 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28041 | /* Override any GCC internal prototype to avoid an error. |
| 28042 | Use char because int might match the return type of a GCC |
| 28043 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28044 | #ifdef __cplusplus |
| 28045 | extern "C" |
| 28046 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28047 | char pthread_mutex_lock (); |
| 28048 | int |
| 28049 | main () |
| 28050 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28051 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28052 | ; |
| 28053 | return 0; |
| 28054 | } |
| 28055 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28056 | for ac_lib in '' pthread; do |
| 28057 | if test -z "$ac_lib"; then |
| 28058 | ac_res="none required" |
| 28059 | else |
| 28060 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28061 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28062 | fi |
| 28063 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28064 | if { (ac_try="$ac_link" |
| 28065 | case "(($ac_try" in |
| 28066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28067 | *) ac_try_echo=$ac_try;; |
| 28068 | esac |
| 28069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28070 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28071 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28073 | rm -f conftest.er1 |
| 28074 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28076 | (exit $ac_status); } && |
| 28077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28078 | { (case "(($ac_try" in |
| 28079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28080 | *) ac_try_echo=$ac_try;; |
| 28081 | esac |
| 28082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28083 | (eval "$ac_try") 2>&5 |
| 28084 | ac_status=$? |
| 28085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28086 | (exit $ac_status); }; } && |
| 28087 | { ac_try='test -s conftest$ac_exeext' |
| 28088 | { (case "(($ac_try" in |
| 28089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28090 | *) ac_try_echo=$ac_try;; |
| 28091 | esac |
| 28092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28093 | (eval "$ac_try") 2>&5 |
| 28094 | ac_status=$? |
| 28095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28096 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28097 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28098 | else |
| 28099 | echo "$as_me: failed program was:" >&5 |
| 28100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28101 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28102 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28103 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28104 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28105 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28106 | conftest$ac_exeext |
| 28107 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28108 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28109 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28110 | done |
| 28111 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28112 | : |
| 28113 | else |
| 28114 | ac_cv_search_pthread_mutex_lock=no |
| 28115 | fi |
| 28116 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28117 | LIBS=$ac_func_search_save_LIBS |
| 28118 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28119 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 28120 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 28121 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 28122 | if test "$ac_res" != no; then |
| 28123 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28124 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28125 | cat >>confdefs.h <<\_ACEOF |
| 28126 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 28127 | _ACEOF |
| 28128 | |
| 28129 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28130 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 28131 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 28132 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 28133 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28135 | else |
| 28136 | ac_func_search_save_LIBS=$LIBS |
| 28137 | cat >conftest.$ac_ext <<_ACEOF |
| 28138 | /* confdefs.h. */ |
| 28139 | _ACEOF |
| 28140 | cat confdefs.h >>conftest.$ac_ext |
| 28141 | cat >>conftest.$ac_ext <<_ACEOF |
| 28142 | /* end confdefs.h. */ |
| 28143 | |
| 28144 | /* Override any GCC internal prototype to avoid an error. |
| 28145 | Use char because int might match the return type of a GCC |
| 28146 | builtin and then its argument prototype would still apply. */ |
| 28147 | #ifdef __cplusplus |
| 28148 | extern "C" |
| 28149 | #endif |
| 28150 | char pthread_rwlock_init (); |
| 28151 | int |
| 28152 | main () |
| 28153 | { |
| 28154 | return pthread_rwlock_init (); |
| 28155 | ; |
| 28156 | return 0; |
| 28157 | } |
| 28158 | _ACEOF |
| 28159 | for ac_lib in '' pthread; do |
| 28160 | if test -z "$ac_lib"; then |
| 28161 | ac_res="none required" |
| 28162 | else |
| 28163 | ac_res=-l$ac_lib |
| 28164 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28165 | fi |
| 28166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28167 | if { (ac_try="$ac_link" |
| 28168 | case "(($ac_try" in |
| 28169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28170 | *) ac_try_echo=$ac_try;; |
| 28171 | esac |
| 28172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28173 | (eval "$ac_link") 2>conftest.er1 |
| 28174 | ac_status=$? |
| 28175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28176 | rm -f conftest.er1 |
| 28177 | cat conftest.err >&5 |
| 28178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28179 | (exit $ac_status); } && |
| 28180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28181 | { (case "(($ac_try" in |
| 28182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28183 | *) ac_try_echo=$ac_try;; |
| 28184 | esac |
| 28185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28186 | (eval "$ac_try") 2>&5 |
| 28187 | ac_status=$? |
| 28188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28189 | (exit $ac_status); }; } && |
| 28190 | { ac_try='test -s conftest$ac_exeext' |
| 28191 | { (case "(($ac_try" in |
| 28192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28193 | *) ac_try_echo=$ac_try;; |
| 28194 | esac |
| 28195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28196 | (eval "$ac_try") 2>&5 |
| 28197 | ac_status=$? |
| 28198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28199 | (exit $ac_status); }; }; then |
| 28200 | ac_cv_search_pthread_rwlock_init=$ac_res |
| 28201 | else |
| 28202 | echo "$as_me: failed program was:" >&5 |
| 28203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28204 | |
| 28205 | |
| 28206 | fi |
| 28207 | |
| 28208 | rm -f core conftest.err conftest.$ac_objext \ |
| 28209 | conftest$ac_exeext |
| 28210 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28211 | break |
| 28212 | fi |
| 28213 | done |
| 28214 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28215 | : |
| 28216 | else |
| 28217 | ac_cv_search_pthread_rwlock_init=no |
| 28218 | fi |
| 28219 | rm conftest.$ac_ext |
| 28220 | LIBS=$ac_func_search_save_LIBS |
| 28221 | fi |
| 28222 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 28223 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
| 28224 | ac_res=$ac_cv_search_pthread_rwlock_init |
| 28225 | if test "$ac_res" != no; then |
| 28226 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28227 | |
| 28228 | cat >>confdefs.h <<\_ACEOF |
| 28229 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 28230 | _ACEOF |
| 28231 | |
| 28232 | fi |
| 28233 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 28234 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 28235 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 28236 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28238 | else |
| 28239 | ac_func_search_save_LIBS=$LIBS |
| 28240 | cat >conftest.$ac_ext <<_ACEOF |
| 28241 | /* confdefs.h. */ |
| 28242 | _ACEOF |
| 28243 | cat confdefs.h >>conftest.$ac_ext |
| 28244 | cat >>conftest.$ac_ext <<_ACEOF |
| 28245 | /* end confdefs.h. */ |
| 28246 | |
| 28247 | /* Override any GCC internal prototype to avoid an error. |
| 28248 | Use char because int might match the return type of a GCC |
| 28249 | builtin and then its argument prototype would still apply. */ |
| 28250 | #ifdef __cplusplus |
| 28251 | extern "C" |
| 28252 | #endif |
| 28253 | char pthread_getspecific (); |
| 28254 | int |
| 28255 | main () |
| 28256 | { |
| 28257 | return pthread_getspecific (); |
| 28258 | ; |
| 28259 | return 0; |
| 28260 | } |
| 28261 | _ACEOF |
| 28262 | for ac_lib in '' pthread; do |
| 28263 | if test -z "$ac_lib"; then |
| 28264 | ac_res="none required" |
| 28265 | else |
| 28266 | ac_res=-l$ac_lib |
| 28267 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28268 | fi |
| 28269 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28270 | if { (ac_try="$ac_link" |
| 28271 | case "(($ac_try" in |
| 28272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28273 | *) ac_try_echo=$ac_try;; |
| 28274 | esac |
| 28275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28276 | (eval "$ac_link") 2>conftest.er1 |
| 28277 | ac_status=$? |
| 28278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28279 | rm -f conftest.er1 |
| 28280 | cat conftest.err >&5 |
| 28281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28282 | (exit $ac_status); } && |
| 28283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28284 | { (case "(($ac_try" in |
| 28285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28286 | *) ac_try_echo=$ac_try;; |
| 28287 | esac |
| 28288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28289 | (eval "$ac_try") 2>&5 |
| 28290 | ac_status=$? |
| 28291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28292 | (exit $ac_status); }; } && |
| 28293 | { ac_try='test -s conftest$ac_exeext' |
| 28294 | { (case "(($ac_try" in |
| 28295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28296 | *) ac_try_echo=$ac_try;; |
| 28297 | esac |
| 28298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28299 | (eval "$ac_try") 2>&5 |
| 28300 | ac_status=$? |
| 28301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28302 | (exit $ac_status); }; }; then |
| 28303 | ac_cv_search_pthread_getspecific=$ac_res |
| 28304 | else |
| 28305 | echo "$as_me: failed program was:" >&5 |
| 28306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28307 | |
| 28308 | |
| 28309 | fi |
| 28310 | |
| 28311 | rm -f core conftest.err conftest.$ac_objext \ |
| 28312 | conftest$ac_exeext |
| 28313 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28314 | break |
| 28315 | fi |
| 28316 | done |
| 28317 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28318 | : |
| 28319 | else |
| 28320 | ac_cv_search_pthread_getspecific=no |
| 28321 | fi |
| 28322 | rm conftest.$ac_ext |
| 28323 | LIBS=$ac_func_search_save_LIBS |
| 28324 | fi |
| 28325 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 28326 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
| 28327 | ac_res=$ac_cv_search_pthread_getspecific |
| 28328 | if test "$ac_res" != no; then |
| 28329 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28330 | |
| 28331 | cat >>confdefs.h <<\_ACEOF |
| 28332 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 28333 | _ACEOF |
| 28334 | |
| 28335 | fi |
| 28336 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28337 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 28338 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28339 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28340 | # Check whether --with-udis86 was given. |
| 28341 | if test "${with_udis86+set}" = set; then |
| 28342 | withval=$with_udis86; |
| 28343 | USE_UDIS86=1 |
| 28344 | |
| 28345 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 28346 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28347 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 28348 | esac |
| 28349 | |
| 28350 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 28351 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 28352 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 28353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28354 | else |
| 28355 | ac_check_lib_save_LIBS=$LIBS |
| 28356 | LIBS="-ludis86 $LIBS" |
| 28357 | cat >conftest.$ac_ext <<_ACEOF |
| 28358 | /* confdefs.h. */ |
| 28359 | _ACEOF |
| 28360 | cat confdefs.h >>conftest.$ac_ext |
| 28361 | cat >>conftest.$ac_ext <<_ACEOF |
| 28362 | /* end confdefs.h. */ |
| 28363 | |
| 28364 | /* Override any GCC internal prototype to avoid an error. |
| 28365 | Use char because int might match the return type of a GCC |
| 28366 | builtin and then its argument prototype would still apply. */ |
| 28367 | #ifdef __cplusplus |
| 28368 | extern "C" |
| 28369 | #endif |
| 28370 | char ud_init (); |
| 28371 | int |
| 28372 | main () |
| 28373 | { |
| 28374 | return ud_init (); |
| 28375 | ; |
| 28376 | return 0; |
| 28377 | } |
| 28378 | _ACEOF |
| 28379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28380 | if { (ac_try="$ac_link" |
| 28381 | case "(($ac_try" in |
| 28382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28383 | *) ac_try_echo=$ac_try;; |
| 28384 | esac |
| 28385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28386 | (eval "$ac_link") 2>conftest.er1 |
| 28387 | ac_status=$? |
| 28388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28389 | rm -f conftest.er1 |
| 28390 | cat conftest.err >&5 |
| 28391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28392 | (exit $ac_status); } && |
| 28393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28394 | { (case "(($ac_try" in |
| 28395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28396 | *) ac_try_echo=$ac_try;; |
| 28397 | esac |
| 28398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28399 | (eval "$ac_try") 2>&5 |
| 28400 | ac_status=$? |
| 28401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28402 | (exit $ac_status); }; } && |
| 28403 | { ac_try='test -s conftest$ac_exeext' |
| 28404 | { (case "(($ac_try" in |
| 28405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28406 | *) ac_try_echo=$ac_try;; |
| 28407 | esac |
| 28408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28409 | (eval "$ac_try") 2>&5 |
| 28410 | ac_status=$? |
| 28411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28412 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28413 | ac_cv_lib_udis86_ud_init=yes |
| 28414 | else |
| 28415 | echo "$as_me: failed program was:" >&5 |
| 28416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28417 | |
| 28418 | ac_cv_lib_udis86_ud_init=no |
| 28419 | fi |
| 28420 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28421 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28422 | conftest$ac_exeext conftest.$ac_ext |
| 28423 | LIBS=$ac_check_lib_save_LIBS |
| 28424 | fi |
| 28425 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 28426 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 28427 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 28428 | cat >>confdefs.h <<_ACEOF |
| 28429 | #define HAVE_LIBUDIS86 1 |
| 28430 | _ACEOF |
| 28431 | |
| 28432 | LIBS="-ludis86 $LIBS" |
| 28433 | |
| 28434 | else |
| 28435 | |
| 28436 | echo "Error! You need to have libudis86 around." |
| 28437 | exit -1 |
| 28438 | |
| 28439 | fi |
| 28440 | |
| 28441 | |
| 28442 | else |
| 28443 | USE_UDIS86=0 |
| 28444 | |
| 28445 | fi |
| 28446 | |
| 28447 | |
| 28448 | cat >>confdefs.h <<_ACEOF |
| 28449 | #define USE_UDIS86 $USE_UDIS86 |
| 28450 | _ACEOF |
| 28451 | |
| 28452 | |
| 28453 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28454 | # Check whether --with-oprofile was given. |
| 28455 | if test "${with_oprofile+set}" = set; then |
| 28456 | withval=$with_oprofile; |
| 28457 | USE_OPROFILE=1 |
| 28458 | |
| 28459 | case "$withval" in |
| 28460 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
| 28461 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 28462 | CPPFLAGS="-I${withval}/include";; |
| 28463 | esac |
| 28464 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
| 28465 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 28466 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 28467 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28469 | else |
| 28470 | ac_func_search_save_LIBS=$LIBS |
| 28471 | cat >conftest.$ac_ext <<_ACEOF |
| 28472 | /* confdefs.h. */ |
| 28473 | _ACEOF |
| 28474 | cat confdefs.h >>conftest.$ac_ext |
| 28475 | cat >>conftest.$ac_ext <<_ACEOF |
| 28476 | /* end confdefs.h. */ |
| 28477 | |
| 28478 | /* Override any GCC internal prototype to avoid an error. |
| 28479 | Use char because int might match the return type of a GCC |
| 28480 | builtin and then its argument prototype would still apply. */ |
| 28481 | #ifdef __cplusplus |
| 28482 | extern "C" |
| 28483 | #endif |
| 28484 | char op_open_agent (); |
| 28485 | int |
| 28486 | main () |
| 28487 | { |
| 28488 | return op_open_agent (); |
| 28489 | ; |
| 28490 | return 0; |
| 28491 | } |
| 28492 | _ACEOF |
| 28493 | for ac_lib in '' opagent; do |
| 28494 | if test -z "$ac_lib"; then |
| 28495 | ac_res="none required" |
| 28496 | else |
| 28497 | ac_res=-l$ac_lib |
| 28498 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28499 | fi |
| 28500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28501 | if { (ac_try="$ac_link" |
| 28502 | case "(($ac_try" in |
| 28503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28504 | *) ac_try_echo=$ac_try;; |
| 28505 | esac |
| 28506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28507 | (eval "$ac_link") 2>conftest.er1 |
| 28508 | ac_status=$? |
| 28509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28510 | rm -f conftest.er1 |
| 28511 | cat conftest.err >&5 |
| 28512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28513 | (exit $ac_status); } && |
| 28514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28515 | { (case "(($ac_try" in |
| 28516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28517 | *) ac_try_echo=$ac_try;; |
| 28518 | esac |
| 28519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28520 | (eval "$ac_try") 2>&5 |
| 28521 | ac_status=$? |
| 28522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28523 | (exit $ac_status); }; } && |
| 28524 | { ac_try='test -s conftest$ac_exeext' |
| 28525 | { (case "(($ac_try" in |
| 28526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28527 | *) ac_try_echo=$ac_try;; |
| 28528 | esac |
| 28529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28530 | (eval "$ac_try") 2>&5 |
| 28531 | ac_status=$? |
| 28532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28533 | (exit $ac_status); }; }; then |
| 28534 | ac_cv_search_op_open_agent=$ac_res |
| 28535 | else |
| 28536 | echo "$as_me: failed program was:" >&5 |
| 28537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28538 | |
| 28539 | |
| 28540 | fi |
| 28541 | |
| 28542 | rm -f core conftest.err conftest.$ac_objext \ |
| 28543 | conftest$ac_exeext |
| 28544 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28545 | break |
| 28546 | fi |
| 28547 | done |
| 28548 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28549 | : |
| 28550 | else |
| 28551 | ac_cv_search_op_open_agent=no |
| 28552 | fi |
| 28553 | rm conftest.$ac_ext |
| 28554 | LIBS=$ac_func_search_save_LIBS |
| 28555 | fi |
| 28556 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 28557 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 28558 | ac_res=$ac_cv_search_op_open_agent |
| 28559 | if test "$ac_res" != no; then |
| 28560 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28561 | |
| 28562 | else |
| 28563 | |
| 28564 | echo "Error! You need to have libopagent around." |
| 28565 | exit -1 |
| 28566 | |
| 28567 | fi |
| 28568 | |
| 28569 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28570 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28571 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28572 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28574 | fi |
| 28575 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28576 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28577 | else |
| 28578 | # Is the header compilable? |
| 28579 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 28580 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 28581 | cat >conftest.$ac_ext <<_ACEOF |
| 28582 | /* confdefs.h. */ |
| 28583 | _ACEOF |
| 28584 | cat confdefs.h >>conftest.$ac_ext |
| 28585 | cat >>conftest.$ac_ext <<_ACEOF |
| 28586 | /* end confdefs.h. */ |
| 28587 | $ac_includes_default |
| 28588 | #include <opagent.h> |
| 28589 | _ACEOF |
| 28590 | rm -f conftest.$ac_objext |
| 28591 | if { (ac_try="$ac_compile" |
| 28592 | case "(($ac_try" in |
| 28593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28594 | *) ac_try_echo=$ac_try;; |
| 28595 | esac |
| 28596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28597 | (eval "$ac_compile") 2>conftest.er1 |
| 28598 | ac_status=$? |
| 28599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28600 | rm -f conftest.er1 |
| 28601 | cat conftest.err >&5 |
| 28602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28603 | (exit $ac_status); } && |
| 28604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28605 | { (case "(($ac_try" in |
| 28606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28607 | *) ac_try_echo=$ac_try;; |
| 28608 | esac |
| 28609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28610 | (eval "$ac_try") 2>&5 |
| 28611 | ac_status=$? |
| 28612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28613 | (exit $ac_status); }; } && |
| 28614 | { ac_try='test -s conftest.$ac_objext' |
| 28615 | { (case "(($ac_try" in |
| 28616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28617 | *) ac_try_echo=$ac_try;; |
| 28618 | esac |
| 28619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28620 | (eval "$ac_try") 2>&5 |
| 28621 | ac_status=$? |
| 28622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28623 | (exit $ac_status); }; }; then |
| 28624 | ac_header_compiler=yes |
| 28625 | else |
| 28626 | echo "$as_me: failed program was:" >&5 |
| 28627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28628 | |
| 28629 | ac_header_compiler=no |
| 28630 | fi |
| 28631 | |
| 28632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28633 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28634 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28635 | |
| 28636 | # Is the header present? |
| 28637 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 28638 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 28639 | cat >conftest.$ac_ext <<_ACEOF |
| 28640 | /* confdefs.h. */ |
| 28641 | _ACEOF |
| 28642 | cat confdefs.h >>conftest.$ac_ext |
| 28643 | cat >>conftest.$ac_ext <<_ACEOF |
| 28644 | /* end confdefs.h. */ |
| 28645 | #include <opagent.h> |
| 28646 | _ACEOF |
| 28647 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28648 | case "(($ac_try" in |
| 28649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28650 | *) ac_try_echo=$ac_try;; |
| 28651 | esac |
| 28652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28653 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28654 | ac_status=$? |
| 28655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28656 | rm -f conftest.er1 |
| 28657 | cat conftest.err >&5 |
| 28658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28659 | (exit $ac_status); } >/dev/null; then |
| 28660 | if test -s conftest.err; then |
| 28661 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28662 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28663 | else |
| 28664 | ac_cpp_err= |
| 28665 | fi |
| 28666 | else |
| 28667 | ac_cpp_err=yes |
| 28668 | fi |
| 28669 | if test -z "$ac_cpp_err"; then |
| 28670 | ac_header_preproc=yes |
| 28671 | else |
| 28672 | echo "$as_me: failed program was:" >&5 |
| 28673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28674 | |
| 28675 | ac_header_preproc=no |
| 28676 | fi |
| 28677 | |
| 28678 | rm -f conftest.err conftest.$ac_ext |
| 28679 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28680 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 28681 | |
| 28682 | # So? What about this header? |
| 28683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28684 | yes:no: ) |
| 28685 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28686 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28687 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 28688 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 28689 | ac_header_preproc=yes |
| 28690 | ;; |
| 28691 | no:yes:* ) |
| 28692 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 28693 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 28694 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 28695 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 28696 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 28697 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 28698 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 28699 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28700 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 28701 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 28702 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 28703 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 28704 | ( cat <<\_ASBOX |
| 28705 | ## ----------------------------------- ## |
| 28706 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28707 | ## ----------------------------------- ## |
| 28708 | _ASBOX |
| 28709 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 28710 | ;; |
| 28711 | esac |
| 28712 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28713 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28714 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28716 | else |
| 28717 | ac_cv_header_opagent_h=$ac_header_preproc |
| 28718 | fi |
| 28719 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28720 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28721 | |
| 28722 | fi |
| 28723 | if test $ac_cv_header_opagent_h = yes; then |
| 28724 | : |
| 28725 | else |
| 28726 | |
| 28727 | echo "Error! You need to have opagent.h around." |
| 28728 | exit -1 |
| 28729 | |
| 28730 | fi |
| 28731 | |
| 28732 | |
| 28733 | |
| 28734 | else |
| 28735 | |
| 28736 | llvm_cv_old_LIBS="$LIBS" |
| 28737 | LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile" |
| 28738 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 28739 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 28740 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28742 | else |
| 28743 | ac_func_search_save_LIBS=$LIBS |
| 28744 | cat >conftest.$ac_ext <<_ACEOF |
| 28745 | /* confdefs.h. */ |
| 28746 | _ACEOF |
| 28747 | cat confdefs.h >>conftest.$ac_ext |
| 28748 | cat >>conftest.$ac_ext <<_ACEOF |
| 28749 | /* end confdefs.h. */ |
| 28750 | |
| 28751 | /* Override any GCC internal prototype to avoid an error. |
| 28752 | Use char because int might match the return type of a GCC |
| 28753 | builtin and then its argument prototype would still apply. */ |
| 28754 | #ifdef __cplusplus |
| 28755 | extern "C" |
| 28756 | #endif |
| 28757 | char op_open_agent (); |
| 28758 | int |
| 28759 | main () |
| 28760 | { |
| 28761 | return op_open_agent (); |
| 28762 | ; |
| 28763 | return 0; |
| 28764 | } |
| 28765 | _ACEOF |
| 28766 | for ac_lib in '' opagent; do |
| 28767 | if test -z "$ac_lib"; then |
| 28768 | ac_res="none required" |
| 28769 | else |
| 28770 | ac_res=-l$ac_lib |
| 28771 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28772 | fi |
| 28773 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28774 | if { (ac_try="$ac_link" |
| 28775 | case "(($ac_try" in |
| 28776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28777 | *) ac_try_echo=$ac_try;; |
| 28778 | esac |
| 28779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28780 | (eval "$ac_link") 2>conftest.er1 |
| 28781 | ac_status=$? |
| 28782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28783 | rm -f conftest.er1 |
| 28784 | cat conftest.err >&5 |
| 28785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28786 | (exit $ac_status); } && |
| 28787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28788 | { (case "(($ac_try" in |
| 28789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28790 | *) ac_try_echo=$ac_try;; |
| 28791 | esac |
| 28792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28793 | (eval "$ac_try") 2>&5 |
| 28794 | ac_status=$? |
| 28795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28796 | (exit $ac_status); }; } && |
| 28797 | { ac_try='test -s conftest$ac_exeext' |
| 28798 | { (case "(($ac_try" in |
| 28799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28800 | *) ac_try_echo=$ac_try;; |
| 28801 | esac |
| 28802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28803 | (eval "$ac_try") 2>&5 |
| 28804 | ac_status=$? |
| 28805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28806 | (exit $ac_status); }; }; then |
| 28807 | ac_cv_search_op_open_agent=$ac_res |
| 28808 | else |
| 28809 | echo "$as_me: failed program was:" >&5 |
| 28810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28811 | |
| 28812 | |
| 28813 | fi |
| 28814 | |
| 28815 | rm -f core conftest.err conftest.$ac_objext \ |
| 28816 | conftest$ac_exeext |
| 28817 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28818 | break |
| 28819 | fi |
| 28820 | done |
| 28821 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28822 | : |
| 28823 | else |
| 28824 | ac_cv_search_op_open_agent=no |
| 28825 | fi |
| 28826 | rm conftest.$ac_ext |
| 28827 | LIBS=$ac_func_search_save_LIBS |
| 28828 | fi |
| 28829 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 28830 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 28831 | ac_res=$ac_cv_search_op_open_agent |
| 28832 | if test "$ac_res" != no; then |
| 28833 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28834 | USE_OPROFILE=1 |
| 28835 | |
| 28836 | else |
| 28837 | LIBS="$llvm_cv_old_LIBS" |
| 28838 | USE_OPROFILE=0 |
| 28839 | |
| 28840 | fi |
| 28841 | |
| 28842 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28843 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28844 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28845 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28847 | fi |
| 28848 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28849 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28850 | else |
| 28851 | # Is the header compilable? |
| 28852 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 28853 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 28854 | cat >conftest.$ac_ext <<_ACEOF |
| 28855 | /* confdefs.h. */ |
| 28856 | _ACEOF |
| 28857 | cat confdefs.h >>conftest.$ac_ext |
| 28858 | cat >>conftest.$ac_ext <<_ACEOF |
| 28859 | /* end confdefs.h. */ |
| 28860 | $ac_includes_default |
| 28861 | #include <opagent.h> |
| 28862 | _ACEOF |
| 28863 | rm -f conftest.$ac_objext |
| 28864 | if { (ac_try="$ac_compile" |
| 28865 | case "(($ac_try" in |
| 28866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28867 | *) ac_try_echo=$ac_try;; |
| 28868 | esac |
| 28869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28870 | (eval "$ac_compile") 2>conftest.er1 |
| 28871 | ac_status=$? |
| 28872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28873 | rm -f conftest.er1 |
| 28874 | cat conftest.err >&5 |
| 28875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28876 | (exit $ac_status); } && |
| 28877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28878 | { (case "(($ac_try" in |
| 28879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28880 | *) ac_try_echo=$ac_try;; |
| 28881 | esac |
| 28882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28883 | (eval "$ac_try") 2>&5 |
| 28884 | ac_status=$? |
| 28885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28886 | (exit $ac_status); }; } && |
| 28887 | { ac_try='test -s conftest.$ac_objext' |
| 28888 | { (case "(($ac_try" in |
| 28889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28890 | *) ac_try_echo=$ac_try;; |
| 28891 | esac |
| 28892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28893 | (eval "$ac_try") 2>&5 |
| 28894 | ac_status=$? |
| 28895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28896 | (exit $ac_status); }; }; then |
| 28897 | ac_header_compiler=yes |
| 28898 | else |
| 28899 | echo "$as_me: failed program was:" >&5 |
| 28900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28901 | |
| 28902 | ac_header_compiler=no |
| 28903 | fi |
| 28904 | |
| 28905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28906 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28907 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28908 | |
| 28909 | # Is the header present? |
| 28910 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 28911 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 28912 | cat >conftest.$ac_ext <<_ACEOF |
| 28913 | /* confdefs.h. */ |
| 28914 | _ACEOF |
| 28915 | cat confdefs.h >>conftest.$ac_ext |
| 28916 | cat >>conftest.$ac_ext <<_ACEOF |
| 28917 | /* end confdefs.h. */ |
| 28918 | #include <opagent.h> |
| 28919 | _ACEOF |
| 28920 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28921 | case "(($ac_try" in |
| 28922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28923 | *) ac_try_echo=$ac_try;; |
| 28924 | esac |
| 28925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28926 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28927 | ac_status=$? |
| 28928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28929 | rm -f conftest.er1 |
| 28930 | cat conftest.err >&5 |
| 28931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28932 | (exit $ac_status); } >/dev/null; then |
| 28933 | if test -s conftest.err; then |
| 28934 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28935 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28936 | else |
| 28937 | ac_cpp_err= |
| 28938 | fi |
| 28939 | else |
| 28940 | ac_cpp_err=yes |
| 28941 | fi |
| 28942 | if test -z "$ac_cpp_err"; then |
| 28943 | ac_header_preproc=yes |
| 28944 | else |
| 28945 | echo "$as_me: failed program was:" >&5 |
| 28946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28947 | |
| 28948 | ac_header_preproc=no |
| 28949 | fi |
| 28950 | |
| 28951 | rm -f conftest.err conftest.$ac_ext |
| 28952 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28953 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 28954 | |
| 28955 | # So? What about this header? |
| 28956 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28957 | yes:no: ) |
| 28958 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28959 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28960 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 28961 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 28962 | ac_header_preproc=yes |
| 28963 | ;; |
| 28964 | no:yes:* ) |
| 28965 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 28966 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 28967 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 28968 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 28969 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 28970 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 28971 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 28972 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28973 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 28974 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 28975 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 28976 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 28977 | ( cat <<\_ASBOX |
| 28978 | ## ----------------------------------- ## |
| 28979 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28980 | ## ----------------------------------- ## |
| 28981 | _ASBOX |
| 28982 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 28983 | ;; |
| 28984 | esac |
| 28985 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28986 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28987 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28989 | else |
| 28990 | ac_cv_header_opagent_h=$ac_header_preproc |
| 28991 | fi |
| 28992 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28993 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28994 | |
| 28995 | fi |
| 28996 | if test $ac_cv_header_opagent_h = yes; then |
| 28997 | : |
| 28998 | else |
| 28999 | |
| 29000 | LIBS="$llvm_cv_old_LIBS" |
| 29001 | USE_OPROFILE=0 |
| 29002 | |
| 29003 | |
| 29004 | fi |
| 29005 | |
| 29006 | |
| 29007 | |
| 29008 | fi |
| 29009 | |
| 29010 | |
| 29011 | cat >>confdefs.h <<_ACEOF |
| 29012 | #define USE_OPROFILE $USE_OPROFILE |
| 29013 | _ACEOF |
| 29014 | |
| 29015 | |
| 29016 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29017 | |
| 29018 | |
| 29019 | |
| 29020 | |
| 29021 | |
| 29022 | ac_header_dirent=no |
| 29023 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 29024 | 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] | 29025 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 29026 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 29027 | 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] | 29028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29029 | else |
| 29030 | cat >conftest.$ac_ext <<_ACEOF |
| 29031 | /* confdefs.h. */ |
| 29032 | _ACEOF |
| 29033 | cat confdefs.h >>conftest.$ac_ext |
| 29034 | cat >>conftest.$ac_ext <<_ACEOF |
| 29035 | /* end confdefs.h. */ |
| 29036 | #include <sys/types.h> |
| 29037 | #include <$ac_hdr> |
| 29038 | |
| 29039 | int |
| 29040 | main () |
| 29041 | { |
| 29042 | if ((DIR *) 0) |
| 29043 | return 0; |
| 29044 | ; |
| 29045 | return 0; |
| 29046 | } |
| 29047 | _ACEOF |
| 29048 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29049 | if { (ac_try="$ac_compile" |
| 29050 | case "(($ac_try" in |
| 29051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29052 | *) ac_try_echo=$ac_try;; |
| 29053 | esac |
| 29054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29055 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29056 | ac_status=$? |
| 29057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29058 | rm -f conftest.er1 |
| 29059 | cat conftest.err >&5 |
| 29060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29061 | (exit $ac_status); } && |
| 29062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29063 | { (case "(($ac_try" in |
| 29064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29065 | *) ac_try_echo=$ac_try;; |
| 29066 | esac |
| 29067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29068 | (eval "$ac_try") 2>&5 |
| 29069 | ac_status=$? |
| 29070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29071 | (exit $ac_status); }; } && |
| 29072 | { ac_try='test -s conftest.$ac_objext' |
| 29073 | { (case "(($ac_try" in |
| 29074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29075 | *) ac_try_echo=$ac_try;; |
| 29076 | esac |
| 29077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29078 | (eval "$ac_try") 2>&5 |
| 29079 | ac_status=$? |
| 29080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29081 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29082 | eval "$as_ac_Header=yes" |
| 29083 | else |
| 29084 | echo "$as_me: failed program was:" >&5 |
| 29085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29087 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29088 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29089 | |
| 29090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29091 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29092 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29093 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29094 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29095 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29096 | cat >>confdefs.h <<_ACEOF |
| 29097 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 29098 | _ACEOF |
| 29099 | |
| 29100 | ac_header_dirent=$ac_hdr; break |
| 29101 | fi |
| 29102 | |
| 29103 | done |
| 29104 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 29105 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29106 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29107 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29108 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29110 | else |
| 29111 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29112 | cat >conftest.$ac_ext <<_ACEOF |
| 29113 | /* confdefs.h. */ |
| 29114 | _ACEOF |
| 29115 | cat confdefs.h >>conftest.$ac_ext |
| 29116 | cat >>conftest.$ac_ext <<_ACEOF |
| 29117 | /* end confdefs.h. */ |
| 29118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29119 | /* Override any GCC internal prototype to avoid an error. |
| 29120 | Use char because int might match the return type of a GCC |
| 29121 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29122 | #ifdef __cplusplus |
| 29123 | extern "C" |
| 29124 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29125 | char opendir (); |
| 29126 | int |
| 29127 | main () |
| 29128 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29129 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29130 | ; |
| 29131 | return 0; |
| 29132 | } |
| 29133 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29134 | for ac_lib in '' dir; do |
| 29135 | if test -z "$ac_lib"; then |
| 29136 | ac_res="none required" |
| 29137 | else |
| 29138 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29139 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29140 | fi |
| 29141 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29142 | if { (ac_try="$ac_link" |
| 29143 | case "(($ac_try" in |
| 29144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29145 | *) ac_try_echo=$ac_try;; |
| 29146 | esac |
| 29147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29148 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29149 | ac_status=$? |
| 29150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29151 | rm -f conftest.er1 |
| 29152 | cat conftest.err >&5 |
| 29153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29154 | (exit $ac_status); } && |
| 29155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29156 | { (case "(($ac_try" in |
| 29157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29158 | *) ac_try_echo=$ac_try;; |
| 29159 | esac |
| 29160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29161 | (eval "$ac_try") 2>&5 |
| 29162 | ac_status=$? |
| 29163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29164 | (exit $ac_status); }; } && |
| 29165 | { ac_try='test -s conftest$ac_exeext' |
| 29166 | { (case "(($ac_try" in |
| 29167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29168 | *) ac_try_echo=$ac_try;; |
| 29169 | esac |
| 29170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29171 | (eval "$ac_try") 2>&5 |
| 29172 | ac_status=$? |
| 29173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29174 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29175 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29176 | else |
| 29177 | echo "$as_me: failed program was:" >&5 |
| 29178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29180 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29181 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29182 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29183 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29184 | conftest$ac_exeext |
| 29185 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29186 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29187 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29188 | done |
| 29189 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29190 | : |
| 29191 | else |
| 29192 | ac_cv_search_opendir=no |
| 29193 | fi |
| 29194 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29195 | LIBS=$ac_func_search_save_LIBS |
| 29196 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29197 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29198 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29199 | ac_res=$ac_cv_search_opendir |
| 29200 | if test "$ac_res" != no; then |
| 29201 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29202 | |
| 29203 | fi |
| 29204 | |
| 29205 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29206 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29207 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29208 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29210 | else |
| 29211 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29212 | cat >conftest.$ac_ext <<_ACEOF |
| 29213 | /* confdefs.h. */ |
| 29214 | _ACEOF |
| 29215 | cat confdefs.h >>conftest.$ac_ext |
| 29216 | cat >>conftest.$ac_ext <<_ACEOF |
| 29217 | /* end confdefs.h. */ |
| 29218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29219 | /* Override any GCC internal prototype to avoid an error. |
| 29220 | Use char because int might match the return type of a GCC |
| 29221 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29222 | #ifdef __cplusplus |
| 29223 | extern "C" |
| 29224 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29225 | char opendir (); |
| 29226 | int |
| 29227 | main () |
| 29228 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29229 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29230 | ; |
| 29231 | return 0; |
| 29232 | } |
| 29233 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29234 | for ac_lib in '' x; do |
| 29235 | if test -z "$ac_lib"; then |
| 29236 | ac_res="none required" |
| 29237 | else |
| 29238 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29239 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29240 | fi |
| 29241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29242 | if { (ac_try="$ac_link" |
| 29243 | case "(($ac_try" in |
| 29244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29245 | *) ac_try_echo=$ac_try;; |
| 29246 | esac |
| 29247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29248 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29249 | ac_status=$? |
| 29250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29251 | rm -f conftest.er1 |
| 29252 | cat conftest.err >&5 |
| 29253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29254 | (exit $ac_status); } && |
| 29255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29256 | { (case "(($ac_try" in |
| 29257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29258 | *) ac_try_echo=$ac_try;; |
| 29259 | esac |
| 29260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29261 | (eval "$ac_try") 2>&5 |
| 29262 | ac_status=$? |
| 29263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29264 | (exit $ac_status); }; } && |
| 29265 | { ac_try='test -s conftest$ac_exeext' |
| 29266 | { (case "(($ac_try" in |
| 29267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29268 | *) ac_try_echo=$ac_try;; |
| 29269 | esac |
| 29270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29271 | (eval "$ac_try") 2>&5 |
| 29272 | ac_status=$? |
| 29273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29274 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29275 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29276 | else |
| 29277 | echo "$as_me: failed program was:" >&5 |
| 29278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29279 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29280 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29281 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29282 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29283 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29284 | conftest$ac_exeext |
| 29285 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29286 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29287 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29288 | done |
| 29289 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29290 | : |
| 29291 | else |
| 29292 | ac_cv_search_opendir=no |
| 29293 | fi |
| 29294 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29295 | LIBS=$ac_func_search_save_LIBS |
| 29296 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29297 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29298 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29299 | ac_res=$ac_cv_search_opendir |
| 29300 | if test "$ac_res" != no; then |
| 29301 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29302 | |
| 29303 | fi |
| 29304 | |
| 29305 | fi |
| 29306 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29307 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 29308 | 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] | 29309 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 29310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29311 | else |
| 29312 | ac_ext=c |
| 29313 | ac_cpp='$CPP $CPPFLAGS' |
| 29314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29317 | |
| 29318 | cat >conftest.$ac_ext <<_ACEOF |
| 29319 | /* confdefs.h. */ |
| 29320 | _ACEOF |
| 29321 | cat confdefs.h >>conftest.$ac_ext |
| 29322 | cat >>conftest.$ac_ext <<_ACEOF |
| 29323 | /* end confdefs.h. */ |
| 29324 | #include <sys/mman.h> |
| 29325 | #include <unistd.h> |
| 29326 | #include <fcntl.h> |
| 29327 | int |
| 29328 | main () |
| 29329 | { |
| 29330 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 29331 | ; |
| 29332 | return 0; |
| 29333 | } |
| 29334 | _ACEOF |
| 29335 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29336 | if { (ac_try="$ac_compile" |
| 29337 | case "(($ac_try" in |
| 29338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29339 | *) ac_try_echo=$ac_try;; |
| 29340 | esac |
| 29341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29342 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29343 | ac_status=$? |
| 29344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29345 | rm -f conftest.er1 |
| 29346 | cat conftest.err >&5 |
| 29347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29348 | (exit $ac_status); } && |
| 29349 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29350 | { (case "(($ac_try" in |
| 29351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29352 | *) ac_try_echo=$ac_try;; |
| 29353 | esac |
| 29354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29355 | (eval "$ac_try") 2>&5 |
| 29356 | ac_status=$? |
| 29357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29358 | (exit $ac_status); }; } && |
| 29359 | { ac_try='test -s conftest.$ac_objext' |
| 29360 | { (case "(($ac_try" in |
| 29361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29362 | *) ac_try_echo=$ac_try;; |
| 29363 | esac |
| 29364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29365 | (eval "$ac_try") 2>&5 |
| 29366 | ac_status=$? |
| 29367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29368 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29369 | ac_cv_header_mmap_anon=yes |
| 29370 | else |
| 29371 | echo "$as_me: failed program was:" >&5 |
| 29372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29374 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29375 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29376 | |
| 29377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29378 | ac_ext=c |
| 29379 | ac_cpp='$CPP $CPPFLAGS' |
| 29380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29383 | |
| 29384 | |
| 29385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29386 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 29387 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29388 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 29389 | |
| 29390 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29391 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29392 | _ACEOF |
| 29393 | |
| 29394 | fi |
| 29395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29396 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 29397 | 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] | 29398 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 29399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29400 | else |
| 29401 | cat >conftest.$ac_ext <<_ACEOF |
| 29402 | /* confdefs.h. */ |
| 29403 | _ACEOF |
| 29404 | cat confdefs.h >>conftest.$ac_ext |
| 29405 | cat >>conftest.$ac_ext <<_ACEOF |
| 29406 | /* end confdefs.h. */ |
| 29407 | #include <sys/types.h> |
| 29408 | #include <sys/stat.h> |
| 29409 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29410 | #if defined S_ISBLK && defined S_IFDIR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29411 | # if S_ISBLK (S_IFDIR) |
| 29412 | You lose. |
| 29413 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29414 | #endif |
| 29415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29416 | #if defined S_ISBLK && defined S_IFCHR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29417 | # if S_ISBLK (S_IFCHR) |
| 29418 | You lose. |
| 29419 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29420 | #endif |
| 29421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29422 | #if defined S_ISLNK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29423 | # if S_ISLNK (S_IFREG) |
| 29424 | You lose. |
| 29425 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29426 | #endif |
| 29427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29428 | #if defined S_ISSOCK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29429 | # if S_ISSOCK (S_IFREG) |
| 29430 | You lose. |
| 29431 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29432 | #endif |
| 29433 | |
| 29434 | _ACEOF |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29435 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 29436 | $EGREP "You lose" >/dev/null 2>&1; then |
| 29437 | ac_cv_header_stat_broken=yes |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29438 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29439 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29440 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29441 | rm -f conftest* |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29442 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29443 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29444 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 29445 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29446 | if test $ac_cv_header_stat_broken = yes; then |
| 29447 | |
| 29448 | cat >>confdefs.h <<\_ACEOF |
| 29449 | #define STAT_MACROS_BROKEN 1 |
| 29450 | _ACEOF |
| 29451 | |
| 29452 | fi |
| 29453 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29454 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 29455 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29456 | if test "${ac_cv_header_stdc+set}" = set; then |
| 29457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29458 | else |
| 29459 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29460 | /* confdefs.h. */ |
| 29461 | _ACEOF |
| 29462 | cat confdefs.h >>conftest.$ac_ext |
| 29463 | cat >>conftest.$ac_ext <<_ACEOF |
| 29464 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29465 | #include <stdlib.h> |
| 29466 | #include <stdarg.h> |
| 29467 | #include <string.h> |
| 29468 | #include <float.h> |
| 29469 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29470 | int |
| 29471 | main () |
| 29472 | { |
| 29473 | |
| 29474 | ; |
| 29475 | return 0; |
| 29476 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29477 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29478 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29479 | if { (ac_try="$ac_compile" |
| 29480 | case "(($ac_try" in |
| 29481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29482 | *) ac_try_echo=$ac_try;; |
| 29483 | esac |
| 29484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29485 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29486 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29488 | rm -f conftest.er1 |
| 29489 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29491 | (exit $ac_status); } && |
| 29492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29493 | { (case "(($ac_try" in |
| 29494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29495 | *) ac_try_echo=$ac_try;; |
| 29496 | esac |
| 29497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29498 | (eval "$ac_try") 2>&5 |
| 29499 | ac_status=$? |
| 29500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29501 | (exit $ac_status); }; } && |
| 29502 | { ac_try='test -s conftest.$ac_objext' |
| 29503 | { (case "(($ac_try" in |
| 29504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29505 | *) ac_try_echo=$ac_try;; |
| 29506 | esac |
| 29507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29508 | (eval "$ac_try") 2>&5 |
| 29509 | ac_status=$? |
| 29510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29511 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29512 | ac_cv_header_stdc=yes |
| 29513 | else |
| 29514 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29516 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29517 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29518 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29519 | |
| 29520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29521 | |
| 29522 | if test $ac_cv_header_stdc = yes; then |
| 29523 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 29524 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29525 | /* confdefs.h. */ |
| 29526 | _ACEOF |
| 29527 | cat confdefs.h >>conftest.$ac_ext |
| 29528 | cat >>conftest.$ac_ext <<_ACEOF |
| 29529 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29530 | #include <string.h> |
| 29531 | |
| 29532 | _ACEOF |
| 29533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29534 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29535 | : |
| 29536 | else |
| 29537 | ac_cv_header_stdc=no |
| 29538 | fi |
| 29539 | rm -f conftest* |
| 29540 | |
| 29541 | fi |
| 29542 | |
| 29543 | if test $ac_cv_header_stdc = yes; then |
| 29544 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 29545 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29546 | /* confdefs.h. */ |
| 29547 | _ACEOF |
| 29548 | cat confdefs.h >>conftest.$ac_ext |
| 29549 | cat >>conftest.$ac_ext <<_ACEOF |
| 29550 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29551 | #include <stdlib.h> |
| 29552 | |
| 29553 | _ACEOF |
| 29554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29555 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29556 | : |
| 29557 | else |
| 29558 | ac_cv_header_stdc=no |
| 29559 | fi |
| 29560 | rm -f conftest* |
| 29561 | |
| 29562 | fi |
| 29563 | |
| 29564 | if test $ac_cv_header_stdc = yes; then |
| 29565 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 29566 | if test "$cross_compiling" = yes; then |
| 29567 | : |
| 29568 | else |
| 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 <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29576 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29577 | #if ((' ' & 0x0FF) == 0x020) |
| 29578 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 29579 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 29580 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29581 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29582 | (('a' <= (c) && (c) <= 'i') \ |
| 29583 | || ('j' <= (c) && (c) <= 'r') \ |
| 29584 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29585 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 29586 | #endif |
| 29587 | |
| 29588 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 29589 | int |
| 29590 | main () |
| 29591 | { |
| 29592 | int i; |
| 29593 | for (i = 0; i < 256; i++) |
| 29594 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29595 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29596 | return 2; |
| 29597 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29598 | } |
| 29599 | _ACEOF |
| 29600 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29601 | if { (ac_try="$ac_link" |
| 29602 | case "(($ac_try" in |
| 29603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29604 | *) ac_try_echo=$ac_try;; |
| 29605 | esac |
| 29606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29607 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29608 | ac_status=$? |
| 29609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29610 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29611 | { (case "(($ac_try" in |
| 29612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29613 | *) ac_try_echo=$ac_try;; |
| 29614 | esac |
| 29615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29616 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29617 | ac_status=$? |
| 29618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29619 | (exit $ac_status); }; }; then |
| 29620 | : |
| 29621 | else |
| 29622 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29623 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29625 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29626 | ( exit $ac_status ) |
| 29627 | ac_cv_header_stdc=no |
| 29628 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29629 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29630 | fi |
| 29631 | |
| 29632 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29633 | fi |
| 29634 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29635 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 29636 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29637 | if test $ac_cv_header_stdc = yes; then |
| 29638 | |
| 29639 | cat >>confdefs.h <<\_ACEOF |
| 29640 | #define STDC_HEADERS 1 |
| 29641 | _ACEOF |
| 29642 | |
| 29643 | fi |
| 29644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29645 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 29646 | 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] | 29647 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 29648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29649 | else |
| 29650 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29651 | /* confdefs.h. */ |
| 29652 | _ACEOF |
| 29653 | cat confdefs.h >>conftest.$ac_ext |
| 29654 | cat >>conftest.$ac_ext <<_ACEOF |
| 29655 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29656 | #include <sys/types.h> |
| 29657 | #include <sys/wait.h> |
| 29658 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29659 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29660 | #endif |
| 29661 | #ifndef WIFEXITED |
| 29662 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 29663 | #endif |
| 29664 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29665 | int |
| 29666 | main () |
| 29667 | { |
| 29668 | int s; |
| 29669 | wait (&s); |
| 29670 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 29671 | ; |
| 29672 | return 0; |
| 29673 | } |
| 29674 | _ACEOF |
| 29675 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29676 | if { (ac_try="$ac_compile" |
| 29677 | case "(($ac_try" in |
| 29678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29679 | *) ac_try_echo=$ac_try;; |
| 29680 | esac |
| 29681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29682 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29683 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29685 | rm -f conftest.er1 |
| 29686 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29688 | (exit $ac_status); } && |
| 29689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29690 | { (case "(($ac_try" in |
| 29691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29692 | *) ac_try_echo=$ac_try;; |
| 29693 | esac |
| 29694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29695 | (eval "$ac_try") 2>&5 |
| 29696 | ac_status=$? |
| 29697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29698 | (exit $ac_status); }; } && |
| 29699 | { ac_try='test -s conftest.$ac_objext' |
| 29700 | { (case "(($ac_try" in |
| 29701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29702 | *) ac_try_echo=$ac_try;; |
| 29703 | esac |
| 29704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29705 | (eval "$ac_try") 2>&5 |
| 29706 | ac_status=$? |
| 29707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29708 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29709 | ac_cv_header_sys_wait_h=yes |
| 29710 | else |
| 29711 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29713 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29714 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29715 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29716 | |
| 29717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29718 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29719 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 29720 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29721 | if test $ac_cv_header_sys_wait_h = yes; then |
| 29722 | |
| 29723 | cat >>confdefs.h <<\_ACEOF |
| 29724 | #define HAVE_SYS_WAIT_H 1 |
| 29725 | _ACEOF |
| 29726 | |
| 29727 | fi |
| 29728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29729 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 29730 | 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] | 29731 | if test "${ac_cv_header_time+set}" = set; then |
| 29732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29733 | else |
| 29734 | cat >conftest.$ac_ext <<_ACEOF |
| 29735 | /* confdefs.h. */ |
| 29736 | _ACEOF |
| 29737 | cat confdefs.h >>conftest.$ac_ext |
| 29738 | cat >>conftest.$ac_ext <<_ACEOF |
| 29739 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29740 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29741 | #include <sys/time.h> |
| 29742 | #include <time.h> |
| 29743 | |
| 29744 | int |
| 29745 | main () |
| 29746 | { |
| 29747 | if ((struct tm *) 0) |
| 29748 | return 0; |
| 29749 | ; |
| 29750 | return 0; |
| 29751 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29752 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29753 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29754 | if { (ac_try="$ac_compile" |
| 29755 | case "(($ac_try" in |
| 29756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29757 | *) ac_try_echo=$ac_try;; |
| 29758 | esac |
| 29759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29760 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29761 | ac_status=$? |
| 29762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29763 | rm -f conftest.er1 |
| 29764 | cat conftest.err >&5 |
| 29765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29766 | (exit $ac_status); } && |
| 29767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29768 | { (case "(($ac_try" in |
| 29769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29770 | *) ac_try_echo=$ac_try;; |
| 29771 | esac |
| 29772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29773 | (eval "$ac_try") 2>&5 |
| 29774 | ac_status=$? |
| 29775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29776 | (exit $ac_status); }; } && |
| 29777 | { ac_try='test -s conftest.$ac_objext' |
| 29778 | { (case "(($ac_try" in |
| 29779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29780 | *) ac_try_echo=$ac_try;; |
| 29781 | esac |
| 29782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29783 | (eval "$ac_try") 2>&5 |
| 29784 | ac_status=$? |
| 29785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29786 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29787 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29788 | else |
| 29789 | echo "$as_me: failed program was:" >&5 |
| 29790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29792 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29793 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29794 | |
| 29795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29797 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 29798 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29799 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29800 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29801 | cat >>confdefs.h <<\_ACEOF |
| 29802 | #define TIME_WITH_SYS_TIME 1 |
| 29803 | _ACEOF |
| 29804 | |
| 29805 | fi |
| 29806 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29807 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29808 | |
| 29809 | |
| 29810 | |
| 29811 | |
| 29812 | |
| 29813 | |
| 29814 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 29815 | do |
| 29816 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29818 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29819 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29820 | 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] | 29821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29822 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29823 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29825 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29826 | else |
| 29827 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29828 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29829 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29830 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29831 | /* confdefs.h. */ |
| 29832 | _ACEOF |
| 29833 | cat confdefs.h >>conftest.$ac_ext |
| 29834 | cat >>conftest.$ac_ext <<_ACEOF |
| 29835 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29836 | $ac_includes_default |
| 29837 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29838 | _ACEOF |
| 29839 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29840 | if { (ac_try="$ac_compile" |
| 29841 | case "(($ac_try" in |
| 29842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29843 | *) ac_try_echo=$ac_try;; |
| 29844 | esac |
| 29845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29846 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29847 | ac_status=$? |
| 29848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29849 | rm -f conftest.er1 |
| 29850 | cat conftest.err >&5 |
| 29851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29852 | (exit $ac_status); } && |
| 29853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29854 | { (case "(($ac_try" in |
| 29855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29856 | *) ac_try_echo=$ac_try;; |
| 29857 | esac |
| 29858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29859 | (eval "$ac_try") 2>&5 |
| 29860 | ac_status=$? |
| 29861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29862 | (exit $ac_status); }; } && |
| 29863 | { ac_try='test -s conftest.$ac_objext' |
| 29864 | { (case "(($ac_try" in |
| 29865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29866 | *) ac_try_echo=$ac_try;; |
| 29867 | esac |
| 29868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29869 | (eval "$ac_try") 2>&5 |
| 29870 | ac_status=$? |
| 29871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29872 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29873 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29874 | else |
| 29875 | echo "$as_me: failed program was:" >&5 |
| 29876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29878 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29879 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29880 | |
| 29881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29882 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29883 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29884 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29885 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29886 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29887 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29888 | cat >conftest.$ac_ext <<_ACEOF |
| 29889 | /* confdefs.h. */ |
| 29890 | _ACEOF |
| 29891 | cat confdefs.h >>conftest.$ac_ext |
| 29892 | cat >>conftest.$ac_ext <<_ACEOF |
| 29893 | /* end confdefs.h. */ |
| 29894 | #include <$ac_header> |
| 29895 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29896 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29897 | case "(($ac_try" in |
| 29898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29899 | *) ac_try_echo=$ac_try;; |
| 29900 | esac |
| 29901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29902 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29903 | ac_status=$? |
| 29904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29905 | rm -f conftest.er1 |
| 29906 | cat conftest.err >&5 |
| 29907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29908 | (exit $ac_status); } >/dev/null; then |
| 29909 | if test -s conftest.err; then |
| 29910 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29911 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29912 | else |
| 29913 | ac_cpp_err= |
| 29914 | fi |
| 29915 | else |
| 29916 | ac_cpp_err=yes |
| 29917 | fi |
| 29918 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29919 | ac_header_preproc=yes |
| 29920 | else |
| 29921 | echo "$as_me: failed program was:" >&5 |
| 29922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29923 | |
| 29924 | ac_header_preproc=no |
| 29925 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29926 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29927 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29928 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29929 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29930 | |
| 29931 | # So? What about this header? |
| 29932 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29933 | yes:no: ) |
| 29934 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29935 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29936 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29937 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29938 | ac_header_preproc=yes |
| 29939 | ;; |
| 29940 | no:yes:* ) |
| 29941 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29942 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29943 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29944 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29945 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29946 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29947 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29948 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29950 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29951 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29952 | 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] | 29953 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29954 | ## ----------------------------------- ## |
| 29955 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29956 | ## ----------------------------------- ## |
| 29957 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29958 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29959 | ;; |
| 29960 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29961 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29963 | 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] | 29964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29965 | else |
| 29966 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29967 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29968 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29969 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29970 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29971 | |
| 29972 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29973 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29974 | cat >>confdefs.h <<_ACEOF |
| 29975 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29976 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29977 | |
| 29978 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29979 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29980 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29981 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29982 | |
| 29983 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29984 | |
| 29985 | |
| 29986 | |
| 29987 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 29988 | 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] | 29989 | do |
| 29990 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29991 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29992 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29993 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29994 | 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] | 29995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29996 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29997 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29998 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29999 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30000 | else |
| 30001 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30002 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30003 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30004 | cat >conftest.$ac_ext <<_ACEOF |
| 30005 | /* confdefs.h. */ |
| 30006 | _ACEOF |
| 30007 | cat confdefs.h >>conftest.$ac_ext |
| 30008 | cat >>conftest.$ac_ext <<_ACEOF |
| 30009 | /* end confdefs.h. */ |
| 30010 | $ac_includes_default |
| 30011 | #include <$ac_header> |
| 30012 | _ACEOF |
| 30013 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30014 | if { (ac_try="$ac_compile" |
| 30015 | case "(($ac_try" in |
| 30016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30017 | *) ac_try_echo=$ac_try;; |
| 30018 | esac |
| 30019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30020 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30021 | ac_status=$? |
| 30022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30023 | rm -f conftest.er1 |
| 30024 | cat conftest.err >&5 |
| 30025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30026 | (exit $ac_status); } && |
| 30027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30028 | { (case "(($ac_try" in |
| 30029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30030 | *) ac_try_echo=$ac_try;; |
| 30031 | esac |
| 30032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30033 | (eval "$ac_try") 2>&5 |
| 30034 | ac_status=$? |
| 30035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30036 | (exit $ac_status); }; } && |
| 30037 | { ac_try='test -s conftest.$ac_objext' |
| 30038 | { (case "(($ac_try" in |
| 30039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30040 | *) ac_try_echo=$ac_try;; |
| 30041 | esac |
| 30042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30043 | (eval "$ac_try") 2>&5 |
| 30044 | ac_status=$? |
| 30045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30046 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30047 | ac_header_compiler=yes |
| 30048 | else |
| 30049 | echo "$as_me: failed program was:" >&5 |
| 30050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30052 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30053 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30054 | |
| 30055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30056 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30057 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30058 | |
| 30059 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30060 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30061 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30062 | cat >conftest.$ac_ext <<_ACEOF |
| 30063 | /* confdefs.h. */ |
| 30064 | _ACEOF |
| 30065 | cat confdefs.h >>conftest.$ac_ext |
| 30066 | cat >>conftest.$ac_ext <<_ACEOF |
| 30067 | /* end confdefs.h. */ |
| 30068 | #include <$ac_header> |
| 30069 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30070 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30071 | case "(($ac_try" in |
| 30072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30073 | *) ac_try_echo=$ac_try;; |
| 30074 | esac |
| 30075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30076 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30077 | ac_status=$? |
| 30078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30079 | rm -f conftest.er1 |
| 30080 | cat conftest.err >&5 |
| 30081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30082 | (exit $ac_status); } >/dev/null; then |
| 30083 | if test -s conftest.err; then |
| 30084 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30085 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30086 | else |
| 30087 | ac_cpp_err= |
| 30088 | fi |
| 30089 | else |
| 30090 | ac_cpp_err=yes |
| 30091 | fi |
| 30092 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30093 | ac_header_preproc=yes |
| 30094 | else |
| 30095 | echo "$as_me: failed program was:" >&5 |
| 30096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30097 | |
| 30098 | ac_header_preproc=no |
| 30099 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30100 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30101 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30102 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30103 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30104 | |
| 30105 | # So? What about this header? |
| 30106 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30107 | yes:no: ) |
| 30108 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30109 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30111 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30112 | ac_header_preproc=yes |
| 30113 | ;; |
| 30114 | no:yes:* ) |
| 30115 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30116 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30117 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30118 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30119 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30120 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30121 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30122 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30124 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30125 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30126 | 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] | 30127 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30128 | ## ----------------------------------- ## |
| 30129 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30130 | ## ----------------------------------- ## |
| 30131 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30132 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30133 | ;; |
| 30134 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30135 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30136 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30137 | 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] | 30138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30139 | else |
| 30140 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30141 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30142 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30143 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30144 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30145 | |
| 30146 | fi |
| 30147 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30148 | cat >>confdefs.h <<_ACEOF |
| 30149 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30150 | _ACEOF |
| 30151 | |
| 30152 | fi |
| 30153 | |
| 30154 | done |
| 30155 | |
| 30156 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30157 | |
| 30158 | for ac_header in utime.h windows.h |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30159 | do |
| 30160 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30162 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30163 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30164 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30166 | fi |
| 30167 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30168 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30169 | echo "${ECHO_T}$ac_res" >&6; } |
| 30170 | else |
| 30171 | # Is the header compilable? |
| 30172 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30173 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30174 | cat >conftest.$ac_ext <<_ACEOF |
| 30175 | /* confdefs.h. */ |
| 30176 | _ACEOF |
| 30177 | cat confdefs.h >>conftest.$ac_ext |
| 30178 | cat >>conftest.$ac_ext <<_ACEOF |
| 30179 | /* end confdefs.h. */ |
| 30180 | $ac_includes_default |
| 30181 | #include <$ac_header> |
| 30182 | _ACEOF |
| 30183 | rm -f conftest.$ac_objext |
| 30184 | if { (ac_try="$ac_compile" |
| 30185 | case "(($ac_try" in |
| 30186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30187 | *) ac_try_echo=$ac_try;; |
| 30188 | esac |
| 30189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30190 | (eval "$ac_compile") 2>conftest.er1 |
| 30191 | ac_status=$? |
| 30192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30193 | rm -f conftest.er1 |
| 30194 | cat conftest.err >&5 |
| 30195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30196 | (exit $ac_status); } && |
| 30197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30198 | { (case "(($ac_try" in |
| 30199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30200 | *) ac_try_echo=$ac_try;; |
| 30201 | esac |
| 30202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30203 | (eval "$ac_try") 2>&5 |
| 30204 | ac_status=$? |
| 30205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30206 | (exit $ac_status); }; } && |
| 30207 | { ac_try='test -s conftest.$ac_objext' |
| 30208 | { (case "(($ac_try" in |
| 30209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30210 | *) ac_try_echo=$ac_try;; |
| 30211 | esac |
| 30212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30213 | (eval "$ac_try") 2>&5 |
| 30214 | ac_status=$? |
| 30215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30216 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30217 | ac_header_compiler=yes |
| 30218 | else |
| 30219 | echo "$as_me: failed program was:" >&5 |
| 30220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30221 | |
| 30222 | ac_header_compiler=no |
| 30223 | fi |
| 30224 | |
| 30225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30226 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30227 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30228 | |
| 30229 | # Is the header present? |
| 30230 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30231 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30232 | cat >conftest.$ac_ext <<_ACEOF |
| 30233 | /* confdefs.h. */ |
| 30234 | _ACEOF |
| 30235 | cat confdefs.h >>conftest.$ac_ext |
| 30236 | cat >>conftest.$ac_ext <<_ACEOF |
| 30237 | /* end confdefs.h. */ |
| 30238 | #include <$ac_header> |
| 30239 | _ACEOF |
| 30240 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30241 | case "(($ac_try" in |
| 30242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30243 | *) ac_try_echo=$ac_try;; |
| 30244 | esac |
| 30245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30246 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 30247 | ac_status=$? |
| 30248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30249 | rm -f conftest.er1 |
| 30250 | cat conftest.err >&5 |
| 30251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30252 | (exit $ac_status); } >/dev/null; then |
| 30253 | if test -s conftest.err; then |
| 30254 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30255 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30256 | else |
| 30257 | ac_cpp_err= |
| 30258 | fi |
| 30259 | else |
| 30260 | ac_cpp_err=yes |
| 30261 | fi |
| 30262 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30263 | ac_header_preproc=yes |
| 30264 | else |
| 30265 | echo "$as_me: failed program was:" >&5 |
| 30266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30267 | |
| 30268 | ac_header_preproc=no |
| 30269 | fi |
| 30270 | |
| 30271 | rm -f conftest.err conftest.$ac_ext |
| 30272 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30273 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 30274 | |
| 30275 | # So? What about this header? |
| 30276 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30277 | yes:no: ) |
| 30278 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30279 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30280 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30281 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30282 | ac_header_preproc=yes |
| 30283 | ;; |
| 30284 | no:yes:* ) |
| 30285 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30286 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30287 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30288 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30289 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30290 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30291 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30292 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30293 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30294 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30295 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30296 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 30297 | ( cat <<\_ASBOX |
| 30298 | ## ----------------------------------- ## |
| 30299 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30300 | ## ----------------------------------- ## |
| 30301 | _ASBOX |
| 30302 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 30303 | ;; |
| 30304 | esac |
| 30305 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30307 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30309 | else |
| 30310 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30311 | fi |
| 30312 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30313 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30314 | echo "${ECHO_T}$ac_res" >&6; } |
| 30315 | |
| 30316 | fi |
| 30317 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30318 | cat >>confdefs.h <<_ACEOF |
| 30319 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30320 | _ACEOF |
| 30321 | |
| 30322 | fi |
| 30323 | |
| 30324 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30325 | |
| 30326 | |
| 30327 | |
| 30328 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30329 | |
| 30330 | 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] | 30331 | do |
| 30332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30334 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30336 | 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] | 30337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30338 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30339 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30340 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30341 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30342 | else |
| 30343 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30344 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30345 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30346 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30347 | /* confdefs.h. */ |
| 30348 | _ACEOF |
| 30349 | cat confdefs.h >>conftest.$ac_ext |
| 30350 | cat >>conftest.$ac_ext <<_ACEOF |
| 30351 | /* end confdefs.h. */ |
| 30352 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30353 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30354 | _ACEOF |
| 30355 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30356 | if { (ac_try="$ac_compile" |
| 30357 | case "(($ac_try" in |
| 30358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30359 | *) ac_try_echo=$ac_try;; |
| 30360 | esac |
| 30361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30362 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30363 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30365 | rm -f conftest.er1 |
| 30366 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30368 | (exit $ac_status); } && |
| 30369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30370 | { (case "(($ac_try" in |
| 30371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30372 | *) ac_try_echo=$ac_try;; |
| 30373 | esac |
| 30374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30375 | (eval "$ac_try") 2>&5 |
| 30376 | ac_status=$? |
| 30377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30378 | (exit $ac_status); }; } && |
| 30379 | { ac_try='test -s conftest.$ac_objext' |
| 30380 | { (case "(($ac_try" in |
| 30381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30382 | *) ac_try_echo=$ac_try;; |
| 30383 | esac |
| 30384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30385 | (eval "$ac_try") 2>&5 |
| 30386 | ac_status=$? |
| 30387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30388 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30389 | ac_header_compiler=yes |
| 30390 | else |
| 30391 | echo "$as_me: failed program was:" >&5 |
| 30392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30394 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30395 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30396 | |
| 30397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30398 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30399 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30400 | |
| 30401 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30402 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30403 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30404 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30405 | /* confdefs.h. */ |
| 30406 | _ACEOF |
| 30407 | cat confdefs.h >>conftest.$ac_ext |
| 30408 | cat >>conftest.$ac_ext <<_ACEOF |
| 30409 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30410 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30411 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30412 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30413 | case "(($ac_try" in |
| 30414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30415 | *) ac_try_echo=$ac_try;; |
| 30416 | esac |
| 30417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30418 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30419 | ac_status=$? |
| 30420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30421 | rm -f conftest.er1 |
| 30422 | cat conftest.err >&5 |
| 30423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30424 | (exit $ac_status); } >/dev/null; then |
| 30425 | if test -s conftest.err; then |
| 30426 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30427 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30428 | else |
| 30429 | ac_cpp_err= |
| 30430 | fi |
| 30431 | else |
| 30432 | ac_cpp_err=yes |
| 30433 | fi |
| 30434 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30435 | ac_header_preproc=yes |
| 30436 | else |
| 30437 | echo "$as_me: failed program was:" >&5 |
| 30438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30439 | |
| 30440 | ac_header_preproc=no |
| 30441 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30442 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30443 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30444 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30445 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30446 | |
| 30447 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30448 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30449 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30450 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30451 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30452 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30453 | 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] | 30454 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30455 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30456 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30457 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30458 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30459 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30460 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30461 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30462 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30463 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30464 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30465 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30466 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30467 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30468 | 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] | 30469 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30470 | ## ----------------------------------- ## |
| 30471 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30472 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30473 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30474 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30475 | ;; |
| 30476 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30477 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30478 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30479 | 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] | 30480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30481 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30482 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30483 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30484 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30485 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30486 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30487 | |
| 30488 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30489 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30490 | cat >>confdefs.h <<_ACEOF |
| 30491 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30492 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30493 | |
| 30494 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30495 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30496 | done |
| 30497 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30498 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30499 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 30500 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 30501 | |
| 30502 | 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] | 30503 | do |
| 30504 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30505 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30506 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30508 | 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] | 30509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30510 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30511 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30513 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30514 | else |
| 30515 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30516 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30517 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30518 | cat >conftest.$ac_ext <<_ACEOF |
| 30519 | /* confdefs.h. */ |
| 30520 | _ACEOF |
| 30521 | cat confdefs.h >>conftest.$ac_ext |
| 30522 | cat >>conftest.$ac_ext <<_ACEOF |
| 30523 | /* end confdefs.h. */ |
| 30524 | $ac_includes_default |
| 30525 | #include <$ac_header> |
| 30526 | _ACEOF |
| 30527 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30528 | if { (ac_try="$ac_compile" |
| 30529 | case "(($ac_try" in |
| 30530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30531 | *) ac_try_echo=$ac_try;; |
| 30532 | esac |
| 30533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30534 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30535 | ac_status=$? |
| 30536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30537 | rm -f conftest.er1 |
| 30538 | cat conftest.err >&5 |
| 30539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30540 | (exit $ac_status); } && |
| 30541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30542 | { (case "(($ac_try" in |
| 30543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30544 | *) ac_try_echo=$ac_try;; |
| 30545 | esac |
| 30546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30547 | (eval "$ac_try") 2>&5 |
| 30548 | ac_status=$? |
| 30549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30550 | (exit $ac_status); }; } && |
| 30551 | { ac_try='test -s conftest.$ac_objext' |
| 30552 | { (case "(($ac_try" in |
| 30553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30554 | *) ac_try_echo=$ac_try;; |
| 30555 | esac |
| 30556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30557 | (eval "$ac_try") 2>&5 |
| 30558 | ac_status=$? |
| 30559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30560 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30561 | ac_header_compiler=yes |
| 30562 | else |
| 30563 | echo "$as_me: failed program was:" >&5 |
| 30564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30566 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30567 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30568 | |
| 30569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30570 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30571 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30572 | |
| 30573 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30574 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30575 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30576 | cat >conftest.$ac_ext <<_ACEOF |
| 30577 | /* confdefs.h. */ |
| 30578 | _ACEOF |
| 30579 | cat confdefs.h >>conftest.$ac_ext |
| 30580 | cat >>conftest.$ac_ext <<_ACEOF |
| 30581 | /* end confdefs.h. */ |
| 30582 | #include <$ac_header> |
| 30583 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30584 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30585 | case "(($ac_try" in |
| 30586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30587 | *) ac_try_echo=$ac_try;; |
| 30588 | esac |
| 30589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30590 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30591 | ac_status=$? |
| 30592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30593 | rm -f conftest.er1 |
| 30594 | cat conftest.err >&5 |
| 30595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30596 | (exit $ac_status); } >/dev/null; then |
| 30597 | if test -s conftest.err; then |
| 30598 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30599 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30600 | else |
| 30601 | ac_cpp_err= |
| 30602 | fi |
| 30603 | else |
| 30604 | ac_cpp_err=yes |
| 30605 | fi |
| 30606 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30607 | ac_header_preproc=yes |
| 30608 | else |
| 30609 | echo "$as_me: failed program was:" >&5 |
| 30610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30611 | |
| 30612 | ac_header_preproc=no |
| 30613 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30614 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30615 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30616 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30617 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30618 | |
| 30619 | # So? What about this header? |
| 30620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30621 | yes:no: ) |
| 30622 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30623 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30625 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30626 | ac_header_preproc=yes |
| 30627 | ;; |
| 30628 | no:yes:* ) |
| 30629 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30630 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30631 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30632 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30633 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30634 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30635 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30636 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30638 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30639 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30640 | 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] | 30641 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30642 | ## ----------------------------------- ## |
| 30643 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30644 | ## ----------------------------------- ## |
| 30645 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30646 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30647 | ;; |
| 30648 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30649 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30651 | 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] | 30652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30653 | else |
| 30654 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30655 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30656 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30657 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30658 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30659 | |
| 30660 | fi |
| 30661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30662 | cat >>confdefs.h <<_ACEOF |
| 30663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30664 | _ACEOF |
| 30665 | |
| 30666 | fi |
| 30667 | |
| 30668 | done |
| 30669 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30670 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30671 | |
| 30672 | for ac_header in pthread.h |
| 30673 | do |
| 30674 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30675 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30676 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30677 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30678 | 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] | 30679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30680 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30681 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30682 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30683 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30684 | else |
| 30685 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30686 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30687 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30688 | cat >conftest.$ac_ext <<_ACEOF |
| 30689 | /* confdefs.h. */ |
| 30690 | _ACEOF |
| 30691 | cat confdefs.h >>conftest.$ac_ext |
| 30692 | cat >>conftest.$ac_ext <<_ACEOF |
| 30693 | /* end confdefs.h. */ |
| 30694 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30695 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30696 | _ACEOF |
| 30697 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30698 | if { (ac_try="$ac_compile" |
| 30699 | case "(($ac_try" in |
| 30700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30701 | *) ac_try_echo=$ac_try;; |
| 30702 | esac |
| 30703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30704 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30705 | ac_status=$? |
| 30706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30707 | rm -f conftest.er1 |
| 30708 | cat conftest.err >&5 |
| 30709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30710 | (exit $ac_status); } && |
| 30711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30712 | { (case "(($ac_try" in |
| 30713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30714 | *) ac_try_echo=$ac_try;; |
| 30715 | esac |
| 30716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30717 | (eval "$ac_try") 2>&5 |
| 30718 | ac_status=$? |
| 30719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30720 | (exit $ac_status); }; } && |
| 30721 | { ac_try='test -s conftest.$ac_objext' |
| 30722 | { (case "(($ac_try" in |
| 30723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30724 | *) ac_try_echo=$ac_try;; |
| 30725 | esac |
| 30726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30727 | (eval "$ac_try") 2>&5 |
| 30728 | ac_status=$? |
| 30729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30730 | (exit $ac_status); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30731 | ac_header_compiler=yes |
| 30732 | else |
| 30733 | echo "$as_me: failed program was:" >&5 |
| 30734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30735 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30736 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30737 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30738 | |
| 30739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30740 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30741 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30742 | |
| 30743 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30744 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30745 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30746 | cat >conftest.$ac_ext <<_ACEOF |
| 30747 | /* confdefs.h. */ |
| 30748 | _ACEOF |
| 30749 | cat confdefs.h >>conftest.$ac_ext |
| 30750 | cat >>conftest.$ac_ext <<_ACEOF |
| 30751 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30752 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30753 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30754 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30755 | case "(($ac_try" in |
| 30756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30757 | *) ac_try_echo=$ac_try;; |
| 30758 | esac |
| 30759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30760 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30761 | ac_status=$? |
| 30762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30763 | rm -f conftest.er1 |
| 30764 | cat conftest.err >&5 |
| 30765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30766 | (exit $ac_status); } >/dev/null; then |
| 30767 | if test -s conftest.err; then |
| 30768 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30769 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30770 | else |
| 30771 | ac_cpp_err= |
| 30772 | fi |
| 30773 | else |
| 30774 | ac_cpp_err=yes |
| 30775 | fi |
| 30776 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30777 | ac_header_preproc=yes |
| 30778 | else |
| 30779 | echo "$as_me: failed program was:" >&5 |
| 30780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30781 | |
| 30782 | ac_header_preproc=no |
| 30783 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30784 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30785 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30786 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30787 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30788 | |
| 30789 | # So? What about this header? |
| 30790 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30791 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30792 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30793 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30795 | 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] | 30796 | ac_header_preproc=yes |
| 30797 | ;; |
| 30798 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30799 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30800 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30801 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30802 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30803 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30804 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30805 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30806 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30808 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30809 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30810 | 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] | 30811 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30812 | ## ----------------------------------- ## |
| 30813 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30814 | ## ----------------------------------- ## |
| 30815 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30816 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30817 | ;; |
| 30818 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30819 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30821 | 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] | 30822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30823 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30824 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30825 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30826 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30827 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30828 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30829 | |
| 30830 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30831 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30832 | cat >>confdefs.h <<_ACEOF |
| 30833 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30834 | _ACEOF |
| 30835 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30836 | |
| 30837 | else |
| 30838 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30839 | |
| 30840 | fi |
| 30841 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30842 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30843 | |
| 30844 | else |
| 30845 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30846 | |
| 30847 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 30848 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 30849 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30850 | |
| 30851 | |
| 30852 | for ac_header in ffi.h ffi/ffi.h |
| 30853 | do |
| 30854 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30856 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30858 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30860 | fi |
| 30861 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30862 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30863 | echo "${ECHO_T}$ac_res" >&6; } |
| 30864 | else |
| 30865 | # Is the header compilable? |
| 30866 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30867 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30868 | cat >conftest.$ac_ext <<_ACEOF |
| 30869 | /* confdefs.h. */ |
| 30870 | _ACEOF |
| 30871 | cat confdefs.h >>conftest.$ac_ext |
| 30872 | cat >>conftest.$ac_ext <<_ACEOF |
| 30873 | /* end confdefs.h. */ |
| 30874 | $ac_includes_default |
| 30875 | #include <$ac_header> |
| 30876 | _ACEOF |
| 30877 | rm -f conftest.$ac_objext |
| 30878 | if { (ac_try="$ac_compile" |
| 30879 | case "(($ac_try" in |
| 30880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30881 | *) ac_try_echo=$ac_try;; |
| 30882 | esac |
| 30883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30884 | (eval "$ac_compile") 2>conftest.er1 |
| 30885 | ac_status=$? |
| 30886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30887 | rm -f conftest.er1 |
| 30888 | cat conftest.err >&5 |
| 30889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30890 | (exit $ac_status); } && |
| 30891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30892 | { (case "(($ac_try" in |
| 30893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30894 | *) ac_try_echo=$ac_try;; |
| 30895 | esac |
| 30896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30897 | (eval "$ac_try") 2>&5 |
| 30898 | ac_status=$? |
| 30899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30900 | (exit $ac_status); }; } && |
| 30901 | { ac_try='test -s conftest.$ac_objext' |
| 30902 | { (case "(($ac_try" in |
| 30903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30904 | *) ac_try_echo=$ac_try;; |
| 30905 | esac |
| 30906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30907 | (eval "$ac_try") 2>&5 |
| 30908 | ac_status=$? |
| 30909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30910 | (exit $ac_status); }; }; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30911 | ac_header_compiler=yes |
| 30912 | else |
| 30913 | echo "$as_me: failed program was:" >&5 |
| 30914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30915 | |
| 30916 | ac_header_compiler=no |
| 30917 | fi |
| 30918 | |
| 30919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30920 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30921 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30922 | |
| 30923 | # Is the header present? |
| 30924 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30925 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30926 | cat >conftest.$ac_ext <<_ACEOF |
| 30927 | /* confdefs.h. */ |
| 30928 | _ACEOF |
| 30929 | cat confdefs.h >>conftest.$ac_ext |
| 30930 | cat >>conftest.$ac_ext <<_ACEOF |
| 30931 | /* end confdefs.h. */ |
| 30932 | #include <$ac_header> |
| 30933 | _ACEOF |
| 30934 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30935 | case "(($ac_try" in |
| 30936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30937 | *) ac_try_echo=$ac_try;; |
| 30938 | esac |
| 30939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30940 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 30941 | ac_status=$? |
| 30942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30943 | rm -f conftest.er1 |
| 30944 | cat conftest.err >&5 |
| 30945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30946 | (exit $ac_status); } >/dev/null; then |
| 30947 | if test -s conftest.err; then |
| 30948 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30949 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30950 | else |
| 30951 | ac_cpp_err= |
| 30952 | fi |
| 30953 | else |
| 30954 | ac_cpp_err=yes |
| 30955 | fi |
| 30956 | if test -z "$ac_cpp_err"; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30957 | ac_header_preproc=yes |
| 30958 | else |
| 30959 | echo "$as_me: failed program was:" >&5 |
| 30960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30961 | |
| 30962 | ac_header_preproc=no |
| 30963 | fi |
| 30964 | |
| 30965 | rm -f conftest.err conftest.$ac_ext |
| 30966 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30967 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 30968 | |
| 30969 | # So? What about this header? |
| 30970 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30971 | yes:no: ) |
| 30972 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30973 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30975 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30976 | ac_header_preproc=yes |
| 30977 | ;; |
| 30978 | no:yes:* ) |
| 30979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30985 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30986 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30988 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30989 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30990 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 30991 | ( cat <<\_ASBOX |
| 30992 | ## ----------------------------------- ## |
| 30993 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30994 | ## ----------------------------------- ## |
| 30995 | _ASBOX |
| 30996 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 30997 | ;; |
| 30998 | esac |
| 30999 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 31000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 31001 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31003 | else |
| 31004 | eval "$as_ac_Header=\$ac_header_preproc" |
| 31005 | fi |
| 31006 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 31007 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31008 | echo "${ECHO_T}$ac_res" >&6; } |
| 31009 | |
| 31010 | fi |
| 31011 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 31012 | cat >>confdefs.h <<_ACEOF |
| 31013 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31014 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31015 | |
| 31016 | fi |
| 31017 | |
| 31018 | done |
| 31019 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 31020 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31021 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 31022 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 31023 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31024 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 31025 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 31026 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 31027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31028 | else |
| 31029 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31030 | ac_ext=cpp |
| 31031 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31032 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31033 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31034 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31035 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31036 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31037 | if test "$cross_compiling" = yes; then |
| 31038 | ac_cv_huge_val_sanity=yes |
| 31039 | else |
| 31040 | cat >conftest.$ac_ext <<_ACEOF |
| 31041 | /* confdefs.h. */ |
| 31042 | _ACEOF |
| 31043 | cat confdefs.h >>conftest.$ac_ext |
| 31044 | cat >>conftest.$ac_ext <<_ACEOF |
| 31045 | /* end confdefs.h. */ |
| 31046 | #include <math.h> |
| 31047 | int |
| 31048 | main () |
| 31049 | { |
| 31050 | double x = HUGE_VAL; return x != x; |
| 31051 | ; |
| 31052 | return 0; |
| 31053 | } |
| 31054 | _ACEOF |
| 31055 | rm -f conftest$ac_exeext |
| 31056 | if { (ac_try="$ac_link" |
| 31057 | case "(($ac_try" in |
| 31058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31059 | *) ac_try_echo=$ac_try;; |
| 31060 | esac |
| 31061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31062 | (eval "$ac_link") 2>&5 |
| 31063 | ac_status=$? |
| 31064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 31066 | { (case "(($ac_try" in |
| 31067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31068 | *) ac_try_echo=$ac_try;; |
| 31069 | esac |
| 31070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31071 | (eval "$ac_try") 2>&5 |
| 31072 | ac_status=$? |
| 31073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31074 | (exit $ac_status); }; }; then |
| 31075 | ac_cv_huge_val_sanity=yes |
| 31076 | else |
| 31077 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31078 | echo "$as_me: failed program was:" >&5 |
| 31079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31080 | |
| 31081 | ( exit $ac_status ) |
| 31082 | ac_cv_huge_val_sanity=no |
| 31083 | fi |
| 31084 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 31085 | fi |
| 31086 | |
| 31087 | |
| 31088 | ac_ext=c |
| 31089 | ac_cpp='$CPP $CPPFLAGS' |
| 31090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31093 | |
| 31094 | |
| 31095 | fi |
| 31096 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 31097 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 31098 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 31099 | |
| 31100 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31101 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 31102 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31103 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 31104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31105 | else |
| 31106 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31107 | /* confdefs.h. */ |
| 31108 | _ACEOF |
| 31109 | cat confdefs.h >>conftest.$ac_ext |
| 31110 | cat >>conftest.$ac_ext <<_ACEOF |
| 31111 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31112 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31113 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31114 | int |
| 31115 | main () |
| 31116 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31117 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31118 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31119 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31120 | return 0; |
| 31121 | ; |
| 31122 | return 0; |
| 31123 | } |
| 31124 | _ACEOF |
| 31125 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31126 | if { (ac_try="$ac_compile" |
| 31127 | case "(($ac_try" in |
| 31128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31129 | *) ac_try_echo=$ac_try;; |
| 31130 | esac |
| 31131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31132 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31133 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31135 | rm -f conftest.er1 |
| 31136 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31138 | (exit $ac_status); } && |
| 31139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31140 | { (case "(($ac_try" in |
| 31141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31142 | *) ac_try_echo=$ac_try;; |
| 31143 | esac |
| 31144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31145 | (eval "$ac_try") 2>&5 |
| 31146 | ac_status=$? |
| 31147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31148 | (exit $ac_status); }; } && |
| 31149 | { ac_try='test -s conftest.$ac_objext' |
| 31150 | { (case "(($ac_try" in |
| 31151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31152 | *) ac_try_echo=$ac_try;; |
| 31153 | esac |
| 31154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31155 | (eval "$ac_try") 2>&5 |
| 31156 | ac_status=$? |
| 31157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31158 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31159 | ac_cv_type_pid_t=yes |
| 31160 | else |
| 31161 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31164 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31165 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31166 | |
| 31167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31168 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31169 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 31170 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31171 | if test $ac_cv_type_pid_t = yes; then |
| 31172 | : |
| 31173 | else |
| 31174 | |
| 31175 | cat >>confdefs.h <<_ACEOF |
| 31176 | #define pid_t int |
| 31177 | _ACEOF |
| 31178 | |
| 31179 | fi |
| 31180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31181 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 31182 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31183 | if test "${ac_cv_type_size_t+set}" = set; then |
| 31184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31185 | else |
| 31186 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31187 | /* confdefs.h. */ |
| 31188 | _ACEOF |
| 31189 | cat confdefs.h >>conftest.$ac_ext |
| 31190 | cat >>conftest.$ac_ext <<_ACEOF |
| 31191 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31192 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31193 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31194 | int |
| 31195 | main () |
| 31196 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31197 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31198 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31199 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31200 | return 0; |
| 31201 | ; |
| 31202 | return 0; |
| 31203 | } |
| 31204 | _ACEOF |
| 31205 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31206 | if { (ac_try="$ac_compile" |
| 31207 | case "(($ac_try" in |
| 31208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31209 | *) ac_try_echo=$ac_try;; |
| 31210 | esac |
| 31211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31212 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31213 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31215 | rm -f conftest.er1 |
| 31216 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31218 | (exit $ac_status); } && |
| 31219 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31220 | { (case "(($ac_try" in |
| 31221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31222 | *) ac_try_echo=$ac_try;; |
| 31223 | esac |
| 31224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31225 | (eval "$ac_try") 2>&5 |
| 31226 | ac_status=$? |
| 31227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31228 | (exit $ac_status); }; } && |
| 31229 | { ac_try='test -s conftest.$ac_objext' |
| 31230 | { (case "(($ac_try" in |
| 31231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31232 | *) ac_try_echo=$ac_try;; |
| 31233 | esac |
| 31234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31235 | (eval "$ac_try") 2>&5 |
| 31236 | ac_status=$? |
| 31237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31238 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31239 | ac_cv_type_size_t=yes |
| 31240 | else |
| 31241 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31244 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31245 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31246 | |
| 31247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31248 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31249 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 31250 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31251 | if test $ac_cv_type_size_t = yes; then |
| 31252 | : |
| 31253 | else |
| 31254 | |
| 31255 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31256 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31257 | _ACEOF |
| 31258 | |
| 31259 | fi |
| 31260 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31261 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 31262 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31263 | if test "${ac_cv_type_signal+set}" = set; then |
| 31264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31265 | else |
| 31266 | cat >conftest.$ac_ext <<_ACEOF |
| 31267 | /* confdefs.h. */ |
| 31268 | _ACEOF |
| 31269 | cat confdefs.h >>conftest.$ac_ext |
| 31270 | cat >>conftest.$ac_ext <<_ACEOF |
| 31271 | /* end confdefs.h. */ |
| 31272 | #include <sys/types.h> |
| 31273 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31274 | |
| 31275 | int |
| 31276 | main () |
| 31277 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31278 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31279 | ; |
| 31280 | return 0; |
| 31281 | } |
| 31282 | _ACEOF |
| 31283 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31284 | if { (ac_try="$ac_compile" |
| 31285 | case "(($ac_try" in |
| 31286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31287 | *) ac_try_echo=$ac_try;; |
| 31288 | esac |
| 31289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31290 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31291 | ac_status=$? |
| 31292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31293 | rm -f conftest.er1 |
| 31294 | cat conftest.err >&5 |
| 31295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31296 | (exit $ac_status); } && |
| 31297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31298 | { (case "(($ac_try" in |
| 31299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31300 | *) ac_try_echo=$ac_try;; |
| 31301 | esac |
| 31302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31303 | (eval "$ac_try") 2>&5 |
| 31304 | ac_status=$? |
| 31305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31306 | (exit $ac_status); }; } && |
| 31307 | { ac_try='test -s conftest.$ac_objext' |
| 31308 | { (case "(($ac_try" in |
| 31309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31310 | *) ac_try_echo=$ac_try;; |
| 31311 | esac |
| 31312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31313 | (eval "$ac_try") 2>&5 |
| 31314 | ac_status=$? |
| 31315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31316 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31317 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31318 | else |
| 31319 | echo "$as_me: failed program was:" >&5 |
| 31320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31322 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31323 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31324 | |
| 31325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31326 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31327 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 31328 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31329 | |
| 31330 | cat >>confdefs.h <<_ACEOF |
| 31331 | #define RETSIGTYPE $ac_cv_type_signal |
| 31332 | _ACEOF |
| 31333 | |
| 31334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31335 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 31336 | 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] | 31337 | if test "${ac_cv_struct_tm+set}" = set; then |
| 31338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31339 | else |
| 31340 | cat >conftest.$ac_ext <<_ACEOF |
| 31341 | /* confdefs.h. */ |
| 31342 | _ACEOF |
| 31343 | cat confdefs.h >>conftest.$ac_ext |
| 31344 | cat >>conftest.$ac_ext <<_ACEOF |
| 31345 | /* end confdefs.h. */ |
| 31346 | #include <sys/types.h> |
| 31347 | #include <time.h> |
| 31348 | |
| 31349 | int |
| 31350 | main () |
| 31351 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31352 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31353 | ; |
| 31354 | return 0; |
| 31355 | } |
| 31356 | _ACEOF |
| 31357 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31358 | if { (ac_try="$ac_compile" |
| 31359 | case "(($ac_try" in |
| 31360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31361 | *) ac_try_echo=$ac_try;; |
| 31362 | esac |
| 31363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31364 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31365 | ac_status=$? |
| 31366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31367 | rm -f conftest.er1 |
| 31368 | cat conftest.err >&5 |
| 31369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31370 | (exit $ac_status); } && |
| 31371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31372 | { (case "(($ac_try" in |
| 31373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31374 | *) ac_try_echo=$ac_try;; |
| 31375 | esac |
| 31376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31377 | (eval "$ac_try") 2>&5 |
| 31378 | ac_status=$? |
| 31379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31380 | (exit $ac_status); }; } && |
| 31381 | { ac_try='test -s conftest.$ac_objext' |
| 31382 | { (case "(($ac_try" in |
| 31383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31384 | *) ac_try_echo=$ac_try;; |
| 31385 | esac |
| 31386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31387 | (eval "$ac_try") 2>&5 |
| 31388 | ac_status=$? |
| 31389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31390 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31391 | ac_cv_struct_tm=time.h |
| 31392 | else |
| 31393 | echo "$as_me: failed program was:" >&5 |
| 31394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31396 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31397 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31398 | |
| 31399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31400 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31401 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 31402 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31403 | if test $ac_cv_struct_tm = sys/time.h; then |
| 31404 | |
| 31405 | cat >>confdefs.h <<\_ACEOF |
| 31406 | #define TM_IN_SYS_TIME 1 |
| 31407 | _ACEOF |
| 31408 | |
| 31409 | fi |
| 31410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31411 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 31412 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31413 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 31414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31415 | else |
| 31416 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31417 | /* confdefs.h. */ |
| 31418 | _ACEOF |
| 31419 | cat confdefs.h >>conftest.$ac_ext |
| 31420 | cat >>conftest.$ac_ext <<_ACEOF |
| 31421 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31422 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31423 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31424 | int |
| 31425 | main () |
| 31426 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31427 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31428 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31429 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31430 | return 0; |
| 31431 | ; |
| 31432 | return 0; |
| 31433 | } |
| 31434 | _ACEOF |
| 31435 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31436 | if { (ac_try="$ac_compile" |
| 31437 | case "(($ac_try" in |
| 31438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31439 | *) ac_try_echo=$ac_try;; |
| 31440 | esac |
| 31441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31442 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31443 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31445 | rm -f conftest.er1 |
| 31446 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31448 | (exit $ac_status); } && |
| 31449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31450 | { (case "(($ac_try" in |
| 31451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31452 | *) ac_try_echo=$ac_try;; |
| 31453 | esac |
| 31454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31455 | (eval "$ac_try") 2>&5 |
| 31456 | ac_status=$? |
| 31457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31458 | (exit $ac_status); }; } && |
| 31459 | { ac_try='test -s conftest.$ac_objext' |
| 31460 | { (case "(($ac_try" in |
| 31461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31462 | *) ac_try_echo=$ac_try;; |
| 31463 | esac |
| 31464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31465 | (eval "$ac_try") 2>&5 |
| 31466 | ac_status=$? |
| 31467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31468 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31469 | ac_cv_type_int64_t=yes |
| 31470 | else |
| 31471 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31474 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31475 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31476 | |
| 31477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31478 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31479 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 31480 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31481 | if test $ac_cv_type_int64_t = yes; then |
| 31482 | |
| 31483 | cat >>confdefs.h <<_ACEOF |
| 31484 | #define HAVE_INT64_T 1 |
| 31485 | _ACEOF |
| 31486 | |
| 31487 | |
| 31488 | else |
| 31489 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 31490 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 31491 | { (exit 1); exit 1; }; } |
| 31492 | fi |
| 31493 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31494 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 31495 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31496 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 31497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31498 | else |
| 31499 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31500 | /* confdefs.h. */ |
| 31501 | _ACEOF |
| 31502 | cat confdefs.h >>conftest.$ac_ext |
| 31503 | cat >>conftest.$ac_ext <<_ACEOF |
| 31504 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31505 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31506 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31507 | int |
| 31508 | main () |
| 31509 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31510 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31511 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31512 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31513 | return 0; |
| 31514 | ; |
| 31515 | return 0; |
| 31516 | } |
| 31517 | _ACEOF |
| 31518 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31519 | if { (ac_try="$ac_compile" |
| 31520 | case "(($ac_try" in |
| 31521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31522 | *) ac_try_echo=$ac_try;; |
| 31523 | esac |
| 31524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31525 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31526 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31528 | rm -f conftest.er1 |
| 31529 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31531 | (exit $ac_status); } && |
| 31532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31533 | { (case "(($ac_try" in |
| 31534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31535 | *) ac_try_echo=$ac_try;; |
| 31536 | esac |
| 31537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31538 | (eval "$ac_try") 2>&5 |
| 31539 | ac_status=$? |
| 31540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31541 | (exit $ac_status); }; } && |
| 31542 | { ac_try='test -s conftest.$ac_objext' |
| 31543 | { (case "(($ac_try" in |
| 31544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31545 | *) ac_try_echo=$ac_try;; |
| 31546 | esac |
| 31547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31548 | (eval "$ac_try") 2>&5 |
| 31549 | ac_status=$? |
| 31550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31551 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31552 | ac_cv_type_uint64_t=yes |
| 31553 | else |
| 31554 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31557 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31558 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31559 | |
| 31560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31561 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31562 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 31563 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31564 | if test $ac_cv_type_uint64_t = yes; then |
| 31565 | |
| 31566 | cat >>confdefs.h <<_ACEOF |
| 31567 | #define HAVE_UINT64_T 1 |
| 31568 | _ACEOF |
| 31569 | |
| 31570 | |
| 31571 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31572 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 31573 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31574 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 31575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31576 | else |
| 31577 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31578 | /* confdefs.h. */ |
| 31579 | _ACEOF |
| 31580 | cat confdefs.h >>conftest.$ac_ext |
| 31581 | cat >>conftest.$ac_ext <<_ACEOF |
| 31582 | /* end confdefs.h. */ |
| 31583 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31584 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31585 | int |
| 31586 | main () |
| 31587 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31588 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31589 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31590 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31591 | return 0; |
| 31592 | ; |
| 31593 | return 0; |
| 31594 | } |
| 31595 | _ACEOF |
| 31596 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31597 | if { (ac_try="$ac_compile" |
| 31598 | case "(($ac_try" in |
| 31599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31600 | *) ac_try_echo=$ac_try;; |
| 31601 | esac |
| 31602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31603 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31604 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31606 | rm -f conftest.er1 |
| 31607 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31609 | (exit $ac_status); } && |
| 31610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31611 | { (case "(($ac_try" in |
| 31612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31613 | *) ac_try_echo=$ac_try;; |
| 31614 | esac |
| 31615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31616 | (eval "$ac_try") 2>&5 |
| 31617 | ac_status=$? |
| 31618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31619 | (exit $ac_status); }; } && |
| 31620 | { ac_try='test -s conftest.$ac_objext' |
| 31621 | { (case "(($ac_try" in |
| 31622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31623 | *) ac_try_echo=$ac_try;; |
| 31624 | esac |
| 31625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31626 | (eval "$ac_try") 2>&5 |
| 31627 | ac_status=$? |
| 31628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31629 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31630 | ac_cv_type_u_int64_t=yes |
| 31631 | else |
| 31632 | echo "$as_me: failed program was:" >&5 |
| 31633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31635 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31636 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31637 | |
| 31638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31639 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31640 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 31641 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31642 | if test $ac_cv_type_u_int64_t = yes; then |
| 31643 | |
| 31644 | cat >>confdefs.h <<_ACEOF |
| 31645 | #define HAVE_U_INT64_T 1 |
| 31646 | _ACEOF |
| 31647 | |
| 31648 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 31649 | else |
| 31650 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 31651 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 31652 | { (exit 1); exit 1; }; } |
| 31653 | fi |
| 31654 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31655 | fi |
| 31656 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31657 | |
| 31658 | |
| 31659 | |
| 31660 | |
| 31661 | |
| 31662 | |
| 31663 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 31664 | |
| 31665 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31666 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31667 | do |
| 31668 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31669 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31670 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31671 | 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] | 31672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31673 | else |
| 31674 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31675 | /* confdefs.h. */ |
| 31676 | _ACEOF |
| 31677 | cat confdefs.h >>conftest.$ac_ext |
| 31678 | cat >>conftest.$ac_ext <<_ACEOF |
| 31679 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31680 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31681 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31682 | #define $ac_func innocuous_$ac_func |
| 31683 | |
| 31684 | /* System header to define __stub macros and hopefully few prototypes, |
| 31685 | which can conflict with char $ac_func (); below. |
| 31686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31687 | <limits.h> exists even on freestanding compilers. */ |
| 31688 | |
| 31689 | #ifdef __STDC__ |
| 31690 | # include <limits.h> |
| 31691 | #else |
| 31692 | # include <assert.h> |
| 31693 | #endif |
| 31694 | |
| 31695 | #undef $ac_func |
| 31696 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31697 | /* Override any GCC internal prototype to avoid an error. |
| 31698 | Use char because int might match the return type of a GCC |
| 31699 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31700 | #ifdef __cplusplus |
| 31701 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31702 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31703 | char $ac_func (); |
| 31704 | /* The GNU C library defines this for functions which it implements |
| 31705 | to always fail with ENOSYS. Some functions are actually named |
| 31706 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31707 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31708 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31709 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31710 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31711 | int |
| 31712 | main () |
| 31713 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31714 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31715 | ; |
| 31716 | return 0; |
| 31717 | } |
| 31718 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31719 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31720 | if { (ac_try="$ac_link" |
| 31721 | case "(($ac_try" in |
| 31722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31723 | *) ac_try_echo=$ac_try;; |
| 31724 | esac |
| 31725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31726 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31727 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31729 | rm -f conftest.er1 |
| 31730 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31732 | (exit $ac_status); } && |
| 31733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31734 | { (case "(($ac_try" in |
| 31735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31736 | *) ac_try_echo=$ac_try;; |
| 31737 | esac |
| 31738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31739 | (eval "$ac_try") 2>&5 |
| 31740 | ac_status=$? |
| 31741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31742 | (exit $ac_status); }; } && |
| 31743 | { ac_try='test -s conftest$ac_exeext' |
| 31744 | { (case "(($ac_try" in |
| 31745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31746 | *) ac_try_echo=$ac_try;; |
| 31747 | esac |
| 31748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31749 | (eval "$ac_try") 2>&5 |
| 31750 | ac_status=$? |
| 31751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31752 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31753 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31754 | else |
| 31755 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31758 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31759 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31760 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31761 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31762 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31763 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31764 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31765 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31766 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31767 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31768 | cat >>confdefs.h <<_ACEOF |
| 31769 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31770 | _ACEOF |
| 31771 | |
| 31772 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31773 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31774 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31775 | |
| 31776 | |
| 31777 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31778 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31779 | for ac_func in powf fmodf strtof round |
| 31780 | do |
| 31781 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31782 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31783 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31784 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31786 | else |
| 31787 | cat >conftest.$ac_ext <<_ACEOF |
| 31788 | /* confdefs.h. */ |
| 31789 | _ACEOF |
| 31790 | cat confdefs.h >>conftest.$ac_ext |
| 31791 | cat >>conftest.$ac_ext <<_ACEOF |
| 31792 | /* end confdefs.h. */ |
| 31793 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31794 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31795 | #define $ac_func innocuous_$ac_func |
| 31796 | |
| 31797 | /* System header to define __stub macros and hopefully few prototypes, |
| 31798 | which can conflict with char $ac_func (); below. |
| 31799 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31800 | <limits.h> exists even on freestanding compilers. */ |
| 31801 | |
| 31802 | #ifdef __STDC__ |
| 31803 | # include <limits.h> |
| 31804 | #else |
| 31805 | # include <assert.h> |
| 31806 | #endif |
| 31807 | |
| 31808 | #undef $ac_func |
| 31809 | |
| 31810 | /* Override any GCC internal prototype to avoid an error. |
| 31811 | Use char because int might match the return type of a GCC |
| 31812 | builtin and then its argument prototype would still apply. */ |
| 31813 | #ifdef __cplusplus |
| 31814 | extern "C" |
| 31815 | #endif |
| 31816 | char $ac_func (); |
| 31817 | /* The GNU C library defines this for functions which it implements |
| 31818 | to always fail with ENOSYS. Some functions are actually named |
| 31819 | something starting with __ and the normal name is an alias. */ |
| 31820 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31821 | choke me |
| 31822 | #endif |
| 31823 | |
| 31824 | int |
| 31825 | main () |
| 31826 | { |
| 31827 | return $ac_func (); |
| 31828 | ; |
| 31829 | return 0; |
| 31830 | } |
| 31831 | _ACEOF |
| 31832 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31833 | if { (ac_try="$ac_link" |
| 31834 | case "(($ac_try" in |
| 31835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31836 | *) ac_try_echo=$ac_try;; |
| 31837 | esac |
| 31838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31839 | (eval "$ac_link") 2>conftest.er1 |
| 31840 | ac_status=$? |
| 31841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31842 | rm -f conftest.er1 |
| 31843 | cat conftest.err >&5 |
| 31844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31845 | (exit $ac_status); } && |
| 31846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31847 | { (case "(($ac_try" in |
| 31848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31849 | *) ac_try_echo=$ac_try;; |
| 31850 | esac |
| 31851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31852 | (eval "$ac_try") 2>&5 |
| 31853 | ac_status=$? |
| 31854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31855 | (exit $ac_status); }; } && |
| 31856 | { ac_try='test -s conftest$ac_exeext' |
| 31857 | { (case "(($ac_try" in |
| 31858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31859 | *) ac_try_echo=$ac_try;; |
| 31860 | esac |
| 31861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31862 | (eval "$ac_try") 2>&5 |
| 31863 | ac_status=$? |
| 31864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31865 | (exit $ac_status); }; }; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31866 | eval "$as_ac_var=yes" |
| 31867 | else |
| 31868 | echo "$as_me: failed program was:" >&5 |
| 31869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31870 | |
| 31871 | eval "$as_ac_var=no" |
| 31872 | fi |
| 31873 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31874 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31875 | conftest$ac_exeext conftest.$ac_ext |
| 31876 | fi |
| 31877 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31878 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31879 | echo "${ECHO_T}$ac_res" >&6; } |
| 31880 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31881 | cat >>confdefs.h <<_ACEOF |
| 31882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31883 | _ACEOF |
| 31884 | |
| 31885 | fi |
| 31886 | done |
| 31887 | |
| 31888 | |
| 31889 | |
| 31890 | |
| 31891 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31892 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31893 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 31894 | do |
| 31895 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31896 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31897 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31898 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31900 | else |
| 31901 | cat >conftest.$ac_ext <<_ACEOF |
| 31902 | /* confdefs.h. */ |
| 31903 | _ACEOF |
| 31904 | cat confdefs.h >>conftest.$ac_ext |
| 31905 | cat >>conftest.$ac_ext <<_ACEOF |
| 31906 | /* end confdefs.h. */ |
| 31907 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31908 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31909 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31910 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31911 | /* System header to define __stub macros and hopefully few prototypes, |
| 31912 | which can conflict with char $ac_func (); below. |
| 31913 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31914 | <limits.h> exists even on freestanding compilers. */ |
| 31915 | |
| 31916 | #ifdef __STDC__ |
| 31917 | # include <limits.h> |
| 31918 | #else |
| 31919 | # include <assert.h> |
| 31920 | #endif |
| 31921 | |
| 31922 | #undef $ac_func |
| 31923 | |
| 31924 | /* Override any GCC internal prototype to avoid an error. |
| 31925 | Use char because int might match the return type of a GCC |
| 31926 | builtin and then its argument prototype would still apply. */ |
| 31927 | #ifdef __cplusplus |
| 31928 | extern "C" |
| 31929 | #endif |
| 31930 | char $ac_func (); |
| 31931 | /* The GNU C library defines this for functions which it implements |
| 31932 | to always fail with ENOSYS. Some functions are actually named |
| 31933 | something starting with __ and the normal name is an alias. */ |
| 31934 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31935 | choke me |
| 31936 | #endif |
| 31937 | |
| 31938 | int |
| 31939 | main () |
| 31940 | { |
| 31941 | return $ac_func (); |
| 31942 | ; |
| 31943 | return 0; |
| 31944 | } |
| 31945 | _ACEOF |
| 31946 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31947 | if { (ac_try="$ac_link" |
| 31948 | case "(($ac_try" in |
| 31949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31950 | *) ac_try_echo=$ac_try;; |
| 31951 | esac |
| 31952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31953 | (eval "$ac_link") 2>conftest.er1 |
| 31954 | ac_status=$? |
| 31955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31956 | rm -f conftest.er1 |
| 31957 | cat conftest.err >&5 |
| 31958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31959 | (exit $ac_status); } && |
| 31960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31961 | { (case "(($ac_try" in |
| 31962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31963 | *) ac_try_echo=$ac_try;; |
| 31964 | esac |
| 31965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31966 | (eval "$ac_try") 2>&5 |
| 31967 | ac_status=$? |
| 31968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31969 | (exit $ac_status); }; } && |
| 31970 | { ac_try='test -s conftest$ac_exeext' |
| 31971 | { (case "(($ac_try" in |
| 31972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31973 | *) ac_try_echo=$ac_try;; |
| 31974 | esac |
| 31975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31976 | (eval "$ac_try") 2>&5 |
| 31977 | ac_status=$? |
| 31978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31979 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31980 | eval "$as_ac_var=yes" |
| 31981 | else |
| 31982 | echo "$as_me: failed program was:" >&5 |
| 31983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31984 | |
| 31985 | eval "$as_ac_var=no" |
| 31986 | fi |
| 31987 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31988 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31989 | conftest$ac_exeext conftest.$ac_ext |
| 31990 | fi |
| 31991 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31992 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31993 | echo "${ECHO_T}$ac_res" >&6; } |
| 31994 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31995 | cat >>confdefs.h <<_ACEOF |
| 31996 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31997 | _ACEOF |
| 31998 | |
| 31999 | fi |
| 32000 | done |
| 32001 | |
| 32002 | |
| 32003 | |
| 32004 | |
| 32005 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32006 | do |
| 32007 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32008 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32009 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32010 | 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] | 32011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32012 | else |
| 32013 | cat >conftest.$ac_ext <<_ACEOF |
| 32014 | /* confdefs.h. */ |
| 32015 | _ACEOF |
| 32016 | cat confdefs.h >>conftest.$ac_ext |
| 32017 | cat >>conftest.$ac_ext <<_ACEOF |
| 32018 | /* end confdefs.h. */ |
| 32019 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32021 | #define $ac_func innocuous_$ac_func |
| 32022 | |
| 32023 | /* System header to define __stub macros and hopefully few prototypes, |
| 32024 | which can conflict with char $ac_func (); below. |
| 32025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32026 | <limits.h> exists even on freestanding compilers. */ |
| 32027 | |
| 32028 | #ifdef __STDC__ |
| 32029 | # include <limits.h> |
| 32030 | #else |
| 32031 | # include <assert.h> |
| 32032 | #endif |
| 32033 | |
| 32034 | #undef $ac_func |
| 32035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32036 | /* Override any GCC internal prototype to avoid an error. |
| 32037 | Use char because int might match the return type of a GCC |
| 32038 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32039 | #ifdef __cplusplus |
| 32040 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32041 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32042 | char $ac_func (); |
| 32043 | /* The GNU C library defines this for functions which it implements |
| 32044 | to always fail with ENOSYS. Some functions are actually named |
| 32045 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32046 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32047 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32048 | #endif |
| 32049 | |
| 32050 | int |
| 32051 | main () |
| 32052 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32053 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32054 | ; |
| 32055 | return 0; |
| 32056 | } |
| 32057 | _ACEOF |
| 32058 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32059 | if { (ac_try="$ac_link" |
| 32060 | case "(($ac_try" in |
| 32061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32062 | *) ac_try_echo=$ac_try;; |
| 32063 | esac |
| 32064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32065 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32066 | ac_status=$? |
| 32067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32068 | rm -f conftest.er1 |
| 32069 | cat conftest.err >&5 |
| 32070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32071 | (exit $ac_status); } && |
| 32072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32073 | { (case "(($ac_try" in |
| 32074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32075 | *) ac_try_echo=$ac_try;; |
| 32076 | esac |
| 32077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32078 | (eval "$ac_try") 2>&5 |
| 32079 | ac_status=$? |
| 32080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32081 | (exit $ac_status); }; } && |
| 32082 | { ac_try='test -s conftest$ac_exeext' |
| 32083 | { (case "(($ac_try" in |
| 32084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32085 | *) ac_try_echo=$ac_try;; |
| 32086 | esac |
| 32087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32088 | (eval "$ac_try") 2>&5 |
| 32089 | ac_status=$? |
| 32090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32091 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32092 | eval "$as_ac_var=yes" |
| 32093 | else |
| 32094 | echo "$as_me: failed program was:" >&5 |
| 32095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32097 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32099 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32100 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32101 | conftest$ac_exeext conftest.$ac_ext |
| 32102 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32103 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32104 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32105 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32106 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32107 | cat >>confdefs.h <<_ACEOF |
| 32108 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32109 | _ACEOF |
| 32110 | |
| 32111 | fi |
| 32112 | done |
| 32113 | |
| 32114 | |
| 32115 | |
| 32116 | |
| 32117 | |
| 32118 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32119 | for ac_func in mktemp realpath sbrk setrlimit strdup |
| 32120 | do |
| 32121 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 32122 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32123 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32124 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32126 | else |
| 32127 | cat >conftest.$ac_ext <<_ACEOF |
| 32128 | /* confdefs.h. */ |
| 32129 | _ACEOF |
| 32130 | cat confdefs.h >>conftest.$ac_ext |
| 32131 | cat >>conftest.$ac_ext <<_ACEOF |
| 32132 | /* end confdefs.h. */ |
| 32133 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32134 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32135 | #define $ac_func innocuous_$ac_func |
| 32136 | |
| 32137 | /* System header to define __stub macros and hopefully few prototypes, |
| 32138 | which can conflict with char $ac_func (); below. |
| 32139 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32140 | <limits.h> exists even on freestanding compilers. */ |
| 32141 | |
| 32142 | #ifdef __STDC__ |
| 32143 | # include <limits.h> |
| 32144 | #else |
| 32145 | # include <assert.h> |
| 32146 | #endif |
| 32147 | |
| 32148 | #undef $ac_func |
| 32149 | |
| 32150 | /* Override any GCC internal prototype to avoid an error. |
| 32151 | Use char because int might match the return type of a GCC |
| 32152 | builtin and then its argument prototype would still apply. */ |
| 32153 | #ifdef __cplusplus |
| 32154 | extern "C" |
| 32155 | #endif |
| 32156 | char $ac_func (); |
| 32157 | /* The GNU C library defines this for functions which it implements |
| 32158 | to always fail with ENOSYS. Some functions are actually named |
| 32159 | something starting with __ and the normal name is an alias. */ |
| 32160 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 32161 | choke me |
| 32162 | #endif |
| 32163 | |
| 32164 | int |
| 32165 | main () |
| 32166 | { |
| 32167 | return $ac_func (); |
| 32168 | ; |
| 32169 | return 0; |
| 32170 | } |
| 32171 | _ACEOF |
| 32172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32173 | if { (ac_try="$ac_link" |
| 32174 | case "(($ac_try" in |
| 32175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32176 | *) ac_try_echo=$ac_try;; |
| 32177 | esac |
| 32178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32179 | (eval "$ac_link") 2>conftest.er1 |
| 32180 | ac_status=$? |
| 32181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32182 | rm -f conftest.er1 |
| 32183 | cat conftest.err >&5 |
| 32184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32185 | (exit $ac_status); } && |
| 32186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32187 | { (case "(($ac_try" in |
| 32188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32189 | *) ac_try_echo=$ac_try;; |
| 32190 | esac |
| 32191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32192 | (eval "$ac_try") 2>&5 |
| 32193 | ac_status=$? |
| 32194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32195 | (exit $ac_status); }; } && |
| 32196 | { ac_try='test -s conftest$ac_exeext' |
| 32197 | { (case "(($ac_try" in |
| 32198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32199 | *) ac_try_echo=$ac_try;; |
| 32200 | esac |
| 32201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32202 | (eval "$ac_try") 2>&5 |
| 32203 | ac_status=$? |
| 32204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32205 | (exit $ac_status); }; }; then |
| 32206 | eval "$as_ac_var=yes" |
| 32207 | else |
| 32208 | echo "$as_me: failed program was:" >&5 |
| 32209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32210 | |
| 32211 | eval "$as_ac_var=no" |
| 32212 | fi |
| 32213 | |
| 32214 | rm -f core conftest.err conftest.$ac_objext \ |
| 32215 | conftest$ac_exeext conftest.$ac_ext |
| 32216 | fi |
| 32217 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32218 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32219 | echo "${ECHO_T}$ac_res" >&6; } |
| 32220 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32221 | cat >>confdefs.h <<_ACEOF |
| 32222 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32223 | _ACEOF |
| 32224 | |
| 32225 | fi |
| 32226 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32227 | |
| 32228 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32229 | |
| 32230 | |
| 32231 | for ac_func in strerror strerror_r strerror_s |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32232 | do |
| 32233 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32234 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32235 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32236 | 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] | 32237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32238 | else |
| 32239 | cat >conftest.$ac_ext <<_ACEOF |
| 32240 | /* confdefs.h. */ |
| 32241 | _ACEOF |
| 32242 | cat confdefs.h >>conftest.$ac_ext |
| 32243 | cat >>conftest.$ac_ext <<_ACEOF |
| 32244 | /* end confdefs.h. */ |
| 32245 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32247 | #define $ac_func innocuous_$ac_func |
| 32248 | |
| 32249 | /* System header to define __stub macros and hopefully few prototypes, |
| 32250 | which can conflict with char $ac_func (); below. |
| 32251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32252 | <limits.h> exists even on freestanding compilers. */ |
| 32253 | |
| 32254 | #ifdef __STDC__ |
| 32255 | # include <limits.h> |
| 32256 | #else |
| 32257 | # include <assert.h> |
| 32258 | #endif |
| 32259 | |
| 32260 | #undef $ac_func |
| 32261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32262 | /* Override any GCC internal prototype to avoid an error. |
| 32263 | Use char because int might match the return type of a GCC |
| 32264 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32265 | #ifdef __cplusplus |
| 32266 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32267 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32268 | char $ac_func (); |
| 32269 | /* The GNU C library defines this for functions which it implements |
| 32270 | to always fail with ENOSYS. Some functions are actually named |
| 32271 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32272 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32273 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32274 | #endif |
| 32275 | |
| 32276 | int |
| 32277 | main () |
| 32278 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32279 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32280 | ; |
| 32281 | return 0; |
| 32282 | } |
| 32283 | _ACEOF |
| 32284 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32285 | if { (ac_try="$ac_link" |
| 32286 | case "(($ac_try" in |
| 32287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32288 | *) ac_try_echo=$ac_try;; |
| 32289 | esac |
| 32290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32291 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32292 | ac_status=$? |
| 32293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32294 | rm -f conftest.er1 |
| 32295 | cat conftest.err >&5 |
| 32296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32297 | (exit $ac_status); } && |
| 32298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32299 | { (case "(($ac_try" in |
| 32300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32301 | *) ac_try_echo=$ac_try;; |
| 32302 | esac |
| 32303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32304 | (eval "$ac_try") 2>&5 |
| 32305 | ac_status=$? |
| 32306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32307 | (exit $ac_status); }; } && |
| 32308 | { ac_try='test -s conftest$ac_exeext' |
| 32309 | { (case "(($ac_try" in |
| 32310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32311 | *) ac_try_echo=$ac_try;; |
| 32312 | esac |
| 32313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32314 | (eval "$ac_try") 2>&5 |
| 32315 | ac_status=$? |
| 32316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32317 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32318 | eval "$as_ac_var=yes" |
| 32319 | else |
| 32320 | echo "$as_me: failed program was:" >&5 |
| 32321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32323 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32324 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32325 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32326 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32327 | conftest$ac_exeext conftest.$ac_ext |
| 32328 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32329 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32330 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32331 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32332 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32333 | cat >>confdefs.h <<_ACEOF |
| 32334 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32335 | _ACEOF |
| 32336 | |
| 32337 | fi |
| 32338 | done |
| 32339 | |
| 32340 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 32341 | |
| 32342 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 32343 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 32344 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32345 | do |
| 32346 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32347 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32348 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32349 | 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] | 32350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32351 | else |
| 32352 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32353 | /* confdefs.h. */ |
| 32354 | _ACEOF |
| 32355 | cat confdefs.h >>conftest.$ac_ext |
| 32356 | cat >>conftest.$ac_ext <<_ACEOF |
| 32357 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32358 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32359 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32360 | #define $ac_func innocuous_$ac_func |
| 32361 | |
| 32362 | /* System header to define __stub macros and hopefully few prototypes, |
| 32363 | which can conflict with char $ac_func (); below. |
| 32364 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32365 | <limits.h> exists even on freestanding compilers. */ |
| 32366 | |
| 32367 | #ifdef __STDC__ |
| 32368 | # include <limits.h> |
| 32369 | #else |
| 32370 | # include <assert.h> |
| 32371 | #endif |
| 32372 | |
| 32373 | #undef $ac_func |
| 32374 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32375 | /* Override any GCC internal prototype to avoid an error. |
| 32376 | Use char because int might match the return type of a GCC |
| 32377 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32378 | #ifdef __cplusplus |
| 32379 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32380 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32381 | char $ac_func (); |
| 32382 | /* The GNU C library defines this for functions which it implements |
| 32383 | to always fail with ENOSYS. Some functions are actually named |
| 32384 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32385 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32386 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32387 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32388 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32389 | int |
| 32390 | main () |
| 32391 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32392 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32393 | ; |
| 32394 | return 0; |
| 32395 | } |
| 32396 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32397 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32398 | if { (ac_try="$ac_link" |
| 32399 | case "(($ac_try" in |
| 32400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32401 | *) ac_try_echo=$ac_try;; |
| 32402 | esac |
| 32403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32404 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32405 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32407 | rm -f conftest.er1 |
| 32408 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32410 | (exit $ac_status); } && |
| 32411 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32412 | { (case "(($ac_try" in |
| 32413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32414 | *) ac_try_echo=$ac_try;; |
| 32415 | esac |
| 32416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32417 | (eval "$ac_try") 2>&5 |
| 32418 | ac_status=$? |
| 32419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32420 | (exit $ac_status); }; } && |
| 32421 | { ac_try='test -s conftest$ac_exeext' |
| 32422 | { (case "(($ac_try" in |
| 32423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32424 | *) ac_try_echo=$ac_try;; |
| 32425 | esac |
| 32426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32427 | (eval "$ac_try") 2>&5 |
| 32428 | ac_status=$? |
| 32429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32430 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32431 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32432 | else |
| 32433 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32436 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32437 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32438 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32439 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32440 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32441 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32442 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32443 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32444 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32445 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32446 | cat >>confdefs.h <<_ACEOF |
| 32447 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32448 | _ACEOF |
| 32449 | |
| 32450 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32451 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32452 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32453 | |
| 32454 | |
| 32455 | |
| 32456 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 32457 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32458 | do |
| 32459 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32460 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32461 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32462 | 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] | 32463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32464 | else |
| 32465 | cat >conftest.$ac_ext <<_ACEOF |
| 32466 | /* confdefs.h. */ |
| 32467 | _ACEOF |
| 32468 | cat confdefs.h >>conftest.$ac_ext |
| 32469 | cat >>conftest.$ac_ext <<_ACEOF |
| 32470 | /* end confdefs.h. */ |
| 32471 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32472 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32473 | #define $ac_func innocuous_$ac_func |
| 32474 | |
| 32475 | /* System header to define __stub macros and hopefully few prototypes, |
| 32476 | which can conflict with char $ac_func (); below. |
| 32477 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32478 | <limits.h> exists even on freestanding compilers. */ |
| 32479 | |
| 32480 | #ifdef __STDC__ |
| 32481 | # include <limits.h> |
| 32482 | #else |
| 32483 | # include <assert.h> |
| 32484 | #endif |
| 32485 | |
| 32486 | #undef $ac_func |
| 32487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32488 | /* Override any GCC internal prototype to avoid an error. |
| 32489 | Use char because int might match the return type of a GCC |
| 32490 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32491 | #ifdef __cplusplus |
| 32492 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32493 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32494 | char $ac_func (); |
| 32495 | /* The GNU C library defines this for functions which it implements |
| 32496 | to always fail with ENOSYS. Some functions are actually named |
| 32497 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32498 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32499 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32500 | #endif |
| 32501 | |
| 32502 | int |
| 32503 | main () |
| 32504 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32505 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32506 | ; |
| 32507 | return 0; |
| 32508 | } |
| 32509 | _ACEOF |
| 32510 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32511 | if { (ac_try="$ac_link" |
| 32512 | case "(($ac_try" in |
| 32513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32514 | *) ac_try_echo=$ac_try;; |
| 32515 | esac |
| 32516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32517 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32518 | ac_status=$? |
| 32519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32520 | rm -f conftest.er1 |
| 32521 | cat conftest.err >&5 |
| 32522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32523 | (exit $ac_status); } && |
| 32524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32525 | { (case "(($ac_try" in |
| 32526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32527 | *) ac_try_echo=$ac_try;; |
| 32528 | esac |
| 32529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32530 | (eval "$ac_try") 2>&5 |
| 32531 | ac_status=$? |
| 32532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32533 | (exit $ac_status); }; } && |
| 32534 | { ac_try='test -s conftest$ac_exeext' |
| 32535 | { (case "(($ac_try" in |
| 32536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32537 | *) ac_try_echo=$ac_try;; |
| 32538 | esac |
| 32539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32540 | (eval "$ac_try") 2>&5 |
| 32541 | ac_status=$? |
| 32542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32543 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32544 | eval "$as_ac_var=yes" |
| 32545 | else |
| 32546 | echo "$as_me: failed program was:" >&5 |
| 32547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32548 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32549 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32550 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32551 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32552 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32553 | conftest$ac_exeext conftest.$ac_ext |
| 32554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32555 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32556 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32557 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32558 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32559 | cat >>confdefs.h <<_ACEOF |
| 32560 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32561 | _ACEOF |
| 32562 | |
| 32563 | fi |
| 32564 | done |
| 32565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32566 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 32567 | 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] | 32568 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32570 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32571 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32572 | ac_cpp='$CPP $CPPFLAGS' |
| 32573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32576 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32577 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32578 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32579 | else |
| 32580 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32581 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32582 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32583 | _ACEOF |
| 32584 | cat confdefs.h >>conftest.$ac_ext |
| 32585 | cat >>conftest.$ac_ext <<_ACEOF |
| 32586 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32587 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32588 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32589 | #include <stdlib.h> |
| 32590 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32591 | int |
| 32592 | main () |
| 32593 | { |
| 32594 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32595 | volatile double A, B; |
| 32596 | char Buffer[100]; |
| 32597 | A = 1; |
| 32598 | A /= 10.0; |
| 32599 | sprintf(Buffer, "%a", A); |
| 32600 | B = atof(Buffer); |
| 32601 | if (A != B) |
| 32602 | return (1); |
| 32603 | if (A != 0x1.999999999999ap-4) |
| 32604 | return (1); |
| 32605 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32606 | ; |
| 32607 | return 0; |
| 32608 | } |
| 32609 | _ACEOF |
| 32610 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32611 | if { (ac_try="$ac_link" |
| 32612 | case "(($ac_try" in |
| 32613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32614 | *) ac_try_echo=$ac_try;; |
| 32615 | esac |
| 32616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32617 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32618 | ac_status=$? |
| 32619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32620 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32621 | { (case "(($ac_try" in |
| 32622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32623 | *) ac_try_echo=$ac_try;; |
| 32624 | esac |
| 32625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32626 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32627 | ac_status=$? |
| 32628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32629 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32630 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32631 | else |
| 32632 | echo "$as_me: program exited with status $ac_status" >&5 |
| 32633 | echo "$as_me: failed program was:" >&5 |
| 32634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32635 | |
| 32636 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32637 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32638 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32639 | 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] | 32640 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32641 | |
| 32642 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32643 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32644 | ac_cpp='$CPP $CPPFLAGS' |
| 32645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32648 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32649 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32650 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 32651 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32652 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32653 | |
| 32654 | cat >>confdefs.h <<\_ACEOF |
| 32655 | #define HAVE_PRINTF_A 1 |
| 32656 | _ACEOF |
| 32657 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32658 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32659 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32660 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 32661 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32662 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 32663 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32664 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32666 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32667 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32668 | /* confdefs.h. */ |
| 32669 | _ACEOF |
| 32670 | cat confdefs.h >>conftest.$ac_ext |
| 32671 | cat >>conftest.$ac_ext <<_ACEOF |
| 32672 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32673 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32674 | int |
| 32675 | main () |
| 32676 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32677 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32678 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32679 | ; |
| 32680 | return 0; |
| 32681 | } |
| 32682 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32683 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32684 | if { (ac_try="$ac_link" |
| 32685 | case "(($ac_try" in |
| 32686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32687 | *) ac_try_echo=$ac_try;; |
| 32688 | esac |
| 32689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32690 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32691 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32693 | rm -f conftest.er1 |
| 32694 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32696 | (exit $ac_status); } && |
| 32697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32698 | { (case "(($ac_try" in |
| 32699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32700 | *) ac_try_echo=$ac_try;; |
| 32701 | esac |
| 32702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32703 | (eval "$ac_try") 2>&5 |
| 32704 | ac_status=$? |
| 32705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32706 | (exit $ac_status); }; } && |
| 32707 | { ac_try='test -s conftest$ac_exeext' |
| 32708 | { (case "(($ac_try" in |
| 32709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32710 | *) ac_try_echo=$ac_try;; |
| 32711 | esac |
| 32712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32713 | (eval "$ac_try") 2>&5 |
| 32714 | ac_status=$? |
| 32715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32716 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32717 | ac_cv_working_alloca_h=yes |
| 32718 | else |
| 32719 | echo "$as_me: failed program was:" >&5 |
| 32720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32721 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32722 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32723 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32724 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32725 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32726 | conftest$ac_exeext conftest.$ac_ext |
| 32727 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32728 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 32729 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32730 | if test $ac_cv_working_alloca_h = yes; then |
| 32731 | |
| 32732 | cat >>confdefs.h <<\_ACEOF |
| 32733 | #define HAVE_ALLOCA_H 1 |
| 32734 | _ACEOF |
| 32735 | |
| 32736 | fi |
| 32737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32738 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 32739 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32740 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 32741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32742 | else |
| 32743 | cat >conftest.$ac_ext <<_ACEOF |
| 32744 | /* confdefs.h. */ |
| 32745 | _ACEOF |
| 32746 | cat confdefs.h >>conftest.$ac_ext |
| 32747 | cat >>conftest.$ac_ext <<_ACEOF |
| 32748 | /* end confdefs.h. */ |
| 32749 | #ifdef __GNUC__ |
| 32750 | # define alloca __builtin_alloca |
| 32751 | #else |
| 32752 | # ifdef _MSC_VER |
| 32753 | # include <malloc.h> |
| 32754 | # define alloca _alloca |
| 32755 | # else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32756 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32757 | # include <alloca.h> |
| 32758 | # else |
| 32759 | # ifdef _AIX |
| 32760 | #pragma alloca |
| 32761 | # else |
| 32762 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 32763 | char *alloca (); |
| 32764 | # endif |
| 32765 | # endif |
| 32766 | # endif |
| 32767 | # endif |
| 32768 | #endif |
| 32769 | |
| 32770 | int |
| 32771 | main () |
| 32772 | { |
| 32773 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32774 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32775 | ; |
| 32776 | return 0; |
| 32777 | } |
| 32778 | _ACEOF |
| 32779 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32780 | if { (ac_try="$ac_link" |
| 32781 | case "(($ac_try" in |
| 32782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32783 | *) ac_try_echo=$ac_try;; |
| 32784 | esac |
| 32785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32786 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32787 | ac_status=$? |
| 32788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32789 | rm -f conftest.er1 |
| 32790 | cat conftest.err >&5 |
| 32791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32792 | (exit $ac_status); } && |
| 32793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32794 | { (case "(($ac_try" in |
| 32795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32796 | *) ac_try_echo=$ac_try;; |
| 32797 | esac |
| 32798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32799 | (eval "$ac_try") 2>&5 |
| 32800 | ac_status=$? |
| 32801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32802 | (exit $ac_status); }; } && |
| 32803 | { ac_try='test -s conftest$ac_exeext' |
| 32804 | { (case "(($ac_try" in |
| 32805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32806 | *) ac_try_echo=$ac_try;; |
| 32807 | esac |
| 32808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32809 | (eval "$ac_try") 2>&5 |
| 32810 | ac_status=$? |
| 32811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32812 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32813 | ac_cv_func_alloca_works=yes |
| 32814 | else |
| 32815 | echo "$as_me: failed program was:" >&5 |
| 32816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32818 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32820 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32821 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32822 | conftest$ac_exeext conftest.$ac_ext |
| 32823 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32824 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 32825 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32826 | |
| 32827 | if test $ac_cv_func_alloca_works = yes; then |
| 32828 | |
| 32829 | cat >>confdefs.h <<\_ACEOF |
| 32830 | #define HAVE_ALLOCA 1 |
| 32831 | _ACEOF |
| 32832 | |
| 32833 | else |
| 32834 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 32835 | # that cause trouble. Some versions do not even contain alloca or |
| 32836 | # contain a buggy version. If you still want to use their alloca, |
| 32837 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 32838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32839 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32840 | |
| 32841 | cat >>confdefs.h <<\_ACEOF |
| 32842 | #define C_ALLOCA 1 |
| 32843 | _ACEOF |
| 32844 | |
| 32845 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32846 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 32847 | 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] | 32848 | if test "${ac_cv_os_cray+set}" = set; then |
| 32849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32850 | else |
| 32851 | cat >conftest.$ac_ext <<_ACEOF |
| 32852 | /* confdefs.h. */ |
| 32853 | _ACEOF |
| 32854 | cat confdefs.h >>conftest.$ac_ext |
| 32855 | cat >>conftest.$ac_ext <<_ACEOF |
| 32856 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32857 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32858 | webecray |
| 32859 | #else |
| 32860 | wenotbecray |
| 32861 | #endif |
| 32862 | |
| 32863 | _ACEOF |
| 32864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32865 | $EGREP "webecray" >/dev/null 2>&1; then |
| 32866 | ac_cv_os_cray=yes |
| 32867 | else |
| 32868 | ac_cv_os_cray=no |
| 32869 | fi |
| 32870 | rm -f conftest* |
| 32871 | |
| 32872 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32873 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 32874 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32875 | if test $ac_cv_os_cray = yes; then |
| 32876 | for ac_func in _getb67 GETB67 getb67; do |
| 32877 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32878 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32879 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32880 | 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] | 32881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32882 | else |
| 32883 | cat >conftest.$ac_ext <<_ACEOF |
| 32884 | /* confdefs.h. */ |
| 32885 | _ACEOF |
| 32886 | cat confdefs.h >>conftest.$ac_ext |
| 32887 | cat >>conftest.$ac_ext <<_ACEOF |
| 32888 | /* end confdefs.h. */ |
| 32889 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32890 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32891 | #define $ac_func innocuous_$ac_func |
| 32892 | |
| 32893 | /* System header to define __stub macros and hopefully few prototypes, |
| 32894 | which can conflict with char $ac_func (); below. |
| 32895 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32896 | <limits.h> exists even on freestanding compilers. */ |
| 32897 | |
| 32898 | #ifdef __STDC__ |
| 32899 | # include <limits.h> |
| 32900 | #else |
| 32901 | # include <assert.h> |
| 32902 | #endif |
| 32903 | |
| 32904 | #undef $ac_func |
| 32905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32906 | /* Override any GCC internal prototype to avoid an error. |
| 32907 | Use char because int might match the return type of a GCC |
| 32908 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32909 | #ifdef __cplusplus |
| 32910 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32911 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32912 | char $ac_func (); |
| 32913 | /* The GNU C library defines this for functions which it implements |
| 32914 | to always fail with ENOSYS. Some functions are actually named |
| 32915 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32916 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32917 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32918 | #endif |
| 32919 | |
| 32920 | int |
| 32921 | main () |
| 32922 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32923 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32924 | ; |
| 32925 | return 0; |
| 32926 | } |
| 32927 | _ACEOF |
| 32928 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32929 | if { (ac_try="$ac_link" |
| 32930 | case "(($ac_try" in |
| 32931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32932 | *) ac_try_echo=$ac_try;; |
| 32933 | esac |
| 32934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32935 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32936 | ac_status=$? |
| 32937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32938 | rm -f conftest.er1 |
| 32939 | cat conftest.err >&5 |
| 32940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32941 | (exit $ac_status); } && |
| 32942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32943 | { (case "(($ac_try" in |
| 32944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32945 | *) ac_try_echo=$ac_try;; |
| 32946 | esac |
| 32947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32948 | (eval "$ac_try") 2>&5 |
| 32949 | ac_status=$? |
| 32950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32951 | (exit $ac_status); }; } && |
| 32952 | { ac_try='test -s conftest$ac_exeext' |
| 32953 | { (case "(($ac_try" in |
| 32954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32955 | *) ac_try_echo=$ac_try;; |
| 32956 | esac |
| 32957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32958 | (eval "$ac_try") 2>&5 |
| 32959 | ac_status=$? |
| 32960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32961 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32962 | eval "$as_ac_var=yes" |
| 32963 | else |
| 32964 | echo "$as_me: failed program was:" >&5 |
| 32965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32967 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32968 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32969 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32970 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32971 | conftest$ac_exeext conftest.$ac_ext |
| 32972 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32973 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32974 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32975 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32976 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32977 | |
| 32978 | cat >>confdefs.h <<_ACEOF |
| 32979 | #define CRAY_STACKSEG_END $ac_func |
| 32980 | _ACEOF |
| 32981 | |
| 32982 | break |
| 32983 | fi |
| 32984 | |
| 32985 | done |
| 32986 | fi |
| 32987 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32988 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 32989 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32990 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 32991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32992 | else |
| 32993 | if test "$cross_compiling" = yes; then |
| 32994 | ac_cv_c_stack_direction=0 |
| 32995 | else |
| 32996 | cat >conftest.$ac_ext <<_ACEOF |
| 32997 | /* confdefs.h. */ |
| 32998 | _ACEOF |
| 32999 | cat confdefs.h >>conftest.$ac_ext |
| 33000 | cat >>conftest.$ac_ext <<_ACEOF |
| 33001 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33002 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33003 | int |
| 33004 | find_stack_direction () |
| 33005 | { |
| 33006 | static char *addr = 0; |
| 33007 | auto char dummy; |
| 33008 | if (addr == 0) |
| 33009 | { |
| 33010 | addr = &dummy; |
| 33011 | return find_stack_direction (); |
| 33012 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33013 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33014 | return (&dummy > addr) ? 1 : -1; |
| 33015 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33016 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33017 | int |
| 33018 | main () |
| 33019 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33020 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33021 | } |
| 33022 | _ACEOF |
| 33023 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33024 | if { (ac_try="$ac_link" |
| 33025 | case "(($ac_try" in |
| 33026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33027 | *) ac_try_echo=$ac_try;; |
| 33028 | esac |
| 33029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33030 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33031 | ac_status=$? |
| 33032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33034 | { (case "(($ac_try" in |
| 33035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33036 | *) ac_try_echo=$ac_try;; |
| 33037 | esac |
| 33038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33039 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33040 | ac_status=$? |
| 33041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33042 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33043 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33044 | else |
| 33045 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33046 | echo "$as_me: failed program was:" >&5 |
| 33047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33048 | |
| 33049 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33050 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33051 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33052 | 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] | 33053 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33054 | |
| 33055 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33056 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33057 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 33058 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33059 | |
| 33060 | cat >>confdefs.h <<_ACEOF |
| 33061 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 33062 | _ACEOF |
| 33063 | |
| 33064 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33065 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33066 | |
| 33067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33068 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 33069 | 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] | 33070 | if test "${ac_cv_func_rand48+set}" = set; then |
| 33071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33072 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33073 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33074 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33075 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33076 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33077 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33078 | |
| 33079 | cat >conftest.$ac_ext <<_ACEOF |
| 33080 | /* confdefs.h. */ |
| 33081 | _ACEOF |
| 33082 | cat confdefs.h >>conftest.$ac_ext |
| 33083 | cat >>conftest.$ac_ext <<_ACEOF |
| 33084 | /* end confdefs.h. */ |
| 33085 | #include <stdlib.h> |
| 33086 | int |
| 33087 | main () |
| 33088 | { |
| 33089 | srand48(0);lrand48();drand48(); |
| 33090 | ; |
| 33091 | return 0; |
| 33092 | } |
| 33093 | _ACEOF |
| 33094 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33095 | if { (ac_try="$ac_compile" |
| 33096 | case "(($ac_try" in |
| 33097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33098 | *) ac_try_echo=$ac_try;; |
| 33099 | esac |
| 33100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33101 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33102 | ac_status=$? |
| 33103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33104 | rm -f conftest.er1 |
| 33105 | cat conftest.err >&5 |
| 33106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33107 | (exit $ac_status); } && |
| 33108 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33109 | { (case "(($ac_try" in |
| 33110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33111 | *) ac_try_echo=$ac_try;; |
| 33112 | esac |
| 33113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33114 | (eval "$ac_try") 2>&5 |
| 33115 | ac_status=$? |
| 33116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33117 | (exit $ac_status); }; } && |
| 33118 | { ac_try='test -s conftest.$ac_objext' |
| 33119 | { (case "(($ac_try" in |
| 33120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33121 | *) ac_try_echo=$ac_try;; |
| 33122 | esac |
| 33123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33124 | (eval "$ac_try") 2>&5 |
| 33125 | ac_status=$? |
| 33126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33127 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33128 | ac_cv_func_rand48=yes |
| 33129 | else |
| 33130 | echo "$as_me: failed program was:" >&5 |
| 33131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33132 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33133 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33134 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33135 | |
| 33136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33137 | ac_ext=c |
| 33138 | ac_cpp='$CPP $CPPFLAGS' |
| 33139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33142 | |
| 33143 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33144 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 33145 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33146 | |
| 33147 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 33148 | |
| 33149 | cat >>confdefs.h <<\_ACEOF |
| 33150 | #define HAVE_RAND48 1 |
| 33151 | _ACEOF |
| 33152 | |
| 33153 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33154 | |
| 33155 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33156 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 33157 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33158 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 33159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33160 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33161 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33162 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33163 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33164 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33165 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33166 | |
| 33167 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33168 | /* confdefs.h. */ |
| 33169 | _ACEOF |
| 33170 | cat confdefs.h >>conftest.$ac_ext |
| 33171 | cat >>conftest.$ac_ext <<_ACEOF |
| 33172 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33173 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33174 | int |
| 33175 | main () |
| 33176 | { |
| 33177 | using namespace Outer::Inner; return i; |
| 33178 | ; |
| 33179 | return 0; |
| 33180 | } |
| 33181 | _ACEOF |
| 33182 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33183 | if { (ac_try="$ac_compile" |
| 33184 | case "(($ac_try" in |
| 33185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33186 | *) ac_try_echo=$ac_try;; |
| 33187 | esac |
| 33188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33189 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33190 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33192 | rm -f conftest.er1 |
| 33193 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33195 | (exit $ac_status); } && |
| 33196 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33197 | { (case "(($ac_try" in |
| 33198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33199 | *) ac_try_echo=$ac_try;; |
| 33200 | esac |
| 33201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33202 | (eval "$ac_try") 2>&5 |
| 33203 | ac_status=$? |
| 33204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33205 | (exit $ac_status); }; } && |
| 33206 | { ac_try='test -s conftest.$ac_objext' |
| 33207 | { (case "(($ac_try" in |
| 33208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33209 | *) ac_try_echo=$ac_try;; |
| 33210 | esac |
| 33211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33212 | (eval "$ac_try") 2>&5 |
| 33213 | ac_status=$? |
| 33214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33215 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33216 | ac_cv_cxx_namespaces=yes |
| 33217 | else |
| 33218 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33221 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33222 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33223 | |
| 33224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33225 | ac_ext=c |
| 33226 | ac_cpp='$CPP $CPPFLAGS' |
| 33227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33230 | |
| 33231 | |
| 33232 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33233 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 33234 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33235 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 33236 | |
| 33237 | cat >>confdefs.h <<\_ACEOF |
| 33238 | #define HAVE_NAMESPACES |
| 33239 | _ACEOF |
| 33240 | |
| 33241 | fi |
| 33242 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33243 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 33244 | 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] | 33245 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 33246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33247 | else |
| 33248 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33249 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33250 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33251 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33252 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33253 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33254 | |
| 33255 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33256 | /* confdefs.h. */ |
| 33257 | _ACEOF |
| 33258 | cat confdefs.h >>conftest.$ac_ext |
| 33259 | cat >>conftest.$ac_ext <<_ACEOF |
| 33260 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33261 | #include <iterator> |
| 33262 | #ifdef HAVE_NAMESPACES |
| 33263 | using namespace std; |
| 33264 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33265 | int |
| 33266 | main () |
| 33267 | { |
| 33268 | iterator<int,int,int> t; return 0; |
| 33269 | ; |
| 33270 | return 0; |
| 33271 | } |
| 33272 | _ACEOF |
| 33273 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33274 | if { (ac_try="$ac_compile" |
| 33275 | case "(($ac_try" in |
| 33276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33277 | *) ac_try_echo=$ac_try;; |
| 33278 | esac |
| 33279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33280 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33281 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33283 | rm -f conftest.er1 |
| 33284 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33286 | (exit $ac_status); } && |
| 33287 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33288 | { (case "(($ac_try" in |
| 33289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33290 | *) ac_try_echo=$ac_try;; |
| 33291 | esac |
| 33292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33293 | (eval "$ac_try") 2>&5 |
| 33294 | ac_status=$? |
| 33295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33296 | (exit $ac_status); }; } && |
| 33297 | { ac_try='test -s conftest.$ac_objext' |
| 33298 | { (case "(($ac_try" in |
| 33299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33300 | *) ac_try_echo=$ac_try;; |
| 33301 | esac |
| 33302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33303 | (eval "$ac_try") 2>&5 |
| 33304 | ac_status=$? |
| 33305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33306 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33307 | ac_cv_cxx_have_std_iterator=yes |
| 33308 | else |
| 33309 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33312 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33313 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33314 | |
| 33315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33316 | ac_ext=c |
| 33317 | ac_cpp='$CPP $CPPFLAGS' |
| 33318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33321 | |
| 33322 | |
| 33323 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33324 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 33325 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33326 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 33327 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33328 | |
| 33329 | cat >>confdefs.h <<\_ACEOF |
| 33330 | #define HAVE_STD_ITERATOR 1 |
| 33331 | _ACEOF |
| 33332 | |
| 33333 | else |
| 33334 | |
| 33335 | cat >>confdefs.h <<\_ACEOF |
| 33336 | #define HAVE_STD_ITERATOR 0 |
| 33337 | _ACEOF |
| 33338 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33339 | fi |
| 33340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33341 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 33342 | 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] | 33343 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 33344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33345 | else |
| 33346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33347 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33348 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33349 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33350 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33351 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33352 | |
| 33353 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33354 | /* confdefs.h. */ |
| 33355 | _ACEOF |
| 33356 | cat confdefs.h >>conftest.$ac_ext |
| 33357 | cat >>conftest.$ac_ext <<_ACEOF |
| 33358 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33359 | #include <iterator> |
| 33360 | #ifdef HAVE_NAMESPACES |
| 33361 | using namespace std; |
| 33362 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33363 | int |
| 33364 | main () |
| 33365 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33366 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33367 | ; |
| 33368 | return 0; |
| 33369 | } |
| 33370 | _ACEOF |
| 33371 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33372 | if { (ac_try="$ac_compile" |
| 33373 | case "(($ac_try" in |
| 33374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33375 | *) ac_try_echo=$ac_try;; |
| 33376 | esac |
| 33377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33378 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33379 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33381 | rm -f conftest.er1 |
| 33382 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33384 | (exit $ac_status); } && |
| 33385 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33386 | { (case "(($ac_try" in |
| 33387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33388 | *) ac_try_echo=$ac_try;; |
| 33389 | esac |
| 33390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33391 | (eval "$ac_try") 2>&5 |
| 33392 | ac_status=$? |
| 33393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33394 | (exit $ac_status); }; } && |
| 33395 | { ac_try='test -s conftest.$ac_objext' |
| 33396 | { (case "(($ac_try" in |
| 33397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33398 | *) ac_try_echo=$ac_try;; |
| 33399 | esac |
| 33400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33401 | (eval "$ac_try") 2>&5 |
| 33402 | ac_status=$? |
| 33403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33404 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33405 | ac_cv_cxx_have_bi_iterator=yes |
| 33406 | else |
| 33407 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33409 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33410 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33411 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33412 | |
| 33413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33414 | ac_ext=c |
| 33415 | ac_cpp='$CPP $CPPFLAGS' |
| 33416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33419 | |
| 33420 | |
| 33421 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33422 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 33423 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33424 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 33425 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33426 | |
| 33427 | cat >>confdefs.h <<\_ACEOF |
| 33428 | #define HAVE_BI_ITERATOR 1 |
| 33429 | _ACEOF |
| 33430 | |
| 33431 | else |
| 33432 | |
| 33433 | cat >>confdefs.h <<\_ACEOF |
| 33434 | #define HAVE_BI_ITERATOR 0 |
| 33435 | _ACEOF |
| 33436 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33437 | fi |
| 33438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33439 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 33440 | 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] | 33441 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 33442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33443 | else |
| 33444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33445 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33446 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33447 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33448 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33449 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33450 | |
| 33451 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33452 | /* confdefs.h. */ |
| 33453 | _ACEOF |
| 33454 | cat confdefs.h >>conftest.$ac_ext |
| 33455 | cat >>conftest.$ac_ext <<_ACEOF |
| 33456 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33457 | #include <iterator> |
| 33458 | #ifdef HAVE_NAMESPACES |
| 33459 | using namespace std; |
| 33460 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33461 | int |
| 33462 | main () |
| 33463 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33464 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33465 | ; |
| 33466 | return 0; |
| 33467 | } |
| 33468 | _ACEOF |
| 33469 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33470 | if { (ac_try="$ac_compile" |
| 33471 | case "(($ac_try" in |
| 33472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33473 | *) ac_try_echo=$ac_try;; |
| 33474 | esac |
| 33475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33476 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33477 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33479 | rm -f conftest.er1 |
| 33480 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33482 | (exit $ac_status); } && |
| 33483 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33484 | { (case "(($ac_try" in |
| 33485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33486 | *) ac_try_echo=$ac_try;; |
| 33487 | esac |
| 33488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33489 | (eval "$ac_try") 2>&5 |
| 33490 | ac_status=$? |
| 33491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33492 | (exit $ac_status); }; } && |
| 33493 | { ac_try='test -s conftest.$ac_objext' |
| 33494 | { (case "(($ac_try" in |
| 33495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33496 | *) ac_try_echo=$ac_try;; |
| 33497 | esac |
| 33498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33499 | (eval "$ac_try") 2>&5 |
| 33500 | ac_status=$? |
| 33501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33502 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33503 | ac_cv_cxx_have_fwd_iterator=yes |
| 33504 | else |
| 33505 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33508 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33509 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33510 | |
| 33511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33512 | ac_ext=c |
| 33513 | ac_cpp='$CPP $CPPFLAGS' |
| 33514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33517 | |
| 33518 | |
| 33519 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33520 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 33521 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33522 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 33523 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33524 | |
| 33525 | cat >>confdefs.h <<\_ACEOF |
| 33526 | #define HAVE_FWD_ITERATOR 1 |
| 33527 | _ACEOF |
| 33528 | |
| 33529 | else |
| 33530 | |
| 33531 | cat >>confdefs.h <<\_ACEOF |
| 33532 | #define HAVE_FWD_ITERATOR 0 |
| 33533 | _ACEOF |
| 33534 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33535 | fi |
| 33536 | |
| 33537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33538 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 33539 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33540 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 33541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33542 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33543 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33544 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33545 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33546 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33547 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33548 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33549 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33550 | /* confdefs.h. */ |
| 33551 | _ACEOF |
| 33552 | cat confdefs.h >>conftest.$ac_ext |
| 33553 | cat >>conftest.$ac_ext <<_ACEOF |
| 33554 | /* end confdefs.h. */ |
| 33555 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33556 | int |
| 33557 | main () |
| 33558 | { |
| 33559 | float f; isnan(f); |
| 33560 | ; |
| 33561 | return 0; |
| 33562 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33563 | _ACEOF |
| 33564 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33565 | if { (ac_try="$ac_compile" |
| 33566 | case "(($ac_try" in |
| 33567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33568 | *) ac_try_echo=$ac_try;; |
| 33569 | esac |
| 33570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33571 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33572 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33574 | rm -f conftest.er1 |
| 33575 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33577 | (exit $ac_status); } && |
| 33578 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33579 | { (case "(($ac_try" in |
| 33580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33581 | *) ac_try_echo=$ac_try;; |
| 33582 | esac |
| 33583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33584 | (eval "$ac_try") 2>&5 |
| 33585 | ac_status=$? |
| 33586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33587 | (exit $ac_status); }; } && |
| 33588 | { ac_try='test -s conftest.$ac_objext' |
| 33589 | { (case "(($ac_try" in |
| 33590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33591 | *) ac_try_echo=$ac_try;; |
| 33592 | esac |
| 33593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33594 | (eval "$ac_try") 2>&5 |
| 33595 | ac_status=$? |
| 33596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33597 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33598 | ac_cv_func_isnan_in_math_h=yes |
| 33599 | else |
| 33600 | echo "$as_me: failed program was:" >&5 |
| 33601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33602 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33603 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33604 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33605 | |
| 33606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33607 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33608 | ac_cpp='$CPP $CPPFLAGS' |
| 33609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33612 | |
| 33613 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33614 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 33615 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33616 | |
| 33617 | |
| 33618 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33619 | |
| 33620 | cat >>confdefs.h <<\_ACEOF |
| 33621 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 33622 | _ACEOF |
| 33623 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33624 | fi |
| 33625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33626 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 33627 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33628 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 33629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33630 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33631 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33632 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33633 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33634 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33635 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33636 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33637 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33638 | /* confdefs.h. */ |
| 33639 | _ACEOF |
| 33640 | cat confdefs.h >>conftest.$ac_ext |
| 33641 | cat >>conftest.$ac_ext <<_ACEOF |
| 33642 | /* end confdefs.h. */ |
| 33643 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33644 | int |
| 33645 | main () |
| 33646 | { |
| 33647 | float f; isnan(f); |
| 33648 | ; |
| 33649 | return 0; |
| 33650 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33651 | _ACEOF |
| 33652 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33653 | if { (ac_try="$ac_compile" |
| 33654 | case "(($ac_try" in |
| 33655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33656 | *) ac_try_echo=$ac_try;; |
| 33657 | esac |
| 33658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33659 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33660 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33662 | rm -f conftest.er1 |
| 33663 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33665 | (exit $ac_status); } && |
| 33666 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33667 | { (case "(($ac_try" in |
| 33668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33669 | *) ac_try_echo=$ac_try;; |
| 33670 | esac |
| 33671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33672 | (eval "$ac_try") 2>&5 |
| 33673 | ac_status=$? |
| 33674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33675 | (exit $ac_status); }; } && |
| 33676 | { ac_try='test -s conftest.$ac_objext' |
| 33677 | { (case "(($ac_try" in |
| 33678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33679 | *) ac_try_echo=$ac_try;; |
| 33680 | esac |
| 33681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33682 | (eval "$ac_try") 2>&5 |
| 33683 | ac_status=$? |
| 33684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33685 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33686 | ac_cv_func_isnan_in_cmath=yes |
| 33687 | else |
| 33688 | echo "$as_me: failed program was:" >&5 |
| 33689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33691 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33692 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33693 | |
| 33694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33695 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33696 | ac_cpp='$CPP $CPPFLAGS' |
| 33697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33700 | |
| 33701 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33702 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 33703 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33704 | |
| 33705 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33706 | |
| 33707 | cat >>confdefs.h <<\_ACEOF |
| 33708 | #define HAVE_ISNAN_IN_CMATH 1 |
| 33709 | _ACEOF |
| 33710 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33711 | fi |
| 33712 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33713 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 33714 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33715 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 33716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33717 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33718 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33719 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33720 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33721 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33722 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33723 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33724 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33725 | /* confdefs.h. */ |
| 33726 | _ACEOF |
| 33727 | cat confdefs.h >>conftest.$ac_ext |
| 33728 | cat >>conftest.$ac_ext <<_ACEOF |
| 33729 | /* end confdefs.h. */ |
| 33730 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33731 | int |
| 33732 | main () |
| 33733 | { |
| 33734 | float f; std::isnan(f); |
| 33735 | ; |
| 33736 | return 0; |
| 33737 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33738 | _ACEOF |
| 33739 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33740 | if { (ac_try="$ac_compile" |
| 33741 | case "(($ac_try" in |
| 33742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33743 | *) ac_try_echo=$ac_try;; |
| 33744 | esac |
| 33745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33746 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33747 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33749 | rm -f conftest.er1 |
| 33750 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33752 | (exit $ac_status); } && |
| 33753 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33754 | { (case "(($ac_try" in |
| 33755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33756 | *) ac_try_echo=$ac_try;; |
| 33757 | esac |
| 33758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33759 | (eval "$ac_try") 2>&5 |
| 33760 | ac_status=$? |
| 33761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33762 | (exit $ac_status); }; } && |
| 33763 | { ac_try='test -s conftest.$ac_objext' |
| 33764 | { (case "(($ac_try" in |
| 33765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33766 | *) ac_try_echo=$ac_try;; |
| 33767 | esac |
| 33768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33769 | (eval "$ac_try") 2>&5 |
| 33770 | ac_status=$? |
| 33771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33772 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33773 | ac_cv_func_std_isnan_in_cmath=yes |
| 33774 | else |
| 33775 | echo "$as_me: failed program was:" >&5 |
| 33776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33777 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33778 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33779 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33780 | |
| 33781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33782 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33783 | ac_cpp='$CPP $CPPFLAGS' |
| 33784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33787 | |
| 33788 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33789 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 33790 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33791 | |
| 33792 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33793 | |
| 33794 | cat >>confdefs.h <<\_ACEOF |
| 33795 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 33796 | _ACEOF |
| 33797 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33798 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33799 | |
| 33800 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33801 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 33802 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33803 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 33804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33805 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33806 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33807 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33808 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33809 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33810 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33811 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33812 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33813 | /* confdefs.h. */ |
| 33814 | _ACEOF |
| 33815 | cat confdefs.h >>conftest.$ac_ext |
| 33816 | cat >>conftest.$ac_ext <<_ACEOF |
| 33817 | /* end confdefs.h. */ |
| 33818 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33819 | int |
| 33820 | main () |
| 33821 | { |
| 33822 | float f; isinf(f); |
| 33823 | ; |
| 33824 | return 0; |
| 33825 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33826 | _ACEOF |
| 33827 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33828 | if { (ac_try="$ac_compile" |
| 33829 | case "(($ac_try" in |
| 33830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33831 | *) ac_try_echo=$ac_try;; |
| 33832 | esac |
| 33833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33834 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33835 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33837 | rm -f conftest.er1 |
| 33838 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33840 | (exit $ac_status); } && |
| 33841 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33842 | { (case "(($ac_try" in |
| 33843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33844 | *) ac_try_echo=$ac_try;; |
| 33845 | esac |
| 33846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33847 | (eval "$ac_try") 2>&5 |
| 33848 | ac_status=$? |
| 33849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33850 | (exit $ac_status); }; } && |
| 33851 | { ac_try='test -s conftest.$ac_objext' |
| 33852 | { (case "(($ac_try" in |
| 33853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33854 | *) ac_try_echo=$ac_try;; |
| 33855 | esac |
| 33856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33857 | (eval "$ac_try") 2>&5 |
| 33858 | ac_status=$? |
| 33859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33860 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33861 | ac_cv_func_isinf_in_math_h=yes |
| 33862 | else |
| 33863 | echo "$as_me: failed program was:" >&5 |
| 33864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33865 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33866 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33867 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33868 | |
| 33869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33870 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33871 | ac_cpp='$CPP $CPPFLAGS' |
| 33872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33875 | |
| 33876 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33877 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 33878 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33879 | |
| 33880 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33881 | |
| 33882 | cat >>confdefs.h <<\_ACEOF |
| 33883 | #define HAVE_ISINF_IN_MATH_H 1 |
| 33884 | _ACEOF |
| 33885 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33886 | fi |
| 33887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33888 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 33889 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33890 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 33891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33892 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33893 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33894 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33895 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33896 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33897 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33898 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33899 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33900 | /* confdefs.h. */ |
| 33901 | _ACEOF |
| 33902 | cat confdefs.h >>conftest.$ac_ext |
| 33903 | cat >>conftest.$ac_ext <<_ACEOF |
| 33904 | /* end confdefs.h. */ |
| 33905 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33906 | int |
| 33907 | main () |
| 33908 | { |
| 33909 | float f; isinf(f); |
| 33910 | ; |
| 33911 | return 0; |
| 33912 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33913 | _ACEOF |
| 33914 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33915 | if { (ac_try="$ac_compile" |
| 33916 | case "(($ac_try" in |
| 33917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33918 | *) ac_try_echo=$ac_try;; |
| 33919 | esac |
| 33920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33921 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33922 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33924 | rm -f conftest.er1 |
| 33925 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33927 | (exit $ac_status); } && |
| 33928 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33929 | { (case "(($ac_try" in |
| 33930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33931 | *) ac_try_echo=$ac_try;; |
| 33932 | esac |
| 33933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33934 | (eval "$ac_try") 2>&5 |
| 33935 | ac_status=$? |
| 33936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33937 | (exit $ac_status); }; } && |
| 33938 | { ac_try='test -s conftest.$ac_objext' |
| 33939 | { (case "(($ac_try" in |
| 33940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33941 | *) ac_try_echo=$ac_try;; |
| 33942 | esac |
| 33943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33944 | (eval "$ac_try") 2>&5 |
| 33945 | ac_status=$? |
| 33946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33947 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33948 | ac_cv_func_isinf_in_cmath=yes |
| 33949 | else |
| 33950 | echo "$as_me: failed program was:" >&5 |
| 33951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33952 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33953 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33954 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33955 | |
| 33956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33957 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33958 | ac_cpp='$CPP $CPPFLAGS' |
| 33959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33962 | |
| 33963 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33964 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 33965 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33966 | |
| 33967 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33968 | |
| 33969 | cat >>confdefs.h <<\_ACEOF |
| 33970 | #define HAVE_ISINF_IN_CMATH 1 |
| 33971 | _ACEOF |
| 33972 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33973 | fi |
| 33974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33975 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 33976 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33977 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 33978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33979 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33980 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33981 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33982 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33983 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33984 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33985 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33986 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33987 | /* confdefs.h. */ |
| 33988 | _ACEOF |
| 33989 | cat confdefs.h >>conftest.$ac_ext |
| 33990 | cat >>conftest.$ac_ext <<_ACEOF |
| 33991 | /* end confdefs.h. */ |
| 33992 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33993 | int |
| 33994 | main () |
| 33995 | { |
| 33996 | float f; std::isinf(f)} |
| 33997 | ; |
| 33998 | return 0; |
| 33999 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34000 | _ACEOF |
| 34001 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34002 | if { (ac_try="$ac_compile" |
| 34003 | case "(($ac_try" in |
| 34004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34005 | *) ac_try_echo=$ac_try;; |
| 34006 | esac |
| 34007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34008 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34009 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34011 | rm -f conftest.er1 |
| 34012 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34014 | (exit $ac_status); } && |
| 34015 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34016 | { (case "(($ac_try" in |
| 34017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34018 | *) ac_try_echo=$ac_try;; |
| 34019 | esac |
| 34020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34021 | (eval "$ac_try") 2>&5 |
| 34022 | ac_status=$? |
| 34023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34024 | (exit $ac_status); }; } && |
| 34025 | { ac_try='test -s conftest.$ac_objext' |
| 34026 | { (case "(($ac_try" in |
| 34027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34028 | *) ac_try_echo=$ac_try;; |
| 34029 | esac |
| 34030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34031 | (eval "$ac_try") 2>&5 |
| 34032 | ac_status=$? |
| 34033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34034 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34035 | ac_cv_func_std_isinf_in_cmath=yes |
| 34036 | else |
| 34037 | echo "$as_me: failed program was:" >&5 |
| 34038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34040 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34041 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34042 | |
| 34043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34044 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34045 | ac_cpp='$CPP $CPPFLAGS' |
| 34046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34049 | |
| 34050 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34051 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 34052 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34053 | |
| 34054 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34055 | |
| 34056 | cat >>confdefs.h <<\_ACEOF |
| 34057 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 34058 | _ACEOF |
| 34059 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34060 | fi |
| 34061 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34062 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 34063 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34064 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 34065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34066 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34067 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34068 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 34069 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34070 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34071 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 34072 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34073 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34074 | /* confdefs.h. */ |
| 34075 | _ACEOF |
| 34076 | cat confdefs.h >>conftest.$ac_ext |
| 34077 | cat >>conftest.$ac_ext <<_ACEOF |
| 34078 | /* end confdefs.h. */ |
| 34079 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34080 | int |
| 34081 | main () |
| 34082 | { |
| 34083 | float f; finite(f); |
| 34084 | ; |
| 34085 | return 0; |
| 34086 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34087 | _ACEOF |
| 34088 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34089 | if { (ac_try="$ac_compile" |
| 34090 | case "(($ac_try" in |
| 34091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34092 | *) ac_try_echo=$ac_try;; |
| 34093 | esac |
| 34094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34095 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34096 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34098 | rm -f conftest.er1 |
| 34099 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34101 | (exit $ac_status); } && |
| 34102 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34103 | { (case "(($ac_try" in |
| 34104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34105 | *) ac_try_echo=$ac_try;; |
| 34106 | esac |
| 34107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34108 | (eval "$ac_try") 2>&5 |
| 34109 | ac_status=$? |
| 34110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34111 | (exit $ac_status); }; } && |
| 34112 | { ac_try='test -s conftest.$ac_objext' |
| 34113 | { (case "(($ac_try" in |
| 34114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34115 | *) ac_try_echo=$ac_try;; |
| 34116 | esac |
| 34117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34118 | (eval "$ac_try") 2>&5 |
| 34119 | ac_status=$? |
| 34120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34121 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34122 | ac_cv_func_finite_in_ieeefp_h=yes |
| 34123 | else |
| 34124 | echo "$as_me: failed program was:" >&5 |
| 34125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34126 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34127 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34128 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34129 | |
| 34130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34131 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34132 | ac_cpp='$CPP $CPPFLAGS' |
| 34133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34136 | |
| 34137 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34138 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 34139 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34140 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34141 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34142 | |
| 34143 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34144 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34145 | _ACEOF |
| 34146 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34147 | fi |
| 34148 | |
| 34149 | |
| 34150 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34151 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34152 | |
| 34153 | |
| 34154 | for ac_header in stdlib.h unistd.h |
| 34155 | do |
| 34156 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34158 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34159 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34160 | 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] | 34161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34162 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34163 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34164 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34165 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34166 | else |
| 34167 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34168 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 34169 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34170 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34171 | /* confdefs.h. */ |
| 34172 | _ACEOF |
| 34173 | cat confdefs.h >>conftest.$ac_ext |
| 34174 | cat >>conftest.$ac_ext <<_ACEOF |
| 34175 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34176 | $ac_includes_default |
| 34177 | #include <$ac_header> |
| 34178 | _ACEOF |
| 34179 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34180 | if { (ac_try="$ac_compile" |
| 34181 | case "(($ac_try" in |
| 34182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34183 | *) ac_try_echo=$ac_try;; |
| 34184 | esac |
| 34185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34186 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34187 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34189 | rm -f conftest.er1 |
| 34190 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34192 | (exit $ac_status); } && |
| 34193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34194 | { (case "(($ac_try" in |
| 34195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34196 | *) ac_try_echo=$ac_try;; |
| 34197 | esac |
| 34198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34199 | (eval "$ac_try") 2>&5 |
| 34200 | ac_status=$? |
| 34201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34202 | (exit $ac_status); }; } && |
| 34203 | { ac_try='test -s conftest.$ac_objext' |
| 34204 | { (case "(($ac_try" in |
| 34205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34206 | *) ac_try_echo=$ac_try;; |
| 34207 | esac |
| 34208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34209 | (eval "$ac_try") 2>&5 |
| 34210 | ac_status=$? |
| 34211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34212 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34213 | ac_header_compiler=yes |
| 34214 | else |
| 34215 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34218 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34219 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34220 | |
| 34221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34222 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 34223 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34224 | |
| 34225 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34226 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 34227 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34228 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34229 | /* confdefs.h. */ |
| 34230 | _ACEOF |
| 34231 | cat confdefs.h >>conftest.$ac_ext |
| 34232 | cat >>conftest.$ac_ext <<_ACEOF |
| 34233 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34234 | #include <$ac_header> |
| 34235 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34236 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 34237 | case "(($ac_try" in |
| 34238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34239 | *) ac_try_echo=$ac_try;; |
| 34240 | esac |
| 34241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34242 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34243 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34244 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34245 | rm -f conftest.er1 |
| 34246 | cat conftest.err >&5 |
| 34247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34248 | (exit $ac_status); } >/dev/null; then |
| 34249 | if test -s conftest.err; then |
| 34250 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 34251 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 34252 | else |
| 34253 | ac_cpp_err= |
| 34254 | fi |
| 34255 | else |
| 34256 | ac_cpp_err=yes |
| 34257 | fi |
| 34258 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34259 | ac_header_preproc=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 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34264 | ac_header_preproc=no |
| 34265 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34266 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34267 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34268 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 34269 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34270 | |
| 34271 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34272 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 34273 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34274 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 34275 | 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] | 34276 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 34277 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 34278 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34279 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34280 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34281 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 34282 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34283 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 34284 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 34285 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 34286 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 34287 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 34288 | 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] | 34289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 34290 | 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] | 34291 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 34292 | 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] | 34293 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34294 | ## ----------------------------------- ## |
| 34295 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 34296 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34297 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34298 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34299 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34300 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34301 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34303 | 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] | 34304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34305 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34306 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34307 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34308 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34310 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34311 | |
| 34312 | fi |
| 34313 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 34314 | cat >>confdefs.h <<_ACEOF |
| 34315 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 34316 | _ACEOF |
| 34317 | |
| 34318 | fi |
| 34319 | |
| 34320 | done |
| 34321 | |
| 34322 | |
| 34323 | for ac_func in getpagesize |
| 34324 | do |
| 34325 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34326 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34327 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34328 | 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] | 34329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34330 | else |
| 34331 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34332 | /* confdefs.h. */ |
| 34333 | _ACEOF |
| 34334 | cat confdefs.h >>conftest.$ac_ext |
| 34335 | cat >>conftest.$ac_ext <<_ACEOF |
| 34336 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34337 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34339 | #define $ac_func innocuous_$ac_func |
| 34340 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34341 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34342 | which can conflict with char $ac_func (); below. |
| 34343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34344 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34345 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34346 | #ifdef __STDC__ |
| 34347 | # include <limits.h> |
| 34348 | #else |
| 34349 | # include <assert.h> |
| 34350 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34351 | |
| 34352 | #undef $ac_func |
| 34353 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34354 | /* Override any GCC internal prototype to avoid an error. |
| 34355 | Use char because int might match the return type of a GCC |
| 34356 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34357 | #ifdef __cplusplus |
| 34358 | extern "C" |
| 34359 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34360 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34361 | /* The GNU C library defines this for functions which it implements |
| 34362 | to always fail with ENOSYS. Some functions are actually named |
| 34363 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34364 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34365 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34366 | #endif |
| 34367 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34368 | int |
| 34369 | main () |
| 34370 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34371 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34372 | ; |
| 34373 | return 0; |
| 34374 | } |
| 34375 | _ACEOF |
| 34376 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34377 | if { (ac_try="$ac_link" |
| 34378 | case "(($ac_try" in |
| 34379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34380 | *) ac_try_echo=$ac_try;; |
| 34381 | esac |
| 34382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34383 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34384 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34386 | rm -f conftest.er1 |
| 34387 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34389 | (exit $ac_status); } && |
| 34390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34391 | { (case "(($ac_try" in |
| 34392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34393 | *) ac_try_echo=$ac_try;; |
| 34394 | esac |
| 34395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34396 | (eval "$ac_try") 2>&5 |
| 34397 | ac_status=$? |
| 34398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34399 | (exit $ac_status); }; } && |
| 34400 | { ac_try='test -s conftest$ac_exeext' |
| 34401 | { (case "(($ac_try" in |
| 34402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34403 | *) ac_try_echo=$ac_try;; |
| 34404 | esac |
| 34405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34406 | (eval "$ac_try") 2>&5 |
| 34407 | ac_status=$? |
| 34408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34409 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34410 | eval "$as_ac_var=yes" |
| 34411 | else |
| 34412 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34415 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34416 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34417 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34418 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34419 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34420 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34421 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34422 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34423 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34424 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34425 | cat >>confdefs.h <<_ACEOF |
| 34426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34427 | _ACEOF |
| 34428 | |
| 34429 | fi |
| 34430 | done |
| 34431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34432 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 34433 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34434 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 34435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34436 | else |
| 34437 | if test "$cross_compiling" = yes; then |
| 34438 | ac_cv_func_mmap_fixed_mapped=no |
| 34439 | else |
| 34440 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34441 | /* confdefs.h. */ |
| 34442 | _ACEOF |
| 34443 | cat confdefs.h >>conftest.$ac_ext |
| 34444 | cat >>conftest.$ac_ext <<_ACEOF |
| 34445 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34446 | $ac_includes_default |
| 34447 | /* malloc might have been renamed as rpl_malloc. */ |
| 34448 | #undef malloc |
| 34449 | |
| 34450 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 34451 | Here is a matrix of mmap possibilities: |
| 34452 | mmap private not fixed |
| 34453 | mmap private fixed at somewhere currently unmapped |
| 34454 | mmap private fixed at somewhere already mapped |
| 34455 | mmap shared not fixed |
| 34456 | mmap shared fixed at somewhere currently unmapped |
| 34457 | mmap shared fixed at somewhere already mapped |
| 34458 | For private mappings, we should verify that changes cannot be read() |
| 34459 | back from the file, nor mmap's back from the file at a different |
| 34460 | address. (There have been systems where private was not correctly |
| 34461 | implemented like the infamous i386 svr4.0, and systems where the |
| 34462 | VM page cache was not coherent with the file system buffer cache |
| 34463 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 34464 | For shared mappings, we should conversely verify that changes get |
| 34465 | propagated back to all the places they're supposed to be. |
| 34466 | |
| 34467 | Grep wants private fixed already mapped. |
| 34468 | The main things grep needs to know about mmap are: |
| 34469 | * does it exist and is it safe to write into the mmap'd area |
| 34470 | * how to use it (BSD variants) */ |
| 34471 | |
| 34472 | #include <fcntl.h> |
| 34473 | #include <sys/mman.h> |
| 34474 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34475 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34476 | char *malloc (); |
| 34477 | #endif |
| 34478 | |
| 34479 | /* This mess was copied from the GNU getpagesize.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34480 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34481 | /* Assume that all systems that can run configure have sys/param.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34482 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34483 | # define HAVE_SYS_PARAM_H 1 |
| 34484 | # endif |
| 34485 | |
| 34486 | # ifdef _SC_PAGESIZE |
| 34487 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 34488 | # else /* no _SC_PAGESIZE */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34489 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34490 | # include <sys/param.h> |
| 34491 | # ifdef EXEC_PAGESIZE |
| 34492 | # define getpagesize() EXEC_PAGESIZE |
| 34493 | # else /* no EXEC_PAGESIZE */ |
| 34494 | # ifdef NBPG |
| 34495 | # define getpagesize() NBPG * CLSIZE |
| 34496 | # ifndef CLSIZE |
| 34497 | # define CLSIZE 1 |
| 34498 | # endif /* no CLSIZE */ |
| 34499 | # else /* no NBPG */ |
| 34500 | # ifdef NBPC |
| 34501 | # define getpagesize() NBPC |
| 34502 | # else /* no NBPC */ |
| 34503 | # ifdef PAGESIZE |
| 34504 | # define getpagesize() PAGESIZE |
| 34505 | # endif /* PAGESIZE */ |
| 34506 | # endif /* no NBPC */ |
| 34507 | # endif /* no NBPG */ |
| 34508 | # endif /* no EXEC_PAGESIZE */ |
| 34509 | # else /* no HAVE_SYS_PARAM_H */ |
| 34510 | # define getpagesize() 8192 /* punt totally */ |
| 34511 | # endif /* no HAVE_SYS_PARAM_H */ |
| 34512 | # endif /* no _SC_PAGESIZE */ |
| 34513 | |
| 34514 | #endif /* no HAVE_GETPAGESIZE */ |
| 34515 | |
| 34516 | int |
| 34517 | main () |
| 34518 | { |
| 34519 | char *data, *data2, *data3; |
| 34520 | int i, pagesize; |
| 34521 | int fd; |
| 34522 | |
| 34523 | pagesize = getpagesize (); |
| 34524 | |
| 34525 | /* First, make a file with some known garbage in it. */ |
| 34526 | data = (char *) malloc (pagesize); |
| 34527 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34528 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34529 | for (i = 0; i < pagesize; ++i) |
| 34530 | *(data + i) = rand (); |
| 34531 | umask (0); |
| 34532 | fd = creat ("conftest.mmap", 0600); |
| 34533 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34534 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34535 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34536 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34537 | close (fd); |
| 34538 | |
| 34539 | /* Next, try to mmap the file at a fixed address which already has |
| 34540 | something else allocated at it. If we can, also make sure that |
| 34541 | we see the same garbage. */ |
| 34542 | fd = open ("conftest.mmap", O_RDWR); |
| 34543 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34544 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34545 | data2 = (char *) malloc (2 * pagesize); |
| 34546 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34547 | return 1; |
| 34548 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34549 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34550 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34551 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34552 | for (i = 0; i < pagesize; ++i) |
| 34553 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34554 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34555 | |
| 34556 | /* Finally, make sure that changes to the mapped area do not |
| 34557 | percolate back to the file as seen by read(). (This is a bug on |
| 34558 | some variants of i386 svr4.0.) */ |
| 34559 | for (i = 0; i < pagesize; ++i) |
| 34560 | *(data2 + i) = *(data2 + i) + 1; |
| 34561 | data3 = (char *) malloc (pagesize); |
| 34562 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34563 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34564 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34565 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34566 | for (i = 0; i < pagesize; ++i) |
| 34567 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34568 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34569 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34570 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34571 | } |
| 34572 | _ACEOF |
| 34573 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34574 | if { (ac_try="$ac_link" |
| 34575 | case "(($ac_try" in |
| 34576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34577 | *) ac_try_echo=$ac_try;; |
| 34578 | esac |
| 34579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34580 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34581 | ac_status=$? |
| 34582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34583 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34584 | { (case "(($ac_try" in |
| 34585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34586 | *) ac_try_echo=$ac_try;; |
| 34587 | esac |
| 34588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34589 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34590 | ac_status=$? |
| 34591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34592 | (exit $ac_status); }; }; then |
| 34593 | ac_cv_func_mmap_fixed_mapped=yes |
| 34594 | else |
| 34595 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34596 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34598 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34599 | ( exit $ac_status ) |
| 34600 | ac_cv_func_mmap_fixed_mapped=no |
| 34601 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34602 | 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] | 34603 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34604 | |
| 34605 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34606 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34607 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 34608 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34609 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 34610 | |
| 34611 | cat >>confdefs.h <<\_ACEOF |
| 34612 | #define HAVE_MMAP 1 |
| 34613 | _ACEOF |
| 34614 | |
| 34615 | fi |
| 34616 | rm -f conftest.mmap |
| 34617 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34618 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34619 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34620 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 34621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34622 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34623 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34624 | ac_cpp='$CPP $CPPFLAGS' |
| 34625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34628 | |
| 34629 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34630 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34631 | else |
| 34632 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34633 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34634 | /* confdefs.h. */ |
| 34635 | _ACEOF |
| 34636 | cat confdefs.h >>conftest.$ac_ext |
| 34637 | cat >>conftest.$ac_ext <<_ACEOF |
| 34638 | /* end confdefs.h. */ |
| 34639 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34640 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34641 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34642 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34643 | |
| 34644 | int |
| 34645 | main () |
| 34646 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34647 | |
| 34648 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34649 | fd = creat ("foo",0777); |
| 34650 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 34651 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34652 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34653 | ; |
| 34654 | return 0; |
| 34655 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34656 | _ACEOF |
| 34657 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34658 | if { (ac_try="$ac_link" |
| 34659 | case "(($ac_try" in |
| 34660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34661 | *) ac_try_echo=$ac_try;; |
| 34662 | esac |
| 34663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34664 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34665 | ac_status=$? |
| 34666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34667 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34668 | { (case "(($ac_try" in |
| 34669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34670 | *) ac_try_echo=$ac_try;; |
| 34671 | esac |
| 34672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34673 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34674 | ac_status=$? |
| 34675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34676 | (exit $ac_status); }; }; then |
| 34677 | ac_cv_func_mmap_file=yes |
| 34678 | else |
| 34679 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34680 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34682 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34683 | ( exit $ac_status ) |
| 34684 | ac_cv_func_mmap_file=no |
| 34685 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34686 | 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] | 34687 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34688 | |
| 34689 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34690 | ac_ext=c |
| 34691 | ac_cpp='$CPP $CPPFLAGS' |
| 34692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34695 | |
| 34696 | |
| 34697 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34698 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 34699 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34700 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34701 | |
| 34702 | cat >>confdefs.h <<\_ACEOF |
| 34703 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34704 | _ACEOF |
| 34705 | |
| 34706 | MMAP_FILE=yes |
| 34707 | |
| 34708 | fi |
| 34709 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34710 | { 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] | 34711 | 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] | 34712 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 34713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34714 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 34715 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34716 | ac_cv_need_dev_zero_for_mmap=yes |
| 34717 | else |
| 34718 | ac_cv_need_dev_zero_for_mmap=no |
| 34719 | fi |
| 34720 | |
| 34721 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34722 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 34723 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34724 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 34725 | |
| 34726 | cat >>confdefs.h <<\_ACEOF |
| 34727 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 34728 | _ACEOF |
| 34729 | |
| 34730 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34731 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34732 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 34733 | then |
| 34734 | { 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] | 34735 | 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] | 34736 | fi |
| 34737 | if test "$ac_cv_func_mmap_file" = "no" |
| 34738 | then |
| 34739 | { 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] | 34740 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34741 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 34742 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34743 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34744 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34745 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34746 | cat >conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34747 | /* confdefs.h. */ |
| 34748 | _ACEOF |
| 34749 | cat confdefs.h >>conftest.$ac_ext |
| 34750 | cat >>conftest.$ac_ext <<_ACEOF |
| 34751 | /* end confdefs.h. */ |
| 34752 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34753 | volatile unsigned long val = 1; |
| 34754 | __sync_synchronize(); |
| 34755 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 34756 | __sync_add_and_fetch(&val, 1); |
| 34757 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34758 | return 0; |
| 34759 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34760 | |
| 34761 | _ACEOF |
| 34762 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34763 | if { (ac_try="$ac_link" |
| 34764 | case "(($ac_try" in |
| 34765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34766 | *) ac_try_echo=$ac_try;; |
| 34767 | esac |
| 34768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34769 | (eval "$ac_link") 2>conftest.er1 |
| 34770 | ac_status=$? |
| 34771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34772 | rm -f conftest.er1 |
| 34773 | cat conftest.err >&5 |
| 34774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34775 | (exit $ac_status); } && |
| 34776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34777 | { (case "(($ac_try" in |
| 34778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34779 | *) ac_try_echo=$ac_try;; |
| 34780 | esac |
| 34781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34782 | (eval "$ac_try") 2>&5 |
| 34783 | ac_status=$? |
| 34784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34785 | (exit $ac_status); }; } && |
| 34786 | { ac_try='test -s conftest$ac_exeext' |
| 34787 | { (case "(($ac_try" in |
| 34788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34789 | *) ac_try_echo=$ac_try;; |
| 34790 | esac |
| 34791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34792 | (eval "$ac_try") 2>&5 |
| 34793 | ac_status=$? |
| 34794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34795 | (exit $ac_status); }; }; then |
| 34796 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 34797 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34798 | |
| 34799 | cat >>confdefs.h <<\_ACEOF |
| 34800 | #define LLVM_MULTITHREADED 1 |
| 34801 | _ACEOF |
| 34802 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34803 | else |
| 34804 | echo "$as_me: failed program was:" >&5 |
| 34805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34806 | |
| 34807 | { echo "$as_me:$LINENO: result: no" >&5 |
| 34808 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34809 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34810 | cat >>confdefs.h <<\_ACEOF |
| 34811 | #define LLVM_MULTITHREADED 0 |
| 34812 | _ACEOF |
| 34813 | |
| 34814 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 34815 | 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] | 34816 | fi |
| 34817 | |
| 34818 | rm -f core conftest.err conftest.$ac_objext \ |
| 34819 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34820 | |
| 34821 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34822 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34823 | |
| 34824 | for ac_func in __dso_handle |
| 34825 | do |
| 34826 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 34827 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34828 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34829 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34831 | else |
| 34832 | cat >conftest.$ac_ext <<_ACEOF |
| 34833 | /* confdefs.h. */ |
| 34834 | _ACEOF |
| 34835 | cat confdefs.h >>conftest.$ac_ext |
| 34836 | cat >>conftest.$ac_ext <<_ACEOF |
| 34837 | /* end confdefs.h. */ |
| 34838 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34839 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34840 | #define $ac_func innocuous_$ac_func |
| 34841 | |
| 34842 | /* System header to define __stub macros and hopefully few prototypes, |
| 34843 | which can conflict with char $ac_func (); below. |
| 34844 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34845 | <limits.h> exists even on freestanding compilers. */ |
| 34846 | |
| 34847 | #ifdef __STDC__ |
| 34848 | # include <limits.h> |
| 34849 | #else |
| 34850 | # include <assert.h> |
| 34851 | #endif |
| 34852 | |
| 34853 | #undef $ac_func |
| 34854 | |
| 34855 | /* Override any GCC internal prototype to avoid an error. |
| 34856 | Use char because int might match the return type of a GCC |
| 34857 | builtin and then its argument prototype would still apply. */ |
| 34858 | #ifdef __cplusplus |
| 34859 | extern "C" |
| 34860 | #endif |
| 34861 | char $ac_func (); |
| 34862 | /* The GNU C library defines this for functions which it implements |
| 34863 | to always fail with ENOSYS. Some functions are actually named |
| 34864 | something starting with __ and the normal name is an alias. */ |
| 34865 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 34866 | choke me |
| 34867 | #endif |
| 34868 | |
| 34869 | int |
| 34870 | main () |
| 34871 | { |
| 34872 | return $ac_func (); |
| 34873 | ; |
| 34874 | return 0; |
| 34875 | } |
| 34876 | _ACEOF |
| 34877 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34878 | if { (ac_try="$ac_link" |
| 34879 | case "(($ac_try" in |
| 34880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34881 | *) ac_try_echo=$ac_try;; |
| 34882 | esac |
| 34883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34884 | (eval "$ac_link") 2>conftest.er1 |
| 34885 | ac_status=$? |
| 34886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34887 | rm -f conftest.er1 |
| 34888 | cat conftest.err >&5 |
| 34889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34890 | (exit $ac_status); } && |
| 34891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34892 | { (case "(($ac_try" in |
| 34893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34894 | *) ac_try_echo=$ac_try;; |
| 34895 | esac |
| 34896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34897 | (eval "$ac_try") 2>&5 |
| 34898 | ac_status=$? |
| 34899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34900 | (exit $ac_status); }; } && |
| 34901 | { ac_try='test -s conftest$ac_exeext' |
| 34902 | { (case "(($ac_try" in |
| 34903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34904 | *) ac_try_echo=$ac_try;; |
| 34905 | esac |
| 34906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34907 | (eval "$ac_try") 2>&5 |
| 34908 | ac_status=$? |
| 34909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34910 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34911 | eval "$as_ac_var=yes" |
| 34912 | else |
| 34913 | echo "$as_me: failed program was:" >&5 |
| 34914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34915 | |
| 34916 | eval "$as_ac_var=no" |
| 34917 | fi |
| 34918 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34919 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34920 | conftest$ac_exeext conftest.$ac_ext |
| 34921 | fi |
| 34922 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34923 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34924 | echo "${ECHO_T}$ac_res" >&6; } |
| 34925 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34926 | cat >>confdefs.h <<_ACEOF |
| 34927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34928 | _ACEOF |
| 34929 | |
| 34930 | fi |
| 34931 | done |
| 34932 | |
| 34933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34934 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 34935 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34936 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 34937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34938 | else |
| 34939 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34940 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34941 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 34942 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 34943 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34944 | if test $? -eq 0 ; then |
| 34945 | llvm_cv_llvmgcc_sanity="yes" |
| 34946 | fi |
| 34947 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34948 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34949 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34950 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 34951 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34952 | |
| 34953 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34954 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 34955 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34956 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34957 | LLVMCC1=$llvmcc1path |
| 34958 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34959 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34960 | LLVMCC1PLUS=$llvmcc1pluspath |
| 34961 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34962 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 34963 | LLVMGCCDIR=$llvmgccdir |
| 34964 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 34965 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 34966 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 34967 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 34968 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 34969 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 34970 | LLVMGCC_VERSION=$llvmgccversion |
| 34971 | |
| 34972 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 34973 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 34974 | 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] | 34975 | LLVMGCC_LANGS=$llvmgcclangs |
| 34976 | |
| 34977 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 34978 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34979 | fi |
| 34980 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34981 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 34982 | |
| 34983 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34984 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34985 | # information into substitutions that will end up in Makefile.config.in |
| 34986 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 34987 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 34988 | prefix="/usr/local" |
| 34989 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34990 | eval LLVM_PREFIX="${prefix}"; |
| 34991 | eval LLVM_BINDIR="${prefix}/bin"; |
| 34992 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34993 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 34994 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 34995 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34996 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 34997 | eval LLVM_INFODIR="${prefix}/info"; |
| 34998 | eval LLVM_MANDIR="${prefix}/man"; |
| 34999 | LLVM_CONFIGTIME=`date` |
| 35000 | |
| 35001 | |
| 35002 | |
| 35003 | |
| 35004 | |
| 35005 | |
| 35006 | |
| 35007 | |
| 35008 | |
| 35009 | |
| 35010 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35011 | # Place the various directores into the config.h file as #defines so that we |
| 35012 | # can know about the installation paths within LLVM. |
| 35013 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35014 | cat >>confdefs.h <<_ACEOF |
| 35015 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 35016 | _ACEOF |
| 35017 | |
| 35018 | |
| 35019 | cat >>confdefs.h <<_ACEOF |
| 35020 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 35021 | _ACEOF |
| 35022 | |
| 35023 | |
| 35024 | cat >>confdefs.h <<_ACEOF |
| 35025 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 35026 | _ACEOF |
| 35027 | |
| 35028 | |
| 35029 | cat >>confdefs.h <<_ACEOF |
| 35030 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 35031 | _ACEOF |
| 35032 | |
| 35033 | |
| 35034 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 35035 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35036 | _ACEOF |
| 35037 | |
| 35038 | |
| 35039 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 35040 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35041 | _ACEOF |
| 35042 | |
| 35043 | |
| 35044 | cat >>confdefs.h <<_ACEOF |
| 35045 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 35046 | _ACEOF |
| 35047 | |
| 35048 | |
| 35049 | cat >>confdefs.h <<_ACEOF |
| 35050 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 35051 | _ACEOF |
| 35052 | |
| 35053 | |
| 35054 | cat >>confdefs.h <<_ACEOF |
| 35055 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 35056 | _ACEOF |
| 35057 | |
| 35058 | |
| 35059 | cat >>confdefs.h <<_ACEOF |
| 35060 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 35061 | _ACEOF |
| 35062 | |
| 35063 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 35064 | cat >>confdefs.h <<_ACEOF |
| 35065 | #define LLVM_HOSTTRIPLE "$host" |
| 35066 | _ACEOF |
| 35067 | |
| 35068 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35069 | # Determine which bindings to build. |
| 35070 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 35071 | BINDINGS_TO_BUILD="" |
| 35072 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 35073 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 35074 | fi |
| 35075 | fi |
| 35076 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 35077 | |
| 35078 | |
| 35079 | # This isn't really configurey, but it avoids having to repeat the list in |
| 35080 | # other files. |
| 35081 | ALL_BINDINGS=ocaml |
| 35082 | |
| 35083 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35084 | # Do any work necessary to ensure that bindings have what they need. |
| 35085 | binding_prereqs_failed=0 |
| 35086 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 35087 | case "$a_binding" in |
| 35088 | ocaml) |
| 35089 | if test "x$OCAMLC" = x ; then |
| 35090 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 35091 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 35092 | binding_prereqs_failed=1 |
| 35093 | fi |
| 35094 | if test "x$OCAMLDEP" = x ; then |
| 35095 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 35096 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 35097 | binding_prereqs_failed=1 |
| 35098 | fi |
| 35099 | if test "x$OCAMLOPT" = x ; then |
| 35100 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 35101 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 35102 | fi |
| 35103 | if test "x$with_ocaml_libdir" != xauto ; then |
| 35104 | OCAML_LIBDIR=$with_ocaml_libdir |
| 35105 | |
| 35106 | else |
| 35107 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 35108 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 35109 | then |
| 35110 | # ocaml stdlib is beneath our prefix; use stdlib |
| 35111 | OCAML_LIBDIR=$ocaml_stdlib |
| 35112 | |
| 35113 | else |
| 35114 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 35115 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 35116 | |
| 35117 | fi |
| 35118 | fi |
| 35119 | ;; |
| 35120 | esac |
| 35121 | done |
| 35122 | if test "$binding_prereqs_failed" = 1 ; then |
| 35123 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 35124 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 35125 | { (exit 1); exit 1; }; } |
| 35126 | fi |
| 35127 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35128 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 35129 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 35130 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 35131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 35132 | else |
| 35133 | ac_ext=cpp |
| 35134 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 35135 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35136 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35137 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 35138 | |
| 35139 | oldcxxflags="$CXXFLAGS" |
| 35140 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 35141 | cat >conftest.$ac_ext <<_ACEOF |
| 35142 | /* confdefs.h. */ |
| 35143 | _ACEOF |
| 35144 | cat confdefs.h >>conftest.$ac_ext |
| 35145 | cat >>conftest.$ac_ext <<_ACEOF |
| 35146 | /* end confdefs.h. */ |
| 35147 | |
| 35148 | int |
| 35149 | main () |
| 35150 | { |
| 35151 | |
| 35152 | ; |
| 35153 | return 0; |
| 35154 | } |
| 35155 | _ACEOF |
| 35156 | rm -f conftest.$ac_objext |
| 35157 | if { (ac_try="$ac_compile" |
| 35158 | case "(($ac_try" in |
| 35159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35160 | *) ac_try_echo=$ac_try;; |
| 35161 | esac |
| 35162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35163 | (eval "$ac_compile") 2>conftest.er1 |
| 35164 | ac_status=$? |
| 35165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35166 | rm -f conftest.er1 |
| 35167 | cat conftest.err >&5 |
| 35168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35169 | (exit $ac_status); } && |
| 35170 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 35171 | { (case "(($ac_try" in |
| 35172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35173 | *) ac_try_echo=$ac_try;; |
| 35174 | esac |
| 35175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35176 | (eval "$ac_try") 2>&5 |
| 35177 | ac_status=$? |
| 35178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35179 | (exit $ac_status); }; } && |
| 35180 | { ac_try='test -s conftest.$ac_objext' |
| 35181 | { (case "(($ac_try" in |
| 35182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35183 | *) ac_try_echo=$ac_try;; |
| 35184 | esac |
| 35185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35186 | (eval "$ac_try") 2>&5 |
| 35187 | ac_status=$? |
| 35188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35189 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35190 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 35191 | else |
| 35192 | echo "$as_me: failed program was:" >&5 |
| 35193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35194 | |
| 35195 | llvm_cv_cxx_visibility_inlines_hidden=no |
| 35196 | fi |
| 35197 | |
| 35198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35199 | CXXFLAGS="$oldcxxflags" |
| 35200 | ac_ext=c |
| 35201 | ac_cpp='$CPP $CPPFLAGS' |
| 35202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 35205 | |
| 35206 | |
| 35207 | fi |
| 35208 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 35209 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
| 35210 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 35211 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 35212 | |
| 35213 | else |
| 35214 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 35215 | |
| 35216 | fi |
| 35217 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35218 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 35219 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 35220 | RPATH="-Wl,-R" |
| 35221 | else |
| 35222 | RPATH="-Wl,-rpath" |
| 35223 | fi |
| 35224 | |
| 35225 | |
| 35226 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 35227 | RDYNAMIC="-Wl,-export-dynamic" |
| 35228 | else |
| 35229 | RDYNAMIC="" |
| 35230 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 35231 | |
| 35232 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35234 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35235 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 35236 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 35237 | |
| 35238 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 35239 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 35240 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 35241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35242 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35243 | |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 35244 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35245 | |
| 35246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35247 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35248 | |
| 35249 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35250 | ac_config_files="$ac_config_files llvm.spec" |
| 35251 | |
| 35252 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35253 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35254 | |
| 35255 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35256 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 35257 | |
| 35258 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35259 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 35260 | |
| 35261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35262 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35264 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35265 | |
| 35266 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35267 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35268 | |
| 35269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35270 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35271 | |
| 35272 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35273 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35274 | |
| 35275 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35276 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 35277 | |
| 35278 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35279 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35280 | |
| 35281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35282 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35283 | |
| 35284 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35285 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 35286 | |
| 35287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35288 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35289 | |
| 35290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35291 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35292 | |
| 35293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35294 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35295 | |
| 35296 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35297 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 35298 | |
| 35299 | |
| 35300 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 35301 | |
| 35302 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35303 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35304 | cat >confcache <<\_ACEOF |
| 35305 | # This file is a shell script that caches the results of configure |
| 35306 | # tests run on this system so they can be shared between configure |
| 35307 | # scripts and configure runs, see configure's option --config-cache. |
| 35308 | # It is not useful on other systems. If it contains results you don't |
| 35309 | # want to keep, you may remove or edit it. |
| 35310 | # |
| 35311 | # config.status only pays attention to the cache file if you give it |
| 35312 | # the --recheck option to rerun configure. |
| 35313 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35314 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35315 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 35316 | # following values. |
| 35317 | |
| 35318 | _ACEOF |
| 35319 | |
| 35320 | # The following way of writing the cache mishandles newlines in values, |
| 35321 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35322 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35323 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 35324 | # 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] | 35325 | ( |
| 35326 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 35327 | eval ac_val=\$$ac_var |
| 35328 | case $ac_val in #( |
| 35329 | *${as_nl}*) |
| 35330 | case $ac_var in #( |
| 35331 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 35332 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 35333 | esac |
| 35334 | case $ac_var in #( |
| 35335 | _ | IFS | as_nl) ;; #( |
| 35336 | *) $as_unset $ac_var ;; |
| 35337 | esac ;; |
| 35338 | esac |
| 35339 | done |
| 35340 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35341 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35342 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 35343 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35344 | # `set' does not quote correctly, so add quotes (double-quote |
| 35345 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 35346 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35347 | "s/'/'\\\\''/g; |
| 35348 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35349 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35350 | *) |
| 35351 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35352 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35353 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35354 | esac | |
| 35355 | sort |
| 35356 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35357 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35358 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35359 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35360 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35361 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 35362 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35363 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 35364 | :end' >>confcache |
| 35365 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 35366 | if test -w "$cache_file"; then |
| 35367 | test "x$cache_file" != "x/dev/null" && |
| 35368 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 35369 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35370 | cat confcache >$cache_file |
| 35371 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35372 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 35373 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35374 | fi |
| 35375 | fi |
| 35376 | rm -f confcache |
| 35377 | |
| 35378 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 35379 | # Let make expand exec_prefix. |
| 35380 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 35381 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35382 | DEFS=-DHAVE_CONFIG_H |
| 35383 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35384 | ac_libobjs= |
| 35385 | ac_ltlibobjs= |
| 35386 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 35387 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35388 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 35389 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 35390 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 35391 | # will be set to the directory where LIBOBJS objects are built. |
| 35392 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 35393 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35394 | done |
| 35395 | LIBOBJS=$ac_libobjs |
| 35396 | |
| 35397 | LTLIBOBJS=$ac_ltlibobjs |
| 35398 | |
| 35399 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35400 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 35401 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35402 | Usually this means the macro was only invoked conditionally." >&5 |
| 35403 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35404 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35405 | { (exit 1); exit 1; }; } |
| 35406 | fi |
| 35407 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 35408 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35409 | Usually this means the macro was only invoked conditionally." >&5 |
| 35410 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35411 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35412 | { (exit 1); exit 1; }; } |
| 35413 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35414 | |
| 35415 | : ${CONFIG_STATUS=./config.status} |
| 35416 | ac_clean_files_save=$ac_clean_files |
| 35417 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 35418 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 35419 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 35420 | cat >$CONFIG_STATUS <<_ACEOF |
| 35421 | #! $SHELL |
| 35422 | # Generated by $as_me. |
| 35423 | # Run this file to recreate the current configuration. |
| 35424 | # Compiler output produced by configure, useful for debugging |
| 35425 | # configure, is in config.log if it exists. |
| 35426 | |
| 35427 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35428 | ac_cs_recheck=false |
| 35429 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35430 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 35431 | _ACEOF |
| 35432 | |
| 35433 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35434 | ## --------------------- ## |
| 35435 | ## M4sh Initialization. ## |
| 35436 | ## --------------------- ## |
| 35437 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35438 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35439 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 35440 | emulate sh |
| 35441 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35442 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 35443 | # is contrary to our usage. Disable this feature. |
| 35444 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35445 | setopt NO_GLOB_SUBST |
| 35446 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35447 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35448 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35449 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 35450 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35451 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35453 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35454 | # Avoid depending upon Character Ranges. |
| 35455 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35456 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 35457 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35458 | as_cr_digits='0123456789' |
| 35459 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 35460 | |
| 35461 | # The user is always right. |
| 35462 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35463 | echo "#! /bin/sh" >conf$$.sh |
| 35464 | echo "exit 0" >>conf$$.sh |
| 35465 | chmod +x conf$$.sh |
| 35466 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35467 | PATH_SEPARATOR=';' |
| 35468 | else |
| 35469 | PATH_SEPARATOR=: |
| 35470 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35471 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35472 | fi |
| 35473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35474 | # Support unset when possible. |
| 35475 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 35476 | as_unset=unset |
| 35477 | else |
| 35478 | as_unset=false |
| 35479 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35481 | |
| 35482 | # IFS |
| 35483 | # We need space, tab and new line, in precisely that order. Quoting is |
| 35484 | # there to prevent editors from complaining about space-tab. |
| 35485 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 35486 | # splitting by setting IFS to empty value.) |
| 35487 | as_nl=' |
| 35488 | ' |
| 35489 | IFS=" "" $as_nl" |
| 35490 | |
| 35491 | # Find who we are. Look in the path if we contain no directory separator. |
| 35492 | case $0 in |
| 35493 | *[\\/]* ) as_myself=$0 ;; |
| 35494 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35495 | for as_dir in $PATH |
| 35496 | do |
| 35497 | IFS=$as_save_IFS |
| 35498 | test -z "$as_dir" && as_dir=. |
| 35499 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 35500 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35501 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35503 | ;; |
| 35504 | esac |
| 35505 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 35506 | # in which case we are not to be found in the path. |
| 35507 | if test "x$as_myself" = x; then |
| 35508 | as_myself=$0 |
| 35509 | fi |
| 35510 | if test ! -f "$as_myself"; then |
| 35511 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 35512 | { (exit 1); exit 1; } |
| 35513 | fi |
| 35514 | |
| 35515 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35516 | for as_var in ENV MAIL MAILPATH |
| 35517 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35518 | done |
| 35519 | PS1='$ ' |
| 35520 | PS2='> ' |
| 35521 | PS4='+ ' |
| 35522 | |
| 35523 | # NLS nuisances. |
| 35524 | for as_var in \ |
| 35525 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 35526 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 35527 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35528 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35529 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 35530 | eval $as_var=C; export $as_var |
| 35531 | else |
| 35532 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35533 | fi |
| 35534 | done |
| 35535 | |
| 35536 | # Required to use basename. |
| 35537 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35538 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 35539 | as_expr=expr |
| 35540 | else |
| 35541 | as_expr=false |
| 35542 | fi |
| 35543 | |
| 35544 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 35545 | as_basename=basename |
| 35546 | else |
| 35547 | as_basename=false |
| 35548 | fi |
| 35549 | |
| 35550 | |
| 35551 | # Name of the executable. |
| 35552 | as_me=`$as_basename -- "$0" || |
| 35553 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 35554 | X"$0" : 'X\(//\)$' \| \ |
| 35555 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 35556 | echo X/"$0" | |
| 35557 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 35558 | s//\1/ |
| 35559 | q |
| 35560 | } |
| 35561 | /^X\/\(\/\/\)$/{ |
| 35562 | s//\1/ |
| 35563 | q |
| 35564 | } |
| 35565 | /^X\/\(\/\).*/{ |
| 35566 | s//\1/ |
| 35567 | q |
| 35568 | } |
| 35569 | s/.*/./; q'` |
| 35570 | |
| 35571 | # CDPATH. |
| 35572 | $as_unset CDPATH |
| 35573 | |
| 35574 | |
| 35575 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35576 | as_lineno_1=$LINENO |
| 35577 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35578 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35579 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35580 | |
| 35581 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 35582 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35583 | # line-number line after each line using $LINENO; the second 'sed' |
| 35584 | # does the real work. The second script uses 'N' to pair each |
| 35585 | # line-number line with the line containing $LINENO, and appends |
| 35586 | # trailing '-' during substitution so that $LINENO is not a special |
| 35587 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35588 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35589 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 35590 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 35591 | sed -n ' |
| 35592 | p |
| 35593 | /[$]LINENO/= |
| 35594 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35595 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35596 | s/[$]LINENO.*/&-/ |
| 35597 | t lineno |
| 35598 | b |
| 35599 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35600 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35601 | :loop |
| 35602 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35603 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35604 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35605 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35606 | chmod +x "$as_me.lineno" || |
| 35607 | { 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] | 35608 | { (exit 1); exit 1; }; } |
| 35609 | |
| 35610 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 35611 | # (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] | 35612 | # original and so on. Autoconf is especially sensitive to this). |
| 35613 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35614 | # Exit status is that of the last command. |
| 35615 | exit |
| 35616 | } |
| 35617 | |
| 35618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35619 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 35620 | as_dirname=dirname |
| 35621 | else |
| 35622 | as_dirname=false |
| 35623 | fi |
| 35624 | |
| 35625 | ECHO_C= ECHO_N= ECHO_T= |
| 35626 | case `echo -n x` in |
| 35627 | -n*) |
| 35628 | case `echo 'x\c'` in |
| 35629 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 35630 | *) ECHO_C='\c';; |
| 35631 | esac;; |
| 35632 | *) |
| 35633 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35634 | esac |
| 35635 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35636 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35637 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35638 | as_expr=expr |
| 35639 | else |
| 35640 | as_expr=false |
| 35641 | fi |
| 35642 | |
| 35643 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35644 | if test -d conf$$.dir; then |
| 35645 | rm -f conf$$.dir/conf$$.file |
| 35646 | else |
| 35647 | rm -f conf$$.dir |
| 35648 | mkdir conf$$.dir |
| 35649 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35650 | echo >conf$$.file |
| 35651 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35652 | as_ln_s='ln -s' |
| 35653 | # ... but there are two gotchas: |
| 35654 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 35655 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 35656 | # In both cases, we have to default to `cp -p'. |
| 35657 | 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] | 35658 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35659 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 35660 | as_ln_s=ln |
| 35661 | else |
| 35662 | as_ln_s='cp -p' |
| 35663 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35664 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 35665 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35666 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35667 | if mkdir -p . 2>/dev/null; then |
| 35668 | as_mkdir_p=: |
| 35669 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35670 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35671 | as_mkdir_p=false |
| 35672 | fi |
| 35673 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35674 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 35675 | # systems may use methods other than mode bits to determine executability. |
| 35676 | cat >conf$$.file <<_ASEOF |
| 35677 | #! /bin/sh |
| 35678 | exit 0 |
| 35679 | _ASEOF |
| 35680 | chmod +x conf$$.file |
| 35681 | if test -x conf$$.file >/dev/null 2>&1; then |
| 35682 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35683 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35684 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35685 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35686 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35687 | |
| 35688 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35689 | 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] | 35690 | |
| 35691 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35692 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35693 | |
| 35694 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35695 | exec 6>&1 |
| 35696 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35697 | # 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] | 35698 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35699 | # values after options handling. |
| 35700 | ac_log=" |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 35701 | This file was extended by llvm $as_me 2.6svn, which was |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35702 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35703 | |
| 35704 | CONFIG_FILES = $CONFIG_FILES |
| 35705 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 35706 | CONFIG_LINKS = $CONFIG_LINKS |
| 35707 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 35708 | $ $0 $@ |
| 35709 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35710 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 35711 | " |
| 35712 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35713 | _ACEOF |
| 35714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35715 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35716 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35717 | config_files="$ac_config_files" |
| 35718 | config_headers="$ac_config_headers" |
| 35719 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35720 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35721 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35722 | |
| 35723 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35724 | ac_cs_usage="\ |
| 35725 | \`$as_me' instantiates files from templates according to the |
| 35726 | current configuration. |
| 35727 | |
| 35728 | Usage: $0 [OPTIONS] [FILE]... |
| 35729 | |
| 35730 | -h, --help print this help, then exit |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35731 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35732 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35733 | -d, --debug don't remove temporary files |
| 35734 | --recheck update $as_me by reconfiguring in the same conditions |
| 35735 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35736 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35737 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35738 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35739 | |
| 35740 | Configuration files: |
| 35741 | $config_files |
| 35742 | |
| 35743 | Configuration headers: |
| 35744 | $config_headers |
| 35745 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35746 | Configuration commands: |
| 35747 | $config_commands |
| 35748 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35749 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35751 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35752 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35753 | ac_cs_version="\\ |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 35754 | llvm config.status 2.6svn |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35755 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35756 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35758 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35759 | This config.status script is free software; the Free Software Foundation |
| 35760 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35761 | |
| 35762 | ac_pwd='$ac_pwd' |
| 35763 | srcdir='$srcdir' |
| 35764 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35765 | _ACEOF |
| 35766 | |
| 35767 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35768 | # If no file are specified by the user, then we need to provide default |
| 35769 | # value. By we need to know if files were specified by the user. |
| 35770 | ac_need_defaults=: |
| 35771 | while test $# != 0 |
| 35772 | do |
| 35773 | case $1 in |
| 35774 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35775 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35776 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35777 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35778 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35779 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35780 | ac_option=$1 |
| 35781 | ac_optarg=$2 |
| 35782 | ac_shift=shift |
| 35783 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35784 | esac |
| 35785 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35786 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35787 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35788 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 35789 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35790 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 35791 | echo "$ac_cs_version"; exit ;; |
| 35792 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35793 | debug=: ;; |
| 35794 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35795 | $ac_shift |
| 35796 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35797 | ac_need_defaults=false;; |
| 35798 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35799 | $ac_shift |
| 35800 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35801 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35802 | --he | --h) |
| 35803 | # Conflict between --help and --header |
| 35804 | { echo "$as_me: error: ambiguous option: $1 |
| 35805 | Try \`$0 --help' for more information." >&2 |
| 35806 | { (exit 1); exit 1; }; };; |
| 35807 | --help | --hel | -h ) |
| 35808 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35809 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 35810 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 35811 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35812 | |
| 35813 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35814 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 35815 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35816 | { (exit 1); exit 1; }; } ;; |
| 35817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35818 | *) ac_config_targets="$ac_config_targets $1" |
| 35819 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35820 | |
| 35821 | esac |
| 35822 | shift |
| 35823 | done |
| 35824 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35825 | ac_configure_extra_args= |
| 35826 | |
| 35827 | if $ac_cs_silent; then |
| 35828 | exec 6>/dev/null |
| 35829 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 35830 | fi |
| 35831 | |
| 35832 | _ACEOF |
| 35833 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35834 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35835 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 35836 | CONFIG_SHELL=$SHELL |
| 35837 | export CONFIG_SHELL |
| 35838 | 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] | 35839 | fi |
| 35840 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35841 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35842 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35843 | exec 5>>config.log |
| 35844 | { |
| 35845 | echo |
| 35846 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 35847 | ## Running $as_me. ## |
| 35848 | _ASBOX |
| 35849 | echo "$ac_log" |
| 35850 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35852 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35853 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35854 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35855 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35856 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35857 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35858 | |
| 35859 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35860 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35861 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35862 | |
| 35863 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35864 | for ac_config_target in $ac_config_targets |
| 35865 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35866 | case $ac_config_target in |
| 35867 | "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] | 35868 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 35869 | "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] | 35870 | "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35871 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 35872 | "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35873 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35874 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35875 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35876 | "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] | 35877 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 35878 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 35879 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 35880 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 35881 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 35882 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35883 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35884 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 35885 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35886 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35887 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 35888 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 35889 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35890 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 35891 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35893 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 35894 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 35895 | { (exit 1); exit 1; }; };; |
| 35896 | esac |
| 35897 | done |
| 35898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35899 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35900 | # If the user did not use the arguments to specify the items to instantiate, |
| 35901 | # then the envvar interface is used. Set only those that are not. |
| 35902 | # We use the long form for the default assignment because of an extremely |
| 35903 | # bizarre bug on SunOS 4.1.3. |
| 35904 | if $ac_need_defaults; then |
| 35905 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 35906 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35907 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35908 | fi |
| 35909 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35910 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35911 | # 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] | 35912 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35913 | # Hook for its removal unless debugging. |
| 35914 | # Note that there is a small window in which the directory will not be cleaned: |
| 35915 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35916 | $debug || |
| 35917 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35918 | tmp= |
| 35919 | trap 'exit_status=$? |
| 35920 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 35921 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35922 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 35923 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35924 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35925 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35926 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35927 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35928 | test -n "$tmp" && test -d "$tmp" |
| 35929 | } || |
| 35930 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35931 | tmp=./conf$$-$RANDOM |
| 35932 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35933 | } || |
| 35934 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35935 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35936 | { (exit 1); exit 1; } |
| 35937 | } |
| 35938 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35939 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35940 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35941 | # |
| 35942 | |
| 35943 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 35944 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35945 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35946 | |
| 35947 | _ACEOF |
| 35948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35949 | |
| 35950 | |
| 35951 | ac_delim='%!_!# ' |
| 35952 | for ac_last_try in false false false false false :; do |
| 35953 | cat >conf$$subs.sed <<_ACEOF |
| 35954 | SHELL!$SHELL$ac_delim |
| 35955 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 35956 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 35957 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 35958 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 35959 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 35960 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 35961 | exec_prefix!$exec_prefix$ac_delim |
| 35962 | prefix!$prefix$ac_delim |
| 35963 | program_transform_name!$program_transform_name$ac_delim |
| 35964 | bindir!$bindir$ac_delim |
| 35965 | sbindir!$sbindir$ac_delim |
| 35966 | libexecdir!$libexecdir$ac_delim |
| 35967 | datarootdir!$datarootdir$ac_delim |
| 35968 | datadir!$datadir$ac_delim |
| 35969 | sysconfdir!$sysconfdir$ac_delim |
| 35970 | sharedstatedir!$sharedstatedir$ac_delim |
| 35971 | localstatedir!$localstatedir$ac_delim |
| 35972 | includedir!$includedir$ac_delim |
| 35973 | oldincludedir!$oldincludedir$ac_delim |
| 35974 | docdir!$docdir$ac_delim |
| 35975 | infodir!$infodir$ac_delim |
| 35976 | htmldir!$htmldir$ac_delim |
| 35977 | dvidir!$dvidir$ac_delim |
| 35978 | pdfdir!$pdfdir$ac_delim |
| 35979 | psdir!$psdir$ac_delim |
| 35980 | libdir!$libdir$ac_delim |
| 35981 | localedir!$localedir$ac_delim |
| 35982 | mandir!$mandir$ac_delim |
| 35983 | DEFS!$DEFS$ac_delim |
| 35984 | ECHO_C!$ECHO_C$ac_delim |
| 35985 | ECHO_N!$ECHO_N$ac_delim |
| 35986 | ECHO_T!$ECHO_T$ac_delim |
| 35987 | LIBS!$LIBS$ac_delim |
| 35988 | build_alias!$build_alias$ac_delim |
| 35989 | host_alias!$host_alias$ac_delim |
| 35990 | target_alias!$target_alias$ac_delim |
| 35991 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 35992 | subdirs!$subdirs$ac_delim |
| 35993 | build!$build$ac_delim |
| 35994 | build_cpu!$build_cpu$ac_delim |
| 35995 | build_vendor!$build_vendor$ac_delim |
| 35996 | build_os!$build_os$ac_delim |
| 35997 | host!$host$ac_delim |
| 35998 | host_cpu!$host_cpu$ac_delim |
| 35999 | host_vendor!$host_vendor$ac_delim |
| 36000 | host_os!$host_os$ac_delim |
| 36001 | target!$target$ac_delim |
| 36002 | target_cpu!$target_cpu$ac_delim |
| 36003 | target_vendor!$target_vendor$ac_delim |
| 36004 | target_os!$target_os$ac_delim |
| 36005 | OS!$OS$ac_delim |
| 36006 | LINKALL!$LINKALL$ac_delim |
| 36007 | NOLINKALL!$NOLINKALL$ac_delim |
| 36008 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 36009 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 36010 | ARCH!$ARCH$ac_delim |
| 36011 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36012 | CC!$CC$ac_delim |
| 36013 | CFLAGS!$CFLAGS$ac_delim |
| 36014 | LDFLAGS!$LDFLAGS$ac_delim |
| 36015 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 36016 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 36017 | EXEEXT!$EXEEXT$ac_delim |
| 36018 | OBJEXT!$OBJEXT$ac_delim |
| 36019 | CPP!$CPP$ac_delim |
| 36020 | GREP!$GREP$ac_delim |
| 36021 | EGREP!$EGREP$ac_delim |
| 36022 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 36023 | BUILD_CC!$BUILD_CC$ac_delim |
| 36024 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 36025 | BUILD_CXX!$BUILD_CXX$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36026 | CVSBUILD!$CVSBUILD$ac_delim |
| 36027 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36028 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36029 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 36030 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 36031 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36032 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36033 | JIT!$JIT$ac_delim |
| 36034 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 36035 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 36036 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 36037 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36038 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36039 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 36040 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36041 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 36042 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36043 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 36044 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36045 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
| 36046 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36047 | CXX!$CXX$ac_delim |
| 36048 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 36049 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
Nick Lewycky | bdf0d7c | 2009-02-21 22:38:49 +0000 | [diff] [blame] | 36050 | NM!$NM$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36051 | _ACEOF |
| 36052 | |
| 36053 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 36054 | break |
| 36055 | elif $ac_last_try; then |
| 36056 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36057 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36058 | { (exit 1); exit 1; }; } |
| 36059 | else |
| 36060 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36061 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36062 | done |
| 36063 | |
| 36064 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36065 | if test -n "$ac_eof"; then |
| 36066 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36067 | ac_eof=`expr $ac_eof + 1` |
| 36068 | fi |
| 36069 | |
| 36070 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36071 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 36072 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 36073 | _ACEOF |
| 36074 | sed ' |
| 36075 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36076 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36077 | :n |
| 36078 | t n |
| 36079 | s/'"$ac_delim"'$/,g/; t |
| 36080 | s/$/\\/; p |
| 36081 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36082 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36083 | rm -f conf$$subs.sed |
| 36084 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36085 | CEOF$ac_eof |
| 36086 | _ACEOF |
| 36087 | |
| 36088 | |
| 36089 | ac_delim='%!_!# ' |
| 36090 | for ac_last_try in false false false false false :; do |
| 36091 | cat >conf$$subs.sed <<_ACEOF |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36092 | ifGNUmake!$ifGNUmake$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36093 | LN_S!$LN_S$ac_delim |
| 36094 | CMP!$CMP$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36095 | CP!$CP$ac_delim |
| 36096 | DATE!$DATE$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36097 | FIND!$FIND$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36098 | MKDIR!$MKDIR$ac_delim |
| 36099 | MV!$MV$ac_delim |
| 36100 | RANLIB!$RANLIB$ac_delim |
| 36101 | RM!$RM$ac_delim |
| 36102 | SED!$SED$ac_delim |
| 36103 | TAR!$TAR$ac_delim |
| 36104 | BINPWD!$BINPWD$ac_delim |
| 36105 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 36106 | DOT!$DOT$ac_delim |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 36107 | FDP!$FDP$ac_delim |
| 36108 | NEATO!$NEATO$ac_delim |
| 36109 | TWOPI!$TWOPI$ac_delim |
| 36110 | CIRCO!$CIRCO$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36111 | GV!$GV$ac_delim |
| 36112 | DOTTY!$DOTTY$ac_delim |
| 36113 | PERL!$PERL$ac_delim |
| 36114 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 36115 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 36116 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 36117 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 36118 | BZIP2!$BZIP2$ac_delim |
| 36119 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36120 | GROFF!$GROFF$ac_delim |
| 36121 | GZIP!$GZIP$ac_delim |
| 36122 | POD2HTML!$POD2HTML$ac_delim |
| 36123 | POD2MAN!$POD2MAN$ac_delim |
| 36124 | RUNTEST!$RUNTEST$ac_delim |
| 36125 | TCLSH!$TCLSH$ac_delim |
| 36126 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 36127 | OCAMLC!$OCAMLC$ac_delim |
| 36128 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 36129 | OCAMLDEP!$OCAMLDEP$ac_delim |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 36130 | OCAMLDOC!$OCAMLDOC$ac_delim |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 36131 | GAS!$GAS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36132 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 36133 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 36134 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 36135 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 36136 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 36137 | ECHO!$ECHO$ac_delim |
| 36138 | AR!$AR$ac_delim |
| 36139 | STRIP!$STRIP$ac_delim |
| 36140 | CXXCPP!$CXXCPP$ac_delim |
| 36141 | F77!$F77$ac_delim |
| 36142 | FFLAGS!$FFLAGS$ac_delim |
| 36143 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 36144 | LIBTOOL!$LIBTOOL$ac_delim |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 36145 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 36146 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 36147 | LLVMGCC!$LLVMGCC$ac_delim |
| 36148 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 36149 | USE_UDIS86!$USE_UDIS86$ac_delim |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 36150 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 36151 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 36152 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36153 | ALLOCA!$ALLOCA$ac_delim |
| 36154 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 36155 | LLVMCC1!$LLVMCC1$ac_delim |
| 36156 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 36157 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 36158 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36159 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 36160 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 36161 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36162 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 36163 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 36164 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 36165 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 36166 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 36167 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 36168 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 36169 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 36170 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 36171 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 36172 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 36173 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 36174 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 36175 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 36176 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 36177 | RPATH!$RPATH$ac_delim |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 36178 | RDYNAMIC!$RDYNAMIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36179 | LIBOBJS!$LIBOBJS$ac_delim |
| 36180 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 36181 | _ACEOF |
| 36182 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36183 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36184 | break |
| 36185 | elif $ac_last_try; then |
| 36186 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36187 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36188 | { (exit 1); exit 1; }; } |
| 36189 | else |
| 36190 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36191 | fi |
| 36192 | done |
| 36193 | |
| 36194 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36195 | if test -n "$ac_eof"; then |
| 36196 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36197 | ac_eof=`expr $ac_eof + 1` |
| 36198 | fi |
| 36199 | |
| 36200 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36201 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 36202 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 36203 | _ACEOF |
| 36204 | sed ' |
| 36205 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36206 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36207 | :n |
| 36208 | t n |
| 36209 | s/'"$ac_delim"'$/,g/; t |
| 36210 | s/$/\\/; p |
| 36211 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36212 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36213 | rm -f conf$$subs.sed |
| 36214 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36215 | :end |
| 36216 | s/|#_!!_#|//g |
| 36217 | CEOF$ac_eof |
| 36218 | _ACEOF |
| 36219 | |
| 36220 | |
| 36221 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 36222 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 36223 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 36224 | # (actually we leave an empty line to preserve line numbers). |
| 36225 | if test "x$srcdir" = x.; then |
| 36226 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 36227 | s/:*\$(srcdir):*/:/ |
| 36228 | s/:*\${srcdir}:*/:/ |
| 36229 | s/:*@srcdir@:*/:/ |
| 36230 | s/^\([^=]*=[ ]*\):*/\1/ |
| 36231 | s/:*$// |
| 36232 | s/^[^=]*=[ ]*$// |
| 36233 | }' |
| 36234 | fi |
| 36235 | |
| 36236 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36237 | fi # test -n "$CONFIG_FILES" |
| 36238 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36239 | |
| 36240 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 36241 | do |
| 36242 | case $ac_tag in |
| 36243 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 36244 | esac |
| 36245 | case $ac_mode$ac_tag in |
| 36246 | :[FHL]*:*);; |
| 36247 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 36248 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 36249 | { (exit 1); exit 1; }; };; |
| 36250 | :[FH]-) ac_tag=-:-;; |
| 36251 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 36252 | esac |
| 36253 | ac_save_IFS=$IFS |
| 36254 | IFS=: |
| 36255 | set x $ac_tag |
| 36256 | IFS=$ac_save_IFS |
| 36257 | shift |
| 36258 | ac_file=$1 |
| 36259 | shift |
| 36260 | |
| 36261 | case $ac_mode in |
| 36262 | :L) ac_source=$1;; |
| 36263 | :[FH]) |
| 36264 | ac_file_inputs= |
| 36265 | for ac_f |
| 36266 | do |
| 36267 | case $ac_f in |
| 36268 | -) ac_f="$tmp/stdin";; |
| 36269 | *) # Look for the file first in the build tree, then in the source tree |
| 36270 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 36271 | # because $ac_f cannot contain `:'. |
| 36272 | test -f "$ac_f" || |
| 36273 | case $ac_f in |
| 36274 | [\\/$]*) false;; |
| 36275 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 36276 | esac || |
| 36277 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 36278 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 36279 | { (exit 1); exit 1; }; };; |
| 36280 | esac |
| 36281 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 36282 | done |
| 36283 | |
| 36284 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 36285 | # use $as_me), people would be surprised to read: |
| 36286 | # /* config.h. Generated by config.status. */ |
| 36287 | configure_input="Generated from "`IFS=: |
| 36288 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 36289 | if test x"$ac_file" != x-; then |
| 36290 | configure_input="$ac_file. $configure_input" |
| 36291 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 36292 | echo "$as_me: creating $ac_file" >&6;} |
| 36293 | fi |
| 36294 | |
| 36295 | case $ac_tag in |
| 36296 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 36297 | esac |
| 36298 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36299 | esac |
| 36300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36301 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36302 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36303 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 36304 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36305 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36306 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36308 | s//\1/ |
| 36309 | q |
| 36310 | } |
| 36311 | /^X\(\/\/\)[^/].*/{ |
| 36312 | s//\1/ |
| 36313 | q |
| 36314 | } |
| 36315 | /^X\(\/\/\)$/{ |
| 36316 | s//\1/ |
| 36317 | q |
| 36318 | } |
| 36319 | /^X\(\/\).*/{ |
| 36320 | s//\1/ |
| 36321 | q |
| 36322 | } |
| 36323 | s/.*/./; q'` |
| 36324 | { as_dir="$ac_dir" |
| 36325 | case $as_dir in #( |
| 36326 | -*) as_dir=./$as_dir;; |
| 36327 | esac |
| 36328 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36329 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36330 | while :; do |
| 36331 | case $as_dir in #( |
| 36332 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36333 | *) as_qdir=$as_dir;; |
| 36334 | esac |
| 36335 | as_dirs="'$as_qdir' $as_dirs" |
| 36336 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36337 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36338 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36339 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36340 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36341 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36342 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36343 | s//\1/ |
| 36344 | q |
| 36345 | } |
| 36346 | /^X\(\/\/\)[^/].*/{ |
| 36347 | s//\1/ |
| 36348 | q |
| 36349 | } |
| 36350 | /^X\(\/\/\)$/{ |
| 36351 | s//\1/ |
| 36352 | q |
| 36353 | } |
| 36354 | /^X\(\/\).*/{ |
| 36355 | s//\1/ |
| 36356 | q |
| 36357 | } |
| 36358 | s/.*/./; q'` |
| 36359 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36360 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36361 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36362 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36363 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36364 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36365 | ac_builddir=. |
| 36366 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36367 | case "$ac_dir" in |
| 36368 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36369 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36370 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36371 | # A ".." for each directory in $ac_dir_suffix. |
| 36372 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36373 | case $ac_top_builddir_sub in |
| 36374 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36375 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36376 | esac ;; |
| 36377 | esac |
| 36378 | ac_abs_top_builddir=$ac_pwd |
| 36379 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36380 | # for backward compatibility: |
| 36381 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36382 | |
| 36383 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36384 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36385 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36386 | ac_top_srcdir=$ac_top_builddir_sub |
| 36387 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36388 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36389 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36390 | ac_top_srcdir=$srcdir |
| 36391 | ac_abs_top_srcdir=$srcdir ;; |
| 36392 | *) # Relative name. |
| 36393 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36394 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36395 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36396 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36397 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36398 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36400 | case $ac_mode in |
| 36401 | :F) |
| 36402 | # |
| 36403 | # CONFIG_FILE |
| 36404 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36405 | |
| 36406 | case $INSTALL in |
| 36407 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36408 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36409 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36410 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36411 | |
| 36412 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36413 | # If the template does not know about datarootdir, expand it. |
| 36414 | # FIXME: This hack should be removed a few years after 2.60. |
| 36415 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 36416 | |
| 36417 | case `sed -n '/datarootdir/ { |
| 36418 | p |
| 36419 | q |
| 36420 | } |
| 36421 | /@datadir@/p |
| 36422 | /@docdir@/p |
| 36423 | /@infodir@/p |
| 36424 | /@localedir@/p |
| 36425 | /@mandir@/p |
| 36426 | ' $ac_file_inputs` in |
| 36427 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 36428 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 36429 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 36430 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 36431 | _ACEOF |
| 36432 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36433 | ac_datarootdir_hack=' |
| 36434 | s&@datadir@&$datadir&g |
| 36435 | s&@docdir@&$docdir&g |
| 36436 | s&@infodir@&$infodir&g |
| 36437 | s&@localedir@&$localedir&g |
| 36438 | s&@mandir@&$mandir&g |
| 36439 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 36440 | esac |
| 36441 | _ACEOF |
| 36442 | |
| 36443 | # Neutralize VPATH when `$srcdir' = `.'. |
| 36444 | # Shell code in configure.ac might set extrasub. |
| 36445 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36446 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36447 | sed "$ac_vpsub |
| 36448 | $extrasub |
| 36449 | _ACEOF |
| 36450 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36451 | :t |
| 36452 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36453 | s&@configure_input@&$configure_input&;t t |
| 36454 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 36455 | s&@srcdir@&$ac_srcdir&;t t |
| 36456 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 36457 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 36458 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 36459 | s&@builddir@&$ac_builddir&;t t |
| 36460 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 36461 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 36462 | s&@INSTALL@&$ac_INSTALL&;t t |
| 36463 | $ac_datarootdir_hack |
| 36464 | " $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] | 36465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36466 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 36467 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 36468 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 36469 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36470 | which seems to be undefined. Please make sure it is defined." >&5 |
| 36471 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36472 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36474 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36475 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36476 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 36477 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36478 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36479 | ;; |
| 36480 | :H) |
| 36481 | # |
| 36482 | # CONFIG_HEADER |
| 36483 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36484 | _ACEOF |
| 36485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36486 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 36487 | # substitutes the proper values into config.h.in to produce config.h. |
| 36488 | rm -f conftest.defines conftest.tail |
| 36489 | # First, append a space to every undef/define line, to ease matching. |
| 36490 | echo 's/$/ /' >conftest.defines |
| 36491 | # Then, protect against being on the right side of a sed subst, or in |
| 36492 | # an unquoted here document, in config.status. If some macros were |
| 36493 | # called several times there might be several #defines for the same |
| 36494 | # symbol, which is useless. But do not sort them, since the last |
| 36495 | # AC_DEFINE must be honored. |
| 36496 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 36497 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 36498 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 36499 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 36500 | # just an empty string. |
| 36501 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 36502 | ac_dB='\\)[ (].*,\\1define\\2' |
| 36503 | ac_dC=' ' |
| 36504 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36506 | uniq confdefs.h | |
| 36507 | sed -n ' |
| 36508 | t rset |
| 36509 | :rset |
| 36510 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 36511 | t ok |
| 36512 | d |
| 36513 | :ok |
| 36514 | s/[\\&,]/\\&/g |
| 36515 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 36516 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 36517 | ' >>conftest.defines |
| 36518 | |
| 36519 | # Remove the space that was appended to ease matching. |
| 36520 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36521 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 36522 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36523 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 36524 | echo 's/ $// |
| 36525 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36527 | # Break up conftest.defines: |
| 36528 | ac_max_sed_lines=50 |
| 36529 | |
| 36530 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 36531 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 36532 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 36533 | # et cetera. |
| 36534 | ac_in='$ac_file_inputs' |
| 36535 | ac_out='"$tmp/out1"' |
| 36536 | ac_nxt='"$tmp/out2"' |
| 36537 | |
| 36538 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36539 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36540 | # Write a here document: |
| 36541 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36542 | # First, check the format of the line: |
| 36543 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 36544 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 36545 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 36546 | b |
| 36547 | :def |
| 36548 | _ACEOF |
| 36549 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36550 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36551 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 36552 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 36553 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 36554 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36555 | rm -f conftest.defines |
| 36556 | mv conftest.tail conftest.defines |
| 36557 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36558 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36560 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36561 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36562 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36563 | echo "/* $configure_input */" >"$tmp/config.h" |
| 36564 | cat "$ac_result" >>"$tmp/config.h" |
| 36565 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36566 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 36567 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 36568 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36569 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36570 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36571 | fi |
| 36572 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36573 | echo "/* $configure_input */" |
| 36574 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36575 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36576 | rm -f "$tmp/out12" |
| 36577 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36579 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 36580 | echo "$as_me: executing $ac_file commands" >&6;} |
| 36581 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36582 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36584 | |
| 36585 | case $ac_file$ac_mode in |
| 36586 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 36587 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 36588 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 36589 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 36590 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 36591 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 36592 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 36593 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36594 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 36595 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36596 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 36597 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 36598 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 36599 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 36600 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
| 36601 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36602 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 36603 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 36604 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 36605 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 36606 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 36607 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36608 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
| 36609 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
| 36610 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
| 36611 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36612 | |
| 36613 | esac |
| 36614 | done # for ac_tag |
| 36615 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36616 | |
| 36617 | { (exit 0); exit 0; } |
| 36618 | _ACEOF |
| 36619 | chmod +x $CONFIG_STATUS |
| 36620 | ac_clean_files=$ac_clean_files_save |
| 36621 | |
| 36622 | |
| 36623 | # configure is writing to config.log, and then calls config.status. |
| 36624 | # config.status does its own redirection, appending to config.log. |
| 36625 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 36626 | # by configure, so config.status won't be able to write to it; its |
| 36627 | # output is simply discarded. So we exec the FD to /dev/null, |
| 36628 | # effectively closing config.log, so it can be properly (re)opened and |
| 36629 | # appended to by config.status. When coming back to configure, we |
| 36630 | # need to make the FD available again. |
| 36631 | if test "$no_create" != yes; then |
| 36632 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36633 | ac_config_status_args= |
| 36634 | test "$silent" = yes && |
| 36635 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36636 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36637 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36638 | exec 5>>config.log |
| 36639 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 36640 | # would make configure fail if this is the last instruction. |
| 36641 | $ac_cs_success || { (exit 1); exit 1; } |
| 36642 | fi |
| 36643 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36644 | # |
| 36645 | # CONFIG_SUBDIRS section. |
| 36646 | # |
| 36647 | if test "$no_recursion" != yes; then |
| 36648 | |
| 36649 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 36650 | ac_sub_configure_args= |
| 36651 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36652 | eval "set x $ac_configure_args" |
| 36653 | shift |
| 36654 | for ac_arg |
| 36655 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36656 | if test -n "$ac_prev"; then |
| 36657 | ac_prev= |
| 36658 | continue |
| 36659 | fi |
| 36660 | case $ac_arg in |
| 36661 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 36662 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 36663 | ac_prev=cache_file ;; |
| 36664 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 36665 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 36666 | | --c=*) |
| 36667 | ;; |
| 36668 | --config-cache | -C) |
| 36669 | ;; |
| 36670 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 36671 | ac_prev=srcdir ;; |
| 36672 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 36673 | ;; |
| 36674 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 36675 | ac_prev=prefix ;; |
| 36676 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 36677 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36678 | *) |
| 36679 | case $ac_arg in |
| 36680 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36681 | esac |
| 36682 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36683 | esac |
| 36684 | done |
| 36685 | |
| 36686 | # Always prepend --prefix to ensure using the same prefix |
| 36687 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36688 | ac_arg="--prefix=$prefix" |
| 36689 | case $ac_arg in |
| 36690 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36691 | esac |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 36692 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36693 | |
| 36694 | ac_popdir=`pwd` |
| 36695 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 36696 | |
| 36697 | # Do not complain, so a configure script can configure whichever |
| 36698 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36699 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36700 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36701 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 36702 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 36703 | echo "$ac_msg" >&6 |
| 36704 | { as_dir="$ac_dir" |
| 36705 | case $as_dir in #( |
| 36706 | -*) as_dir=./$as_dir;; |
| 36707 | esac |
| 36708 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36709 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36710 | while :; do |
| 36711 | case $as_dir in #( |
| 36712 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36713 | *) as_qdir=$as_dir;; |
| 36714 | esac |
| 36715 | as_dirs="'$as_qdir' $as_dirs" |
| 36716 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36717 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36718 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36719 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36720 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36721 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36722 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36723 | s//\1/ |
| 36724 | q |
| 36725 | } |
| 36726 | /^X\(\/\/\)[^/].*/{ |
| 36727 | s//\1/ |
| 36728 | q |
| 36729 | } |
| 36730 | /^X\(\/\/\)$/{ |
| 36731 | s//\1/ |
| 36732 | q |
| 36733 | } |
| 36734 | /^X\(\/\).*/{ |
| 36735 | s//\1/ |
| 36736 | q |
| 36737 | } |
| 36738 | s/.*/./; q'` |
| 36739 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36740 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36741 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36742 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36743 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36744 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36745 | ac_builddir=. |
| 36746 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36747 | case "$ac_dir" in |
| 36748 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36749 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36750 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36751 | # A ".." for each directory in $ac_dir_suffix. |
| 36752 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36753 | case $ac_top_builddir_sub in |
| 36754 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36755 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36756 | esac ;; |
| 36757 | esac |
| 36758 | ac_abs_top_builddir=$ac_pwd |
| 36759 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36760 | # for backward compatibility: |
| 36761 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36762 | |
| 36763 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36764 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36765 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36766 | ac_top_srcdir=$ac_top_builddir_sub |
| 36767 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36768 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36769 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36770 | ac_top_srcdir=$srcdir |
| 36771 | ac_abs_top_srcdir=$srcdir ;; |
| 36772 | *) # Relative name. |
| 36773 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36774 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36775 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36776 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36777 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36778 | |
| 36779 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36780 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36781 | |
| 36782 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36783 | if test -f "$ac_srcdir/configure.gnu"; then |
| 36784 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 36785 | elif test -f "$ac_srcdir/configure"; then |
| 36786 | ac_sub_configure=$ac_srcdir/configure |
| 36787 | elif test -f "$ac_srcdir/configure.in"; then |
| 36788 | # This should be Cygnus configure. |
| 36789 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36790 | else |
| 36791 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 36792 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 36793 | ac_sub_configure= |
| 36794 | fi |
| 36795 | |
| 36796 | # The recursion is here. |
| 36797 | if test -n "$ac_sub_configure"; then |
| 36798 | # Make the cache file name correct relative to the subdirectory. |
| 36799 | case $cache_file in |
| 36800 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36801 | *) # Relative name. |
| 36802 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36803 | esac |
| 36804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36805 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 36806 | 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] | 36807 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36808 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 36809 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36810 | { { 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] | 36811 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 36812 | { (exit 1); exit 1; }; } |
| 36813 | fi |
| 36814 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36815 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36816 | done |
| 36817 | fi |
| 36818 | |